Wednesday, February 08, 2012

Create and boot RAMDISK




The process I am using to build the ramdisk image:

  mkdir -p ramdisk
dd if=/dev/zero of=ramdisk_file bs=40M count=1
mkfs.ext2 ramdisk_file
sudo mount -o loop ramdisk_file ramdisk
sudo tar -xvzf ramfs.tar.gz -C ramdisk
sudo umount ramdisk
gzip ramdisk_file





uboot:
U-Boot# setenv bootargs console=ttyO0,115200n8 mem=256M earlyprintk root=/dev/ram0 rw initrd=0x82000000,40MB


jffs2:

mkfs.jffs2 -lqnp –e 128 -r target -o /tftpboot/rd-jffs2.bin

1 comment:

Eason said...

U-Boot# setenv bootargs console=ttyO0,115200n8 mem=256M earlyprintk root=/dev/ram0 rw initrd=0x82000000,40MB