Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Custom Linux Kernel on SAM9-L9260 (Olimex)
PostPosted: Thu Mar 10, 2011 9:45 pm 
Offline

Joined: Thu Mar 10, 2011 9:07 pm
Posts: 1
Hello All,

I am trying to boot a kernel and rootfs build with OpenEmbedded for the SAM9-L9260 (Olimex) board. I was able to get the rootfs working just fine. But I am stuck at trying to get the kernel to work.

Currently im trying to load the kernel to the nand off a usb stick then boot. In u-boot I start the usb service and then use "fatload usb 0:1 0x22200000 uimage" then I run "bootm 0x22200000". It seems to start booting and checking the kernel successfully and then it hangs at starting kernel. Results below.

Anyone have any ideas? Is there a way to get further debugging from the kernel?

U-Boot> bootm 0x22200000
## Booting kernel from Legacy Image at 22200000 ...
Image Name: Angstrom/2.6.25/at91-l9260
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1566172 Bytes = 1.5 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...


Top
 Profile  
 
 Post subject: Re: Custom Linux Kernel on SAM9-L9260 (Olimex)
PostPosted: Wed Mar 23, 2011 10:08 pm 
Offline

Joined: Wed Mar 23, 2011 9:12 pm
Posts: 2
Check the bootargs settings in u-boot environment.
See if you are passing correct console argument.

If that is correct check if bootargs has "quiet" as kernel command line argument.
If so remove it and see if it gives more info.


Top
 Profile  
 
 Post subject: Re: Custom Linux Kernel on SAM9-L9260 (Olimex)
PostPosted: Thu Mar 24, 2011 3:32 pm 
Offline

Joined: Wed Jun 30, 2010 10:48 pm
Posts: 16
Location: Stow, Ohio, USA
If you want to see why the kernel is stopping early, enable low-level kernel debugging and early printk in the kernel .config:

Kernel Hacking->
* Kernel Debugging
* Kernel low-level debugging functions
* Early printk

Make sure that U-boot has the correct machid set for your machine (must match kernel):

set machid 0x1234

-Chris


Top
 Profile  
 
 Post subject: Re: Custom Linux Kernel on SAM9-L9260 (Olimex)
PostPosted: Fri Mar 25, 2011 5:51 am 
Offline

Joined: Sat Jun 13, 2009 5:50 pm
Posts: 43
Hi,

Maybe ,your u-boot machine ID is is different with the kernel machine ID so the Linux doesn't boot properly. If you want to try with Linux kernel of Linux4Sam community, I think you should change the u-boot machine ID from SAM9-L9260 (1501) to at91sam9260ek (1099) in the file :
u-boot/include/asm-arm/mach-types.h . Recompile the u-boot again .

For the kernel, just only modify the linux-2.6.x/arch/arm/match-at91/board-sam9260ek.c to make suite for the SAM9-L9260's devices.

Good luck.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: