Commit Graph

45 Commits

Author SHA1 Message Date
Cezary Sobczak
ff5e85cb6f opensbi: update mainline with patches to fit Nezha board
Signed-off-by: Cezary Sobczak <cezary.sobczak@3mdeb.com>
2022-03-30 18:54:52 -07:00
Cezary Sobczak
94a8a881a0 boot0: add patch which fix build with binutils 2.28
Signed-off-by: Cezary Sobczak <cezary.sobczak@3mdeb.com>
2022-03-30 18:54:52 -07:00
Cezary Sobczak
0d1c2fb125 boot0: add patch for Makefile to fit it with yocto build environment
Signed-off-by: Cezary Sobczak <cezary.sobczak@3mdeb.com>
2022-03-30 18:54:52 -07:00
Cezary Sobczak
6192951a50 boot0: add recipe of the Nezha SPL
Signed-off-by: Cezary Sobczak <cezary.sobczak@3mdeb.com>
2022-03-30 18:54:52 -07:00
Khem Raj
2392e1f99d recipes: Convert to newer override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-04 23:14:25 -07:00
Khem Raj
5a3ff76ae5 meta-riscv: Convert to new override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-04 23:14:25 -07:00
Alistair Francis
f93cce53b7 recipes-bsp/opensbi: Drop the BeagleV patch
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-06-07 16:40:56 -07:00
Alistair Francis
9679cdd2c8 recipes-bsp/u-boot: Switch back to starfive u-boot
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-06-07 16:40:56 -07:00
Alistair Francis
acc633ec4b beaglev: opensbi: Use mainilne OpenSBI
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-06-01 19:46:28 -07:00
Khem Raj
83fc7164d7 u-boot-starfive: Move to Fedora_VIC_7100_2021.04 branch
Fedora is rename to this new name
Update to tip of branch while here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-26 16:10:06 -07:00
Khem Raj
244f5e7805 opensbi_starfive: Switch to StarFive_VIC_7100 branch name
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>
2021-05-26 16:10:06 -07:00
Khem Raj
e4697fa5d0 opensbi-starfive: Rename to opensbi_starfive-0.8.0.bb
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>
2021-05-09 16:54:57 -07:00
Khem Raj
1b048984be u-boot-starfive: Fix builds from sstate cache
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>
2021-05-06 17:12:08 -07:00
Khem Raj
23e6b57afc u-boot-starfive: Drop FDT address adjustments
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>
2021-05-06 17:12:08 -07:00
Khem Raj
65407db940 opensbi-starfive,u-boot-starfive: Demand gcc for compiler
They dont yet build with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-06 17:12:08 -07:00
Alistair Francis
c881a6ede3 machine/beaglev-starlight-jh7100: Use fitImage
Update the boot process to follow the HiFive1.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
d31a8ed0ae beaglev: add 1st on-hardware test results
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
9d3df1e164 beaglev: rename BSP components from -beaglev to -stafive
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
89d3bfd5d8 opensbi-beaglev: w/a for do_deploy failure
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
9b31efa4ab preliminary beaglev support
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Alistair Francis
9e88baad29 qemuriscv32: Remove the 32-bit RISC-V machine
OE-Core now has support for the 32-bit RISC-V QEMU machine, so let's
remove it from here.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-03-11 10:08:41 -08:00
Khem Raj
130f6dc2ed u-boot: Fix build for rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-02-12 10:31:27 -08:00
Alistair Francis
0ba537b927 u-boot: Update to 2019.10 and remove uneeded patches
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>
2019-10-21 01:24:44 +05:30
Alistair Francis
90b51bb980 u-boot: Fix the mabc probing with 5.3 device tree
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>
2019-09-16 10:40:26 -07:00
Alistair Francis
f48bec2be0 u-boot: Add OSTree uEnx.txt file
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>
2019-08-06 18:41:13 -07:00
Alistair Francis
679a01b574 u-boot: Run the boomcmd if we load a uEnv.txt file
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-08-02 18:57:57 -07:00
Alistair Francis
cb0857efe5 freedom-u540: Use fitImage
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>
2019-07-25 15:19:43 -07:00
Ricardo Salveti
c23d485f94 u-boot: change overrides to be specific to freedom-u540
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>
2019-07-18 20:51:05 -07:00
Alistair Francis
7f90dea34e u-boot: Update the boot script to fall back to MMC load
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>
2019-07-10 09:43:38 -07:00
Alistair Francis
4a6f008cec u-boot: Update the bbappend to apply to 2019.07
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>
2019-07-10 09:43:38 -07:00
Alistair Francis
d0bd2937b9 recipes-bsp/opensbi: Remove OpenSBI from meta-riscv
OpenSBI is now supported in OE-Core, remove it from meta-riscv.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-06-24 19:15:08 -07:00
Alistair Francis
75d2ecbe9a u-boot: Fix UBOOT_ENTRYPOINT variable setting
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>
2019-06-24 19:14:51 -07:00
Alistair Francis
15696914b9 u-boot: Check if ${UBOOT_ENV}.txt exists before using it
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-05-05 23:42:11 -07:00
Alistair Francis
9e781551e5 freedom-u540: Setup u-boot autoboot for TFTP
This patch does two things:
 - Patches u-boot to set the server ip by default
   - When u-boot has SD/MMC support we should remove this patch and
     instead set enviroment variables from uEnv.txt

 - Adds a tftp-boot.txt file
   - This file is built into a boot.src.uimg file which should then be
     copied to the TFTP directory. This file should be used by those who
     are intereted in u-boot autobooting from TFTP.
   - In the future a seperate boot file can be added allowing autoboot
     from the SD card

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
a05b1d8932 u-boot: Add support for SMP boot on Freedom U540
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
bb370a5a30 opensbi: Fix the u-boot dependency
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Khem Raj
550e98c1bd opensbi: Fix build with gcc9 tentatively
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-08 05:51:32 -08:00
Alistair Francis
577898d7ae opensbi: Bump to version 0.3
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-27 10:22:02 -08:00
Alistair Francis
841a445b60 opensbi: Fix 32-bit cross compile
There appears to be some strange behaviour with OE's 32-bit toolchain
which causes soft float and hard flot linker errors. The same issue is
seen when building u-boot. For now we can fix the problem by not
specifying the mabi or march when building openSBI.

