You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to write bl2 and ubinized image to nand in uboot for R4
75
+
76
+
```sh
77
+
# erase full nand or only bl2 section
78
+
mtd erase spi-nand0
79
+
mtd erase spi-nand0 0x0 0x200000
80
+
# load bl2 and flash it
81
+
fatload usb 0:1 $loadaddr bpi-r4pro_spim-nand_ubi_bl2.img
82
+
mtd write spi-nand0 $loadaddr 0x0 $filesize
83
+
# erase ubi mtd partition (if not done full erase)
84
+
mtd erase spi-nand0 0x200000
85
+
# load and flash ubinized image
86
+
fatload usb 0:1 $loadaddr bpi-r4-pro_nand.img
87
+
mtd write spi-nand0 $loadaddr 0x200000 $filesize
88
+
```
89
+
make sure size of ubi partition in devicetree matches your nand size on first linux boot to correctly resize the ubifs, else EC errors occour when booting from nand.
0 commit comments