Commit Graph

304 Commits

Author SHA1 Message Date
Khem Raj
2fb467c8f8 go: Adjust for 1.14 changes in oe-core
We still use 1.13 for risv64, so cheat a little so we can re-use recipes
from oe-core to pretend to be 1.14

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-29 11:25:53 -08:00
Jeremy Puhlman
0cc3fb1439 openocd: Move to dynamic-layer for meta-oe
currently meta-riscv does not parse unless meta-oe is present.
It does not appear that anything explictly depends on openocd
in the layer.

Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
2020-02-21 18:11:01 -08:00
Khem Raj
590357c49b busybox: All these patches are in oe-core now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-15 12:47:21 -08: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
30fb686058 dynamic-layers: Add a xvisor hypervisor bbappend
Add a Xvisor bbappend that builds the initrd used by Xvisor.

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
8b73b069b0 mesa,libxshmfence: Define __NR_futex for rv32
Helps these nosy apps build
Fixes #201

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-31 18:37:17 -08:00
Khem Raj
687750d761 go-riscv: Delete 0009-ld-replace-glibc-dynamic-linker-with-musl.patch duplication
Core applies this patch via a bbappend too, so no need to apply here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-28 16:03:35 -08:00
Khem Raj
89ca330e78 packagegroup-go-sdk-target: Enable on riscv64
OE-Core disables it on riscv64 since go support is now in this layer it
makes sense to enable it in meta-riscv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-26 11:34:21 -08:00
Khem Raj
301946f338 go: Add recipes to support go on riscv64
Alter the SRC_URIs to fetch 1.13 from the right fork.
Rename refreshed 0002-cmd-go-make-content-based-hash-generation-less-pedan.patch
so it does not conflict with oe-core go recipes

Fixes #114

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-26 11:34:21 -08:00
Khem Raj
f0724d0ba3 packagegroup-core-tools-debug: Remove strace for rv32
It does not support rv32 yet

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-24 17:14:32 -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
fefdfec22a glibc: Update the RV32 glibc port
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-01-23 15:56:03 -08:00
Alistair Francis
73c4369c76 linux-mainline: freedom-u540: Enable communicating with serial devices
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-12-03 19:36:57 -08:00
Alistair Francis
cacdf0a2d4 linux-mainline: Upgrade to the 5.4 kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-12-03 12:17:56 -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
Robert Henry
0d5a7c956f Fix typo in setup.sh
s/unleased/unleashed/
2019-10-18 06:37:39 +05:30
Alistair Francis
91f6a2afbc layer.conf: Mark as compatible with zeus
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-10-08 15:42:42 -07:00
Vijai Kumar K
98708e9065 Fix some minor typos in documentation
Fix minor typos in README.md and docs/Plasma-Mobile-on-Unleashed.md.

