sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv
matoro_ has joined #riscv
solrize has joined #riscv
solrize has quit [Changing host]
cousteau has quit [Quit: ♫ I can't forget the day I shot that network down ♫]
prabhakarlad has quit [Quit: Client closed]
Trifton2 has quit [Quit: Error: no route to host]
brettgilio has left #riscv [The Lounge - https://thelounge.chat]
Noisytoot has quit [Excess Flood]
Noisytoot has joined #riscv
wgrant has quit [Quit: WeeChat 3.5]
wgrant has joined #riscv
Trifton has joined #riscv
jacklsw has joined #riscv
jacklsw has quit [Changing host]
jacklsw has joined #riscv
EchelonX has quit [Quit: Leaving]
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #riscv
Noisytoot has quit [Excess Flood]
Noisytoot has joined #riscv
iooi_ has joined #riscv
BootLayer has joined #riscv
iooi has quit [Ping timeout: 255 seconds]
iooi_ is now known as iooi
vagrantc has quit [Quit: leaving]
jacklsw has quit [Quit: Back to the real life]
jacklsw has joined #riscv
epony has quit [Read error: Connection reset by peer]
epony has joined #riscv
tucanae47 has quit [Ping timeout: 252 seconds]
tucanae47 has joined #riscv
pabs3 has quit [Read error: Connection reset by peer]
pabs3 has joined #riscv
eroux has quit [Ping timeout: 265 seconds]
eroux has joined #riscv
elastic_dog is now known as Guest1434
elastic_dog has joined #riscv
ldevulder has joined #riscv
jacklsw has quit [Quit: Back to the real life]
aerkiaga has joined #riscv
pedja has quit [Quit: Leaving]
junaid_ has joined #riscv
pedja has joined #riscv
joev has quit [Ping timeout: 260 seconds]
joev has joined #riscv
aerkiaga has quit [Remote host closed the connection]
jmdaemon has quit [Ping timeout: 268 seconds]
billchenchina has joined #riscv
jacklsw has joined #riscv
junaid_ has quit [Ping timeout: 256 seconds]
junaid_ has joined #riscv
joev has quit [Ping timeout: 246 seconds]
joev has joined #riscv
jacklsw has quit [Read error: Connection reset by peer]
junaid_ has quit [Ping timeout: 272 seconds]
bauruine has joined #riscv
pabs3 has quit [Ping timeout: 264 seconds]
junaid_ has joined #riscv
pabs3 has joined #riscv
rneese has joined #riscv
aerkiaga has joined #riscv
Kedleston has quit [Ping timeout: 260 seconds]
Kedleston has joined #riscv
javierm has joined #riscv
Andre_H has joined #riscv
<rneese> anyone here have a starfive visionfive they can post the default env settings
BootLayer has quit [Quit: Leaving]
<rneese> like export them so I can reset mine to default
Andre_H has quit [Client Quit]
aerkiaga has quit [Remote host closed the connection]
<rneese> no I the bootloader env
<rneese> booting with out a sd card and printenv
<rneese> once it getst to starfive#
<rneese> or visionfive#
jacklsw has joined #riscv
jacklsw has joined #riscv
jacklsw has quit [Changing host]
<rneese> lease
<rneese> please
zjason` is now known as zjason
<rneese> thanks
junaid_ has quit [Ping timeout: 248 seconds]
junaid_ has joined #riscv
<rneese> when making a uEnv.txt how to make it rm a line you dont want
<rneese> b_part=1 2 3 need to rm bthis line
<rneese> but as nothing is reading it it should be ignored right
BootLayer has joined #riscv
<rneese> I get a error now
<rneese> ** Invalid partition 3 **
<rneese> Couldn't find partition mmc 0:3
<rneese> Can't set block device
<rneese> what is the default
<rneese> just 1 and 2
<rneese> or 1 and 3
aerkiaga has joined #riscv
junaid_ has quit [Remote host closed the connection]
___nick___ has joined #riscv
___nick___ has quit [Client Quit]
___nick___ has joined #riscv
___nick___ has quit [Client Quit]
___nick___ has joined #riscv
aerkiaga has quit [Remote host closed the connection]
vagrantc has joined #riscv
<rneese> la_mettrie: you still here
<rneese> Can't set block device
<rneese> ** Invalid partition 3 **
<rneese> Couldn't find partition mmc 0:3
<rneese> Can't set block device
<la_mettrie> i don't remember much about bootloaders by heart. wouldn't updating the bootloader solve problems? (by following official instructions)
<la_mettrie> i'm leaving now for an hour
<la_mettrie> (updating/reflashing)
<mps> rneese: iirc default boot partition is 3
<rneese> well if I could find the preconfigled files I would
<mps> I changed it and save env to flash on my board so can't check now
<rneese> ok
<mps> maybe look at visionfive u-boot source
<mps> i have default printenv file somewhere, have to look for it
<rneese> ok
<rneese> well mine shows mmc 0:3 which says partion 3 of mmc 0
<rneese> trying to fox put builder to work right
<rneese> ok here is a question extlinux or grub what is preff
<mps> rneese: ime, extlinux.conf is safer but grub also can work with some tweaks
<rneese> ok I will work to go with extlinux.conf
<mps> here is my script to make boot image for alpine linux https://tpaste.us/yvMy
<mps> and I changed boot partition to 2 in u-boot for this
<mps> it is tested well on visionfive v1
jacklsw has quit [Read error: Connection reset by peer]
<rneese> well I need to get the builder to build extlinux parts and put them in place and make it read right
vagrantc has quit [Quit: leaving]
<another|> u-boot-menu ?
<rneese> no our img builder it currently is haveing bugs I have to fix
<another|> seems not too difficult
<rneese> I got the uboot env reset the 3 linues that hwere chaged
<rneese> so I am back to default
Gravis has quit [Ping timeout: 272 seconds]
EchelonX has joined #riscv
radu242753435 has joined #riscv
<rneese> partition 1 is unused
<rneese> partition 2 is the EFI System Partition (used for boot option 2)
<rneese> partition 3 is the root filesystem, which also includes the kernel, initramfs, and boot configuration
<rneese> so this explains the basic s
<rneese> and it seems noone has doen a gruc/extlinux setup
<rneese> or just documentd a extlinux setup
<rneese> they use grub it seems by default now
vagrantc has joined #riscv
<mps> rneese: I created script to install grub for alpine linux https://tpaste.us/YrKg
<mps> and again it uses partition 2 for root fs
epony has quit [Ping timeout: 268 seconds]
<rneese> yeah
<rneese> so you change the default
<rneese> to mmc0:2
<rneese> from mmc0:3
<rneese> th issue we had was by default the img builder we currently have used mmc0:0 as default
<rneese> so the patch in the bl we removed broke things
<rneese> as it made so you can boot from 1 2 or 3 depending on grub and extlinux
<rneese> but I have a bug now to fix
<rneese> and I just made a reset.uenv.txt so we can test changes.
___nick___ has quit [Ping timeout: 246 seconds]
___nick___ has joined #riscv
<rneese> but I have a few things now to fix
<rneese> MMC CD is 0x0, force to True.
<rneese> Failed to load 'uEnv.txt'
<rneese> Can't set block device
<rneese> I dont get why its failing the file is it the fact its not on mmc0:3
<rneese> it shold be reading where ever its told too ook
<rneese> ook / look
<rneese> error: serial port `com0' isn't found.
<rneese> error: terminal `serial' isn't found.
<rneese> error: terminal `serial' isn't found.
<rneese> this for grub is the other issue
<rneese> I might have to set and pass it
<mps> rneese: yes, I changed boot partition to 2 because it looks very strange to me to not have partitions in natural order
<rneese> well reading the wiki I found that
<mps> the problem is that u-boot searches for uEnv.txt in default partition and not searching in all of them starting from 1 up
<rneese> partition 1 is unused
<rneese> partition 2 is the EFI System Partition (used for boot option 2)
<rneese> partition 3 is the root filesystem, which also includes the kernel, initramfs, and boot configuration
<mps> don't have idea why starfive went with this strange setup in default u-boot
<rneese> yeah they did it on fedora also
<mps> maybe they planed partition 1 for something
<rneese> well they never did anything and we will have to see what v2 brings
<rneese> maybe a backup/restore function
<rneese> well I have to figure a fix for this
<rneese> to have it check all 3 partitions
zjason` has joined #riscv
<mps> u-boot runs hush script and there is possible to do a lot
<mps> I'm not sure is the hush posix shell compliant
zjason has quit [Ping timeout: 256 seconds]
<rneese> ootdir=/boot
<rneese> bootenv=uEnv.txt
<mps> btw, did anyone tried mainline kernel 6.1 without patches on visionfive v1
<rneese> I am using the visionfivev1 kernel src from starfive .
<rneese> and you cannot use mainline as the visionfive dtb files dont exist
<mps> ah so
<rneese> they are only in the starfive/visionfive kernel branch
<rneese> they will mainline the v2 board but v1 will not get mainlined
<rneese> and we are using the 6.1 kernel src they have
<rneese> and its working well
<mps> no, there is arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dts in current mainline
<rneese> you could make patch files
<rneese> then have it patch the mainline
<mps> yes, I know I can make patches but would like to know will it work without patches
<rneese> no its in the visinfive dev branch
<rneese> mainline no
<mps> I'm sure it is mainline, just looked
<rneese> nope
<rneese> they will not upstream till 6.3 they say
<mps> git log arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dts | tpaste => https://tpaste.us/5kBy
<rneese> never saw then and it was not from starfive
<rneese> they said the v1 would never be mainstreamed due to lack of a vpu
<drmpeg> Folks are submitting patches for V2 now. https://patchwork.kernel.org/project/linux-riscv/list/
<mps> no, I'm talking about mainline kernel
<rneese> I wonder is esmil knows
<rneese> as he is the main dev
<rneese> or if people are just going around him
<rneese> as esmil said not till 6.3
<drmpeg> The 6.2 window is over, and nothing went in.
<rneese> yeah so I thought it would be 6.3
<drmpeg> Maybe. It's not easy getting device tree stuff into Linux.
<drmpeg> This is why I ordered from the second batch due in February.
epony has joined #riscv
<rneese> I am waiting on the one I had to order from ameridroid
<rneese> single gig port
<rneese> was due in dec but pushed back jan/feb
<rneese> ok so as it was I get why they left mmc0:0 alone its where /boot on a msdos setup would go
<rneese> then mmc0:1 efi
<rneese> mmc0:3 root
<rneese> so they did not want to disrupt the normal layout
<rneese> but normal would have been 0:0/boot/uefi/efi and 2 as root
<rneese> so it is oddd
<rneese> so I figure out the error on serial port
<rneese> error: serial port `com0' isn't found.
<rneese> error: terminal `serial' isn't found.
<rneese> error: terminal `serial' isn't found.
<rneese> as we use a uart interface ttyS0 and not a normal serial port this is a normal error
<rneese> but need to subpress it
<rneese> I have full output on tty0 adn ttyS0
___nick___ has quit [Ping timeout: 268 seconds]
<rneese> do we need grub to detect snd
<rneese> I did not think it was needed
<mps> rneese: hm, though I have 'mmcpart=3' in u-boot printenv out and I don't have partition 3 on mmc card and root fs in partition 2 it boots fine
<mps> interesting
EchelonX has quit [Quit: Leaving]
<rneese> thats because grub does not care
<mps> also 'bootpart=0:3'
<mps> it is with extlinux.conf
<rneese> yeah I have that but grub overrides that
<rneese> ok
<rneese> grub/etxlinux bypass that onc eit boots grub
<mps> the thing is that u-boot finds uEnv.txt on part 2
<rneese> but did you set b-part setting in your uboot env
<rneese> this is how we made ours boot our img adn others
<rneese> b_part=1 2 3
<rneese> mmcbootenv=setenv bootpart ${mmcdev}:${mmcpart}; mmc dev ${mmcdev}; if mmc rescan; then run loadbootenv && run importbootenv; run ext4bootenv; if test -n $uenvcmd; then echo Run uenvcmd ...; run uenvcmd; fi; fi
<rneese> ext4bootenv=for b_p in ${b_part}; do if ext4load mmc ${mmcdev}:${b_p} ${loadaddr} ${bootdir}/${bootenv}; then run importbootenv; fi; done;
<rneese> uenvcmd=setenv uenvcmd ; saveenv
<mps> well, obviously I set these to factory defaults
<rneese> this allowed it to boot partition 1 2 3
<rneese> so having efi on 1 was ok
<mps> hmm, probably I played with u-boot vars and functions too much
<mps> and forgot what I actually did
aerkiaga has joined #riscv
<rneese> well if you print env I can compair a default to yours
<rneese> printenv
<rneese> but overall we got it working but the main dev is having a fit
<rneese> because starfive and the os's did nto follow defaults
<mps> here is my current out of printenv https://tpaste.us/QNMb
ldevulder has quit [Quit: Leaving]
<rneese> b_part=1 2 3
<rneese> so yes you set this
<rneese> that allows it to boot from any of the 3 partitions
<rneese> so thats why it works
<mps> ah, forgot this, thanks
<rneese> oka nd
<rneese> it looks like you have my full patch in there
<mps> heh
<rneese> ext4bootenv=for b_p in ${b_part}; do if ext4load mmc ${mmcdev}:${b_p} ${loadaddr} ${bootdir}/${bootenv}; then run importbootenv; fi; done;
<mps> looks like we came to same solution
jljusten has quit [Ping timeout: 255 seconds]
<rneese> your mmcbootenv is orignal
<rneese> no its also been edted
<rneese> so you have the same patch
<rneese> mmcbootenv=setenv bootpart ${mmcdev}:${mmcpart}; mmc dev ${mmcdev}; if mmc rescan; then run loadbootenv && run importbootenv; run ext4bootenv; if test -n $uenvcmd; then echo Run uenvcmd ...; run uenvcmd; fi; fi
<rneese> so this is the same fix I found that we use on our setup to fix it
<rneese> cool
<rneese> so this makes things nice
<rneese> I need to get the latest ing for you build
<rneese> and if you plan to offer desktop imgs
<rneese> Debian is working on grub issues I hope they fix before the freeze
<mps> no, alpine by default doesn't use desktop on install. this is left to users to do if they need
<rneese> well is there a way to adapt the builder to add the option so they can make a custom img ?
BootLayer has quit [Quit: Leaving]
<mps> alpine install minimal working system and let users to decide what needed for use case
<rneese> ok
<mps> we prefer small, simple, secure
<rneese> like micro linux was
<mps> no, we actually have a lot of pkgs, full kde and gnome, servers etc but left this things to our users to install manually
<rneese> https://www.alpinelinux.org/downloads/ does not show riscv
<rneese> what was the dl url for the riscv img
Noisytoot has quit [Ping timeout: 268 seconds]
<mps> right, we don't have official images for riscv because we don't real builder (hardware) and build all packages with qemu-user on another host
<mps> we decided to not yet create boot iso img, in hope we will get real hardware for builder
<mps> but we have CI and build all pkgs
<mps> one of our developer wrote guide for sifive but I don't have url handy right now
<rneese> now your not deebian/ubuntu/arch/other your a complete own build right
<mps> right
<mps> for example here is my guide to install alpine on visionfive v1 https://arvanta.net/alpine/alpine-on-visionfivev1/
<mps> little outdated though
<rneese> ok
<rneese> are you upto 6.1 kernel testing yet ?
<rneese> your using a android apk krnel ?
<mps> yes, we are using latest Esmil's kernel for visionfive v1 and mainline 6.1 for other
<rneese> ahh ok
<mps> apk is alpine package file format and it predates android apk for few years, and these formats are not similar, totally different
<mps> android 'stole' name from us :)
<rneese> ahh ok
<rneese> I see 6.0.0 in the repo but not 6.1
<rneese> but cool
jljusten has joined #riscv
<mps> oh yes, probably builder is stuck with something and didn't yet build 6.1.1
<mps> ikke: ^
<mps> could you tell what is status of builder
<ikke> its idle
<rneese> our builder or yours
<rneese> ok
<rneese> lol
<mps> ikke: ah sorry, I see
<mps> actually there is 6.1.1 in CDN download
<rneese> need to get ours upto 6.1.1
<mps> rneese: debian?
<rneese> we build our own kernels from the visionfive tree
<rneese> adn it seems stuck at rc6 on our build at the min
<mps> our kernel for visionfive is somewhere else, I forgot url
<rneese> I will have to see if it can be updated
<ikke> It's not public
aerkiaga has quit [Remote host closed the connection]
<ikke> Can make if it necessary
<mps> ikke: ah, thanks
<mps> ikke: whatever you think about this is ok for me
<rneese> ikke will let you know have to find out why ours is stuck
<rneese> if its the ismel has it suck or is its got more
<rneese> looks like its locked at rc6 its not been updated since nov
<mps> we build kernel for visionfive v1 from this repo https://github.com/starfive-tech/linux/commits/visionfive and latest commit
<mps> yes, it is 6.1-rc6
<rneese> yeah not 6.1.1 yet
<mps> last commit on Nov 23
<rneese> thats what we have
<mps> so we have same
<rneese> ok
Noisytoot has joined #riscv
<rneese> well I have to save up and look at getting one
<rneese> so I can add itiinto our builder
<rneese> as I take it they have thier own kernel src also
<rneese> I would have to get a kernel config and link to kernel src
<rneese> does it just use uboot or is it using opensbi or rustsbi
<rneese> I want to get testing rustsbi
<rneese> I would like to get rustos ported in time also
<rneese> solrize is there a release date for the board ?
<rneese> and price
<rneese> to bad not a option for nvme
<rneese> I also wish they would add a 2nd usb-c for serial console setup
<rneese> stop using usb for power move back to real barrel lacks
<rneese> serial ports break to easy in small form factor
<rneese> I get why the Chinese prefer it but its just wrong imho
<rneese> I do like the som idea
<rneese> if it used default oinouts I know a better back plane fo rit
<rneese> this would give more ports output
<rneese> so mps when setup I forget does it ask you to setup a user
<rneese> or is the default user already there
radu242753435 has quit [Read error: Connection reset by peer]
<mps> rneese: you mean alpine setup?
radu242753435 has joined #riscv
<mps> default for alpine is root user without password
<rneese> yeah
<rneese> ok
<rneese> mps its not leting me set timezone
<rneese> Which timezone are you in? ('?' for list) [UTC] ?
<rneese> Which timezone are you in? ('?' for list) [UTC]
ornx has quit [Changing host]
ornx has joined #riscv
<rneese> it wont let me set
<mps> yes, it will ask somewhere in setup-alpine process
<mps> default is UTC
<rneese> i am in alpine-setup
<rneese> its locked up
<mps> hmm, then you just found bug in it
<rneese> Which timezone are you in? ('?' for list) [UTC] ?
<rneese> 'UTC' is not a valid timezone on this system
<rneese> Which timezone are you in? ('?' for list) [UTC]
<mps> which image you use?
<rneese> the one from the site
<rneese> I guess I should grab from the repo
<rneese> the one from dev.alpine.com
<rneese> org
<rneese> sorry
<mps> hmm, if from this guide https://arvanta.net/alpine/alpine-on-visionfivev1/ then I forgot to add timezone pkg to image
<rneese> yes thats the one
bauruine has quit [Remote host closed the connection]
<mps> I never thought that someone will run install from this image and didn't tested setup-alpine
<rneese> ahh ok
<mps> but thank you for finding this problem
tafa has quit [Quit: ZNC - https://znc.in]
<rneese> freeswitch-timezones ?
<rneese> you know freeswitch is a voip server
<rneese> what is the timezones pkg
<rneese> and how to install
<mps> tzdata
<mps> apk add tzdata
<mps> I will update image tomorrow
<mps> here is too late now
<rneese> ok
<rneese> 532 pm here
<mps> 23:33 here
<rneese> ahh ok
<rneese> sleep well
<mps> thanks, good night
tafa has joined #riscv
radu242753435 has quit [Ping timeout: 252 seconds]
<solrize> rneese, all i know about that board is in the article i linked. i saw it priced way above rpi4 and said meh
<solrize> wake me up when they have one that is cheaper than a pi
<rneese> the pi is over 150 now in most places
<rneese> so that is cheaper
<rneese> but I do hope prices come down
<rneese> I am trcing a issue on my visionfive
<rneese> Net: Could not get PHY for dwmac.10020000: addr 3
<rneese> dwmac.10020000
<rneese> [ 8.348363] dwmac-starfive 10020000.ethernet: No PHY found
<rneese> [ 8.354513] dwmac-starfive 10020000.ethernet: error -ENODEV: stmmac_dvr_probe: MDIO bus (id: 0) registration failed
<rneese> [ 9.853478] dw-apb-uart 12440000.serial: forbid DMA for kernel console
radu242753435 has joined #riscv
<javierm> rneese: maybe there are some deps missing? Did you look at /sys/kerne/debug/devices_deferred ?
<rneese> the same img works fine on the beaglev
<rneese> I will in a min
jmdaemon has joined #riscv
<rneese> empty file
<rneese> well its eol hardware noone is doing hardware support just us using it for software while we wait on v2
<rneese> just like beaglev . we just try to keep it going for now
elastic_dog is now known as Guest9840
Guest9840 has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
elastic_dog has joined #riscv
pedja has quit [Quit: Leaving]