Commit Graph

5 Commits

Author SHA1 Message Date
Patrick Delaunay f724e2f9e7 UBOOT-STM32MP-EXTLINUX: fix boot.cmd for overlay
By default U-Boot reserve overlay sizee with 4KB padding, sometime it is
not enought and it is normal.

The caller NEED to reserved enought memory before to apply overlay
by usisng the <extrasize> parameter.

fdt resize [<extrasize>]
- Resize fdt to size + padding to 4k addr + some optional <extrasize> if needed

A correct value cannot be proposed (it is depending of the overlay size)
but at least you must reserved the size of the loaded overlay dtbo file
=> ${filesize} (this variable automatically updated after a load command)

Change-Id: Ib37f2778bd843436b0baddb67a7a4fd5c799b749
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-11-16 17:56:04 +01:00
Romuald JEANNE f199af810f U-BOOT-STM32MP-EXTLINUX: manage overlay
To manage overlay device tree on U-Boot via boot.scr script:
- add an overlay entry on extlinux.conf without FDT or FDTDIR
- create a directory named 'overlays' on boot directory
- populate 'overlays' with the device tree overlay
- create a file named overlays.txt on overlays directory
- syntax of overlays.txt:
overlay=aa bb cc dd
- aa, bb, cc, dd correspond to a device tree name file (without extension)
present on /overlays/ directory
/overlays/aa.dtbo
/overlays/bb.dtbo
/overlays/cc.dtbo
/overlays/dd.dtbo

Tree of bootfs addons for overlay
/overlays/aa.dtbo
/overlays/bb.dtbo
/overlays/cc.dtbo
/overlays/dd.dtbo
/overlays/overlays.txt

warning: think to add an entry on extlinux.conf without FTDIR or FDTFILE
entry

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Change-Id: I3615d6f03cf874cf3f3c12ea1dd5882bb054542d
2021-03-26 10:37:20 +01:00
Romuald JEANNE c3ccf68bd4 U-BOOT-STM32MP-EXTLINUX: update for v2.0.0
Change-Id: Iae892ccf630ff290ee337bead4d36e753e24db15
2020-06-23 17:23:51 +02:00
Priouzeau Christophe f9093185ec U-BOOT: bump to v1.2.0 (v2018.11-r4)
Change-Id: Id53c130643e9a3c0bf9ba1a3644d45b34524dd35
Signed-off-by: Priouzeau Christophe <christophe.priouzeau@st.com>
2020-02-10 12:12:15 +01:00
Christophe Priouzeau a91a0e4488 Add U-Boot for stm32mp machine
Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
2019-02-04 15:32:39 +01:00