Quote:
Originally Posted by business_kid
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