All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] passing board description structure when loading OS image
@ 2014-09-07  6:36 Ivan Krivonos
  2014-09-08 20:27 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Krivonos @ 2014-09-07  6:36 UTC (permalink / raw)
  To: u-boot

Hi everyone,

Is there any special reason to not pass the board description
structure to OS when loading OS image ? u-boot does not pass
bd_t pointer to any images not loaded with "bootm". We cannot
convert our image to u-boot format and we want to access board
description structure. Could you please say if there are any options
to get bd_t except for direct u-boot patching ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] passing board description structure when loading OS image
  2014-09-07  6:36 [U-Boot] passing board description structure when loading OS image Ivan Krivonos
@ 2014-09-08 20:27 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2014-09-08 20:27 UTC (permalink / raw)
  To: u-boot

Dear Ivan,

In message <CAF10W3y1mYmnqMeWRAJzEogoaayNGkHTbakCT7LZ2qrjtJvLEA@mail.gmail.com> you wrote:
> 
> Is there any special reason to not pass the board description
> structure to OS when loading OS image ? u-boot does not pass

Passing a binary data structure like bd_t is an extremely ugly, error
prone and risky way to transfer information between independent
software units.  This design originates from v2.2 PPC Linux kernels,
i. e. way over 15 years ago.  It was broken by then (but was the nly
thing we had), and there is zero reason to use it nowadays.

> bd_t pointer to any images not loaded with "bootm". We cannot
> convert our image to u-boot format and we want to access board
> description structure. Could you please say if there are any options
> to get bd_t except for direct u-boot patching ?

Such hardware related information should be passed in the device tree.

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
1st Old Man:  Gee, its windy today.
2nd Old Man:  No it's not... it's Thursday.
3rd Old Man:  Yeh, me too.  Let's go for a beer.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-08 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-07  6:36 [U-Boot] passing board description structure when loading OS image Ivan Krivonos
2014-09-08 20:27 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.