116 Commits

Author SHA1 Message Date
Justin Hammond
650490e644 Fix VisionFive 2 boot and Add Star64 Board
Several issues with the current visionfive 2 support:
* JH7110 Support is only in OpenSBI Master branch, (upcoming 1.3 release).  So pin OpenSBI Revision to the commit that adds JH7110 Support otherwise reset etc does not work
* There are two variants of VisionFive2 and Star64 - 4Gb and 8Gb. StarFive's u-boot reads the eeprom on board to determine what variant you have, and modifies the loaded FDT it passes to the kernel with the correct Memory. Current U-boot scripts in meta-riscv do not do this, and thus all boards end up with the default 4Gb configuration. I've updated this for Star64, but needs testing on VF2

* Some of the addresses used in uboot for kernel/initramfs or fdt were different from upstream. Aligned the addresses with upstream StarFive.

As both Star64 and VisionFive2 are based on the same SOC, i've changed the machine configuration so we have a JH7110 SOC and VisionFive2 and Star64 inherit from this. Where appropriate in the recipies, I've changed to jh7110 instead of visionfive2

Finally, as the Star64 has different kernel/u-boot configs/dts files, i've pointed those at my repos for now, and will be upstreaming (assuming Starfive accept star64 related PRs). Once upstreamed, I'll submit a new PR here.

This also lays the groundwork for the new PineTab-V from pine64 which is due to be shipped in May.

Signed-Off-By: Justin Hammond <justin@dynam.ac>
2023-04-18 17:01:54 -07:00
Alexey Firago
7dc4ca0f05 visionfive2: Create a bootable SD card
* Use visionfive2.wks
* Install required files on the boot partition

Signed-off-by: Alexey Firago <alexey.firago@gmail.com>
2023-04-12 08:30:37 -07:00
Andreas Cord-Landwehr
4436027cb5 visionfive2.conf: remove obsolete opensbi 2023-03-06 10:19:34 -08:00
Andreas Cord-Landwehr
c80df081ea visionfive2.conf: recommend VPU kernel modules and use custom omx-il 2023-03-06 10:19:34 -08:00
Andreas Cord-Landwehr
285d532bc1 visionfive2.conf: configure mesa, egl and gles provider 2023-03-06 10:19:34 -08:00
Andreas Cord-Landwehr
13dbc9532e visionfive2: add machine config
Config is a fork of the original visionfive config, only adapted for new
DTB, Kernel etc.
2023-03-06 10:19:34 -08:00
Khem Raj
fdb862d329 freedom-u540: Do not use u-boot.bin payload
Use Booting from MMC using U-Boot SPL method instead

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-03-05 14:47:40 -08:00
Pavel Zhukov
06e529beb2 mangopi-mq-pro: Sync DTS with kernel
At this point DTSes differ between d1/wip branch of the kernel
and corresponding branch of u-boot. Mangopi-MQ-Pro dts is missed in
u-boot part which leads to missing devices nodes (bluetooth in
particular). Sync dts and pin patch to mangopi only to not affect Nezha.

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
2023-02-09 16:43:45 -08:00
Pavel Zhukov
0539e6e8fa u-boot: Rename nezha to allwinnerd1
Use SOC name (Allwinner D1) instead of board name for
generic recipes.
Move board specific configuration to corresponding machine conf

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
2023-02-09 16:43:45 -08:00
Pavel Zhukov
3dd66f6ce2 linux-nezha: Rename nezha to allwinner D1
Move board specific configuration into machine conf

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
2023-02-09 16:43:45 -08:00
Pavel Zhukov
078b646d4d mangopimqpro: Enable bluetooth and split recipe
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
2023-02-09 16:43:45 -08:00
Pavel Zhukov
f4d336cb7e conf/machine: Add mangopi-mq-pro machine
Based on Nezha D1 machine config with addjusterd DTB configuration
and added wifi module driver.
Tested with core-image-(base|weston) on MangoPi MQ Pro rev 1.3:
- HDMI output/weston and wifi are working. USB-C ethernet detected but not
  tested due to lack of HW.

Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
2023-02-05 19:30:23 -08:00
Alistair Francis
d6e3efd54a freedom-u540: Drop OpenSBI from EXTRA_IMAGEDEPENDS
We don't need to specify OpenSBI in EXTRA_IMAGEDEPENDS to ensure it's
built and if we specify it we get circular dependencies with the u-boot
RSA signing code, so let's drop it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-01-09 11:38:28 -08:00
Alistair Francis
69e9a40078 freedom-u540: Use the generic OpenSBI platform
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-01-09 11:38:28 -08:00
Andreas Cord-Landwehr
05a629193a boot0: Remove obsolete boot0 package 2023-01-08 08:07:38 -08:00
Yu Chien Peter Lin
361b62de5a ae350-ax45mp.conf: add machine configuration for Andes AE350 ax45mp
Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com>
2022-08-15 08:56:10 -07:00
Richard Purdie
d16bc5a3f2 visionfive: Add initial support for Starfive Visionfive board
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>
2022-07-05 07:09:47 -04:00
Cezary Sobczak
42a5479dbc nezha-allwinner-d1.conf: add machine configuration for Nezha board
Signed-off-by: Cezary Sobczak <cezary.sobczak@3mdeb.com>
2022-03-30 18:54:52 -07:00
Khem Raj
778ea8390a conf: Drop using image-prelink
image-prelink has been removed in latest yocto ( kirkstone + )
Fixes Issue #325

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-24 23:27:55 -07:00
Daiane Angolini
576cfff181 baremetal-riscv32nf: Fix typo in syntax override 2022-03-03 11:02:52 -08:00
Bernhard Rosenkränzer
d827208a38 conf/machine: Add baremetal-riscv32nf config
Add baremetal-riscv32nf config for RISC-V32 machines without
floating point instructions (e.g. Hi3861)

