u-boot 2009.08

Hello,

we urgently need some help.
WE NEED TO RUN THE WHOLE THING FROM SD!

We made the u-boot working with the SD (mci1) on the at91SAM7S9263B-EK 
board.

Status:

boot.bin (At91Bootstrap 3.0) starts from SD
boot.bin (2009.08) loads u-boot form SD and starts it

u-boot loads the uImage (linux-2.6.27)from SD to 0x22000000
u-boot does Bootm 0x22000000 (0x22200000 shows same result)

Linux starts , but fails! see screen copy:
Uncompressing 
Linux....................................................................................................
crc error

What went wrong? Can you help?

An Alternative is an uncompressed Kernel in order to come around the crc 
issue. Then Linux kernel starts, but crashes after 100lines of messages 
anyway.
see attached file


RAM of the board seems to be okay per tests.
Putting the u-boot and kernel into the nand seems to start and work. With 
Nand it is possible to start boot.bin from SD and call u-boot/kernel from 
sd.


We found comments in some forum that flushing/invalidating the 
icashe/dcashe is required when SD is used before u-boot is going on to run 
the kernel. 
We tried already dcache_disable/icache_disable before u-boot starts 
kernel. But no imrpovement. 
Do you have a code snippet to do so?

Looking forwart to hearing from you asap - THANKS INDEED!
                 

Mit freundlichen Grüßen
Thomas Schulte


_____________________________________________

Dipl.-Ing. Thomas Schulte
Entwicklung

SaF Gesellschaft für 
technische Sonderanlagen mbH
Wohnstr. 10, 34123 Kassel
t. +49 (561) 507 87-29, f. +49 (561) 507 87-99
thomas.schu...@saf-kassel.de
www.saf-kassel.de

Amtsgericht Kassel HRB 3758
Geschäftsführer: 
Dipl.-Inform. Michael Franz
RomBOOT
>
-- AT91bootstrap Project 3.0 --
-- AT91SAM9263-EK
-- Compiled: Nov  3 2009 14:29:24 --
-I- Setting: MCK = 100MHz
-I- I cache enabled.
-I- Init SDRAM
-I- MEDSdcard init
-I- mciID != 0
-I- SD card detection not available, assuming card is present
-I- Cannot check if SD card is write-protected
-I- SD/MMC card initialization successful
-I- Card size: 982 MB
-I- Block size: 512 Bytes
-I- Copy "u-boot.bin" from SdCard to 0x23f00000
-I- File Size =  0x00038338  =  230200
-I- I cache disabled.
-I- D cache is already disabled.
-I- Jump to 0x23f00000     MACH_TYPE = 0x000004b2


U-Boot 2009.08 (Nov 03 2009 - 16:05:48)

DRAM:  64 MB
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
MMC:   ATMEL MCI: 0
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation timed out (status=0x7849)
macb0: link down (status: 0x7849)
Hit any key to stop autoboot:  0
mmc: clock 150000 too low; setting CLKDIV to 255
mmc: clock 150000 too low; setting CLKDIV to 255
mmc: command 8 failed (status: 0x0010c0e5)
Device: ATMEL MCI
Manufacturer ID: 2
OEM: 544d
Name: SD01G
Tran Speed: 25000000
Rd Block Len: 512
SD version 1.0
High Capacity: No
Capacity: 4424786634494258471
Bus Width: 1-bit
  1538928   zimage
    19192   boot.bin
    18944   boot 22200000.bin
    18920   boot linux.bin
    19400   boot lowerupper.bin
  3157120   image
   194620   u-boot nanu.bin
   216092   u-boot-new.bin
   194620   u-boot-nf.bin
   193560   u-boot-old.bin
  1551412   linux-2.6.27-at91-exp.2-at91sam9263ek.bin
   194620   u-boot-1.3.4-exp.2-at91sam9263ek-nandflash.bin
   224876   u-boot 2009.bin
   230200   u-boot.bin
  1538992   uimage.cpr
  3157184   uimage.unc
  1551412   linux.bin

17 file(s), 0 dir(s)

reading uimage.unc

