| 12 Jul 2023 |
Leon | I want some machine which has supervisor mode for some PoC development. I doesn't need to be fast, but I don't have that right now given I usually only work on embedded OSes for Cortex-M/RV32IMC MCUs. | 18:16:12 |
Pratham Patel | In reply to @thefossguy:matrix.org Me neither but I would prefer it over the HiFive Pro... The Horse Creek SoC's 4 cores can push only so much... Especially when building GCC woof! | 18:16:18 |
Leon | So thinking this could be dual-use :) | 18:16:23 |
misuzu | In reply to @thefossguy:matrix.org not in SPI mode (with the firmware flashed using nix run github:misuzu/nixos-vf2#flash-visionfive2-vendor /dev/ttyUSB0) You probably have changed some settings is u-boot. To reset u-boot settings to default values you can use these commands:
env default -a
saveenv
| 18:36:30 |
Pratham Patel | In reply to @misuzu:matrix.org
You probably have changed some settings is u-boot. To reset u-boot settings to default values you can use these commands:
env default -a
saveenv
I didn’t modify your uboot settings. I flashed the image and flashed the firmware using aforementioned method. | 18:37:47 |
misuzu | In reply to @thefossguy:matrix.org I didn’t modify your uboot settings. I flashed the image and flashed the firmware using aforementioned method. It's not enough to flash u-boot to reset u-boot settings | 18:38:44 |
Pratham Patel | Oh you mean the settings stored by the vendor’s firmware? | 18:39:23 |
Pratham Patel | It’s possible that i messed with the vendors firmware and that’s acting up right now lol | 18:39:49 |
Pratham Patel | I’ll take a look tomorrow morning | 18:40:05 |
misuzu | Redacted or Malformed Event | 18:40:10 |
Pratham Patel | Good night for now :) | 18:40:14 |
Alex | misuzu is nixos-cross-image-efi supposed to require RISC-V emulation to build?
alex@alex-pc3 ~/r/A/n/master (master)> nix build .#nixos-cross-image-efi --print-build-logs
error: a 'riscv64-linux' with features {} is required to build '/nix/store/03w7yyb2cqw3blz9biawkypig49lx2fc-bootstrap-tools.drv', but I am a
'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
| 18:53:39 |
Alex | In reply to @alex:tunstall.xyz
misuzu is nixos-cross-image-efi supposed to require RISC-V emulation to build?
alex@alex-pc3 ~/r/A/n/master (master)> nix build .#nixos-cross-image-efi --print-build-logs
error: a 'riscv64-linux' with features {} is required to build '/nix/store/03w7yyb2cqw3blz9biawkypig49lx2fc-bootstrap-tools.drv', but I am a
'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
Nevermind, this is the consequence of my own changes.
Now to figure out why. | 18:55:32 |
misuzu | In reply to @alex:tunstall.xyz
misuzu is nixos-cross-image-efi supposed to require RISC-V emulation to build?
alex@alex-pc3 ~/r/A/n/master (master)> nix build .#nixos-cross-image-efi --print-build-logs
error: a 'riscv64-linux' with features {} is required to build '/nix/store/03w7yyb2cqw3blz9biawkypig49lx2fc-bootstrap-tools.drv', but I am a
'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
Nope, just regular x86_64-linux machine | 19:28:28 |
misuzu | In reply to @thefossguy:matrix.org I noticed that the image (https://github.com/misuzu/nixos-vf2) didn't boot with all combinations of DIP switches so me being extra smart, I dd-ed uboot SPL and SBI firmware on /dev/sda1 and /dev/sda2 respectively and mvoed /boot to /dev/sda3 and / to /dev/sda4. Now, your derivation doesn't work because it expects "/dev/sda1" to be EFI? https://github.com/misuzu/nixos-vf2/tree/master#u-boot-on-an-sd-card follow this if you want u-boot on an sdcard | 19:29:40 |
Alex | In reply to @misuzu:matrix.org https://github.com/misuzu/nixos-vf2/tree/master#u-boot-on-an-sd-card follow this if you want u-boot on an sdcard Oh neat, that means I can cancel building my dodgy attempt at tweaking your make-efi-image script. | 19:30:52 |
misuzu | In reply to @alex:tunstall.xyz Oh neat, that means I can cancel building my dodgy attempt at tweaking your make-efi-image script. Try it on spare sdcard first, maybe I've written something wrong 🤡 | 19:34:08 |
misuzu | The image uses labels to mount partitions, so partition numbers shouldn't matter | 19:36:37 |
Alex | In reply to @misuzu:matrix.org The image uses labels to mount partitions, so partition numbers shouldn't matter Doesn't that mean I could shrink my root partition a bit and put u-boot at the end of the disk? | 19:37:29 |
misuzu | In reply to @alex:tunstall.xyz Doesn't that mean I could shrink my root partition a bit and put u-boot at the end of the disk? Root partition - no, efi partition - maybe | 19:38:15 |
raitobezarius | In reply to @0x4a6f:matrix.org Not enough funds, maybe NixOS foundation could chim in. Maybe raitobezarius has some better understanding of this platform. I'd wait | 23:39:14 |
raitobezarius | As said in another channel | 23:39:24 |
raitobezarius | The speed of innovation in RISC V is sufficiently fast that by the time you get your MilkV, you may have to wait ~6-8 mo before you get the next generation which will probably much better at that moment | 23:40:07 |
| 13 Jul 2023 |
Pratham Patel | In reply to @misuzu:matrix.org It's not enough to flash u-boot to reset u-boot settings Okay yeah, that worked. I thought reflashing the firmware would do the trick but now that I think of it, it only makes sense to keep the data separate :D | 04:04:03 |
Pratham Patel | In reply to @alex:tunstall.xyz Doesn't that mean I could shrink my root partition a bit and put u-boot at the end of the disk? If you mean the SPL or the flat binary, then no. | 04:05:45 |
Pratham Patel | In reply to @alex:tunstall.xyz
I'm currently compiling with a few patches applied to try to fix the compilation problems without disabling DRM, since I'd really like to get working HDMI on my VF2.
I'll share the configuration if I'm able to get it working. Given the similarities between the two SBCs (and their respective Linux fork), it might work for the Star64 too. The serial console stops displaying messages after these:
EFI stub: Booting Linux Kernel...
EFI stub: Loaded initrd from command line option
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
clk u2_dw_i2c_clk_core already disabled
clk u2_dw_i2c_clk_apb already disabled
clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled
the kernel doesn't even start...
| 04:22:48 |
artemis | trofi: i still get the libtool error after cleaning the nix store as discussed and starting over with sandbox-fallback=false from the start | 08:55:46 |
trofi | Just to clarify: you do use sandbox = true, right? | 08:56:21 |
artemis | only if that is default | 08:56:36 |
artemis | this is my entire nix.conf http://dpaste.com/5KQ988BL5 | 08:56:57 |