!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

357 Members
113 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
12 Jul 2023
@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

Show newer messages


Back to Room ListRoom Version: 6