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.

Linux/AM5716: Rootfs in ramdisk doesn't mount

Part Number: AM5716


Tool/software: Linux

Hi,

         I am trying to boot Linux in my custom board having AM5716 SoC. My board has only serial port available to load binaries from outside. Linux Kernel image , ROOTFS created using busybox and Device Tree Blob is loaded into DDR via kermit protocol using loadb commands.

But when I try to boot using bootm command I am getting an error of Wrong  Ramdisk image error.

=> bootm 0x82000000 0x88080000 0x88000000
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-4.9.59-ga75d8e9305
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3752656 Bytes = 3.6 MiB
Load Address: a0008000
Entry Point: a0008000
Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid

Next I tried to include the rootfs along with linux kernel compiling , my kernel booting stops at :

[ 67.507216] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
[ 67.515525] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

 

I have tried the steps in the link  for creating RAMdisk.

Also tried using the steps in 

Is it possible to get a compact root file system which I can send via UART to boot Linux in my custom board? 

 

My console log is  ::

=> loadb 0x88000000
## Ready for binary (kermit) download to 0x88000000 at 115200 bps...
CACHE: Misaligned operation at range [88000000, 8801933e]
## Total Size = 0x0001933e = 103230 Bytes
## Start Addr = 0x88000000
=> loadb 0x88080000
## Ready for binary (kermit) download to 0x88080000 at 115200 bps...
CACHE: Misaligned operation at range [88080000, 88119ea4]
## Total Size = 0x00099ea4 = 630436 Bytes
## Start Addr = 0x88080000
=> setenv bootargs mem=88M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0x88080000,16M ramdisk_size=16384
=> loadb 0x82000000
## Ready for binary (kermit) download to 0x82000000 at 115200 bps...
CACHE: Misaligned operation at range [82000000, 82394310]
## Total Size = 0x00394310 = 3752720 Bytes
## Start Addr = 0x82000000
=> pri bootargs
bootargs=mem=88M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0x88080000,16M ramdisk_size=16384
=> bootm 0x82000000 0x88080000 0x88000000
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-4.9.59-ga75d8e9305
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3752656 Bytes = 3.6 MiB
Load Address: a0008000
Entry Point: a0008000
Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
=>

 

 

Kindly help.