- In LTIB generate a rootfs.jffs2 with a erase block size of 16KB: ./ltib -c ---Target Image Generation Options --->
---Choose your root file system image type
Target image: (jffs2) --->
(16) jffs2 erase block size in KB
- Copy the generated rootfs.jffs2 to /tftpboot : cp rootfs.jffs2 /tftpboot
- Program 200732 Redboot binary. The 200732 Redboot is available in the 20071008 BSP iso. After mounting the iso go to the bootloaders directory, extract the redboot_200732.tar.gz file and use the pre-built mx31ads_redboot.bin inside the bin directory. - Boot from NAND and setup the network parameters fis init
load -r -b 0x100000 /tftpboot/zImage
fis create -l 0x200000 kernel
load -r -b 0x100000 /tftpboot/rootfs.jffs2
fis create -l 0x1d000000 root
- Pass the following kernel command line: fis load kernel
exec -b 0x100000 -l 0x200000 -c "noinitrd console=ttymxc0,115200 root=/dev/mtdblock6 rootfstype=jffs2 init=linuxrc ip=none mtdparts=mx"
You need to replace mtdblock6 with your rootfs partition, see below:
mx31# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 001a0000 00020000 "kernel"
mtd2: 0001f000 00008000 "FIS directory"
mtd3: 00001000 00008000 "RedBoot config"
mtd4: 00040000 00004000 "RedBoot"
mtd5: 00200000 00004000 "kernel"
mtd6: 01d00000 00004000 "root"
mtd7: 00003000 00004000 "FIS directory"
mtd8: 00001000 00004000 "RedBoot config"
mx31#
查看全文