LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-18-2008, 05:03 AM   #1
miglietto
LQ Newbie
 
Registered: Dec 2008
Location: italy
Posts: 5

Rep: Reputation: 0
Cannot start busybox on mips target


linux-2.6.26.5
busybox-1.13.1
uClibc-0.9.30
target: broadcom BCM56224

Hello to everybody

I'm tryng to bring up busybox embedded in my initramfs.
After the boot i get the message
Kernel panic - not syncing: Attempted to kill init!

Using a simple hello C program instead of busybox I can happly get the "Hello world" to the console.

I suspect that I'm missing some fundamental bits in my initramfs

Code:
dir /proc 755 0 0
dir /sys 755 0 0
dir /mnt 755 0 0
dir /root 755 0 0

dir /dev 755 0 0
nod /dev/console 644 0 0 c 5 1
nod /dev/ttyS0 644 0 0 c 4 64
nod /dev/loop0 644 0 0 b 7 0
dir /bin 755 0 0
dir /sbin 755 0 0
dir /etc 755 0 0
file /bin/busybox /home/selva/mips/busybox-1.10.1/busybox 755 0 0
#file /bin/busybox /home/selva/mips/busybox-1.13.1/busybox 755 0 0
#file /bin/busybox /home/selva/mips/target/bin/busybox 755 0 0 (troppo grosso)

slink /bin/init /bin/busybox 777 0 0
#slink /sbin/init /bin/hello 777 0 0
slink /sbin/init /bin/busybox 777 0 0

file /bin/hello usr/hello 755 0 0
file /etc/inittab rootfs/etc/inittab 755 0 0
It seems to me that busybox dies at beginning.
I tried also to put on it some printf at very beginning main() but I can't see nothing on the console.
Why ? The kernel panic stops everyting before any user message can go through ?

I'm clueless so any pointer to make more investigation is very welcomed

Thanks
Andrea
 
Old 12-19-2008, 03:27 AM   #2
miglietto
LQ Newbie
 
Registered: Dec 2008
Location: italy
Posts: 5

Original Poster
Rep: Reputation: 0
Hoping someone is willing to help (please ) below some prints I did in the kernel to further understand this mess

Code:
Linux version 2.6.26.5 (selva@bswlab.vim.tlt.alcatel.it) (libc/sysdeps/linux/mi8console [early0] enabled
CPU revision is: 00029050 (Broadcom BCM3302)
DBG drivers/ssb/scan.c:293: ssb_bus_scan() *SSB_CHIPCO_CHIPID=0x0011b224
bus->chipco.capabilitie=0x00000001
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x00, vendor 0x0000)
ssb: Core 1 found: UNKNOWN (cc 0x000, rev 0x00, vendor 0x0000)
ssb: Sonics Silicon Backplane found at address 0x18000000
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
DBG arch_mem_init(): arcs_cmdline=console=ttyS0,9600 ip=any
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->    32768
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
Kernel command line: console=ttyS0,9600 ip=any
Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 126820k/131072k available (1686k kernel code, 4140k reserved, 389k data)SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
DBG main.c:850 kernel_init()
DBG main.c:do_basic_setup()
net_namespace: 512 bytes
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
DBG initramfs.c:populate_rootfs()
DBG initramfs.c:459 len=618874 gunzip=8020b3d0
msgmni has been set to 247
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
ttyS0: autoconf (0x0000, 0xb8000300)o3.6.6type=16550A
serial8250.0: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
*****************
console handover: boot [early0] -> real [ttyS0]
TCP cubic registered
NET: Registered protocol family 17
DBG main.c:885 ramdisk_execute_command = <NULL>
Freeing unused kernel memory: 720k freed
DBG serial8250_startup()
*****************
DBG main.c:821 ramdisk_execute_command = <NULL>
DBG main.c:834 execute_command = <NULL>
DBG main.c:run_init_process execute_command(/sbin/init)
DBG exit.c:932
Kernel panic - not syncing: Attempted to kill init!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
LXer: CodeSourcery Joins MIPS(R) Alliance Program and Delivers GNU/Linux Prelinker for MIPS-Based(TM) Processors LXer Syndicated Linux News 0 10-31-2006 07:54 PM
mips: 32(sp) -- meaning? ashlesha Linux - Newbie 1 09-16-2006 12:13 AM
Gcc Build error: target=Mips Kcghost Programming 2 05-18-2006 11:23 PM
translate C to MIPS kponenation Programming 1 10-01-2005 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration