File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 282
282
#define BOOT_ENV_LEGACY \
283
283
"fdtaddr=0x0D000000\0"\
284
284
"fdtfile="PISTACHIO_BOARD_NAME".dtb\0"\
285
- "legacy_bootfile=uImage\0"
285
+ "legacy_bootfile=uImage\0"\
286
+ "legacy_nandroot=root=ubi0:rootfs rootfstype=ubifs\0"
286
287
287
288
#define NAND_BOOTCOMMAND_LEGACY \
289
+ "setenv legacy_nandroot ubi.mtd=firmware$boot_partition $legacy_nandroot;"\
290
+ "setenv bootargs $console $earlycon $legacy_nandroot $bootextra $mtdparts panic=2;"\
288
291
"echo Loading legacy kernel from rootfs... && "\
289
292
"ubifsload $loadaddr $bootdir$legacy_bootfile && "\
290
293
"ubifsload $fdtaddr $bootdir$fdtfile && "\
298
301
#endif
299
302
300
303
#define NAND_BOOTCOMMAND \
301
- "setenv nandroot ubi.mtd=firmware$boot_partition;"\
304
+ "setenv nandroot ubi.mtd=firmware$boot_partition $nandroot ;"\
302
305
"setenv bootargs $console $earlycon $nandroot $bootextra $mtdparts panic=2;"\
303
306
"echo Attempting to boot from firmware$boot_partition;"\
304
307
"ubi part firmware$boot_partition || reset;"\
342
345
"netroot=root=/dev/nfs rootfstype=nfs ip=dhcp\0"\
343
346
"usbroot=root=/dev/sda1\0"\
344
347
"mmcroot=root=/dev/mmcblk0p1\0"\
348
+ "nandroot=\0"\
345
349
"usbdev=0\0"\
346
350
"mmcdev=0\0"\
347
351
"usbboot="INIT_BOOTCOMMAND USB_BOOTCOMMAND FINAL_BOOTCOMMAND"\0"\
You can’t perform that action at this time.
0 commit comments