!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

343 Members
107 Servers

Load older messages


SenderMessageTime
12 Jul 2023
@alex:tunstall.xyzAlexSwitches on 0, 0? Weird.17:32:31
@thefossguy:matrix.orgPratham Patel
U-Boot SPL 2021.10 (May 31 2023 - 16:54:00 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI
17:32:32
@thefossguy:matrix.orgPratham Patel
In reply to @alex:tunstall.xyz
Switches on 0, 0?
Weird.
Yep, 00
17:32:38
@thefossguy:matrix.orgPratham PatelI don't know the Nix expression langauge, like, at all otherwise I would've sent in the PR to boot from SD. I hate the booting from SD card approach but since uboot is on SD card, we know what uboot the user is using.17:35:46
@alex:tunstall.xyzAlex

Latest from vendor should work.

Are you able to boot misuzu's image in SPI mode?

17:36:30
@thefossguy:matrix.orgPratham PatelI'll check the latest vendor firmware17:36:51
@thefossguy:matrix.orgPratham Patel
In reply to @alex:tunstall.xyz

Latest from vendor should work.

Are you able to boot misuzu's image in SPI mode?

not in SPI mode (with the firmware flashed using nix run github:misuzu/nixos-vf2#flash-visionfive2-vendor /dev/ttyUSB0)
17:37:07
@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

Show newer messages


Back to Room ListRoom Version: 6