3157184 bytes read
U-Boot> bootm 0x22200000
## Booting kernel from Legacy Image at 22200000 ...
   Image Name:   linux-2.6
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3157120 Bytes =  3 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 2.6.27 (t...@linux-pluto) (gcc version 4.3.3 (Sourcery G++ Lite 
2009q1-161) ) #1 Fri Oct 30 17:13:51 CET 2009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9263-EK
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 200 MHz, master 100 MHz, main 16.367 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw 
rootfstype=jffs2
AT91: 160 gpio irqs in 5 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
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: 61656KB available (2844K code, 234K data, 124K init)
Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
SCSI subsystem initialized
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: 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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 120
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23940000 (mapped at ffc00000)
Console: switching to colour frame buffer device 30x40
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00700000 (mapped at c485c000), 
irq 26
atmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfff8c000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
macb macb: invalid hw address, using random
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffbc000 irq 21 (8a:bd:7b:f3:73:19)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 
8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 1520 at 0x0be00000
Creating 3 MTD partitions on "atmel_nand":
0x00000000-0x00400000 : "Bootstrap"
0x00400000-0x04000000 : "Partition 1"
0x04000000-0x10000000 : "Partition 2"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffa4000 (irq 14)
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
Unable to handle kernel paging request at virtual address 43818000
pgd = c0004000
[43818000] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0    Not tainted  (2.6.27 #1)
PC is at schedule+0x274/0x2a0
LR is at schedule+0x264/0x2a0
pc : [<c0251568>]    lr : [<c0251558>]    psr: 80000013
sp : c3819c00  ip : c02f0f50  fp : c3819c24
r10: 00000002  r9 : 00000000  r8 : 43818000
r7 : c3814040  r6 : c02f0f50  r5 : c3814c40  r4 : 00000000
r3 : 00000002  r2 : a0000013  r1 : c3814040  r0 : c030b820
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0005317f  Table: 20004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc3818268)
Stack: (0xc3819c00 to 0xc381a000)
9c00: c3819c70 c3814c40 c3819cb4 7fffffff c3818000 00000000 c3819c5c c3819c28
9c20: c0251728 c0251304 00000000 c02fffac c3819c5c c3819c40 c003878c c00386f4
9c40: c3819c70 c3814c40 c3819cb4 7fffffff c3819c9c c3819c60 c02511c4 c0251718
9c60: c3819c84 00000001 c3814c40 c0039380 c3819cb8 c3819cb8 c3819cb4 c3a69120
9c80: 00000000 00000000 c383cbc0 c02fffac c3819cac c3819ca0 c02512f0 c02510e8
9ca0: c3819cdc c3819cb0 c004c4d0 c02512e8 c3819cdc 00000001 c3819c70 c3819c70
9cc0: 0000001c 00000000 00000008 c3af0000 c3819d34 c3819ce0 c0117e6c c004c440
9ce0: 000000d0 c00bdf30 00000000 c3afaa40 c02b43ba c02c9a5f c00bf5b0 c02fc428
9d00: c02c9a5f 00000000 00000000 c3afaa80 c3b09400 00000000 00000000 00000000
9d20: c38723a0 00000000 c3819d44 c3819d38 c0117ee8 c0117b64 c3819d8c c3819d48
9d40: c014f21c c0117ee4 c3b09468 c02f3548 c3819d74 c3819d60 c0117114 c011705c
9d60: c3b09400 c3b09400 c38723a0 00000000 c02f3548 c3b28c00 0000001d 000000a0
9d80: c3819da4 c3819d90 c014f3bc c014ee74 c3b09400 c38723a0 c3819dcc c3819da8
9da0: c014f434 c014f3b0 00000001 00000000 c3b28c00 c0321c28 c0301f6c 0000001d
9dc0: c3819dec c3819dd0 c014f48c c014f3d0 c02c98e3 c3819df4 c0322148 c3819df4
9de0: c3819e2c c3819df0 c017c110 c014f478 c02c98e3 00000001 c00316ac c0031650
9e00: c0322148 c4a00000 c3b28c00 c02f3540 c0322148 00000000 00000000 00000000
9e20: c3819e54 c3819e30 c018d51c c017c02c c02f3548 c02f3548 c0302718 c3a3e980
9e40: c0300200 00000000 c3819e64 c3819e58 c0151e84 c018d3b4 c3819e84 c3819e68
9e60: c015110c c0151e74 c02f3548 c02f35f4 c0302718 c3a3e980 c3819ea4 c3819e88
9e80: c015120c c0151044 00000000 c01511c0 c0302718 c3a3e980 c3819ed4 c3819ea8
9ea0: c015098c c01511d0 c0302718 c3803dd8 c3803dd8 c02f3590 c0117650 00000000
9ec0: 00000000 c0302718 c3819ee4 c3819ed8 c0150f4c c0150950 c3819f14 c3819ee8
9ee0: c0150264 c0150f3c c02b326f 00000000 c0302718 c00228c0 00000000 c0302718
9f00: 00000000 00000000 c3819f3c c3819f18 c0151400 c01501cc c00228c0 00000000
9f20: c001bd24 00000000 00000000 00000000 c3819f4c c3819f40 c01522a0 c0151378
9f40: c3819f5c c3819f50 c001bd54 c0152238 c3819fd4 c3819f60 c00272c4 c001bd34
9f60: c3819f8c c3819f70 c00b8f7c c00b8cf4 c3819f00 c3837860 c00b9080 c3819f96
9f80: c3819fbc c3819f90 c0060a80 c00b8f0c c3819fac 39319808 00000031 00000000
9fa0: 000000c0 00000000 00000000 00000000 c3819fd4 c00228c0 00000000 00000000
9fc0: 00000000 00000000 c3819ff4 c3819fd8 c000841c c0027280 00000000 00000001
9fe0: 00000000 00000000 00000000 c3819ff8 c003fbf8 c00083ac 00000000 00000000
Backtrace:
[<c02512f4>] (schedule+0x0/0x2a0) from [<c0251728>] (schedule_timeout+0x20/0xb8)
 r9:00000000 r8:c3818000 r7:7fffffff r6:c3819cb4 r5:c3814c40
r4:c3819c70
[<c0251708>] (schedule_timeout+0x0/0xb8) from [<c02511c4>] 
(wait_for_common+0xec/0x188)
 r7:7fffffff r6:c3819cb4 r5:c3814c40 r4:c3819c70
[<c02510d8>] (wait_for_common+0x0/0x188) from [<c02512f0>] 
(wait_for_completion+0x18/0x1c)
[<c02512d8>] (wait_for_completion+0x0/0x1c) from [<c004c4d0>] 
(call_usermodehelper_exec+0xa0/0x100)
[<c004c430>] (call_usermodehelper_exec+0x0/0x100) from [<c0117e6c>] 
(kobject_uevent_env+0x318/0x380)
 r7:c3af0000 r6:00000008 r5:00000000 r4:0000001c
[<c0117b54>] (kobject_uevent_env+0x0/0x380) from [<c0117ee8>] 
(kobject_uevent+0x14/0x18)
[<c0117ed4>] (kobject_uevent+0x0/0x18) from [<c014f21c>] 
(device_add+0x3b8/0x53c)
[<c014ee64>] (device_add+0x0/0x53c) from [<c014f3bc>] 
(device_register+0x1c/0x20)
[<c014f3a0>] (device_register+0x0/0x20) from [<c014f434>] 
(device_create_vargs+0x74/0xa8)
 r5:c38723a0 r4:c3b09400
[<c014f3c0>] (device_create_vargs+0x0/0xa8) from [<c014f48c>] 
(device_create+0x24/0x2c)
 r9:0000001d r8:c0301f6c r7:c0321c28 r6:c3b28c00 r5:00000000
r4:00000001
[<c014f468>] (device_create+0x0/0x2c) from [<c017c110>] (usb_add_hcd+0xf4/0x59c)
[<c017c01c>] (usb_add_hcd+0x0/0x59c) from [<c018d51c>] 
(ohci_hcd_at91_drv_probe+0x178/0x1e8)
[<c018d3a4>] (ohci_hcd_at91_drv_probe+0x0/0x1e8) from [<c0151e84>] 
(platform_drv_probe+0x20/0x24)
 r9:00000000 r8:c0300200 r7:c3a3e980 r6:c0302718 r5:c02f3548
r4:c02f3548
[<c0151e64>] (platform_drv_probe+0x0/0x24) from [<c015110c>] 
(driver_probe_device+0xd8/0x18c)
[<c0151034>] (driver_probe_device+0x0/0x18c) from [<c015120c>] 
(__driver_attach+0x4c/0x70)
 r7:c3a3e980 r6:c0302718 r5:c02f35f4 r4:c02f3548
[<c01511c0>] (__driver_attach+0x0/0x70) from [<c015098c>] 
<4>(bus_for_each_dev+0x4c/0x80)
 r7:c3a3e980 r6:c0302718 r5:c01511c0 r4:00000000
[<c0150940>] (bus_for_each_dev+0x0/0x80) from [<c0150f4c>] 
(driver_attach+0x20/0x28)
 r6:c0302718 r5:00000000 r4:00000000
[<c0150f2c>] (driver_attach+0x0/0x28) from [<c0150264>] 
(bus_add_driver+0xa8/0x214)
[<c01501bc>] (bus_add_driver+0x0/0x214) from [<c0151400>] 
(driver_register+0x98/0x120)
 r8:00000000 r7:00000000 r6:c0302718 r5:00000000 r4:c00228c0
[<c0151368>] (driver_register+0x0/0x120) from [<c01522a0>] 
(platform_driver_register+0x78/0x94)
 r9:00000000 r8:00000000 r7:00000000 r6:c001bd24 r5:00000000
r4:c00228c0
[<c0152228>] (platform_driver_register+0x0/0x94) from [<c001bd54>] 
<4>(ohci_hcd_mod_init+0x30/0x40)
[<c001bd24>] (ohci_hcd_mod_init+0x0/0x40) from [<c00272c4>] 
(__exception_text_end+0x54/0x188)
[<c0027270>] (__exception_text_end+0x0/0x188) from [<c000841c>] 
(kernel_init+0x80/0xf4)
 r8:00000000 r7:00000000 r6:00000000 r5:00000000 r4:c00228c0
[<c000839c>] (kernel_init+0x0/0xf4) from [<c003fbf8>] (do_exit+0x0/0x6fc)
 r4:00000000
Code: ea000002 e10f3000 e3c33080 e121f003 (e5983000)
---[ end trace 938730e9ba6da93f ]---
Kernel panic - not syncing: Attempted to kill init!
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to