mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* Kernel device tree gets modified with bootm command when CONFIG_OFDEVICE is enabled
@ 2017-10-03  9:36 Marcel Hamer
  2017-10-06  4:11 ` Sascha Hauer
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Hamer @ 2017-10-03  9:36 UTC (permalink / raw)
  To: barebox

Hello,

When passing a custom device tree to the kernel using the 'bootm' 
command I see the device tree gets 'fixed up' when the CONFIG_OFDEVICE 
option is enabled. Probably this should not be the case when the dtb is 
passed to the kernel?

This happens on line common/bootm.c:395:

     oftree = of_get_fixed_tree(data->of_root_node);

Should this not be changed to:

     oftree = of_flatten_db(data->of_root_node);

Kind regards,

Marcel


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2017-10-06 12:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03  9:36 Kernel device tree gets modified with bootm command when CONFIG_OFDEVICE is enabled Marcel Hamer
2017-10-06  4:11 ` Sascha Hauer
2017-10-06  7:45   ` Marcel Hamer
2017-10-06  9:55     ` Ian Abbott
2017-10-06 10:28       ` Marcel Hamer
2017-10-06 11:04         ` gianluca
2017-10-06 12:00           ` Marcel Hamer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox