u-boot: we need to load uboot-env.txt
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>default-cape-symlinks
parent
35a6d71081
commit
3b747549b8
@ -0,0 +1,56 @@
|
||||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||
/*
|
||||
* Flattened Image Tree file for BVF
|
||||
*
|
||||
* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries.
|
||||
* Author: Conor Dooley <conor.dooley@microchip.com>
|
||||
*
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
description = "U-Boot fitImage for the BeagleV-Fire";
|
||||
#address-cells = <2>;
|
||||
|
||||
images {
|
||||
kernel {
|
||||
description = "Linux kernel";
|
||||
data = /incbin/("./Image.gz");
|
||||
type = "kernel";
|
||||
arch = "riscv";
|
||||
os = "linux";
|
||||
compression = "gzip";
|
||||
load = <0x80200000>;
|
||||
entry = <0x80200000>;
|
||||
hash-1 {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
base_fdt {
|
||||
description = "Flattened Device Tree blob";
|
||||
data = /incbin/("./mpfs-beaglev-fire.dtb");
|
||||
type = "flat_dt";
|
||||
arch = "riscv";
|
||||
compression = "none";
|
||||
load = <0x8a000000>;
|
||||
hash-1 {
|
||||
algo = "sha256";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
configurations {
|
||||
default = "kernel_dtb";
|
||||
kernel_dtb {
|
||||
description = "1 Linux kernel, FDT blob";
|
||||
kernel = "kernel";
|
||||
fdt = "base_fdt";
|
||||
};
|
||||
|
||||
base_dtb {
|
||||
description = "Base FDT blob for BeagleV-Fire board";
|
||||
fdt = "base_fdt";
|
||||
};
|
||||
};
|
||||
};
|
@ -0,0 +1,17 @@
|
||||
# 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@20112000 mac-address ${icicle_mac_addr0};
|
||||
fdt set /soc/ethernet@20110000 mac-address ${icicle_mac_addr1};
|
||||
run design_overlays;
|
||||
bootm go;
|
Loading…
Reference in New Issue