[U-Boot] how to use a function provided by u-boot in linux driver

Wolfgang Denk wd at denx.de
Tue May 19 23:25:18 CEST 2009


Dear Kartheek N S,

In message <23610373.post at talk.nabble.com> you wrote:
> 
>      I would like to use miiphy_read and miiphy_write functions provided by
> u-boot in the linux kernel driver.

This is not possible, and the request makes no sense.

When Linux boots, all the memory used by U-Boot is freed; no trace of
U-Boot is left behind in memory. You cannot call any U-Boot functions
from Linux, as U-Boot does not exist any more in RAM.

>      This is required for reading the link status of each of the phys
> associated with a switch.

Linux has it's own interface and drivers to talk to PHYs and the like.


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
It's hard to make a program foolproof because fools are so ingenious.


More information about the U-Boot mailing list