LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-09-2009, 04:06 AM   #1
alexf007
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
kernel panic when booting linux-2.6.30 uImage on at91rm9200ek board


hello,
I built a uImage using the linux-2.6.30 kernel source. My toolchain is gcc (GCC) 3.2.3, coming from Sourcery_G++_Lite. My uboot is version 1.1.1 and I boot via NFS.

I'm getting a kernel panic right around the mounting of the filesystem.

my filesystem was built using Buildroot and a different toolchain (gnu 4.4.x). I realize this is not recommended to mix toolchains but I can't get a clean build of the kernel via Buildroot and gnu 4.4.x when I select the at01rm9200 default config (different post).

anything wrong with my bootargs ?

any help is welcome,

Thanks
Alex



Low Level Init performed


boot 1.0 (Nov 25 2003 - 23:08:05)

Uncompressing image...



U-Boot 1.1.1 (Oct 2 2004 - 19:04:01)

U-Boot code: 21F00000 -> 21F16DF0 BSS: -> 21F1B4AC
RAM Configuration:
Bank #0: 20000000 32 MB
Atmel: AT49BV6416 (64Mbit)
Flash: 8 MB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
TFTP from server 128.224.220.10; our IP address is 128.224.218.109
Filename 'arm9_at91rm9200ek/boot/uImage'.
Load address: 0x21000000
Loading: #################################################################
#################################################################
#################################################################
############################################################
done
Bytes transferred = 1305024 (13e9c0 hex)
## Booting image at 21000000 ...
Image Name: Linux-2.6.30
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1304960 Bytes = 1.2 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................... done, booting th
e kernel.
Linux version 2.6.30 (alexf@van-cc-pb01l) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #11 Wed Jul 8 21:44:04 CES
T 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91RM9200-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: root=/dev/nfs rw nfsroot=128.224.220.10:/guer1/tftpboot/arm9_at91rm9200ek/filesystem ip=128.224.218
.109:128.224.220.10:128.224.218.1:255.255.0.0::eth0:none;
NR_IRQS:192
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console [tty0] enabled
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 29752KB available (2372K code, 211K data, 108K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 89.79 BogoMIPS (lpj=350208)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 520 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
msgmni has been set to 58
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
eth0: Link now 100-FullDuplex
eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (12:24:96:78:9a:bc)
eth0: Davicom 9161 PHY (Copper)
physmap platform flash device: 00200000 at 10000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
Amd/Fujitsu Extended Query Table at 0x0041
physmap-flash.0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Reducing visibility of 8192KiB chip to 2048KiB
RedBoot partition parsing not available
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 23, io mem 0x00300000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.30 ohci_hcd
usb usb1: SerialNumber: at91
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
IRQ 1/at91_rtc: IRQF_DISABLED is not guaranteed on shared IRQs
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 57 (SDA) and 58 (SCL)
AT91 Watchdog Timer enabled (5 seconds, nowayout)
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
at91_rtc at91_rtc: setting system clock to 1998-01-01 00:00:17 UTC (883612817)
eth0: Link now 100-FullDuplex
IP-Config: Complete:
device=eth0, addr=128.224.218.109, mask=255.255.0.0, gw=128.224.218.1,
host=128.224.218.109, domain=, nis-domain=(none),
bootserver=128.224.220.10, rootserver=128.224.220.10, rootpath=
Looking up port of RPC 100003/2 on 128.224.220.10
Looking up port of RPC 100005/1 on 128.224.220.10
VFS: Mounted root (nfs filesystem) on device 0:12.
Freeing init memory: 108K
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0027774>] (dump_backtrace+0x0/0x114) from [<c01ee848>] (dump_stack+0x18/0x1c)
r7:c1c1bf54 r6:c1c18000 r5:c1c18000 r4:c028de94
[<c01ee830>] (dump_stack+0x0/0x1c) from [<c01ee898>] (panic+0x4c/0x11c)
[<c01ee84c>] (panic+0x0/0x11c) from [<c003c684>] (do_exit+0x70/0x58c)
r3:c027bb8c r2:c1c18000 r1:c1c1bd1c r0:c02411b4
[<c003c614>] (do_exit+0x0/0x58c) from [<c003cc30>] (do_group_exit+0x90/0xc4)
[<c003cba0>] (do_group_exit+0x0/0xc4) from [<c0046644>] (get_signal_to_deliver+0x2e0/0x318)
r4:0000000b
[<c0046364>] (get_signal_to_deliver+0x0/0x318) from [<c0025f2c>] (do_signal+0x58/0x4dc)
[<c0025ed4>] (do_signal+0x0/0x4dc) from [<c00263e0>] (do_notify_resume+0x30/0x34)
[<c00263b0>] (do_notify_resume+0x0/0x34) from [<c0023dcc>] (work_pending+0x1c/0x20)
 
Old 07-09-2009, 06:13 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by alexf007 View Post
Kernel panic - not syncing: Attempted to kill init!
This problem has been written about extensively. Use the search page on LQ to find threads about this. Or use Google. Or both.
 
Old 07-09-2009, 06:31 AM   #3
alexf007
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I have of course searched google about this before posting a thread. Could you point me to some URL please ? Thanks in advance.
 
Old 07-14-2009, 12:52 AM   #4
sunr2007
Member
 
Registered: Jan 2009
Location: Bangalore , India
Distribution: Fedora 12
Posts: 65

Rep: Reputation: 17
Hi ,
Im using the at91sam9261 board. canu please let me know how did u enable the ttyS1 port? what changes do we hav to make in the board file?
warm regards,
Ravi Kulkarni.
 
Old 07-21-2009, 04:04 PM   #5
alexf007
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
hi. I didn't specifically enabled it, so I'd say it was by default for the 9200EK board...
By the way, I'm past my original problem. I went back a couple of kernel revs, so I'm using 2.6.28 now on which buildroot lets me apply a specific atmel patch. Kernel and NFS are running fine now. Trying to get matchbox to run now . Thanks, Alex
 
  


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
Kernel panic - not syncing: Attempted to kill init! (Embedded ARM Board) ksudeadeye Linux - Embedded & Single-board computer 3 12-12-2008 03:20 PM
Kernel panic - not syncing: Attempted to kill init! (Embedded ARM Board) ksudeadeye Linux From Scratch 1 12-12-2008 01:22 AM
Last 10% of uImage content is changing each time i build kernel image santa001 Linux - Newbie 2 10-20-2008 07:08 AM
kernel panic while booting custom compiled 2.6.24 kernel on RHEL 4 AS samkraju Red Hat 4 02-10-2008 12:55 AM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 04:59 AM

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

All times are GMT -5. The time now is 01:22 PM.

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