!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

341 Members
105 Servers

Load older messages


SenderMessageTime
12 Jul 2023
@thefossguy:matrix.orgPratham PatelI will recheck using the latest stock firmware17:38:41
@alex:tunstall.xyzAlex

You might need to flash the latest firmware in the vendor's Debian system.

The "upstream" kernel's DTB has a broken SPI partition table that is too small to flash all of the u-boot file.

17:38:44
@thefossguy:matrix.orgPratham PatelI don't understand what you mean by the last sentence...17:39:18
@alex:tunstall.xyzAlex
$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"

mtd0 has a size of 128KiB, but the latest versions of u-boot exceed that.

17:40:05
@alex:tunstall.xyzAlexSorry, I probably should've mentioned this sooner.17:40:40
@thefossguy:matrix.orgPratham PatelThat's why I prefer booting from SD Card for development purposes :)17:41:09
@thefossguy:matrix.orgPratham PatelI belive they have switched their priorities to porting EDK217:41:27
@alex:tunstall.xyzAlexThis isn't a problem on the vendor's Debian, because the devel branch of the kernel has a different partition table.17:41:27
@alex:tunstall.xyzAlexCan you describe what needs to be done to boot from SD? I might be able to make the change.17:41:51
@thefossguy:matrix.orgPratham PatelJust a sec17:42:10
@thefossguy:matrix.orgPratham PatelI use this partition layout for the first two partitions https://github.com/thefossguy/archlinux-visionfive2/blob/master/create-image.sh#L8517:42:46
@thefossguy:matrix.orgPratham Patel Then, you dd u-boot-spl.bin.normal.out to part1 and visionfive2_fw_payload.img to part2 17:44:13
@alex:tunstall.xyzAlex

So 4 partitions:

  1. SPL (u-boot metadata)
  2. u-boot (flat binary)
  3. boot (FAT)
  4. root

Makes sense.

17:44:29
@thefossguy:matrix.orgPratham PatelSo instead of reading firmware from flash, the firmware is entirely read from the SD card ;)17:44:31
@thefossguy:matrix.orgPratham Patel
In reply to @alex:tunstall.xyz

So 4 partitions:

  1. SPL (u-boot metadata)
  2. u-boot (flat binary)
  3. boot (FAT)
  4. root

Makes sense.

Exactly!
17:44:44
@thefossguy:matrix.orgPratham PatelBut be vary of the sectors where the partions start and end17:44:56
@thefossguy:matrix.orgPratham PatelThere's a reason why my script starts the first partition at 4096 ;)17:45:19
@alex:tunstall.xyzAlexOh does the bootloader expect the partitions to be at specific offsets?17:45:20
@thefossguy:matrix.orgPratham PatelYes :)17:45:48
@thefossguy:matrix.orgPratham PatelBut that's the ZSBL so it won't ever change17:46:03
@thefossguy:matrix.orgPratham PatelThat's permanent now. For better or for worse 17:46:12
@thefossguy:matrix.orgPratham Patel
In reply to @alex:tunstall.xyz
$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00001000 "spl"
mtd1: 00300000 00001000 "uboot"
mtd2: 00100000 00001000 "data"

mtd0 has a size of 128KiB, but the latest versions of u-boot exceed that.

Nothing like this, where the partition table layout breaks ;)
17:46:46
@thefossguy:matrix.orgPratham PatelWould it be feasible to create an "installer image" for RISC-V that is similar to what one gets for x86/arm64 from nixos.org?18:00:20
@alex:tunstall.xyzAlex
In reply to @thefossguy:matrix.org
Would it be feasible to create an "installer image" for RISC-V that is similar to what one gets for x86/arm64 from nixos.org?
It could be, but it wouldn't be very useful considering that building natively would require building 800+ derivations (and I think the kernel alone would need >20GiB of disk space while building).
18:01:43
@thefossguy:matrix.orgPratham PatelNo community supported caches until RISC-V support is merged in "mainline"?18:02:37
@thefossguy:matrix.orgPratham PatelMy current archlinux image uses a binary cache from an arch maintainer. Arch is x86-only, while I belive NixOS isn't x86-only :)18:03:30
@alex:tunstall.xyzAlexIt isn't, but NixOS only has official caches for {x86_64,aarch64}-{linux,darwin}18:04:19
@alex:tunstall.xyzAlex
In reply to @thefossguy:matrix.org
No community supported caches until RISC-V support is merged in "mainline"?

Essentially, community-supported caches are the only option.

Unless someone's already gone to the trouble of building a riscv64 cache, you're out of luck.

18:05:10
@0x4a6f:matrix.org[0x4A6F]We also need powerful builders to fill these caches...18:05:12
@thefossguy:matrix.orgPratham Patelah I understand it now18:05:40

Show newer messages


Back to Room ListRoom Version: 6