Signed-off-by: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
2021-12-09 16:26:54 -08: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
409e612587 freedom-u540: Update the u-boot defconfig
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2021-07-21 10:27:49 -07:00
Khem Raj
f00613c067 beaglev: Use linux-starfive-dev as default kernel
As we are in rapid dev phase, lets all use dev kernel
since older branches while work do not have all the latest
porting work

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-08 10:50:39 +10:00
Khem Raj
98742ca775 beaglev: Adjust machine conf for renamed device tree file
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-08 10:50:39 +10:00
Alistair Francis
7d7705abc9 beaglev-starlight-jh7100: Use the u-boot DTB for OpenSBI
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
8b821bd50c linux-starfive-dev: Add recipe
This is Emil's upstream tree for beagleV

Also Enable wifi

This ensures that right firmware is installed into image
and we can now have wlan0

oot@beaglev-starlight-jh7100:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 2C:F7:F1:1B:E3:33
          inet addr:10.0.0.31  Bcast:10.0.0.127  Mask:255.255.255.128
          inet6 addr: fe80::2ef7:f1ff:fe1b:e333/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4317 (4.2 KiB)  TX bytes:4436 (4.3 KiB)
          Interrupt:20

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1746 (1.7 KiB)  TX bytes:1746 (1.7 KiB)

wlan0     Link encap:Ethernet  HWaddr D4:9C:DD:4A:C2:DD
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-13 17:44:37 -07:00
Khem Raj
a680163804 linux-starfive: support TPS65086 restart
apply patches from
https://github.com/starfive-tech/linux/issues/8

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 17:04:45 -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
b2dc925caa freedom-u540.conf: Remove clang runtime from ASSUME_PROVIDED
this is no longer needed

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
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
Alistair Francis
48bc14dcd8 machine/beaglev-starlight-jh7100: Fix serial console
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
631ea77d4a beaglev-starlight-jh7100.conf: add wic.bmap IMAGE_FSTYPE
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
0e5a6d0cc7 beaglev-starlight-jh7100.conf: remove comment about SBI_PAYLOAD
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2021-05-06 17:12:08 -07:00
Maciej Pijanowski
4c4c29aeeb beaglev-starlight-jh7100.conf: remove leftovers from freedom-u540.conf
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
Khem Raj
6f495435ed freedom-u540.conf: Define virtual/bootloader to be u-boot
Fixes
NOTE: Multiple providers are available for virtual/bootloader (u-boot, u-boot-juno, u-boot-orangepi-i96, u-boot-poplar, u-boot-socfpga)
Consider defining a PREFERRED_PROVIDER entry to match virtual/bootloader

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-02 08:37:49 -07:00
Alistair Francis
f71a0efe94 machine: qemuriscv32: Add the Xvisor platform
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-02-12 12:24:01 -08:00
Alistair Francis
b4ec1d4780 linux: Update bbappends for qemuriscv32
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-02-03 19:51:05 -08:00
Khem Raj
c95f5d9d17 qemuriscv32: Use linux-yocto-dev for now
Latest glibc wants kernel 5.4+ ABI and linux-yocto is still at 5.2, so
until that switches to 5.4 lets pin to dev kernel which is 5.5+

Fixes #199

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-24 17:14:32 -08:00
Alistair Francis
7cbf8f7121 machine/baremetal: Cleanup the baremetal code
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-12-03 12:09:11 -08:00
Alistair Francis
a501ae452a openocd: Use the RISC-V fork
We currently need the RISC-V fork of OpenOCD.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-11-12 19:17:37 -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