LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   kernel panic not syncing: Attempted to kill init! (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/kernel-panic-not-syncing-attempted-to-kill-init-897244/)

zxlwyx9219 08-13-2011 12:16 PM

kernel panic not syncing: Attempted to kill init!
 
hi,
just now i compile the linux-2.3.32 kernel,and get the kernel panic as the tag showed;
first,i used the arm-linux-gnu-gcc crosscompile, gcc versoion 4.5.2; everything goes ok until downloaded the uImage to the target, found "kernel panic:not syncing : Attempted to kill init!". Then i searched the possbile solvtions on the internets, some one told me i should do the following :Kernel Features --->[*] Use the ARM EABI to compile the kernel [*] Allow old ABI binaries to run with this kernel (EXPERIMENTA)
so i followed the instuctions, i couldn't make uImage as the result: invalid option `abi=aapcs-linux'; then i searched again, another one told me to use the arm-none-eabi-gcc crosscompile, gcc version 4.5.2; so i installed the EABI, though it' took a long time,i thought it's worlth, long time passed, i got the uImage i wanted, i was so happy for the successful of uImage, download again to my target, nothing changed, i still got the same result: kernel Panic.......; as a newbile of embedded system, i couldn't found the tootcause, can anybody help me out?
attched the serial msg:
Starting kernel ...

Uncompressing

Linux.......................................................................................

..................................... done, booting the kernel.
Linux version 2.6.32 (zhang@F-ing) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-42) ) #1

