Hello everyone
I have success on kernel panic. The main problem was the place where
kernel image is load and executed. Linux images are compiled to be
executed at 20008000 and I sent the image by tftp near this location
and collapse at uncompresing and relocating. Changing the parameter of
the tftp to 0x20100000 the image runs but now it fails at mounting
filesystem. Anyone can give to me instructions about to get a single
console promp from this point? I have tried to compile kernel with
the gziped cpio got from the _install folder at compilation of the
busybox 1.19 with:
mkdir \dev
cd dev
mknod console c 5 1
then rename the "rootfs.cpio.gz" archive obtained for the name of
"initramfs_data.cpio.gz" and copy to: "kernel_source_folder/usr/"
then compile the kernel with this options:
make ARCH=arm CROSS_COMPILE=arm-none-eabi- ecbat91_defconfig
make ARCH=arm CROSS_COMPILE=arm-none-eabi- uImage
Resultant image give to me a bad CRC.
Any clue?
I hope this helps someone with same problem.
###########################################################################
LOG after tftp 20100000:
U-Boot 1.1.6 (Oct 22 2007 - 10:35:14)
DRAM: 32 MB
Atmel: Flash: 0 kB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
I am checking if it is connected
Hit any key to stop autoboot: 2 \0x08\0x08\0x08 0
ecb_at91>
ecb_at91>
ecb_at91> set bootargs mem=32M root=dev/ram0 console=ttyS0,115200n8
rootdelay=1
ecb_at91> set bootfile uImage
ecb_at91> tftp 20100000
I am checking if it is connected
TFTP from server 192.168.0.128; our IP address is 192.168.0.135
Filename 'uImage'.
Load address: 0x20100000
Loading: *
\0x08#################################################################
\0x09
#################################################################
\0x09
#################################################################
\0x09
#################################################################
\0x09
#################################################################
\0x09
#################################################################
\0x09 #################################
done
Bytes transferred = 2160972 (20f94c hex)
ecb_at91> iminfo 20100000
## Checking Image at 20100000 ...
Image Name: Linux-2.6.38
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2160908 Bytes = 2.1 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
ecb_at91> bootm 20100000
## Booting image at 20100000 ...
Image Name: Linux-2.6.38
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2160908 Bytes = 2.1 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38 (camilo@camilo-Extensa-5620) (gcc version 4.6.1
(Sourcery CodeBench Lite 2011.09-69) ) #4 PREEMPT Wed Mar 28 17:24:30
CEST 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
CPU: VIVT data cache, VIVT instruction cache
Machine: emQbit's ECB_AT91
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: mem=32M root=dev/ram0 console=ttyS0,115200n8
rootdelay=1
PID hash table entries: 128 (order: -3, 512 bytes)
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: 28264k/28264k available, 4504k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc2800000 - 0xfee00000 ( 966 MB)
lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0023000 ( 108 kB)
.text : 0xc0023000 - 0xc03d8000 (3796 kB)
.data : 0xc03d8000 - 0xc03f73c0 ( 125 kB)
Preemptable hierarchical RCU implementation.
NR_IRQS:192
AT91: 96 gpio irqs in 3 banks
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 24.68 BogoMIPS (lpj=96256)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
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
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource 32k_counter
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
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 (double precision)
msgmni has been set to 55
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc0000 (irq = 6) is a ATMEL_SERIAL
at91_spi: Baud rate set to 5990400
loop: module loaded
PPP generic driver version 2.4.2
eth0: Link now 100-FullDuplex
eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex
(00:00:00:00:00:5b)
eth0: Intel LXT971A PHY
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
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mousedev: PS/2 mouse device common for all mice
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 17
Registering the dns_resolver key type
Waiting 1sec before mounting root device...
------------[ cut here ]------------
WARNING: at kernel/rcutree_plugin.h:445 rcu_start_gp+0x1a8/0x23c()
Modules linked in:
Backtrace:
[<c002c5bc>] (dump_backtrace+0x0/0x110) from [<c030d920>] (dump_stack
+0x18/0x1c)
r6:c0394d05 r5:000001bd r4:00000000
[<c030d908>] (dump_stack+0x0/0x1c) from [<c0038974>]
(warn_slowpath_common+0x50/0x68)
[<c0038924>] (warn_slowpath_common+0x0/0x68) from [<c00389b0>]
(warn_slowpath_null+0x24/0x28)
r8:c03fe7cc r7:c03e47d0 r6:c03e4a60 r5:20000013 r4:c03e4a60
[<c003898c>] (warn_slowpath_null+0x0/0x28) from [<c006ac3c>]
(rcu_start_gp+0x1a8/0x23c)
[<c006aa94>] (rcu_start_gp+0x0/0x23c) from [<c006bec0>]
(__rcu_process_callbacks+0x178/0x304)
[<c006bd48>] (__rcu_process_callbacks+0x0/0x304) from [<c006c084>]
(rcu_process_callbacks+0x38/0x44)
[<c006c04c>] (rcu_process_callbacks+0x0/0x44) from [<c003e260>]
(__do_softirq+0x90/0x12c)
r5:00000001 r4:c03fc008
[<c003e1d0>] (__do_softirq+0x0/0x12c) from [<c003e6fc>] (irq_exit
+0x48/0x5c)
[<c003e6b4>] (irq_exit+0x0/0x5c) from [<c0023088>] (asm_do_IRQ
+0x88/0xa8)
r4:00000001
[<c0023000>] (asm_do_IRQ+0x0/0xa8) from [<c0028dfc>] (__irq_svc+0x3c/
0x80)
Exception stack(0xc1819ef8 to 0xc1819f40)
9ee0: c03ded38 c1818004
9f00: c03ded80 60000013 00000032 00000001 00000000 c03ded38 c038f0a7
c03f7ba1
9f20: 00000006 c1819fa0 c1819f18 c1819f40 c0039850 c0039cc4 60000013
ffffffff
r5:fefff000 r4:ffffffff
[<c0039998>] (vprintk+0x0/0x38c) from [<c030db44>] (printk+0x24/0x2c)
[<c030db20>] (printk+0x0/0x2c) from [<c0008f84>] (prepare_namespace
+0x28/0x17c)
r3:c03f7400 r2:a0000093 r1:00000001 r0:c038f0a7
[<c0008f5c>] (prepare_namespace+0x0/0x17c) from [<c0008a44>]
(kernel_init+0x10c/0x144)
r5:c0008938 r4:c03f7400
[<c0008938>] (kernel_init+0x0/0x144) from [<c003bba0>] (do_exit
+0x0/0x6b4)
r4:00000000
---[ end trace 0842e83858cd5197 ]---
hub 1-0:1.0: activate --> -22
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "dev/ram0" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available
partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-
block(2,0)
Backtrace:
[<c002c5bc>] (dump_backtrace+0x0/0x110) from [<c030d920>] (dump_stack
+0x18/0x1c)
r6:00008000 r5:00000000 r4:c03f76b8
[<c030d908>] (dump_stack+0x0/0x1c) from [<c030d9fc>] (panic
+0x74/0x198)
[<c030d988>] (panic+0x0/0x198) from [<c0008e4c>] (mount_block_root
+0x1c4/0x204)
r3:00000000 r2:00000000 r1:c1819f68 r0:c038f000
r7:c001e608
[<c0008c88>] (mount_block_root+0x0/0x204) from [<c0008f38>] (mount_root
+0xac/0xd0)
r8:00000000 r7:00000013 r6:c003bba0 r5:c001e618 r4:00200000
[<c0008e8c>] (mount_root+0x0/0xd0) from [<c0009088>] (prepare_namespace
+0x12c/0x17c)
r4:c001e608
[<c0008f5c>] (prepare_namespace+0x0/0x17c) from [<c0008a44>]
(kernel_init+0x10c/0x144)
r5:c0008938 r4:c03f7400
[<c0008938>] (kernel_init+0x0/0x144) from [<c003bba0>] (do_exit
+0x0/0x6b4)
r4:00000000