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.

embedded linux boot problem



Hello,

I tried to boot linux on my omap l137 evm by using the current kernel and jffs2 as rootfilesystem with busybox, but I got this Error:

jffs2: Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) on device 31:4.
Freeing init memory: 140K
jffs2: warning: (1) jffs2_do_read_inode_internal: Truncating ino #19 to 937356 bytes failed because it only had 933888 bytes to start with!
request_module: runaway loop modprobe binfmt-0000
request_module: runaway loop modprobe binfmt-0000
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[<c001324c>] (unwind_backtrace+0x0/0xe0) from [<c032b028>] (panic+0x6c/0x1ac)
[<c032b028>] (panic+0x6c/0x1ac) from [<c032add4>] (init_post+0xa0/0xc4)
[<c032add4>] (init_post+0xa0/0xc4) from [<c04428f0>] (kernel_init+0x168/0x1a0)

Does anyone know what I need to do?

Regards, Tom

  • Hello, Tom!

    Please provide more information:
    - where located filesystem (NAND, SD, NFS)
    - if filesystem located on NAND what partition you use
    - please post Linux boot arguments

  • Hello Kirill,

    thanks for your reply.

    I use the spi-flash for my rootfilesystem (jffs2). I didn't change the partitions in the kernel:

    m25p80 spi0.0: w25x32 (4096 Kbytes)
    Creating 5 MTD partitions on "m25p80":
    0x000000000000-0x000000002000 : "DSP-UBL"
    ftl_cs: FTL header not found.
    0x000000002000-0x000000008000 : "ARM-UBL"
    ftl_cs: FTL header not found.
    0x000000008000-0x000000040000 : "U-Boot"
    ftl_cs: FTL header not found.
    0x000000040000-0x000000044000 : "U-Boot-Environment"
    ftl_cs: FTL header not found.
    0x000000044000-0x000000400000 : "Kernel"

    My boot arguments are: setenv bootargs mem=32M console=ttyS2,115200n8 root=/dev/mtdblock4 rw noinitrd rootfstype=jffs2 ip=none

    The kernel start from the sd-ram, so I can use the fifth partition called "kernel" for my root filesystem.

    Because of that line:  "Mounted root (jffs2 filesystem) on device 31:4." in the output I think the problem does not rely on the jffs2, but on the busybox. Is that possible?

     

    Regards, Tom

  • Hello, Tom!

    Unfortunally I not work with SPI-flash, but I see next - your partitions table not have partition for filesystem. You try use mtdblock4, but this is partition reserved for Linux and not conteined filesystem.