Signed-off-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>
2019-10-01 07:23:56 -07:00
Alistair Francis
55a188ec70 openssl: Update the RV32 append to 1.1.1d
While we are updating OpenSSL let's also update the patch based on the
latest submission.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 15:36:40 -07:00
Alistair Francis
270c8cb7c1 linux-mainline: Move some configs into the include file
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 10:40:26 -07:00
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
fd7b332336 linux: Use the defconfig for freedom-u540
Let's now use the defconfig for the HiFive Unleashed. We can still apply
any extra configs ontop with a config patch.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 10:40:26 -07:00
Alistair Francis
df313e796d recipes-kernel: Update to the 5.3 kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 10:40:26 -07:00
Alistair Francis
1b726bf8bb ltp: Remove RISC-V Patches
These no longer appear to be required, so let's remove them.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-10 07:13:23 -07:00
Alistair Francis
11504e23cf libffi: Remove from meta-riscv
OE-Core is using libffi 3.3-rc0 so remove the duplication from
meta-riscv.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-07 15:06:16 -07:00
Alistair Francis
9fd71929aa linux-yocto_4.19: Remove qemuriscv64 compatibile
No one is testing the 4.19 kernel and it probably doesn't work with the
latest OpenSBI work so let's just remove it from meta-riscv.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
296eb2c68b linux-yocto: Update the compatibility
Now that we are using the newer glibc port and 5.2 kernel headers remove
the qemuricv32 compatible machine from the 5.0 kernel and add it to the
5.2 kernel.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
eeb27aac67 openssl: Fix y2038 64-bit time_t build failures
Fix the build failures on 32-bit RISC-V.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
b5443214a2 busybox: Fix y2038 64-bit time_t build failures
Fix the build failures on 32-bit RISC-V.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
f41e9accae linux: Update to the 5.2 kernel headers
OE-Core has upgraded to the 5.2 kernel headers. This means that all RV32
software now requires a 64-bit time_t. Update the glibc fork to an
implementation that works in a 64-bit time_t. At the same time we can
revert the linux kernel patch.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Khem Raj
0ec98278a9 setup.sh: Do not delete build dir
When building in a non CI env this all is not
needed as the user might accidentally end up losing all the build
artifacts that are not intendeed to. On CI systems its better to delete
it via extra step outside setup

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-29 22:45:36 -07:00
Alistair Francis
99cdf8d0cf machine/qemuriscv32: Remove device loader
Now that we are using QEMU 4.1 we can use QEMU's -bios option and
-kernel option and remove the device loader.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-08-23 07:33:03 -07:00
Khem Raj
04e6b2c12e riscv: Enable SECURITY_CFLAGS and GLIBC PIE for rv32/rv64
GCC PIE works fine

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-16 18:01:10 -07:00
Khem Raj
4c57b60dbe Do not disable GCCPIE
It seems to work fine with gcc9 and clang 9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-15 15:48:09 -07:00
Alistair Francis
2d65e7069b glibc: Fix the glibc SRCREV
Now that OE is using glibc 2.30 and the SRCREV_glibc variable we need to
update our SRCREV.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-08-07 15:40:13 -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
Alistair Francis
1b9f96753d linux: freedom-u540: Enable FuseFS support
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-25 00:56:17 -07:00
Ricardo Salveti
213de15b97 freedom-u540: prefer += instead of append for IMAGE_FSTYPES
Append causes IMAGE_FSTYPES to contaminate initramfs-based images, as
even when forcing it to be empty at the recipe level, it always shows up
after parsing.

Using += allows the recipe to set another value without being influenced
by the machine configuration.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2019-07-25 00:55:51 -07:00
Ricardo Salveti
fa8c8584c4 wic: add freedom-u540 wic for sota/ostree
Wic file to be used with sota/ostree (meta-updater), as the source for
root needs to be provided by the otaimage plugin.

It can be maintained outside this layer, but having it maintained at the
official meta-riscv layer makes it a lot easier for users experimenting
with meta-updater.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2019-07-25 00:55:26 -07:00
Ricardo Salveti
311ab1a78f freedom-u540: set UBOOT_DTB_LOADADDRESS
Based on the default u-boot machine configuration, useful for fitImage
support (known address for loading the device-tree).

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2019-07-24 11:50:56 -07:00
Khem Raj
9d52dc3a2c musl: Delete riscv patches as they are upstreamed in musl >= 1.1.23
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-23 18:15:49 -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
5d40902f03 linux: freedom-u540: Enable support for an INITRD
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-17 15:59:58 -07:00
Alistair Francis
b39d2fce6b linux: freedom-u540: Don't force command line arguments
Allow u-boot to overwrite the command line arguments if the user wants
to.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-17 15:59:58 -07:00
Palmer Dabbelt
bf6e63d854 Add meta-python before meta-multimedia
meta-multimedia depends on meta-python.  I'm not sure why it's
necessary to add all the dependent layers in order, but if I don't do
this I get a bunch of exceptions during setup.sh that result in no
meta-python in my bblayers.conf and thus a non-functional bitbake.

setup.sh was already explicitly adding meta-python, so this patch just
adds it before meta-multimedia.  That fixes the errors on my side.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2019-07-11 09:57:14 -07:00