OE-Core is using OpenSBI tag v1.1, this revision is based to v1.1 while
includes fdt driver support for AE350 platform so it can use with the
latest device tree provided by Andes Linux kernel 6.0.
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
ae350-ax45mp was using U-boot v2022.07 with the applied patches:
- (f4512618caa0) riscv: ae350: Fix XIP config boot failure
- (aa0eda17cf98) spl: opensbi: convert scratch options to config
Since OE-Core U-boot has upgraded to v2022.10 which includes both
patches so we can drop them.
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
u-boot common files set O=.. option for make which actually
sets KBUILD_SRC, which triggers a step in u-boot system called
prepare3. This step checks if make has been run inside sourcedir
and since we are setting O=${B} and B is set to S, it has run
inside S during do_configure, so do_compile fails to build e.g.
| /mnt/b/yoe/master/build/tmp/work/visionfive-yoe-linux/u-boot-starfive/v2021.04-r0/git is not clean, please run 'make mrproper'
| in the '/mnt/b/yoe/master/build/tmp/work/visionfive-yoe-linux/u-boot-starfive/v2021.04-r0/git' directory.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This is a generic bbappend and opensbi is riscv specific, so this causes
problems when this layer is includes and a build is done for non-riscv
machines e.g.
MACHINE=qemumips bitbake -n world
will show the problem
ERROR: Nothing PROVIDES 'opensbi'
opensbi was skipped: incompatible with host mips-yoe-linux-musl (not in COMPATIBLE_HOST)
NOTE: Runtime target 'u-boot-default-env' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['u-boot-default-env', 'opensbi']
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'libubootenv', 'u-boot-default-env', 'opensbi']
Signed-off-by: Khem Raj <raj.khem@gmail.com>
The LIC_FILES_CHKSUM md5sum changed with the latest mainline u-boot
release. So manually specify the original md5sum value.
Signed-off-by: Matheus Castello <matheus@castello.eng.br>
The LIC_FILES_CHKSUM md5sum changed with the latest mainline u-boot
release, but hasn't changed for the older starfive release. So manually
specify the original md5sum value.
Resolves: https://github.com/riscv/meta-riscv/issues/350
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This is largely based on the beaglev code nbut tweaked to work with current
starfive kernel repositories and tweak to the board.
The kernel and rootfs boot with working network and graphics. The u-boot
binary builds but is as yet untested.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
If this value is not increased, the error occurs during loading uncompressed
kernel from fitImage:
"Error: inflate() returned -5
Image too large: increase CONFIG_SYS_BOOTM_LEN"
Signed-off-by: Cezary Sobczak <cezary.sobczak@3mdeb.com>
Fedora branch seems to have disappeared ( perhaps renamed to
StarFive_VIC_7100) but StarFive_VIC_7100 is now default branch on github
so lets switch to that
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This makes the main recipe PN same as the one in core, but gives it
starfive flavor in PV, this then becomes nice to include it via
PREFERRED_VERSION mechanism.
Additionally, this also means that it gets picked up in world builds for
beaglev and OE-Core recipe is not preferred, as of now, it tries to
build both, since they are seen as different packages by bitbake due to
different PN
Signed-off-by: Khem Raj <raj.khem@gmail.com>
do_deploy need to execute from sstate-cache when the build directory is
empty and system determines that there is no change to u-boot and it
can be reused from sstate, in this scenario deploydir needs to populate
properly, so we can not use WORKDIR in logic
Activate u-boot and opensbi only for beaglev-starlight-jh7100
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This lends the system non-bootable as kernel waits for rootfs media
forever like below
[ 2.011165] mmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 400000HZ div = 125)
[ 2.051162] mmc_host mmc1: Bus speed (slot 0) = 100000000Hz (slot req 400000Hz, actual 400000HZ div = 125)
[ 2.311113] dw_mmc 10010000.sdio1: Unexpected interrupt latency
[ 4.871335] Waiting for root device /dev/mmcblk0p2...
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Now that we are using U-Boot 2019.10 let's remove the uneeded patches
that have been merged into mainline u-boot.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Fix the ethernet compatible sting name with the 5.3 kernel device tree.
This restores u-boots networking access when using the 5.3 kernel.
This patch is taken from the mainline master u-boot but rebased onto our
current 2019.07 + 21 patches u-boot. Once 2019.10 is released we can
drop all of these patches.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Add the uEnx.txt file to meta-riscv to allow users to build OSTree
setups for the HiFive Unleashed. This is based on the original version
from Ricardo Salveti (@ricardosalveti).
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Let's swap to using a fitImage by default. At the same time let's update
the u-boot boot commands to handle all the image types and support
loading a uEnv.txt file.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
The changes done by this bbappend are all specific to freedom-u540, so
change every override to be machine specific.
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Update the u-boot boot script to try a TFTP load first and if that fails
fall back to an MMC load.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Update the bbappend to apply to 2019.07 and backport the new device tree
bindings and SPI/MMC support.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Ensure that UBOOT_ENTRYPOINT is set correctly for the HiFive Unleased.
This patch also includes a small change that removes the incorrect and
unneeded arch option when using mkimage to create the boot script.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>