!RjBlCIbsLDzHBIzmaA:nixos.org

#nixos-on-arm:nixos.org

1025 Members
NixOS on ARM — Support: AArch64 is supported and cached; armv6 and armv7 are best effort, without any official cache. — Documentation: https://wiki.nixos.org/wiki/NixOS_on_ARM — Community build box: https://github.com/nix-community/aarch64-build-box → build box status: https://status.nixos.org/grafana/d/5LANB9pZk/per-instance-metrics?orgId=1&refresh=30s&var-instance=147.75.77.190 —247 Servers

Load older messages


SenderMessageTime
30 May 2025
@k900:0upti.meK900Uhh do you?16:54:23
@k900:0upti.meK900I think dd worked for me16:54:27
@k900:0upti.meK900But I don't remember at this point16:54:50
@elvishjerricco:matrix.orgElvishJerricco I have flash_erase /dev/mtd0 0 0 followed by nandwrite --pad /dev/mtd0 ./uboot.img in my notes because it was booting if I just overwrote it 16:54:53
@elvishjerricco:matrix.orgElvishJerricco * I have flash_erase /dev/mtd0 0 0 followed by nandwrite --pad /dev/mtd0 ./uboot.img in my notes because it wasn't booting if I just overwrote it 16:55:02
@k900:0upti.meK900Did you write to /dev/mtd0 or /dev/mtdblock016:55:17
@elvishjerricco:matrix.orgElvishJerricco mtd0 16:55:24
@k900:0upti.meK900I think /dev/mtdblockN should automatically do the erase dance16:55:28
@elvishjerricco:matrix.orgElvishJerriccoahh ok16:55:34
@elvishjerricco:matrix.orgElvishJerricco anyway emily I did figure out how to format an SD card to get it booting off that instead of the NAND if you want 16:56:36
@emilazy:matrix.orgemilyyeah I'm interested16:57:16
@emilazy:matrix.orgemilyI'll probably want to do NAND + M.2 long-term but right now I kinda just want to get something booting16:57:26
@elvishjerricco:matrix.orgElvishJerricco basically build the tfa with "BOOT_DEVICE=sdmmc", write the resulting bl2.img to a partition with the LegacyBIOSBootable GPT flag set, and write the resulting fip.bin to a partition with the GPT label fip 16:59:00
@elvishjerricco:matrix.orgElvishJerricco emily: I built the image with repart but it required a patch to repart because libfdisk is dumb. https://gist.github.com/ElvishJerricco/4b005a7235138225cead7205b72570f1 17:04:36
@emilazy:matrix.orgemilywait the ROM surely doesn't parse GPT though right?17:05:18
@emilazy:matrix.orgemilydoes it need to be at a specific offset or something?17:05:25
@elvishjerricco:matrix.orgElvishJerriccoit does17:05:26
@elvishjerricco:matrix.orgElvishJerriccoit parses GPT17:05:32
@emilazy:matrix.orgemilywow17:05:34
@emilazy:matrix.orgemilyI don't know how to feel about that17:05:56
@emilazy:matrix.orgemilyso I guess you just flashed this image and started using it without a separate install?17:06:53
@emilazy:matrix.orgemilyor did you use it to boot the installer to RAM?17:07:06
@elvishjerricco:matrix.orgElvishJerriccoI did not use it to boot a nixos installer. I just started using it once that image booted.17:08:00
@emilazy:matrix.orgemilyright17:08:13
@elvishjerricco:matrix.orgElvishJerricco pretty quickly wiped the ESP and just started doing nixos-rebuild --target-host to it though 17:08:22
@elvishjerricco:matrix.orgElvishJerriccooh, forgot to mention I cross compile the entire system17:08:59
@emilazy:matrix.orgemilywait, what does wiping the ESP have to do with that?17:12:48
@elvishjerricco:matrix.orgElvishJerricconot much; e.g. the UKI should be deleted if nixos is doing its normal systemd-boot stuff17:14:37
@emilazy:matrix.orgemilyright17:14:53
@emilazy:matrix.orgemilywhy is the UKI there to begin with?17:15:00

Show newer messages


Back to Room ListRoom Version: 6