dgilmore changed the topic of #fedora-riscv to: Fedora on RISC-V https://fedoraproject.org/wiki/Architectures/RISC-V || Logs: https://libera.irclog.whitequark.org/fedora-riscv || Alt Arch discussions are welcome in #fedora-alt-arches
<djdelorie> davidlt[m]: unmatched.delorie.com is up again, in theory...
davidlt has joined #fedora-riscv
<davidlt[m]> djdelorie: cool, did you just flashed all new images, or just updated a kernel on existing rootfs?
<davidlt[m]> djdelorie: ah, what temperatures do you see reported by sensors?
<djdelorie> reflashed everything, then copied the koji files
<djdelorie> currently 43.6 M/B, 47.1 CPU (and 54.5 VGA)
<davidlt[m]> cool, I have qemu now compiling on rwmjones board (still some hours to go)
<davidlt[m]> Interesting, that my temps are quite low :)
<djdelorie> I'd suggest some small test build on a fresh install, just to make sure it's set up correctly before committing
<davidlt[m]> Planning to do that
<djdelorie> I have no case fans on that case, just the power supply fan. However, it's in my basement, which is relatively cool
<davidlt[m]> Mine in about -10C cooler, but I am using 3A0 (pre-production board)
<davidlt[m]> Technically production board has a better heatsink, but I think, I just got lucky in silicon lottery :)
<djdelorie> they might have pushed the silicon harder in the production board, once they knew the limits
<davidlt[m]> Could be, 3A0 and 3B0 have very minimal changes
<davidlt[m]> perfect, QEMU just finished building! Tests probably will start within an hour or so
<davidlt[m]> I am considering building a new glibc from Rawhide to test the board
<davidlt[m]> That shouldn't break anything
* djdelorie recalibrates "small" to "glibc-sized"
<davidlt[m]> Well, it's a good test :)
<davidlt[m]> A bit of a stress test :)
<davidlt[m]> I can always back it out if something is wrong (the benefits of having access to admin powers on Koji)
<davidlt[m]> It takes 7-8 hours
<davidlt[m]> 2.32 -> 2.35 or 2.36, hm...
<davidlt[m]> glibc-2.35-14.fc36 is a good candidate instead of Rawhide glibc-2.35.9000-29.fc37
<djdelorie> we sync glibc to rawhide every week
<djdelorie> but you want the builds that passed CI
<djdelorie> or at least basic functionality
<davidlt[m]> This last build has f37 tags so it's in the repository
<djdelorie> 2.36 should be released in a few weeks
<djdelorie> the latest rawhide would be helpful to test for the release :-)
<davidlt[m]> I see glibc-2.35.9000-26.fc37 has no tags, so it didn't went into Rawhide repos
<davidlt[m]> That's a plan, I man to fly close to the sun again :)
<davidlt[m]> But I need a stable disk image, so I don't need to fix boards/VMs the whole days most of the week
<davidlt[m]> VMs were easy as I simply nuked them based on Koji pings and recreated, but the boards is all manual labor (no BMC)
<davidlt[m]> Testing PiKVM is on the list. It has IPMI 2.0, Redfish, KVMD API via REST. Also it has some interesting thing like GPIO support (various modes, e.g. switch)
<djdelorie> I haven't had to fresh install a rawhide vm in a while now...
<davidlt[m]> But that almost doubles Unmatched price
<djdelorie> assuming you can get a Pi at all :-)
<davidlt[m]> Yeah, the 8G model seems to hard to get
<djdelorie> I have an 8G for development, on my desk, but the Pi3B that runs the garage doors might need replacing soon...
<davidlt[m]> i.e. glibc-2.35-14.fc36
<davidlt[m]> If nothing breaks too much, we can consider 2.36 too
<davidlt[m]> cooking
<djdelorie> hey look, stuff in kojid.log :-)
<davidlt[m]> Talking about cooking, I need some breakfast :/
<davidlt[m]> glibc is building and qemu tests are running
<davidlt[m]> djdelorie: note, that if we build glibc 2.36 now for testing reasons, we will have a bit older toolchain (gcc and binutils), that might be a common testing setup :)
davidlt has quit [Ping timeout: 272 seconds]
davidlt has joined #fedora-riscv
<davidlt[m]> I think QEMU testing is now at that stage were it hanged on djdelorie board
<davidlt[m]> 722/744 qemu:qtest+qtest-xtensaeb / qtest-xtensaeb/qmp-cmd-test OK 15.92s 60 subtests passed
davidlt has quit [Ping timeout: 276 seconds]
jcajka has joined #fedora-riscv
<rwmjones> nufive:
<rwmjones> M/B Temp: +49.6°C (low = +0.0°C, high = +85.0°C) (crit = +85.0°C, hyst = +75.0°C)
<rwmjones> CPU Temp: +55.5°C (low = +0.0°C, high = +85.0°C) (crit = +85.0°C, hyst = +75.0°C)
<rwmjones> nujive:
<rwmjones> M/B Temp: +47.0°C (low = +0.0°C, high = +85.0°C) (crit = +85.0°C, hyst = +75.0°C)
<rwmjones> CPU Temp: +60.0°C (low = +0.0°C, high = +85.0°C) (crit = +85.0°C, hyst = +75.0°C)
<rwmjones> nufive is using the cpu fan, nujive is using the case fan
zsun has joined #fedora-riscv
davidlt has joined #fedora-riscv
<davidlt[m]> That's very high I would say
<davidlt[m]> I see glibc build failed
<davidlt[m]> ++ basename /builddir/build/BUILD/glibc-2.35-134-gb6aade18a7/build-riscv64-redhat-linux
<davidlt[m]> + echo 'FAIL: test suite build of target: build-riscv64-redhat-linux'
<davidlt[m]> FAIL: test suite build of target: build-riscv64-redhat-linux
<davidlt[m]> tst-resolv-noaaaa.c: In function 'response':... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/fde8e0337e7401e3742a88e8eea5e3e1d7f5dd80)
iooi has quit [Quit: iooi]
jcajka has quit [Quit: Leaving]
<rwmjones> davidlt[m]: so if I was crazy enough to want to run a VM on one of the riscv machines (using tcg of course), what -cpu, -machine would be suggested?
<rwmjones> I tried no -cpu and -machine virt, and it gets into opensbi but then seems to hang before getting to the kernel
<rwmjones> (or maybe the serial console is broken ...)
* davidlt[m] thinking...
<rwmjones> (it's possible it just being very very slow)
<davidlt[m]> IIRC OpenSBI within QEMU supports only JUMP mode?
<rwmjones> what is JUMP mode?
<davidlt[m]> Yeah, instead of DYNAMIC mode
<davidlt[m]> In old times we used JUMP variant because OpenSBI was the 1st thing booting after ZSBL
<davidlt[m]> These days OpenSBI is within U-Boot proper image, U-Boot SPL launches it and tells it to load U-Boot proper
<davidlt[m]> This is because U-Boot SPL fills the structure and pass that information to OpenSBI about the next boot stage
<davidlt[m]> IIRC (didn't check) QEMU OpenSBI is only compiled as a JUMP variant, so it expects to jump into specific address (like we did some years ago)
<davidlt[m]> Maybe that changed
<davidlt[m]> I do know that OpenSBI is loaded by default unless -bios none is passed
<rwmjones> let's try -bios none ..
<davidlt[m]> I am looking at my old emails, QEMU did switch OpenSBI to DYNAMIC variant in 5.2 version
<davidlt[m]> We will need to figure out new libvirt and QEMU instructions for F37
<davidlt[m]> On U-Boot I see:
<davidlt[m]> qemu-system-riscv64 -nographic -machine virt -bios spl/u-boot-spl.bin \
<davidlt[m]> -device loader,file=u-boot.itb,addr=0x80200000
<davidlt[m]> BIOS by default is OpenSBI in DYNAMIC unless specified to be something else
<rwmjones> ok
<davidlt[m]> Doing some googling
<davidlt[m]> Some examples here too: https://wiki.qemu.org/Documentation/Platforms/RISCV
<rwmjones> I'm trying -bios none (it's a bit slow)
<davidlt[m]> One more example: $INSTALL_DIR/bin/qemu-system-riscv64 -kernel linux/arch/riscv/boot/Image -append "root=/dev/vda ro console=ttyS0" -drive file=busybox/busybox,format=raw,id=hd0 -device virtio-blk-device,drive=hd0
<davidlt[m]> The current Fedora/RISCV F33 QEMU images need -bios none, because we produced images with OpenSBI + Kernel IIRC
<rwmjones> I'm just trying a -kernel boot using the 5.18 kernel
<davidlt[m]> That probably needs OpenSBI (aka -bios default [this is default])
<rwmjones> for M-calls?
<rwmjones> I didn't think the kernel would do much of that
<davidlt[m]> See:https://github.com/qemu/qemu/blob/731340813fdb4cb8339edb8630e3f923b7d987ec/docs/system/riscv/virt.rst#L53
<davidlt[m]> Are you running the kernel in M mode?
<rwmjones> it's just the fedora kernel, so I guess not?
<davidlt[m]> Yes
<davidlt[m]> I assume, didn't try you would need something like: $ qemu-system-riscv64 -M virt -smp 4 -m 2G \
<davidlt[m]> -device loader,file=/path/to/u-boot.itb,addr=0x80200000
<davidlt[m]> -display none -serial stdio \
<davidlt[m]> -bios /path/to/u-boot-spl \
<davidlt[m]> Also attach a drive for U-Boot to find /boot partition
<davidlt[m]> I think VirtIO is in the boot order
<davidlt[m]> So this has all the binaries
<rwmjones> so -bios none didn't work
<rwmjones> let's see ...
<rwmjones> -bios /usr/share/uboot/qemu-riscv64_spl/u-boot-spl.bin ?
<davidlt[m]> That's my 1st guess
<davidlt[m]> and also /usr/share/uboot/qemu-riscv64_spl/u-boot.itb
<rwmjones> yup
<davidlt[m]> So that would get you into U-Boot (with our OpenSBI, which is inside ITB file)
<davidlt[m]> To go further you would need to attach a disk (e.g. nvme) via VirtIO
<rwmjones> ok let's see ..
zsun has quit [Quit: Leaving.]
<davidlt[m]> -device virtio-blk-device,drive=hd0 \
<davidlt[m]> -drive file=Fedora-Developer-Rawhide-*.raw,format=raw,id=hd0 \
<davidlt[m]> U-Boot is configured to probe VirtIO to look for boot stuff
<davidlt[m]> Which is basically the 1st VirtIO drive, the 1st partition (alternative if GPT partition has legacy boot flag set)
<rwmjones> ok that's odd ..
<rwmjones> -machine virt,accel=kvm:tcg \
<rwmjones> -bios /usr/share/uboot/qemu-riscv64_spl/u-boot-spl.bin \
<rwmjones> -device loader,file=/usr/share/uboot/qemu-riscv64_spl/u-boot.itb,addr=0x80200000 \
<rwmjones> -kernel /home/rjones/d/libguestfs/tmp/.guestfs-1001/appliance.d/kernel \
<rwmjones> -initrd /home/rjones/d/libguestfs/tmp/.guestfs-1001/appliance.d/initrd \
<rwmjones> and that drops me at a uboot prompt
<davidlt[m]> So that's a good start
<davidlt[m]> Yeah, now you need VirtIO drive for the U-Boot to find
<davidlt[m]> -kernel and -initrd will do nothing here
<rwmjones> hmm
<davidlt[m]> (I think)
<rwmjones> in this case I really need to use -kernel
somlo has quit [Remote host closed the connection]
somlo has joined #fedora-riscv
<davidlt[m]> Do you need to boot in a different way compared to what we do traditionally?
davidlt has quit [Ping timeout: 272 seconds]
<rwmjones> this was just to try getting libguestfs working, which uses -kernel
somlo has quit [Ping timeout: 264 seconds]
somlo has joined #fedora-riscv
davidlt has joined #fedora-riscv
davidlt has quit [Ping timeout: 240 seconds]
iooi has joined #fedora-riscv
iooi has quit [Quit: iooi]
somlo has quit [Read error: Connection reset by peer]
somlo has joined #fedora-riscv