This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Use ramfs instead of NFS

Expert 7680 points

Hi Champions,

I want to use the ramfs instead of NFS for MCSDK-HPC, the following is my test procedure, but it doesn't work, could you please give some comments?

Installed packages: MCSDK_3_00_04_17, mcsdk-hpc_03_00_00_18

1. Unpack TI SDK Root File System, the file  tisdk-rootfs.tar.gz is from  /mcsdk_linux_3_00_04_17/images folder

2. boot the K2H EVM via NFS

3. Install the HPC IPKs to update EVM filesystem with SDK binaries

4. use the following commands to compress and Zip the filesystem

cd /evmk2h_nfs

sudo chmod -R 777 *

sudo find .  | sudo cpio –H newc –o –O  new.cpio 

sudo gzip new.cpio      

sudo cp new.cpio.gz /tftpboot   

5. Modified the u-boot environment to boot from ramfs.

When the kernel start up, it reported the kernel panic:

VFS: Cannot open root device "ram0" or unknow-block(0,0):error

Please append a correct "root=" boot option; here are the available partitions:

1f00        1024 mtdblock0

1f01         512  mtdblock1

1f02         522752 mtdblock2

1f04         15872

Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,0)

And I also tried to modify the args_ramfs parameters root=/dev/1f00, it can't work. It seems the MCSDK3_00_04_17 can't support ramfs.

 

Zhan.