shell is not comming(using busybox and initramfs(rootfs))

Denis Vlasenko vda.linux at googlemail.com
Sun Mar 18 21:28:37 UTC 2007


On Sunday 18 March 2007 10:45, Debasree Mallick wrote:
> Hi ,
> I am using arm cpu LH7A404... I am using initramfs as rootfs..
> when i try to test hello world(ststic )  at my serial comsole =ttyAM1
> nothing is comming not even
> "unable to initialize the console"

Probably because it is able to initialize console?

> but kernel boot message is coming...and then everything is stop....
> 
> Then i try to run rdinit=/init but then show this message and then stop....

Which "this" message?

> Linux version 2.6.18 (root at l5ac190.l5.laser5.co.jp ) (gcc version 4.1.0) #2
> Fri Mar 16 21:36:37 JST 2007
> CPU: ARM922T [41029220] revision 0 (ARMv4T), cr=00003177
> Machine: Logic Product Development LPD7A404-10
> Warning: bad configuration page, trying to continue
> Memory policy: ECC disabled, Data cache writeback
> CPU0: D VIVT write-back cache
> CPU0: I cache: 8192 bytes, associativity 64, 32 byte lines, 4 sets
> CPU0: D cache: 8192 bytes, associativity 64, 32 byte lines, 4 sets
> Built 1 zonelists.  Total pages: 4096
> Kernel command line: console=ttyAM1,115200n8 rdinit=/init
> PID hash table entries: 128 (order: 7, 512 bytes)
> Console: colour dummy device 80x30
> Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
> Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
> Memory: 16MB = 16MB total
> Memory: 14480KB available (1152K code, 265K data, 280K init)
> Mount-cache hash table entries: 512
> CPU: Testing write buffer coherency: ok
> NET: Registered protocol family 16
> SCSI subsystem initialized
> fuse init (API version 7.7)
> Initializing Cryptographic API
> io scheduler noop registered (default)
> serial: LH7A40X serial driver
> ttyAM0 at MMIO 0x80000600 (irq = 38) is a LH7A40X
> ttyAM1 at MMIO 0x80000700 (irq = 40) is a LH7A40X
> ttyAM2 at MMIO 0x80000800 (irq = 42) is a LH7A40X
> loop: loaded (max 8 devices)
> Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
> ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
> mice: PS/2 mouse device common for all mice
> Freeing init memory: 280K

Apparently kernel started an init process here, which is failing
to do anything.

You are using rdinit=/init. Kernel says:

        if (!ramdisk_execute_command)
                ramdisk_execute_command = "/init";

        if (sys_access((const char __user *) ramdisk_execute_command, 0) != 0) {
                ramdisk_execute_command = NULL;
                prepare_namespace();
        }

I am unfamiliar with this. What happens if you use init=/bin/sh
instead of rdinit=/init?

> my cpio.txt file is like this.....

> file /init /root/Desktop/statickernel/initramfs/linuxrc 777 0 0

You should try to make your system to boot into simplest configuration
ever (with init=/bin/sh) before you try more complet stuff (initramfs etc)

Also please read http://www.catb.org/~esr/faqs/smart-questions.html
--
vda



More information about the busybox mailing list