LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2011, 01:10 AM   #1
priyadarshan
Member
 
Registered: Feb 2009
Location: Ahmedabad, Gujarat, India
Posts: 197

Rep: Reputation: Disabled
Uboot and Kernel code similarity


Hi,
I am novice embedded engineer...

While travrsing through linux kernel and uboot source code and booting process tutorials...
I found some contradictory facts...

What I have read is... uboot is responsible for creating an environment where linux can run and it also does some task to up the peripherals...

I found the same thing in kernel code...

Why is it so? (Say if uboot is already initializing gig port and devices then why does kenel do it again?)
Is my understanding wrong?

Pls explain
 
Old 01-04-2011, 01:02 PM   #2
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
uboot needs to initialize certain peripherals for its own use. For instance, uboot has the option to boot via tftp (which requires networking), local storage (which requires the storage bus/filesystem info, etc), or even just jump to a spot in memory and execute code there. In order for it to do this, it must have put those systems into a known good state.

Many times, the kernel will re-initialize these without harm. Be careful though. On some boards, this double initialization WILL cause problems (specifically with certain devices, ex: FPGAs, that aren't expecting re-initialization). This is why vendors who ship BSPs typically have extensive sets of patches to apply to the kernel.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Understabd UBoot Code priyadarshan Linux - Embedded & Single-board computer 1 08-05-2010 02:21 PM
How to pass network information from Uboot to kernel huyhoang3673 Linux - Kernel 5 12-07-2009 05:37 AM
rpm similarity to windows? Chenchu Linux - Newbie 6 11-26-2009 03:10 PM
Where to find vivi, uBoot, kernel source? waqasdanish Linux - Laptop and Netbook 0 11-02-2007 08:49 AM
image similarity test vaginismus Programming 1 06-18-2005 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration