Hiện tại mỗi khi cài Kernel thì mình đều nhập từng dòng lệnh:
setup uboot variables to boot from mmc-sd card # setenv bootargs "console=ttymxc3,115200 root=/dev/mmcblk0p2 rw rootfstype=ext2 rootwait" # setenv bootcmd "fatload mmc 2:1 10800000 uImage; bootm 10800000" # saveenv # boot
- in the temp kernel that booting from MMC SD card, you can load kernel into NAND flash.
Refer to the installation guide from Compulab. Steps are following:$ mkdir mmcblk0p1 $ mount /dev/mmcblk0p1 mmcblk0p1 $ flash_erase /dev/mtd0 0 0 $ nandwrite -p /dev/mtd0 mmcblk0p1/uImage $ flash_erase /dev/mtd1 0 0 $ ubiattach -m 1 -d 0 $ ubimkvol /dev/ubi0 -m -N rootfs $ mkdir -p rootfs && mount -t ubifs ubi0:rootfs rootfs $ cd rootfs $ cpio -idv < ../mmcblk0p1/rootfs.cpio && sync $ cd .. $ umount rootfs $ reboot
- After installation: get into uboot environment
# setenv bootargs "console=ttymxc3,115200 root=ubi0:rootfs rw rootfstype=ubifs ubi.mtd=rootfs" # setenv bootcmd "nand read 10800000 0 600000; bootm" # saveen
Mình đang tìm cách làm sao để nhập tất cả lệnh 1 lần, bạn nào chỉ giúp mình với?