Commit graph

110 commits

Author SHA1 Message Date
Alistair Francis
bf5b279c3d freedom-u540: Don't hardcode linux-version
Don't hardcode the Linux version to make it easier to overwrite the
Linux provider. There is only one linux-riscv version so it is not
required.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-16 20:46:17 -07:00
Alistair Francis
d77546d36e qemuriscv: Allow overriding RISCV_SBI_PLAT
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-10 11:16:42 -07:00
Khem Raj
682f56e1b8 layer.conf: Add 1.7 (warrior) to compatible releases
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-26 14:55:18 -07:00
Khem Raj
155202886e layer.conf: Disable PIE for riscv32 as well
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-26 14:55:18 -07:00
Khem Raj
c7887bcfed layer.conf: Drop setting SECURITY_FLAGS form now defunct riscv-pk recipe
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-26 14:55:18 -07:00
Chin Huat Ang
014066d318 qemuriscv.inc: use ttyS0 as serial console
Fix /etc/inittab issue seen when running "runqemu nographic serial":

  INIT: Id "AMA0" respawning too fast: disabled for 5 minutes

Signed-off-by: Chin Huat Ang <chinhuat@gmail.com>
2019-03-26 11:17:51 -07:00
Khem Raj
ddbc816c35 freedom-u540.conf: set console to ttySIF0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-21 09:06:06 -07:00
Alistair Francis
41ef243e31 qemuriscv: Add the virtio-rng device to pass entropy to the guest
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-14 19:34:26 -07:00
Alistair Francis
b7a47b47b5 machine: qemuriscv: Update the serial consoles
Update the serial console settings to be more supportive of running QEMU
ptests.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-14 19:34:26 -07:00
Khem Raj
643ab0b4c4 Add qt5 to dynaic layers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-12 21:44:07 -07:00
Alistair Francis
fbfab7fbaf qemuriscv: Enable earlycon via SBI
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 20:23:00 -08:00
Alistair Francis
f28b3cfb9a qemuriscv: Enable OpenSBI by default for booting
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 20:23:00 -08:00
Alistair Francis
3ee1f8f2d4 qemuriscv: Bump kernel versions to work with OpenSBI
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 20:23:00 -08:00
Alistair Francis
6cbef3699d freedom-u540: Enable OpenSBI by default for booting
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-04 18:21:38 -08:00
Alistair Francis
d6e7e6f7db recipes-kernel: linux-riscv: Update to 5.0 release
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-04 18:21:38 -08:00
Alistair Francis
14d0ed47db baremetal-riscv: Remove BBL
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-24 08:17:19 -08:00
Alistair Francis
1eb9df95db Revert "qemuriscv64.conf: Pin to linux-riscv again"
This reverts commit 7b7e2dbc51.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-01-24 21:02:05 -05:00
Khem Raj
7b7e2dbc51 qemuriscv64.conf: Pin to linux-riscv again
linux-yocto hangs before it reaches console, until that is
fixed we can not switch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-20 14:12:21 -08:00
Khem Raj
242e34d573 layer.conf: Do not lock to gcc
clang 8.0 does have risc-v backend

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-19 14:00:23 -08:00
Alistair Francis
e253804993 qemuriscv64: Don't use the linux-riscv kernel
Default to the mainline 4.19 kernel for the 64-bit QEMU machine.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-01-14 10:15:52 -08:00
Alistair Francis
9c2038912a machine: qemuriscv: Don't set TCLIBC
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-12-17 09:48:19 -08:00
Alistair Francis
8fe85e46f4 machine: freedom-u540: Don't set TCLIBC
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-12-17 09:48:19 -08:00
sungwon.pino
7a3af75462 qemu : Usermode fails with invalid instruction error (for riscv32)
- backport for riscv32 arch
- Usermode fails with invalid instruction error (for riscv32)

Signed-off-by: pino-kim <sungwon.pino@gmail.com>
2018-12-13 09:38:57 -08:00
Alistair Francis
15e827879d machine: Rename the baremetal machines
The baremetal machines can't be built as bitbake complains about
riscv32/riscv64 being included twice in the PACKAGE_ARCH variable. To
fix this rename the machines to be different from the architecture.

Also remove the QEMU overrides as these are no longer required.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-12-07 14:46:16 -08:00
Alistair Francis
51ebe0bf47 qemuriscv32: Add support for a 32-bit machine
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-11-29 18:57:44 -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
Khem Raj
4f4e1753d4 qemuriscv64.conf: Do not define hvc0 serial console
This fixes double prints on qemu console

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-14 21:15:20 -08:00
Alistair Francis
c84c026c94 machines: Use the 4.19 kernel by default
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-11-05 18:57:51 -07:00
Khem Raj
42308e5d34 qemuriscv64: Express u-boot bootloader choice
In a multi-BSP env u-boot may be provided by other BSP layers as well so
we need to be explicit about u-boot we need

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-27 05:13:46 +01:00
Khem Raj
e5215d85c9 layer.conf: Add thud to compatible layer series
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-26 18:29:57 -07:00
Alistair Francis
b6bab303c5 qemuriscv64: Add support for building u-boot
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-09-25 11:39:18 -07:00
Khem Raj
9d71c72b43 qemuriscv64.conf,freedom-u540.conf: Pin default libc to glibc
musl is not yet supported
Additionally sync with qemu invocation definitions from OE-Core qemus

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 07:27:03 -07:00
Khem Raj
b7526a3e22 risc-v: Fix packagegroup dependencies for no clang
clang is not yet supported and when meta-clang is in
layermix things start to fail.

