[U-Boot] how does Linux call the function from u-boot?

sywang sywang at dongniannetworks.com
Fri Apr 1 01:59:58 CEST 2011


Thanks for your reply very much. 

In my scenario, I want to write the panic info into the flash, but the panic
is caused by interrupt routine, I cannot access the flash, so I think that
if the flash-write function from u-boot can be called, the issue should be
resolved. 

Any other comments? 


Thanks!
Shuyou 

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de] 
Sent: 2011年3月31日 18:01
To: sywang
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] how does Linux call the function from u-boot?

Dear "sywang",

In message <E20D124831AF42E094DEFD4F59B45E9E at sywangPC> you wrote:
> 
> how does Linux call the function from u-boot?

Simply: it does not.

When Linux starts running, U-Boot is gone and dead; nothing of it
survives the boot of Linux except for the parameters passed to the
Linux kernel.

Linux has no idea which boot loader has been used to start it, nor
can Linux call any functions from the boot loader.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Punishment becomes ineffective after a certain point. Men become  in-
sensitive.
	-- Eneg, "Patterns of Force", stardate 2534.7



More information about the U-Boot mailing list