EmbeddedRelated.com
Forums

AT91RM9200 linux woes

Started by roboman152 April 21, 2006
Ok So Im to the point I dont know what to try next. Im trying to bring my
custom AT91RM9200 board to life. I have 16MB of SDRAM on CS0 (starting at
0x20000000 ending at 0x21000000)
and 2MB of data flash at 0xC0000000.  First step was getting uBoot
running. Which for some reason if I stick uBoot (1.1.4) as resident and
try and let it relocate itself it wont run, no serial output. So I stuck
with the old tried and true method and built uboot to skip relocate and
init. So restating, my board loads romboot.bin --> fetches uboot --> fetch
kernel (or at least should)
Nitty gritty of it all is at the bottom, in short, all works until the go
get linux and start it! At this point i get a undef error (coming from
romboot) because it caught some kind on undefined exception? Any
suggestions are most welcome!
One thing that I still wonder about... its an "uncompressed" image,
according to everything, uBoot, the kernel makefile etc.. soooo why is it
"uncompressing" and uncompressed image?

Press any key to enter bootloader

JAM CAM LOADER VER 1.01 Apr 21 2006 13:05:41
*----------------------------------------*
DataFlash:AT45DB161
Nb pages: 004096
Page Size: 000528
Size=02162688 bytes
Logical address: 0xC0000000
*----------------------------------------*
1: Download Dataflash [addr]
2: Read Dataflash [addr]
3: Start U-BOOT
4: Clear bootloader section in Dataflash
5: Run Memory Test
*----------------------------------------*
Enter: 3
Load U-BOOT from dataflash[c0008000] to SDRAM[20f00000]
Set PLLA to 180Mhz and Master clock to 60Mhz and start U-BOOT

U-Boot 1.1.4 (Apr 21 2006 - 14:16:31)

U-Boot code: 20F00000 -> 20F168B4  BSS: -> 20F33804
RAM Configuration:
Bank #0: 20000000 16 MB
Atmel: flash_protect ON: from 0x10000000 to 0x0FFFFFFF
flash_protect ON: from 0xC0020000 to 0xC0021FFF
flash_protect ON: from 0x10000000 to 0x1005FFFF
Flash:  0 kB
DataFlash:AT45DB161
Nb pages:   4096
Page Size:    528
Size= 2162688 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0007FFF (RO)
Area 1: C0008000 to C001FFFF (RO)
Area 2: C0020000 to C0027FFF
Area 3: C0028000 to C020FFFF
In:    serial
Out:   serial
Err:   serial
### main_loop entered: bootdelay=3

### main_loop: bootcmd="<UNDEFINED>"
U-Boot> loadb
## Ready for binary (kermit) download to 0x20800000 at 115200 bps...
### Send (K) uImage: 704172 bytes, 2:19 elapsed, 5035 cps, 43%
## Total Size      = 0x000abeac = 704172 Bytes
## Start Addr      = 0x20800000

U-Boot> bootm
## Booting image at 20800000 ...
   Image Name:   Linux-2.6.15
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    704108 Bytes = 687.6 kB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
OK
No initrd
## Transferring control to Linux (at address 20008000) ...

Starting kernel ...

Uncompressing Linux...-F- Undef detected
|

roboman152 wrote:
> Ok So Im to the point I dont know what to try next. Im trying to > bring my custom AT91RM9200 board to life. I have 16MB of SDRAM on CS0 > (starting at 0x20000000 ending at 0x21000000)
Put the SDRAM on the CS1 chip select. -- Best Regards, Ulf Samuelsson ulf@a-t-m-e-l.com This message is intended to be my own personal view and it may or may not be shared by my employer Atmel Nordic AB
"roboman152" <amstewa2@ncsu.edu> skrev i meddelandet
news:TKednXIv5tH9i9TZnZ2dnUVZ_tudnZ2d@giganews.com...
> Ok So Im to the point I dont know what to try next. Im trying to bring my > custom AT91RM9200 board to life. I have 16MB of SDRAM on CS0 (starting at > 0x20000000 ending at 0x21000000)
I do hope you mean CS1, CS0 if for Flash.
> and 2MB of data flash at 0xC0000000. First step was getting uBoot > running. > Which for some reason if I stick uBoot (1.1.4) as resident and > try and let it relocate itself it wont run, no serial output.
2 MB of dataflash is SMALL. you may want to increase to 4 or 8 MB.
> So I stuck with the old tried and true method and built uboot to skip > relocate and > init. So restating, my board loads romboot.bin --> fetches uboot --> fetch > kernel (or at least should) > Nitty gritty of it all is at the bottom, in short, all works until the go > get linux and start it! At this point i get a undef error (coming from > romboot) because it caught some kind on undefined exception? Any > suggestions are most welcome! > One thing that I still wonder about... its an "uncompressed" image, > according to everything, uBoot, the kernel makefile etc.. soooo why is it > "uncompressing" and uncompressed image? > Press any key to enter bootloader
Have you run mkimage?
> JAM CAM LOADER VER 1.01 Apr 21 2006 13:05:41 > *----------------------------------------* > DataFlash:AT45DB161 > Nb pages: 004096 > Page Size: 000528 > Size=02162688 bytes > Logical address: 0xC0000000 > *----------------------------------------* > 1: Download Dataflash [addr] > 2: Read Dataflash [addr] > 3: Start U-BOOT > 4: Clear bootloader section in Dataflash > 5: Run Memory Test > *----------------------------------------* > Enter: 3 > Load U-BOOT from dataflash[c0008000] to SDRAM[20f00000] > Set PLLA to 180Mhz and Master clock to 60Mhz and start U-BOOT > > U-Boot 1.1.4 (Apr 21 2006 - 14:16:31) > > U-Boot code: 20F00000 -> 20F168B4 BSS: -> 20F33804 > RAM Configuration: > Bank #0: 20000000 16 MB > Atmel: flash_protect ON: from 0x10000000 to 0x0FFFFFFF > flash_protect ON: from 0xC0020000 to 0xC0021FFF > flash_protect ON: from 0x10000000 to 0x1005FFFF > Flash: 0 kB > DataFlash:AT45DB161 > Nb pages: 4096 > Page Size: 528 > Size= 2162688 bytes > Logical address: 0xC0000000 > Area 0: C0000000 to C0007FFF (RO) > Area 1: C0008000 to C001FFFF (RO) > Area 2: C0020000 to C0027FFF > Area 3: C0028000 to C020FFFF > In: serial > Out: serial > Err: serial > ### main_loop entered: bootdelay=3 > > ### main_loop: bootcmd="<UNDEFINED>" > U-Boot> loadb > ## Ready for binary (kermit) download to 0x20800000 at 115200 bps... > ### Send (K) uImage: 704172 bytes, 2:19 elapsed, 5035 cps, 43% > ## Total Size = 0x000abeac = 704172 Bytes > ## Start Addr = 0x20800000 > > U-Boot> bootm > ## Booting image at 20800000 ... > Image Name: Linux-2.6.15 > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 704108 Bytes = 687.6 kB > Load Address: 20008000 > Entry Point: 20008000 > Verifying Checksum ... OK > OK > No initrd > ## Transferring control to Linux (at address 20008000) ... > > Starting kernel ... > > Uncompressing Linux...-F- Undef detected > |
-- Best Regards, Ulf Samuelsson This is intended to be my personal opinion which may, or may not be shared by my employer Atmel Nordic AB