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: Start linux OS without u-boot
PostPosted: Wed Apr 30, 2008 3:45 pm 
Offline

Joined: Thu May 24, 2007 3:23 pm
Posts: 4
I'm confused, It's possible to launch Linux OS with AT91Bootstrap ? Can you explain how to ?

From AT91Bootstrap application note :

Quote:
AT91Bootstrap integrates several sets of algorithms:
• Device initialization such as clock speed configuration, PIO settings, etc.
• Peripheral drivers such as PIO, PMC, SDRAMC, etc.
• Physical media algorithms such as DataFlash®, NANDFlash, Parallel Flash, etc.
• File System drivers such as JFFS2, FAT, etc.
• Compression and Cipher algorithms
• Application Launcher for ELF, Linux®, etc.


But from AT91Bootstrap code :

Quote:
/* ==================== 3rd step: Process the Image =================== */
/* Uncompress the image */
#ifdef GUNZIP
decompress_image((void *)IMG_ADDRESS, (void *)JUMP_ADDR, IMG_SIZE); /* NOT IMPLEMENTED YET */
#endif /* GUNZIP */

/* ==================== 4th step: Start the application =================== */
/* Set linux arguments */
#ifdef LINUX_ARG
linux_arg(LINUX_ARG); /* NOT IMPLEMENTED YET */
#endif /* LINUX_ARG */


Best regards,

Enric Balletbo i Serra


Top
 Profile  
 
 Post subject: Re: Start linux OS without u-boot
PostPosted: Mon May 05, 2008 10:07 pm 
Offline

Joined: Wed Jun 06, 2007 5:21 pm
Posts: 26
Location: Latvia
eballetbo wrote:
It's possible to launch Linux OS with AT91Bootstrap ?

Bootstrap is the primary bootloader, limited in it's size.
It should load U-Boot, fully-featured second level loader, which has all the option you need to boot linux.

On the other hand, vanilla kernel 2.6.24 has new option called ZBOOT_ROM. Config says it is now possible to load kernel without any bootloader at all. Well, I mean kernel actually serves as bootloader itself.

This definitely should be handy for some devices... But.. Just wandering:
- how to test kernel in development (without JTAG/ISP, sure:) - it should be nightmare);
- u-boot + compressed kernel is much smaller in it's size than uncompressed one.

Anyway, I prefer u-boot environment.

eballetbo, don't bother. Get u-boot. I've checked the sources earlier and new AT91Bootstrap source don't have linux booting implementation, maybe in future releases. If your application is really critical in flash size (u-boot =~ 128K), try porting linux booting functions from u-boot - then u-boot can be removed from production devices.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 06, 2008 12:50 pm 
Offline

Joined: Thu May 24, 2007 3:23 pm
Posts: 4
TThankyou for your great response.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 07, 2008 12:34 am 
Offline

Joined: Wed Jun 06, 2007 5:21 pm
Posts: 26
Location: Latvia
Welcome :wink:


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: Google [Bot] 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: