sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv | Matrix: #riscv:catircservices.org
zkrx has quit [Ping timeout: 252 seconds]
zkrx has joined #riscv
iamGavinJ has quit [Quit: This concludes our broadcast day...]
mechaniputer has joined #riscv
andyc has quit [Quit: Connection closed for inactivity]
heat has quit [Ping timeout: 246 seconds]
Tenkawa has quit [Quit: Was I really ever here?]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
X-Scale has quit [Quit: Client closed]
tec has quit [Quit: Ping timeout (120 seconds)]
tec has joined #riscv
X-Scale has joined #riscv
test925 has joined #riscv
BootLayer has joined #riscv
mechaniputer has quit [Quit: leaving]
test924 has quit [Ping timeout: 260 seconds]
X-Scale has quit [Quit: Client closed]
jacklsw has joined #riscv
craigo has quit [Ping timeout: 246 seconds]
Maylay has quit [Quit: Pipe Terminated]
cwittlut has quit [Quit: _]
Maylay has joined #riscv
vagrantc has quit [Quit: leaving]
hexdump0815 has quit [Ping timeout: 246 seconds]
hexdump0815 has joined #riscv
cwittlut has joined #riscv
atka has joined #riscv
davidlt has joined #riscv
BootLayer has quit [Quit: Leaving]
atka has quit [Ping timeout: 252 seconds]
naoki has quit [Remote host closed the connection]
davidlt has quit [Ping timeout: 246 seconds]
mlw has joined #riscv
davidlt has joined #riscv
jedesa has quit [Remote host closed the connection]
jedesa has joined #riscv
drmpeg has quit [Ping timeout: 260 seconds]
atka has joined #riscv
damian101 has quit [Remote host closed the connection]
drmpeg has joined #riscv
naoki has joined #riscv
kilic has quit [Ping timeout: 244 seconds]
<smallville7123> ps: can't open '/proc': Invalid argument is this normal for # /bin/busybox ps in initramfs
<bjdooks> is /proc mounted?
<smallville7123> yes
<smallville7123> i can cat /proc/cmdline but ps cannot open /proc
<ch> perhaps try busybox ps after the system booted
ldevulder has joined #riscv
<smallville7123> how can i test the kernel in qemu-system-riscv64
<smallville7123> ch: i have no system
<smallville7123> i only have initramfd
<smallville7123> initramfs *
<bjdooks> the qemu docs should have some examples, and i'm sure there are reasonable examples elsehwere too
atka has quit [Ping timeout: 276 seconds]
atka has joined #riscv
<smallville7123> i cant seem to boot the kernel via qemu as the rom overlaps with mrom.reset
<smallville7123> i cant seem to boot the kernel via qemu as the kernel overlaps with mrom.reset
<smallville7123> with qemu-system-riscv64 -kernel riscv-kernel/vmlinux-riscv64
andyc has joined #riscv
<smallville7123> with qemu-system-riscv64 -nographic -kernel vmlinux-riscv64
<smallville7123> vmlinux-riscv64 ELF program header segment 0 (addresses 0x0000000000000000 - 0x0000000000d6b04a)
<smallville7123> mrom.reset (addresses 0x0000000000001000 - 0x0000000000001028)
<bjdooks> i tend to use -kernel arch/riscv/boot/Image
<bjdooks> qemu-system-riscv64 -machine virt -m 8G -smp 2 -nographic \
<bjdooks> -append "console=ttyS0 rw root=/dev/vda1" \
<bjdooks> -device virtio-blk-device,drive=hd0 -drive file=riscv-trixie.img,format=raw,id=hd0 \
<bjdooks> -kernel ./linux/arch/riscv/boot/Image \
<bjdooks> -device virtio-net-device,netdev=usernet -netdev user,id=usernet,hostfwd=tcp::22222-:22 \
<bjdooks> -virtfs local,path=$HOME/riscv/,mount_tag=host,security_model=mapped,id=host
<smallville7123> i tried this but i get no output
<smallville7123> qemu-system-riscv64 -nographic -device loader,file=vmlinux-riscv64,addr=0x0000000000000000,cpu-num=0,
<smallville7123> force-raw=on -bios ../RVVM/uboot
<bjdooks> ok, not tried things that way
<smallville7123> without the -device i get output from uboot
<smallville7123> but i dont know how to get qemu to pass it the kernel
<smallville7123> in rvvm i would do ../RVVM/debug_BUILD/rvvm ../RVVM/uboot -v -k vmlinux-riscv64 -m 100m -cmdline="console=ttyS rootflags=discard rw"
<mps> this is old, I didn't tested it last two years but maybe it still works https://arvanta.net/alpine/install-alpine-riscv64-qemu/
<mps> oh, I see I have to replace linux-edge-virt with just linux-edge
<mps> and maybe test with iso image
felixonmars_ has joined #riscv
felixonmars has quit [Read error: Connection reset by peer]
felixonmars_ is now known as felixonmars
<mps> oh, we still don't have riscv iso image on alpine
<mps> but I have locally riscv-qemu.img.xz. could upload it if someone need it
<smallville7123> does anyone have a riscv kernel that boots to initramfs
<smallville7123> specifically one with nvme support
<mps> alpine kernels run from RAM by defaults but I'm not sure it works nowadays because I didn't tested it last few years
felixonmars has quit [Read error: Connection reset by peer]
felixonmars_ has joined #riscv
felixonmars_ is now known as felixonmars
mlw has quit [Ping timeout: 248 seconds]
<smallville7123> hmm
levitating has joined #riscv
naoki has quit [Quit: naoki]
Andre_Z has joined #riscv
<bjdooks> made a bit of test code for my rdcycle emm code
levitating has quit [Ping timeout: 246 seconds]
jacklsw has quit [Quit: Back to the real world]
coldfeet has joined #riscv
Andre_Z has quit [Quit: Leaving.]
Guest2405 is now known as chripo
danilogondolfo has joined #riscv
mlw has joined #riscv
davidlt has quit [Remote host closed the connection]
davidlt has joined #riscv
Andre_Z has joined #riscv
andyc has quit [Quit: Connection closed for inactivity]
ln5 has joined #riscv
shoragan has quit [Ping timeout: 260 seconds]
<smallville7123> hmm this works https://github.com/ATS-INTC/linux-image/tree/main prebuilt Image included
gvg has joined #riscv
gvg has left #riscv [#riscv]
<smallville7123> hmm its /init executes exec /bin/busybox init
kilic has joined #riscv
<smallville7123> oof risc vm without a jit compiler is SLOW AF ;-;
Tenkawa has joined #riscv
X-Scale has joined #riscv
shoragan has joined #riscv
<bjdooks> the real hardware isn't much better yet :/
<bjdooks> urgh, do not build with make W=2
kilic_ has joined #riscv
<smallville7123> bjdooks: ?
<bjdooks> doing a warning hunt in the kernel
<smallville7123> without the jit it takes 80+ seconds to boot, with the jit it takes ~7 seconds to boot
kilic has quit [Ping timeout: 252 seconds]
davidlt has quit [Ping timeout: 265 seconds]
fuwei has quit [Quit: Konversation terminated!]
mahk has quit [Ping timeout: 252 seconds]
mahk has joined #riscv
jedesa has quit [Remote host closed the connection]
_catircservices1 has quit [Quit: Bridge terminating on SIGTERM]
_catircservices has joined #riscv
heat has joined #riscv
Andre_Z has quit [Quit: Leaving.]
davidlt has joined #riscv
fuwei has joined #riscv
fuwei has quit [Ping timeout: 252 seconds]
fuwei has joined #riscv
levitating has joined #riscv
davidlt has quit [Remote host closed the connection]
davidlt has joined #riscv
levitating has quit [Ping timeout: 246 seconds]
coldfeet has quit [Remote host closed the connection]
iamGavinJ has joined #riscv
X-Scale has quit [Ping timeout: 256 seconds]
BootLayer has joined #riscv
damian101 has joined #riscv
clemens3 has quit [Ping timeout: 244 seconds]
eightthree_ has joined #riscv
eightthree has quit [Ping timeout: 255 seconds]
eightthree_ is now known as eightthree
psydroid has joined #riscv
smallville7123 has quit [Ping timeout: 246 seconds]
Stat_headcrabed has joined #riscv
clemens3 has joined #riscv
danilogondolfo has quit [Ping timeout: 252 seconds]
danilogondolfo has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
fuwei has quit [Quit: Konversation terminated!]
craigo has joined #riscv
craigo has quit [Read error: Connection reset by peer]
craigo has joined #riscv
danilogondolfo has quit [Quit: Leaving]
X-Scale has joined #riscv
Stat_headcrabed has joined #riscv
mahk has quit [Changing host]
mahk has joined #riscv
vagrantc has joined #riscv
X-Scale has quit [Ping timeout: 256 seconds]
davidlt has quit [Ping timeout: 252 seconds]
BootLayer has quit [Quit: Leaving]
iamGavinJ has quit [Quit: This concludes our broadcast day...]
damian101 has quit [Ping timeout: 272 seconds]
davidlt has joined #riscv
levitating has joined #riscv
levitating has quit [Ping timeout: 246 seconds]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #riscv
<ncopa2> hi
jedesa has joined #riscv
ncopa2 has quit [Changing host]
ncopa2 has joined #riscv
ncopa2 is now known as ncopa
<mps> o/
<clandmeter> o\
<ncopa> i got the banapi bpi-f3 yesterday and have been trying to update the kernel to something recent
<ncopa> oh, lots of known ppl here
<ncopa> hi friends!
<clandmeter> :)
<mps> Tenkawa: ^
<mps> ok, now ^^^
<ncopa> i got the pacemit kernel working after merging in v6.6.52
<ncopa> so latest LTS
<ncopa> build alpine package
<mps> ncopa: I would like to thanks Tenkawa for help getting bpif3 to work
<mps> and hexdump0815
<ncopa> with help from mps i managed to flush a disk image with tiny-cloud
<Tenkawa> np... There were 2 of us who had a vested interest
<mps> yes, cornelius who is not here also
<Tenkawa> we still are fighting odd "undocumented" quirks
<ncopa> the kernel sources was... inconvenient ....
<Tenkawa> ncopa: oh if you only knew....
<Tenkawa> It has a long way to go....
<ncopa> i applied the 4 commits that are on top of v6.6.36 and merged in v6.6.52
<Tenkawa> 6.1 runs ok... but its ancient.. 6.6 is... well.. flaky
<mps> Tenkawa: I tested xorg on board, it also works
<Tenkawa> good
<Tenkawa> ncopa: what media you running on?
<ncopa> sdcard
<Tenkawa> yeah.. you'll be more stable than I
<ncopa> i got the bpi yesterday
<Tenkawa> NVMe seems to have issues atm
<ncopa> so i havent been able to write to emmc
<mps> Tenkawa: no worries, I told ncopa that nvme could be problematic
<ncopa> i have an nvme pluggend in
<ncopa> was planning to use the nvme as data disk
<Tenkawa> ncopa: watch out for RCU issues
<ncopa> ok
<ncopa> but at least I have a disk image that boots
<mps> I don't have spare nvme, will try to buy next week
<ncopa> minimalistic disk image, with recent kernel
<Tenkawa> Let me see if I can boot mine... just a sec
<ncopa> im working on the tiny-cloud stuff now, so you can attach an USB with vfat LABEL=cidata
<ncopa> where you can add your ssh key
<ncopa> and it works!
<ncopa> Linux alpine-bpi-f3 6.6.52-1-spacemit #2-Alpine SMP 2024-09-19 16:48:12 riscv64 Linux
<ncopa> the led is blinking green
<ncopa> which is a bit annoying
<mps> someone here wanted to run alpine on musebook, now that is worth try
<Tenkawa> turn it off with /sys
<mps> yes, set trigger to none for this led
<ncopa> # cat /sys/class/leds/sys-led/trigger
<ncopa> none bluetooth-power rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd1
<ncopa> no idea what all those does or which of them enables the blinking
<mps> Tenkawa: btw, do you know is it possible to attach battery for RTC? I looked schematic but can't find anything related
<ncopa> I'm pretty happy with this disk image. it is only ~100M
<ncopa> disk usage is 75.0M
<mps> ncopa: `cat /sys/class/leds/sys-led/trigger' and you will what trigger this led
<Tenkawa> he did ct it
<Tenkawa> er cat
<Tenkawa> but there is defaults
<Tenkawa> that doesn't show up in the os
<mps> trigger should have [] pair around it
<mps> you force me to boot clean image
<mps> default trigger is [heartbeat]
<ncopa> hdparm -t reports that the nvme reads 500 MB/s
<ncopa> that is pretty devcent
<ncopa> decent
<ncopa> with the starfive 2 i only got 300 MB/s IIRC
<mps> full list: none bluetooth-power rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock rfkill0 mmc0 mmc1 mmc2 timer oneshot [heartbeat] backlight
<Tenkawa> He hasn't set a default trigger.... interesting.. I wonder if his u-boot has one
<mps> no, he didn't posted full list
<Tenkawa> ah
<Tenkawa> ah good point.. its truncated
<ncopa> oh, thats the reason
<Tenkawa> yeah I use my mmc
<Tenkawa> none rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock rfkill0 mmc0 mmc1 [mmc2] timer oneshot heartbeat backlight phy0rx phy0tx phy0assoc phy0radio rfkill1
<Tenkawa> to watch for the hang
levitating has joined #riscv
<ncopa> clever
<Tenkawa> this is the other problem it is currently having
<Tenkawa> bpibox login: [ 229.879425] xhci-hcd xhci-hcd.0.auto: xHCI host controller not responding, assume dead
<ncopa> what kernel?
<Tenkawa> it goes dead after that kernel message on the consoke
atka has quit [Quit: WeeChat 4.4.2]
<Tenkawa> that is just 6.6.36 still
<mps> Tenkawa: you still have esos.elf in-kernel?
<Tenkawa> 6.1 runs fine but its an ancient copy
<Tenkawa> mps: no. its been removed
<mps> and MAILBOX and REMOTEPROC disabled?
<Tenkawa> yep
<Tenkawa> didn't help
mlw has quit [Remote host closed the connection]
<mps> hm, strange. for me with that works fine
<Tenkawa> you don't use NVMe & microsd
<Tenkawa> thats a different IO & scheduler setup
<Tenkawa> I'm 90% sure its a collision from the debug trace I got
<Tenkawa> but without source for their firmware... no way to tell for sure
<mps> ncopa changed my config a little but nothing important
<ncopa> thats not the full config, its just the diff from defconfig
<Tenkawa> mps: I have tested more configurations than you can imagine.... you do "not" have the hardware setup I am testing so it is an invalid testing scenario
levitating_ has joined #riscv
<Tenkawa> I'm on compile approx 400+
<mps> ncopa: ah, I see
iamGavinJ has joined #riscv
<ncopa> we have issues with nvme on the milk pinoeer box(es)
levitating has quit [Read error: Connection reset by peer]
<Tenkawa> ncopa: I did on the Mars
<mps> yes, and we had issues with nvme on visionfive V2 with some flaky nvmes
<mps> also with flaky power supplies
<Tenkawa> mps: my VF2 is running 6.11 on NVMe flawlessly
<mps> Tenkawa: also mine
<mps> I'm talking about ones which don't work well
<Tenkawa> Can't test a 1.2a model anymore since I melted it lol
<mps> uh
<Tenkawa> (well more accurately its SPI)
<Tenkawa> don't ask me how I did it... but I managed to use up/destroy an SPI chip
<Tenkawa> haahaa
<mps> Tenkawa: understand, also I have some melted devices in garage
<Tenkawa> then again rewriting it twice a day every day or more probably wasn't good
<mps> if you are hacker such happens
<Tenkawa> I was doing spi loader tests... just didn't expect to do "that" many
<Tenkawa> This VF2 is a lot nicer though
levitating_ has quit [Ping timeout: 265 seconds]
<mps> starfive is very nice working with open source
<Tenkawa> Yeah... Bianbu/Spacemit..... meh
jjido has joined #riscv
levitating_ has joined #riscv
davidlt has quit [Ping timeout: 265 seconds]
<Tenkawa> ncopa: not sure if I saw.. which ram model did you get? did it have a spi soldered on it?
<Tenkawa> (most of t hem so far are spi-less)
<ncopa> it is the 16GB model
<ncopa> i don't know where to look for a SPI soldered on it
naoki has joined #riscv
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<mps> small note, we use u-boot+opensbi made by people from https://github.com/pyavitz/debian-image-builder.git
<Tenkawa> ncopa: do a dmesg | grep -i jedec
<Tenkawa> do you get an error or actual data?
<Tenkawa> if you get this you don't have a chip either
<Tenkawa> [ 2.022590] spi-nor spi4.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
<Tenkawa> Most don't have one soldered on
<Tenkawa> only one I've seen yet is on the 2gb ram model...
<mps> Tenkawa: for me it is 'spi-nor spi4.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00'
<ncopa> [ 2.962809] spi-nor spi4.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00
<Tenkawa> mps: it will be different for diff ones... but either way its missing
<Tenkawa> the socket is blank
<Tenkawa> I don't have the dexterity to solder one on..
<ncopa> :)
<ncopa> i wonder if it is possible to set the leds trigger via boot param
<Tenkawa> ncopa: probably but be careful... the boot cmdline is fairly short unless you recompile u-boot
<ncopa> ok
<Tenkawa> you could always set it with the /etc/modprobe.d dir for the led module itself
<ncopa> i think the led is compiled in
<ncopa> not a module
<Tenkawa> still can do it
<mps> ncopa: /etc/local.d/led.start shell script
<Tenkawa> haahaa
<Tenkawa> the "old geeks way"
<mps> which works and is very simple :)
<Tenkawa> yep
<mps> best option will be disable all leds in kernel config :D
<Tenkawa> LOL
<mps> or using soldering tools to remove it from board
<ncopa> so, how do I install this on the emmc?
<ncopa> i got a bootable sdcard
<ncopa> which works fine
<ncopa> but if I want to use the emmc
<ncopa> i see there is mmcblk2, mmcblk2boot0 and mmcblk2boot1
<ncopa> what are those mmcblk2boot0 and mmcblk2boot1?
<mps> I posted you today script to flash u-boot+opensbi to emmc, then create partition on it and copu sdcard to emmc and change root=
<mps> also, you can use my build image script and tweak it for installation on mmc (I thought to make script for install om emmc but maybe you will be faster)
<mps> s/mmc/emmc/
<ncopa> im just curious what the boot0 and boot1 are
<ncopa> will the disapear if I partition /dev/mmcblk2?
<mps> ncopa: this are protected on most emmc on onboard
<mps> they exists also on arm chrome22:07 ......... Tenkawa| mps: it will be different for diff ones... but either way its missing
<mps> hm, shit
<mps> they exists also on arm chromebooks
<ncopa> sure I can simply run the script tps://tpaste.us/Lyk4 but I am curious what it does and why. how things work
<Tenkawa> bbl... need to run for a while
Tenkawa has quit [Quit: Was I really ever here?]
<mps> there is specification somewhere on documentation for chromebooks but years passed when I read this so can't remember all details
<ncopa> where did you get those numbers from? https://tpaste.us/Lyk4
<ncopa> seek 512, seek 1280
vagrantc has quit [Quit: leaving]
<mps> seek is just to 'give' enough space for parts of u-boot and opensbi, to not overlap them
<ncopa> thanks
<mps> u-boot is composed of few stages to boot and we also need opensbi for it, because this first partition start must be 8192 block at least
atka has joined #riscv
levitating_ has quit [Remote host closed the connection]
levitating_ has joined #riscv
<mps> btw, I made gap of beetwen part1 and part2 in my script for making image, by mistake
<mps> s/of//
levitating_ has quit [Ping timeout: 252 seconds]
ldevulder has quit [Quit: Leaving]
psydroid has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
naoki has quit [Quit: naoki]
prabhakalad has quit [Remote host closed the connection]
prabhakalad has joined #riscv
levitating_ has joined #riscv
mechaniputer has joined #riscv
geist-sdf has quit [Quit: Lost terminal]
levitating_ has quit [Ping timeout: 246 seconds]
iamGavinJ has quit [Quit: This concludes our broadcast day...]
jjido has quit [Quit: My laptop has gone to sleep. ZZZzzz…]
hexdump0815 has quit [Quit: WeeChat 3.8]
hexdump0815 has joined #riscv
levitating has joined #riscv
levitating has quit [Remote host closed the connection]
levitating has joined #riscv
levitating has quit [Read error: Connection reset by peer]
levitating has joined #riscv
Tenkawa has joined #riscv
levitating has quit [Ping timeout: 246 seconds]
<Tenkawa> Ok... all readu for my fun house updates tomorrow
<Tenkawa> er ready
<Tenkawa> (had to get everything ready for installersplumbers/etc)
<Tenkawa> Now back to my machines