想用 u-boot 去烧录固件到 SD NAND,之前用的是晕哥的镜像挂载 U 盘。
看了很多论坛的教程,都是用的 2017 的 u-boot,确实在改了之后支持 tftp,但不想用旧的。感觉全志有点偏心,h3 的支持明显比 v3s 好,不用改就能支持 tftp。
现在 linux、u-boot、buildroot 都是主线最新的,舒服了。
已经发邮件提交合并申请,第一次发,还要弄 Signed-off-by,好麻烦,不知道什么时候能合并。
https://github.com/u-boot/u-boot/pull/430
不能写 0x44000000 之后的地址,被 linux-sunxi 的教程坑了,它说 0x48000000。
U-Boot SPL 2023.10-rc4-gb9b83a86-dirty (Sep 23 2023 - 15:47:57 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2023.10-rc4-gb9b83a86-dirty (Sep 23 2023 - 15:47:57 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
Core: 34 devices, 15 uclasses, devicetree: separate
WDT: Not starting watchdog@1c20ca0
MMC: mmc@1c0f000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In: serial@1c28000
Out: serial@1c28000
Err: serial@1c28000
Net: eth0: ethernet@1c30000
Hit any key to stop autoboot: 0
=> setenv ipaddr 169.254.1.216
=> setenv serverip 169.254.1.114
=> mw.b 0x41000000 0x0 0x400
=> tftp 0x41000000 u-boot/u-boot-sunxi-with-spl.bin
ethernet@1c30000 Waiting for PHY auto negotiation to complete. done
Using ethernet@1c30000 device
TFTP from server 169.254.1.114; our IP address is 169.254.1.216
Filename 'u-boot/u-boot-sunxi-with-spl.bin'.
start: 0x40000000, size: 0x4000000
image_load_addr 0x41000000
Load address: 0x41000000
Loading: ################################
1.2 MiB/s
done
Bytes transferred = 459788 (7040c hex)
离线