Commit Graph

32 Commits

Author SHA1 Message Date
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
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
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
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
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
Khem Raj
1024bab3e1 qemuriscv64.conf: Enable prelink
- Qemu preferred versions are now in OE-core so drop it here
- Do not strip .comment, it seems to work without it
- Drop disabling USE_VT, we need it on qemu
- Pin 4.16 as default kernel
- ext3 is not necessary so drop enforcing it into image fstypes
- Make hard assignment for SERIAL_CONSOLES

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:17:24 -07:00
Khem Raj
80e2da578c machine: Add machines for riscv32 baremetal
- Organize the machines a bit better
- Add baremetal machine configs for 32/64 bit
  so we can generate SDKs for zephyr and other RTOSes
- Fixup tune files to match BSP layer norms

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 14:57:23 -07:00
Khem Raj
c2fde414a4 qemuriscv64.conf: Add description
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-11 22:08:23 -07:00
Khem Raj
e7ea596e4b qemuriscv64: Disable prelink
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 11:06:43 -08:00
Khem Raj
6a23d8afda qemuriscv64: Define QEMUVERSION = riscv
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 10:31:25 -08:00
Khem Raj
b2775cd4c6 qemuriscv64.conf: Customize qemuboot options
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 14:01:16 -08:00
Khem Raj
1408c1525e qemuriscv64.conf: Add ttyS0 instead of ttyHTIF0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 12:08:14 -08:00
Khem Raj
3358757183 qemuriscv64.conf: Build riscv-pk always to get new bbl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 02:59:29 -08:00
Khem Raj
b8db3af843 qemuriscv64: Switch to riscv forks of qemu and gdb
Use linux-libc-headers from oe-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 23:07:14 -08:00
Khem Raj
ffe8d5e864 riscv: This is where it all begins...
I'll explain when you're older!

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-10-04 10:09:23 -07:00