Re: [PATCH 1/1] command: oftree: support load device tree from memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 06, 2018 at 03:16:02PM +0000, Pascal Vizeli wrote:
> DON'T MERGE: this is only a concept patch.
> 
> On some device, barebox is the second bootloader. The first bootloader provide
> some times allready a better device tree as the linux kernel own.
> Mostly barebox can't boot from this device tree but the linux kernel can.
> 
> This patch allow to load a device tree from memory from first bootloader.

Note while it may be handy to have a command for that, you can already
do this without writing code:

memcpy -d /mydtb <dtbaddress> 0 0x10000
oftree -l /mydtb

The only drawback is that you have to guess the size of the dtb.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux