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.

problem with mounting jffs2 file system




Hello,

I reflshed x-loader, u-boot, kernel and jffs file system successfully, when i reboot the system, it ended with kernel panic error, here is the last few lines of my terminal,


<6>display->updated
display->updated
<6>net eth0: SMSC911x/921x identified at 0xc685c000, IRQ: 336
net eth0: SMSC911x/921x identified at 0xc685c000, IRQ: 336
IP-Config: Complete:IP-Config: Complete:
     device=eth0
     device=eth0, addr=10.1.1.235, addr=10.1.1.235, mask=255.255.255.0, mask=255
.255.255.0, gw=10.1.1.1, gw=10.1.1.1,
     host=10.1.1.235, domain=, nis-domain=(none),
     host=10.1.1.235, domain=, nis-domain=(none),
     bootserver=10.1.1.188,
     bootserver=10.1.1.188, rootserver=10.1.1.188, rootserver=10.1.1.188, rootpa
th=, rootpath=

<5>RAMDISK: Couldn't find valid RAM disk image starting at 0.
RAMDISK: Couldn't find valid RAM disk image starting at 0.
List of all partitions:
List of all partitions:
1f00             512 mtdblock01f00             512 mtdblock0 (driver?)
 (driver?)
1f01            1792 mtdblock11f01            1792 mtdblock1 (driver?)
 (driver?)
1f02             256 mtdblock21f02             256 mtdblock2 (driver?)
 (driver?)
1f03            5120 mtdblock31f03            5120 mtdblock3 (driver?)
 (driver?)
1f04          254464 mtdblock41f04          254464 mtdblock4 (driver?)
 (driver?)
No filesystem could mount root, tried: No filesystem could mount root, tried:  e
xt3 ext3 ext2 ext2 vfat vfat msdos msdos

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0
)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

Output of printenv is as follows for your reference,


Texas Instruments X-Loader 1.42
Starting OS Bootloader...
No OOB scheme defined for oobsize 0
OneNAND:  0 kB
256 MiB


U-Boot 2008.10 (Sep 14 2009 - 13:40:58)

OMAP35X-Family-GP rev 2, CPU-OPP2 L3-165MHz
OMAP3 EVM board + LPDDR/NAND
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
OMAP3_EVM # printenv
baudrate=115200
bootfile="uImage"
setenv=tehaddr 00:50:c2:7e:90:b9
rf_er_x81600000=images/fs/ramdisk-base.gz
rf_get_f600000=280000 220000
rf_unlock=nand unlock
rf_blank_ram=mw.b 0x81600000 0xff 0x1400000
rf_er_xloader=nand erase 0 20000
rf_er_uboot=nand erase 80000 40000
rf_er_env=nand erase 260000 20000
rf_er_kernel=nand erase 280000 220000
rf_er_ramdisk=nand erase 780000 1000000
rf_er_fs=nand erase 780000 1400000
rf_get_xloader=tftpboot 0x81600000 images/boot-strap/x-load.bin.ift
rf_get_uboot=tftpboot 0x81600000 images/u-boot/u-boot.bin
rf_get_kernel=tftpboot 0x81600000 images/kernel/uImage
rf_get_ramdisk=tftpboot 0x81600000 images/fs/ramdisk.gz
rf_get_min_rd=tftpboot 0x81600000 images/fs/ramdisk-base.gz
rf_get_fs=tftpboot 0x81600000 images/fs/rootfs.jffs2
rf_wr_xloader_new=nandecc hw; nand write.i 0x81600000 0 20000
rf_wr_uboot_new=nandecc sw; nand write.i 0x81600000 80000 40000
rf_wr_kernel_new=nandecc sw; nand write.i 0x81600000 280000 220000
rf_wr_ramdisk_new=nandecc sw; nand write.i 0x81600000 780000 1000000
rf_wr_fs_new=nandecc sw; nand write.i 0x81600000 780000 1400000
rf_wr_xloader_old=nand ecc hw; nand write.i 0x81600000 0 20000
rf_wr_uboot_old=nand ecc sw; nand write.i 0x81600000 80000 40000
rf_wr_kernel_old=nand ecc sw; nand write.i 0x81600000 280000 220000
rf_wr_ramdisk_old=nand ecc sw; nand write.i 0x81600000 780000 1000000
rf_wr_fs_old=nand ecc sw; nand write.i 0x81600000 780000 1400000
rf_ev=run rf_unlock; run rf_er_env
rf_xl_old=run rf_unlock; run rf_blank_ram; run rf_er_xloader; run rf_get_xloader
; run rf_wr_xloader_old
rf_ub_old=run rf_unlock; run rf_blank_ram; run rf_er_uboot; run rf_get_uboot; ru
n rf_wr_uboot_old
rf_kn_old=run rf_unlock; run rf_blank_ram; run rf_er_kernel; run rf_get_kernel;
run rf_wr_kernel_old
rf_rd_old=run rf_unlock; run rf_blank_ram; run rf_er_ramdisk; run rf_get_ramdisk
; run rf_wr_ramdisk_old
rf_min_rd_old=run rf_unlock; run rf_blank_ram; run rf_er_ramdisk; run rf_get_min
_rd; run rf_wr_ramdisk_old
rf_fs_old=run rf_unlock; run rf_blank_ram; run rf_er_fs; run rf_get_fs; run rf_w
r_fs_old
rf_xl_new=run rf_unlock; run rf_blank_ram; run rf_er_xloader; run rf_get_xloader
; run rf_wr_xloader_new
rf_ub_new=run rf_unlock; run rf_blank_ram; run rf_er_uboot; run rf_get_uboot; ru
n rf_wr_uboot_new
rf_kn_new=run rf_unlock; run rf_blank_ram; run rf_er_kernel; run rf_get_kernel;
run rf_wr_kernel_new
rf_rd_new=run rf_unlock; run rf_blank_ram; run rf_er_ramdisk; run rf_get_ramdisk
; run rf_wr_ramdisk_new
rf_min_rd_new=run rf_unlock; run rf_blank_ram; run rf_er_ramdisk; run rf_get_min
_rd; run rf_wr_ramdisk_new
rf_fs_new=run rf_unlock; run rf_blank_ram; run rf_er_fs; run rf_get_fs; run rf_w
r_fs_new
rf_all_rd_old=run rf_xl_old; run rf_ub_old; run rf_kn_old; run rf_rd_old
rf_all_min_rd_old=run rf_xl_old; run rf_ub_old; run rf_kn_old; run rf_min_rd_old

