File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 282282#define BOOT_ENV_LEGACY \
283283 "fdtaddr=0x0D000000\0"\
284284 "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"
286287
287288#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;"\
288291 "echo Loading legacy kernel from rootfs... && "\
289292 "ubifsload $loadaddr $bootdir$legacy_bootfile && "\
290293 "ubifsload $fdtaddr $bootdir$fdtfile && "\
298301#endif
299302
300303#define NAND_BOOTCOMMAND \
301- "setenv nandroot ubi.mtd=firmware$boot_partition;"\
304+ "setenv nandroot ubi.mtd=firmware$boot_partition $nandroot ;"\
302305 "setenv bootargs $console $earlycon $nandroot $bootextra $mtdparts panic=2;"\
303306 "echo Attempting to boot from firmware$boot_partition;"\
304307 "ubi part firmware$boot_partition || reset;"\
342345 "netroot=root=/dev/nfs rootfstype=nfs ip=dhcp\0"\
343346 "usbroot=root=/dev/sda1\0"\
344347 "mmcroot=root=/dev/mmcblk0p1\0"\
348+ "nandroot=\0"\
345349 "usbdev=0\0"\
346350 "mmcdev=0\0"\
347351 "usbboot="INIT_BOOTCOMMAND USB_BOOTCOMMAND FINAL_BOOTCOMMAND"\0"\
You can’t perform that action at this time.
0 commit comments