mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
Following the addition of the firmware upload API in linux v6.6, using
debugfs for firmware updating has been removed. Update the
update-gateware script to use the firmware upload API with sysfs and
enable applying the overlays during boot.
The fw_upload interface can detect when there is an overlay file and
will write it correctly. Use this functionality to write the overlay
file and remove dd command related code.
Fixes: 8ce97fd550 ("configs/beaglev_fire: bump Linux and U-Boot")
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jamie Gibbons <jamie.gibbons@microchip.com>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
17 lines
468 B
Batchfile
17 lines
468 B
Batchfile
# this assumes ${scriptaddr} is already set!!
|
|
|
|
# Try to boot a fitImage from eMMC/SD
|
|
|
|
setenv fdt_high 0xffffffffffffffff
|
|
setenv initrd_high 0xffffffffffffffff
|
|
|
|
load mmc 0:${distro_bootpart} ${scriptaddr} beaglev_fire.itb;
|
|
bootm start ${scriptaddr}#kernel_dtb;
|
|
bootm loados ${scriptaddr};
|
|
# Try to load a ramdisk if available inside fitImage
|
|
bootm ramdisk;
|
|
bootm prep;
|
|
fdt set /soc/ethernet@20110000 mac-address ${beaglevfire_mac_addr0};
|
|
run design_overlays;
|
|
bootm go;
|