rf_all_fs_old=run rf_xl_old; run rf_ub_old; run rf_kn_old; run rf_fs_old
rf_all_rd_new=run rf_xl_new; run rf_ub_new; run rf_kn_new; run rf_rd_new
rf_all_min_rd_new=run rf_xl_new; run rf_ub_new; run rf_kn_new; run rf_min_rd_new

rf_all_fs_new=run rf_xl_new; run rf_ub_new; run rf_kn_new; run rf_fs_new
filesize=E00000
fileaddr=81600000
gatewayip=10.1.1.1
netmask=255.255.255.0
ipaddr=10.1.1.235
serverip=10.1.1.188
bootargs=omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y

get_kernel=run nand_kernel
get_initrd=run nand_initrd
nand_kernel=nand read.i 0x80000000 280000 220000
nand_initrd=nand read.i 0x81600000 780000 1000000
tftp_kernel=tftpboot 0x80000000 uImage
tftp_initrd=tftpboot 0x81600000 ramdisk.gz
bootargs_rd=mem=99M console=ttyS0,115200n8 root=/dev/ram0 initrd=0x81600000,16M
ramdisk_size=40960 mpurate=600 omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vi
d1_static_vrfb_alloc=y
bootargs_fs=mem=99M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootf
stype=jffs2 mpurate=600 omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_stat
ic_vrfb_alloc=y
bootargs_nfs=mem=99M console=ttyS0,115200n8 noinitrd ip=dhcp rw root=/dev/nfs nf
sroot=<nfsserver_ip>:/home/<useracct>/workdir/filesys,nolock mpurate=600 omapfb.
rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmas
k):$(hostname):eth0:on
boot_rd=run get_kernel; run get_initrd; setenv bootargs $(bootargs_rd); run addi
p; bootm 0x80000000
boot_fs=run get_kernel; setenv bootargs $(bootargs_fs); run addip; bootm 0x80000
000
boot_nfs=run get_kernel; setenv bootargs $(bootargs_nfs); run addip; bootm 0x800
00000
bootcmd=run boot_rd
bootdelay=20
stdin=serial
stdout=serial
stderr=serial

Environment size: 4581/131068 bytes

Kindly Help,

Thanks,

Ashwini

 

 

 

  • Hi Ashwini,

    Looking the output of your printenv, it looks like your boot_cmd is set to the following:

    bootcmd=run boot_rd

    This command will boot expecting a ramdisk to be loaded. Since you are using a jffs file system try to change your bootcmd as follows.

    "setenv bootcmd run boot_fs"

    "saveenv"

    "boot"

    I have not verified your enviroment variables are correct, so please let me know if this works.

    Depending on what kernel you are using, you can find more information on bootargs. For example for kernel PSP03.00.00.05 you can find information here: http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_03.00.00.05_UserGuide

     

    Regards,