Commit graph

110 commits

Author SHA1 Message Date
Khem Raj
9d10fd4f37 python3-matplotlib,smem: Enable builds for rv32
python3-matplotlib is now fixed to build for rv32 on meta-python

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-30 11:35:14 -08:00
Khem Raj
ad99b75029 packagegroup-meta-multimedia: Ignore from world builds
It builds openh264 which does not yet work for riscv32

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-18 11:26:40 -08:00
Khem Raj
a2a2532f09 meta-gnome: Disable gnome-control-center
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-18 11:26:40 -08:00
Khem Raj
487f265884 layer.conf: Additional set of packages to disable on rv32
These packages are listed right below the main package they depend on,
once that package is fixed for rv32, they should be rebuilt and tested
again.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-18 11:26:40 -08:00
Khem Raj
7d9553a0f7 riscv32: Enable recipes which are now buildable with latest OE
Most of them were failing due to g-i errors which are now fixed in oe-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-18 11:26:40 -08:00
Khem Raj
142e77959d layer.conf: Add 3.3 release series to LAYERSERIES_COMPAT
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-09 09:51:17 -08:00
Khem Raj
f4107d92c3 layer.conf: Drop older releases from supported LAYERSERIES_COMPAT
gatesgarth is current release (3.2)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-09 09:51:17 -08:00
Khem Raj
e9e1990f35 qtbase: Ignore textrels for rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-09 09:51:17 -08:00
Khem Raj
4d06338812 poppler: Ignore textrel QA errors for rv64/rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-20 20:57:03 -07:00
Khem Raj
d5723e6979 layer.conf: Add gatesgarth to LAYERSERIES_COMPAT
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-15 13:42:01 -07:00
Khem Raj
d9b1569703 cmocka: Ignore textrels
There are texrels in tests
ERROR: QA Issue: cmocka-ptest: ELF binary /usr/lib/cmocka/ptest/tests/test_strmatch has relocations in .text
cmocka-ptest: ELF binary /usr/lib/cmocka/ptest/tests/test_strmatch has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-05 10:22:10 -07:00
Khem Raj
ec2c3d1104 ltp: Enable buids on rv32/musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-10-05 10:22:10 -07:00
Khem Raj
ff16e38107 layer.conf: Exclude failing recipes from builds on rv32
These need to be fixed in due couese, for now ignore them in world
builds for rv32 machines

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-12 13:50:07 -07:00
Khem Raj
e655c2f7f2 doxygen: Ignore textrel for now
This will be better with next binutils but until then we live with this

Fixes
doxygen-1.8.20: doxygen: ELF binary /usr/bin/doxygen has relocations in .text
doxygen: ELF binary /usr/bin/doxygen has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-12 13:50:07 -07:00
Alistair Francis
1faef0e153 qt5-layer: Remove Qt5 overides
meta-qt5 now has the same overides upstream, let's remove them for
meta-riscv.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-02 19:18:44 -07: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
Khem Raj
5cc6fe3632 ltp: Fix build on rv32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-29 16:27:09 -07:00
Khem Raj
1950ff1ca4 layer.conf: Ignore textrel for few more recipes
The real issue is in binutils/ld inserting R_RISCV_NONE which is then
caught by textrel checker, there are binutils bugs to address this
[1] [2]

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=24676
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=24673

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-21 19:35:56 -07:00
Khem Raj
ad387e4b63 conf/layer.conf: Disable textrel for qtbase
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-17 22:56:58 -07:00
Khem Raj
0fd7aabf75 conf/layer.conf: Add gdb/perf to exception list for textrel
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-17 22:56:58 -07:00
Khem Raj
32545e3bae layer.conf: Skip textrel for eudev on rv64
Build QA complains
ERROR: eudev-3.2.9-r0 do_package_qa: QA Issue: eudev: ELF binary /usr/bin/udevadm has relocations in .text
eudev: ELF binary /usr/libexec/udevadm has relocations in .text [textrel]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-13 17:08:56 -07:00
Khem Raj
5bd3c383e1 layer.conf: Mark layer 3.1 compatible
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-24 14:57:55 -07: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
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
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
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
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
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
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
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
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
76f72ba89d freedom-u540.conf: Set the RISCV_SBI_FDT based on the kernel DTB
The Linux kernel 5.2 does not work with the device tree included in the
HiFive Unleashed firmware. To allow the kernel to boot let's build the
kernel's device tree into OpenSBI by default.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-10 09:37:34 -07:00
Alistair Francis
bdde094e02 freedom-u540.conf: Include OpenSBI on boot partition
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-09 14:22:59 -07:00
Alistair Francis
6f816dda30 freedom-u540.conf: Include boot.scr.uimg in the boot partition
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-09 14:22:59 -07:00
Alistair Francis
05425ec9f7 freedom-u540.conf: Use double # for comments
We are about to add commented out lines as well as comments, which can
be confusing to read. To clear it up a bit let's add doubl # lines for
real comments.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-09 14:22:59 -07:00
Alistair Francis
94ff1c259f conf/machine: Update with qemuriscv64 in OE-Core
Now that the qemuriscv64 machine is in OE-Core let's update the
meta-riscv layer to use that.

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
4157f3e012 gdb: Remove the RISC-V GDB
Now that GDB 8.3 has been merged into the meta layer we no longer need a
custom GDB version.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-05-21 09:29:33 -07:00
Khem Raj
ac17429667 layer.conf: Mark master warrior and newer compatible only
we are now getting changes which are in master ( would be 2.8 ) release
so its important to let users know that they can no longer use master
with older releases

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-21 09:29:22 -07:00
Alistair Francis
e3e7f75961 linux: Update to 5.1 stable
This patch does the following:
 - Update the current linux-mainline_5.1 recipe to AUTOREV from the
   stable branch
 - Use the linux-mainline_5.1 by default for the HiFive Unleashed
 - Remove the older linux-riscv_5.0 recipe
 - Rename the common include to linux-mainline-common.inc

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-05-07 11:54:29 -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
ce7cce91e8 freedom-u540: Allow u-boot to be an OpenSBI payload
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
ef0189f2d8 wic: Update the sdcard generation
Update the SD card generation to follow a more standard sdcard boot
flow. At the moment we don't use this new boot flow, but let's at least
have it ready for future use.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00