This patch patches by assuming the dependencies
and later adding them to bad recommendations so
they are dropped from runtime deps too

might not work with with dpkg backend

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 18:08:30 -07:00
Khem Raj
1d3ade5e42 layer.conf: Disable clang when meta-clang is present
Force toolchain to use gcc for riscv64.
We dont have full riscv support in upstream clang
as _yet_

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-28 12:54:23 -07:00
Alistair Francis
552526019d machine: Build an EXT4 rootFS image
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-27 11:32:03 -07:00
Alistair Francis
dcb61db68d qemu: Remove the RISC-V fork of QEMU
As QEMU 3.0 is now included in OE-Corewe no longer need to use
the RISC-V specific fork.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-27 11:32:03 -07:00
sungwon.pino
3d52a339fe Update machine kernel version 4.18-rc7 2018-08-07 14:47:49 -07:00
Khem Raj
2cf991cc31 add templates for commits and issues
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-27 07:49:52 -07:00
Khem Raj
a4a81b0abc riscv64: Disable ssp and fortify flags
They result in linking errors, -fstack-protector-strong wants libssp

libdrm errors when using -fstack-protector-strong

drm@sha/xf86drmSL.c.o: relocation R_RISCV_HI20 against `__stack_chk_guard@@GLIBC_2.27' can not be used when making a shared object; recompile with -fPIC

libdrm errors when using fortify options

rm@sha/xf86drm.c.o(.text+0x3ce2): unresolvable R_RISCV_CALL relocation against symbol `strdup@@GLIBC_2.27'

For now just disable the whole shebang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-21 11:49:53 -07:00
Khem Raj
fb8ad42aee Disable PIE
It needs some work in glibc "to be looked"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-21 15:30:37 -07:00
Alistair Francis
d1ef5451f7 machine: Use the RISC-V 4.17 kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-06-21 15:30:16 -07:00
Taras Kondratiuk
bbbfd9e87d machine: allow to override kernel's provider/version
It is useful to be able to override kernel's provider or version from
local.conf.

For qemuriscv64 machine move PREFERRED_* variables before qemu.inc,
because it sets PREFERRED_PROVIDER to linux-yocto.

Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
2018-04-30 18:00:57 -07:00
Taras Kondratiuk
39a3237db5 machine: remove MACHINE_ARCH override to fix package collision
Machine-specific packages (like Linux kernel) should have
machine-specific PACKAGE_ARCH that is obtained from MACHINE_ARCH. This
allows to separate their build artifacts in TMPDIR.

Currently all RISC-V machines override MACHINE_ARCH and artifacts for
machine-specific recipes collide. For example kernels of both
qemuriscv64 and freedom-u540 machines will be deployed into the same
$D directory.

Remove MACHINE_ARCH override and set tune PACKAGE_ARCH via
PACKAGE_EXTRA_ARCHS.

Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
2018-04-29 07:19:32 -07:00
Moritz Fischer
c01c8aad5b machine: freedom-u540: Add support for booting from SD card
Modify freedom-u540 machine to boot off of sd card by default.
Note that there is a bug with the U540's SPI controller that
makes this painfully slow.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
2018-04-10 22:12:26 -07:00
Khem Raj
8a371c99d5 layer.conf: add LAYERSERIES_COMPAT
We need sumo or newer release of OE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-04-06 07:56:25 -07:00
Mirza Krak
75acee750f machine: freedom-u540: add WIC support
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-26 21:51:50 -07:00
Khem Raj
6955a6cbd8 qemuriscv64.conf: Change the baudrate to 115200
4.16+ does not boot and console hangs

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-20 14:51:50 -07:00
Mirza Krak
c4b2101cd6 machine: initial freedom-u540 configuration
This is the machine configuration file for HiFive Unleashed
development board.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00
Mirza Krak
1f5dbaf7d4 riscv-pk: use a variable for the BBL payload
Preperation patch to supporting something else other then qemu.

While at it removed code that was commented out.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00
Trevor Woerner
21d7d83081 qemuriscv64: pin kernel to 4.15
The 4.16 kernel doesn't currently seem to be able to come up to a login
prompt. Set the default to 4.15 (which can) for the time-being.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-03-20 14:41:07 -07:00