Commit Graph

112 Commits

Author SHA1 Message Date
Khem Raj
12f79e34ef libatomic_ops: Remove using master branch
OE-Core/master now uses 7.6 release where
RISC-V support is available upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 18:08:30 -07:00
Khem Raj
7e95e78074 Set BASH_SOURCE to use new path to oe-init-build-env
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 10:03:31 -07:00
Khem Raj
8fa69a8f27 switch to using OE-Core/bitbake instead of poky
We document using oe-core and bitbake but the environment was setting
for poky, this fixes that, plus riscv64 is not enabled as default tatget
in poky where as it is in oe-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 09:56:07 -07:00
Khem Raj
b9351d1e36 Update README formatting
Don't use shell syntax, avoid syntax highlighting
2018-08-29 09:43:03 -07:00
Khem Raj
64b2b1317b Update README
Forgot to mention to cd into riscv-yocto after creating it
2018-08-29 09:41:01 -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
04eef316eb gdb-riscv: Update the RISC-V GDB fork
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-28 11:45:15 -07:00
Alistair Francis
eb3cbcb90a gdb-riscv: Add bison dependency
Add the bison dependency for GDB that is required for newer versions of
GDB.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-28 11:45:15 -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
e64b2ee4de Modified kernel bbrecipe commitID and Create Kenrel 4.14 bbrecipe 2018-08-26 11:28:05 -07:00
sungwon.pino
3d52a339fe Update machine kernel version 4.18-rc7 2018-08-07 14:47:49 -07:00
Khem Raj
2c4d407d35 Update to tip of riscv-all branch pre 4.18 release
Addresses issue #20

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-05 17:27:59 -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
09732c2049 linux-riscv: Remove yocto kernel specific kernel-sample.scc
Since we do not have kmeta infrastructure for kernel
the qemu builds fail due to this file not being there and
qemu sort of forcing it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-16 15:33:35 -07:00
Alistair Francis
f157841d37 gdb: Update to latest RISC-V fork
Update to the latest RISC-V GDB and a patch to fix a compilation error

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-07-16 15:33:08 -07:00
Alistair Francis
ecd5f4ba89 nspr: Remove NSPR patch
RISC-V support is now included in the OE-Core NSPR package, this patch
is no longer required so let's remove it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-07-10 15:41:03 -07:00
Khem Raj
89c77d9ddb qemu-riscv: Switch back to master branch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-25 10:12:41 -07:00
Ricardo Salveti
7664795675 qemu-riscv: update to the latest
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-06-22 00:38:31 -07:00
Khem Raj
555e0f1fc4 Document syncing workspace intructions 2018-06-21 15:59:00 -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
Khem Raj
677de6e525 qemu-riscv: Update to latest
Adjust to oe-core change to not use autotools bbclass

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
Alistair Francis
11f45f75b3 recipes-kernel: Update to the 4.17 RISC-V Linux kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-06-21 06:22:29 -07:00
Ricardo Salveti
e07da3d676 riscv-pk: depend on virtual/kernel:do_deploy
bbl_payload requires the kernel deployed artifacts (e.g. vmlinux) during
compile time in order to generate the final bbl binary, so add
virtual/kernel:do_deploy as a do_compile dependency to get the
dependency task in the expected order.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-05-15 17:31:01 -07:00
Alistair Francis
3adeec9dc3 recipes-devtools/rpm: Remove the beecrypt dependency
beecrypt is no longer included in OE-core (since fb8ca4225f beecrypt:
remove) so remove our dependency on it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-05-08 21:48:56 -07:00
Ricardo Salveti
288d91ac4a libgpg-error: drop patch as it was merged in 1.28
libgpg-error was updated in oe-core to 1.28, which already includes the
patch adding risc-v support.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-05-07 14:39:21 -07:00
Khem Raj
62aaadbac0 linux-riscv: Update to latest
move riscv-all to 4.17-rc2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:52:57 -07:00
Khem Raj
831a056c89 cv-tools: Update to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:52:30 -07:00
Khem Raj
1dfa54ac46 qemu: Update to latest on riscv fork
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:51:54 -07:00
Khem Raj
d0ef492974 gdb: Update to 8.1+git
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:51:30 -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
ae10d093f6 riscv-pk: make it machine-specific
bbl has a machine specific payload (vmlinux), so it should be
machine-specific too. Otherwise riscv-pk build for different machines
will collide.

Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
2018-04-29 07:19:32 -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
b708de6a45 recipes-core: sysvinit-inittab: Work around getty issue
This is a workaround for the naming of the console.

This doesn't work around the issue for systemd based builds.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
2018-04-10 22:12:26 -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
Moritz Fischer
0473a5ba80 README: Add paragraph on how to use wic images
Add a paragraph on how to use the wic images to run on hardware

Suggested-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
2018-04-10 22:12:26 -07:00
Moritz Fischer
2056e12220 recipes-devtools: Rename folder to recipes-devtools
Rename the folder to recipes-devtools as most other layers call it.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
2018-04-10 18:04:25 -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
7ea142a9ea riscv-initramfs-image: remove WIC fstype
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-26 21:51:50 -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
Mirza Krak
1c407570ac wic: add kickstarter file for freedom-u540
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
30477f36f5 linux-riscv: add support for freedom-u540 machine
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00
Mirza Krak
28a63337d4 riscv-pk: depend on virtual/kernel instead of a task on that
This fixes a circular dep when used together with INITRAMFS_IMAGE_BUNDLE

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00
Mirza Krak
cd96e42069 riscv-pk: add support for HiFive Unleashed board
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -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
31cbcc591d linux-riscv: add defconfig for HiFive Unleashed development board
Copied from freedom-u-sdk/711c23e49eeac6f1f5b05b6e8bf86833c733a31b

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00
Mirza Krak
0bc4aac11d images: add ramdisk image suitable for usage with the HiFive Unleashed
The "default" boot mode at the moment is to bundle a ramdisk image in
the kernel and mount root in a ramfs.

This image is suitable to bundle with the kernel but it has minimal
features and basicly just boots.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00