Sun Aug 14 00:31:57 HKT 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttySAC0 root=/dev/mtdblock3 rootfstype=jffs2
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60816KB available (3604K code, 316K data, 132K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing pending ext status 00000100
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 99.53 BogoMIPS (lpj=248832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2410-i2c: slave address 0x10
s3c-i2c s3c2410-i2c: bus frequency set to 97 KHz
s3c-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2410-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns
s3c24xx-nand s3c2410-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 8 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000004000 : "Boot Agent"
0x000000000000-0x000000200000 : "S3C2410 flash partition 1"
0x000000400000-0x000000800000 : "S3C2410 flash partition 2"
0x000000800000-0x000000a00000 : "S3C2410 flash partition 3"
0x000000a00000-0x000000e00000 : "S3C2410 flash partition 4"
0x000000e00000-0x000001800000 : "S3C2410 flash partition 5"
0x000001800000-0x000003000000 : "S3C2410 flash partition 6"
0x000003000000-0x000004000000 : "S3C2410 flash partition 7"
cs89x0:cs89x0_probe(0x0)
Unable to handle kernel paging request at virtual address f600030a
pgd = c0004000
[f600030a] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0 Not tainted (2.6.32 #1)
PC is at readword+0x1c/0x2c
LR is at cs89x0_probe1.clone.4+0xd0/0x740
pc : [<c01eabd8>] lr : [<c001c374>] psr: 80000013
sp : c381becc ip : c381bedc fp : c381bed8
r10: 00000000 r9 : 00000000 r8 : 00000000
r7 : 00000300 r6 : 00000300 r5 : c39b9c00 r4 : c39b9ec0
r3 : f600030a r2 : 00000300 r1 : 0000030a r0 : 00000300
Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: c000717f Table: 30004000 DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc381a260)
Stack: (0xc381becc to 0xc381c000)
bec0: c381bf60 c381bedc c001c374 c01eabcc 00000000
bee0: c39b9c00 c39b9c00 00000001 c03805c7 c39b9d3c c39a9b20 c381bf50 c381bf08
bf00: c025f8f8 c01626d4 00000000 00000000 00000000 c39b9c00 00000000 00000001
bf20: 00000000 00000000 00000000 00000000 c381bf50 c381bf40 c02d80e8 c39b9c00
bf40: c0028344 c0028340 00000000 00000000 00000000 c381bf80 c381bf64 c001ca6c
bf60: c001c2b4 00000000 c00282cc 00000001 00000000 c381bf9c c381bf84 c001bfd8
bf80: c001c9f4 00000000 00000001 00000000 c381bfb4 c381bfa0 c001c08c c001bfac
bfa0: c001c008 00000000 c381bfe0 c381bfb8 c00294a4 c001c018 00000000 00000000
bfc0: c381bfe0 c0023d3c 00000000 00000000 00000000 c381bff4 c381bfe4 c0008b88
bfe0: c0029448 00000000 00000000 c381bff8 c0049a10 c0008afc 33cc33cc 33cc33cc
Backtrace:
[<c01eabbc>] (readword+0x0/0x2c) from [<c001c374>] (cs89x0_probe1.clone.4+0xd0/0x740)
[<c001c2a4>] (cs89x0_probe1.clone.4+0x0/0x740) from [<c001ca6c>] (cs89x0_probe+0x88/0xe8)
[<c001c9e4>] (cs89x0_probe+0x0/0xe8) from [<c001bfd8>] (probe_list2+0x3c/0x6c)
r7:00000000 r6:00000001 r5:c00282cc r4:00000000
[<c001bf9c>] (probe_list2+0x0/0x6c) from [<c001c08c>] (net_olddevs_init+0x84/0xc4)
r6:00000000 r5:00000001 r4:00000000
[<c001c008>] (net_olddevs_init+0x0/0xc4) from [<c00294a4>] (do_one_initcall+0x6c/0x1bc)
r5:00000000 r4:c001c008
[<c0029438>] (do_one_initcall+0x0/0x1bc) from [<c0008b88>] (kernel_init+0x9c/0x114)
r7:00000000 r6:00000000 r5:00000000 r4:c0023d3c
[<c0008aec>] (kernel_init+0x0/0x114) from [<c0049a10>] (do_exit+0x0/0x598)
r4:00000000
Code: e0811000 e3510201 e1a03001 328334f6 (e1d310b0)
---[ end trace b5b013027e722323 ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c002d790>] (dump_backtrace+0x0/0x110) from [<c02d7fa4>] (dump_stack+0x18/0x1c)
r6:c3815cc0 r5:0000000b r4:c03d06c4
[<c02d7f8c>] (dump_stack+0x0/0x1c) from [<c02d7ff0>] (panic+0x48/0x11c)
[<c02d7fa8>] (panic+0x0/0x11c) from [<c0049a74>] (do_exit+0x64/0x598)
r3:c03b68fc r2:c381bd2c r1:00002710 r0:c0357a7a
[<c0049a10>] (do_exit+0x0/0x598) from [<c002dd30>] (die+0x164/0x188)
r7:c03550c5
[<c002dbcc>] (die+0x0/0x188) from [<c002f674>] (__do_kernel_fault+0x6c/0x7c)
r7:c381be84
[<c002f608>] (__do_kernel_fault+0x0/0x7c) from [<c002f8c4>] (do_bad_area+0x68/0x74)
r7:c381be84 r6:30004000 r5:c0007d80 r4:00000000
[<c002f85c>] (do_bad_area+0x0/0x74) from [<c002f958>] (do_translation_fault+0x70/0x7c)
[<c002f8e8>] (do_translation_fault+0x0/0x7c) from [<c0029210>] (do_DataAbort+0x38/0xa0)
r6:f600030a r5:00000005 r4:00000005
[<c00291d8>] (do_DataAbort+0x0/0xa0) from [<c0029a60>] (__dabt_svc+0x40/0x60)
Exception stack(0xc381be84 to 0xc381becc)
be80: 00000300 0000030a 00000300 f600030a c39b9ec0 c39b9c00 00000300
bea0: 00000300 00000000 00000000 00000000 c381bed8 c381bedc c381becc c001c374
bec0: c01eabd8 80000013 ffffffff
r8:00000000 r7:00000300 r6:00000300 r5:c381beb8 r4:ffffffff
[<c01eabbc>] (readword+0x0/0x2c) from [<c001c374>] (cs89x0_probe1.clone.4+0xd0/0x740)
[<c001c2a4>] (cs89x0_probe1.clone.4+0x0/0x740) from [<c001ca6c>] (cs89x0_probe+0x88/0xe8)
[<c001c9e4>] (cs89x0_probe+0x0/0xe8) from [<c001bfd8>] (probe_list2+0x3c/0x6c)
r7:00000000 r6:00000001 r5:c00282cc r4:00000000
[<c001bf9c>] (probe_list2+0x0/0x6c) from [<c001c08c>] (net_olddevs_init+0x84/0xc4)
r6:00000000 r5:00000001 r4:00000000
[<c001c008>] (net_olddevs_init+0x0/0xc4) from [<c00294a4>] (do_one_initcall+0x6c/0x1bc)
r5:00000000 r4:c001c008
[<c0029438>] (do_one_initcall+0x0/0x1bc) from [<c0008b88>] (kernel_init+0x9c/0x114)
r7:00000000 r6:00000000 r5:00000000 r4:c0023d3c
[<c0008aec>] (kernel_init+0x0/0x114) from [<c0049a10>] (do_exit+0x0/0x598)
r4:00000000

business_kid 08-15-2011 11:22 AM

Quote:

Scanning device for bad blocks
Creating 8 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000004000 : "Boot Agent"
0x000000000000-0x000000200000 : "S3C2410 flash partition 1"
0x000000400000-0x000000800000 : "S3C2410 flash partition 2"
0x000000800000-0x000000a00000 : "S3C2410 flash partition 3"
0x000000a00000-0x000000e00000 : "S3C2410 flash partition 4"
0x000000e00000-0x000001800000 : "S3C2410 flash partition 5"
0x000001800000-0x000003000000 : "S3C2410 flash partition 6"
0x000003000000-0x000004000000 : "S3C2410 flash partition 7"
cs89x0:cs89x0_probe(0x0)
Unable to handle kernel paging request at virtual address f600030a
pgd = c0004000
[f600030a] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
That looks like the error. The usual thing is load the kernel, boot it with / mounted ro, start init, which remounts / rw. A danger with not doing that is that something will want to write a file, but can't because all partitions are ro or unmounted.

zxlwyx9219 08-16-2011 04:31 AM

Quote:

Originally Posted by business_kid (Post 4443592)
That looks like the error. The usual thing is load the kernel, boot it with / mounted ro, start init, which remounts / rw. A danger with not doing that is that something will want to write a file, but can't because all partitions are ro or unmounted.

yes, I saw that error, and i made changes in the kernel, and now i got the wright MTDs:

Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "bootloader"
0x000000040000-0x000000060000 : "params"
0x000000060000-0x000000260000 : "kernel"
0x000000260000-0x000004000000 : "root"

but still got the wrong msg:

Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0 //this was my default! i should reset the bootargs!

cs89x0:cs89x0_probe(0x0)
Unable to handle kernel paging request at virtual address f600030a
pgd = c0004000
[f600030a] *pgd=00000000

i was trying again,focused on the cs89x0:cs89x0_probe founction.
Thanks!

attachments:
U-Boot 1.3.4 (Aug 16 2011 - 10:24:07)

DRAM: 64 MB
Flash: 0 kB
NAND: 64 MiB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
SMDK2410 # tftp 30000000 uImage
TFTP from server 192.168.1.100; our IP address is 192.168.1.254
Filename 'uImage'.
Load address: 0x30000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
done
Bytes transferred = 1993116 (1e699c hex)
SMDK2410 # bootm
## Booting kernel from Legacy Image at 30000000 ...
Image Name: Linux-2.6.32
Created: 2011-08-16 9:03:05 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1993052 Bytes = 1.9 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux............................................................................................... .................................. done, booting the kernel.
Linux version 2.6.32 (zhang@F-ing) (gcc version 3.4.5) #5 Tue Aug 16 17:02:50 HKT 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60676KB available (3724K code, 320K data, 144K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 99.53 BogoMIPS (lpj=248832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2410-i2c: slave address 0x10
s3c-i2c s3c2410-i2c: bus frequency set to 97 KHz
s3c-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
brd: module loaded
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2410-nand: Tacls=2, 20ns Twrph0=6 60ns, Twrph1=2 20ns
s3c24xx-nand s3c2410-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "bootloader"
0x000000040000-0x000000060000 : "params"
0x000000060000-0x000000260000 : "kernel"
0x000000260000-0x000004000000 : "root"
cs89x0:cs89x0_probe(0x0)
Unable to handle kernel paging request at virtual address f600030a
pgd = c0004000
[f600030a] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0 Not tainted (2.6.32 #5)
PC is at readword+0x1c/0x2c
LR is at cs89x0_probe1+0xf4/0x80c
pc : [<c020042c>] lr : [<c001d518>] psr: 80000013
sp : c381bea8 ip : c381beb8 fp : c381beb4
r10: 00000300 r9 : c03f2dcc r8 : c001d138
r7 : c39b2c00 r6 : c39b2ec0 r5 : 00000000 r4 : 00000300
r3 : f600030a r2 : 00000000 r1 : 0000030a r0 : 00000300
Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: c000717f Table: 30004000 DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc381a260)
Stack: (0xc381bea8 to 0xc381c000)
bea0: c381bf44 c381beb8 c001d518 c0200420 00000000 c39b2d3c
bec0: c39b2c00 c39b2c00 c381bf34 c381bed8 c027cb14 c0172d48 c0288104 c039f948
bee0: 00000000 00000000 00000010 00000002 ffffffff 0000000a ffffffff 00000000
bf00: c39b2c00 00000000 00000000 c001d138 c03f2dcc 00000000 c381bf34 c00292f4
bf20: c39b2c00 00000000 00000000 c001d138 c03f2dcc 00000000 c381bf64 c381bf48
bf40: c001dcc4 c001d434 c00292bc 00000001 00000000 c381a000 c381bf80 c381bf68
bf60: c001d104 c001dc40 00000001 00000000 00000000 c381bf98 c381bf84 c001d1c0
bf80: c001d0d0 c0025640 c0025714 c381bfdc c381bf9c c002c384 c001d148 00003038
bfa0: 00000000 c0020000 00000055 c03daddc 00000000 c0025640 c0025714 00000000
bfc0: 00000000 00000000 00000000 00000000 c381bff4 c381bfe0 c0008bd8 c002c328
bfe0: 00000000 00000000 00000000 c381bff8 c004ed90 c0008b48 33cc33cc 33cc33cc
Backtrace:
[<c0200410>] (readword+0x0/0x2c) from [<c001d518>] (cs89x0_probe1+0xf4/0x80c)
[<c001d424>] (cs89x0_probe1+0x0/0x80c) from [<c001dcc4>] (cs89x0_probe+0x94/0x10c)
[<c001dc30>] (cs89x0_probe+0x0/0x10c) from [<c001d104>] (probe_list2+0x44/0x78)
r7:c381a000 r6:00000000 r5:00000001 r4:c00292bc
[<c001d0c0>] (probe_list2+0x0/0x78) from [<c001d1c0>] (net_olddevs_init+0x88/0xc8)
r6:00000000 r5:00000000 r4:00000001
[<c001d138>] (net_olddevs_init+0x0/0xc8) from [<c002c384>] (do_one_initcall+0x6c/0x1b8)
r5:c0025714 r4:c0025640
[<c002c318>] (do_one_initcall+0x0/0x1b8) from [<c0008bd8>] (kernel_init+0xa0/0x10c)
[<c0008b38>] (kernel_init+0x0/0x10c) from [<c004ed90>] (do_exit+0x0/0x59c)
r5:00000000 r4:00000000
Code: e0801001 e3510201 e1a03001 328334f6 (e1d300b0)
---[ end trace d4dc0ee86c33c41b ]---
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c0030b00>] (dump_backtrace+0x0/0x104) from [<c0030c1c>] (dump_stack+0x18/0x1c)
r7:00000005 r6:c03f36ec r5:c3815cc0 r4:c381a000
[<c0030c04>] (dump_stack+0x0/0x1c) from [<c004c76c>] (panic+0x40/0x11c)
[<c004c72c>] (panic+0x0/0x11c) from [<c004efcc>] (do_exit+0x23c/0x59c)
r3:c03d8c2c r2:c3815cc0 r1:c3815cc0 r0:c0374210
[<c004ed90>] (do_exit+0x0/0x59c) from [<c0030d88>] (die+0x14c/0x170)
[<c0030c3c>] (die+0x0/0x170) from [<c00326f4>] (__do_kernel_fault+0x6c/0x7c)
[<c0032688>] (__do_kernel_fault+0x0/0x7c) from [<c0032818>] (do_bad_area+0x70/0x7c)
r7:c381be60 r6:f600030a r5:00000005 r4:c381be60
[<c00327a8>] (do_bad_area+0x0/0x7c) from [<c0032a70>] (do_translation_fault+0x74/0x80)
r6:00000005 r5:00003d80 r4:00000000
[<c00329fc>] (do_translation_fault+0x0/0x80) from [<c002c210>] (do_DataAbort+0x40/0xa4)
r5:c03d40d0 r4:ffffffff
[<c002c1d0>] (do_DataAbort+0x0/0xa4) from [<c002ca60>] (__dabt_svc+0x40/0x60)
Exception stack(0xc381be60 to 0xc381bea8)
be60: 00000300 0000030a 00000000 f600030a 00000300 00000000 c39b2ec0 c39b2c00
be80: c001d138 c03f2dcc 00000300 c381beb4 c381beb8 c381bea8 c001d518 c020042c
bea0: 80000013 ffffffff
r8:c001d138 r7:c39b2c00 r6:c39b2ec0 r5:c381be94 r4:ffffffff
[<c0200410>] (readword+0x0/0x2c) from [<c001d518>] (cs89x0_probe1+0xf4/0x80c)
[<c001d424>] (cs89x0_probe1+0x0/0x80c) from [<c001dcc4>] (cs89x0_probe+0x94/0x10c)
[<c001dc30>] (cs89x0_probe+0x0/0x10c) from [<c001d104>] (probe_list2+0x44/0x78)
r7:c381a000 r6:00000000 r5:00000001 r4:c00292bc
[<c001d0c0>] (probe_list2+0x0/0x78) from [<c001d1c0>] (net_olddevs_init+0x88/0xc8)
r6:00000000 r5:00000000 r4:00000001
[<c001d138>] (net_olddevs_init+0x0/0xc8) from [<c002c384>] (do_one_initcall+0x6c/0x1b8)
r5:c0025714 r4:c0025640
[<c002c318>] (do_one_initcall+0x0/0x1b8) from [<c0008bd8>] (kernel_init+0xa0/0x10c)
[<c0008b38>] (kernel_init+0x0/0x10c) from [<c004ed90>] (do_exit+0x0/0x59c)
r5:00000000 r4:00000000

zxlwyx9219 08-16-2011 05:50 AM

[QUOTE=zxlwyx9219;4444343]yes, I saw that error, and i made changes in the kernel, and now i got the wright MTDs:

Creating 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "bootloader"
0x000000040000-0x000000060000 : "params"
0x000000060000-0x000000260000 : "kernel"
0x000000260000-0x000004000000 : "root"

but still got the wrong msg:

Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0 //this was my default! i should reset the bootargs!

cs89x0:cs89x0_probe(0x0)
Unable to handle kernel paging request at virtual address f600030a
pgd = c0004000
[f600030a] *pgd=00000000

i was trying again,focused on the cs89x0:cs89x0_probe founction.
Thanks!

just now i removed the network card cs89x0 driver from the kernel, and i successed! that proved the problem was on the network driver!

business_kid 08-17-2011 02:51 AM

Quote:

Kernel command line: root=/dev/hda1 ro init=/bin/bash console=ttySAC0 //this was my default! i should reset the bootargs!
I really don't like the 'hda1'. Why not sda1?? I would also like to see root mounted rw much earlier in the init.

zxlwyx9219 09-01-2011 04:36 AM

kernel panic not syncing: Attempted to kill init!
 
Quote:

Originally Posted by business_kid (Post 4443592)
That looks like the error. The usual thing is load the kernel, boot it with / mounted ro, start init, which remounts / rw. A danger with not doing that is that something will want to write a file, but can't because all partitions are ro or unmounted.

Nowadays I sovled all the problems:
1.MTD on the samsung nandflash;
2.Reset bootargs
3.Fixed out problems cs89x0_probe function in the driver/net/cs89x0.c, That's the root cause for the kernel panic, 3 questions had been found in th driver code:
a.the default IRQ was not suitable for my netcard which connected to the s3c2410 cpu;
b.the default physical address of the netcard was wrong for my board;
c.the physical address didn't got ioremap;

0x000000000000-0x000000040000 : "bootloader"
0x000000040000-0x000000060000 : "psrams"
0x000000060000-0x000000260000 : "kernel"
0x000000260000-0x000000c60000 : "jffs2"
0x000000c60000-0x000004000000 : "yaffs2"
cs89x0:cs89x0_probe(0x0)
cs89x0.c: v2.4.3-study-hard to catch on
eth0: cs8900 rev K found at 0xc4c00300
cs89x0: Extended EEPROM checksum bad and no Cirrus EEPROM, relying on command line
cs89x0 media IRQ 10, programmed I/O, MAC 18:18:18:18:18:18
cs89x0_probe1() successful
.........
JFFS2 notice: (1) check_node_data: wrong data CRC in data node at 0x006f9098: read 0xae6472e, calculated 0xc192f835. //what's wrong?
eth0: using half-duplex 10Base-T (RJ-45) //successed!

but i didn't understood why i got the JFFS2 notice??? I did not read the source code now.

archtoad6 09-04-2011 02:00 PM

Welcome to LQ. Hope your time here helps you as much as mine has helped me.

Please put code, command line output, config files, etc. inside [CODE] tags, aka "Code:" blocks.
There are 2 ways to generate "Code:" tags:
  1. You can simply type them yourself -- "[code] ... [/code]". (They are not case sensitive.)

  2. You can also click on the '#' icon above the text entry window. If you highlight the code before you click the '#' icon, your code, command line output, config files, etc. will get put inside a "Code:" block. The '#' icon is available when you start your post by clicking the "Post Reply" button or the "Go Advanced" button; it is not currenetly available in the Quick Reply window.

They will make your posts easier to read, & that will get you more, faster, better answers. -- Help us help you.
BTW, You can edit your post(s) to do this retroactively. Please do so soon.

Thank you, & again, welcome.


Added 2011-09-19
From zxlwyx9219's Profile
Quote:

zxlwyx9219 is offline
Last Activity: 09-01-11 04:48 AM
zxlwyx9219,
You have not returned since I posted the above advice & request about using "Code:" blocks. When you do return, I hope you will read & heed them. TIA.


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