We also need to backport a patch that has been submitted to ensure the
32-bit build works.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-24 08:17:54 -08:00
Alistair Francis
b5f422571d opensbi: Bump to version 0.2
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-24 08:17:54 -08:00
Alistair Francis
7f03647622 openSBI: Initial commit
This adds openSBI support. openSBI aims to be the reference
implementation for the M mode firmware. We are going to use it to remove
BBL from the boot flow.

The eventual aim is to have openSBI merged into the meta layer to
support qemuriscv* machines.

Unfortunately openSBI requires a 5.0 kernel, so at the moment we aren't
going to use it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-01 10:41:36 -08:00
Alistair Francis
1b9c91908b u-boot: Remove RISC-V specific version
Now that u-boot 2018.11 is supported in Yocto we no longer need custom
options for RISC-V support.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-11-29 13:41:33 -08:00
Alistair Francis
ea2c8ae8f4 u-boot: Use mainline u-boot
Now that QEMU RISC-V virt machine support is in master u-boot use the
mainline u-boot instead of a fork.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-10-08 14:10:37 -07:00
Khem Raj
3de0744bbd u-boot: Be mindful of other BSPs when it comes to u-boot overrides
We are sort of hijacking OE-Core recipe here, so lets be careful and
make it such that it only happens for risv64, which makes a multi-BSP
scenario work again.

This repo seems to be rebasing :( so add rebaseable=1 so bitbake knows
about it

update to latest rev as of today

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-28 11:57:00 -07:00
Alistair Francis
5a43350492 recipes-bsp/u-boot: Use a u-boot fork for RISC-V
Use fork of u-boot that allows us to boot u-boot on the QEMU RISC-V virt
machine.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-09-25 11:39:18 -07:00