Commit graph

139 commits

Author SHA1 Message Date
Khem Raj
aea3a88793 riscv-pk: Upgrade to latest
Drop --with-arch supressing patch its properly conditionalized now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-14 21:15:20 -08:00
pino-kim
a561914f3d riscv-fesvr : Update to the latest version
Update to the latest version of the RISC-V Front-end Server

Signed-off-by: pino-kim <sungwon.pino@gmail.com>
2018-11-13 06:50:21 -08:00
sungwon.pino
d6be7444f5 riscv-spike : Update to the latest version
Update to the latest version of the RISC-V Spike ISA Simulator.

Signed-off-by: pino-kim <sungwon.pino@gmail.com>
2018-11-13 06:50:21 -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
Alistair Francis
0ea55df970 recipes-kernel: Add the 4.19 kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-11-05 18:57:51 -07:00
Alistair Francis
30eb9be70c riscv-pk: Update to the latest version
Update to the latest version of the RISC-V Proxy Kernel. This means we
are running an updated bbl.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-11-05 13:14:09 -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
ea2c8ae8f4 u-boot: Use mainline u-boot
Now that QEMU RISC-V virt machine support is in master u-boot use the
mainline u-boot instead of a fork.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-10-08 14:10:37 -07:00
Alistair Francis
08b56cfe69 recipes-kernel: Upgrade to the latest 4.18 kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-10-08 10:58:24 -07:00
Alistair Francis
2f79768d7a recipes-kernel: Swap to the maintained RISC-V branch
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-10-08 10:58:24 -07:00
sungwon.pino
670fc2ef6d recipes-kernel: Update kernel SUMMARY and DESCRIPTION
And add SUMMAARY, DESCRIPTION field to provide imformation of
kernel bbfile.

Signed-off-by: pino-kim <sungwon.pino@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-10-08 10:58:24 -07:00
Alistair Francis
11ad414441 recipes-kernel: Remove outdated 4.14 and 4.15 kernels
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-10-08 10:58:24 -07:00
Khem Raj
3de0744bbd u-boot: Be mindful of other BSPs when it comes to u-boot overrides
We are sort of hijacking OE-Core recipe here, so lets be careful and
make it such that it only happens for risv64, which makes a multi-BSP
scenario work again.

This repo seems to be rebasing :( so add rebaseable=1 so bitbake knows
about it

update to latest rev as of today

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-28 11:57:00 -07: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
sungwon.pino
eeffb318ad Add systemd for distro init manager (derived from #34 comment)
distro append systemd for a init_manager

Signed-off-by: pino-kim <sungwon.pino@gmail.com>
2018-09-25 15:16:08 -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
Alistair Francis
5a43350492 recipes-bsp/u-boot: Use a u-boot fork for RISC-V
Use fork of u-boot that allows us to boot u-boot on the QEMU RISC-V virt
machine.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-09-25 11:39:18 -07:00
Khem Raj
c439bc57b5 setup.sh: Check for dash as default shell and change it to bash if possible
could fix #26

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-24 08:46:29 -07:00
Khem Raj
cb2be0259e setup.sh: Fix typo in defining USER_CLASSES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 08:34:19 -07:00
Khem Raj
0add9dafa5 setup.sh: Enable additional distro policies
These policies enabled essential features like package management
and ssh server in images, additionally remove static libs and use
uninative

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 07:27:03 -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
4bc2cb3584 linux-riscv: Enable virtio cryptodev
This helps with OpenSSL 1.x calling getrandom() API
not hanging on openssh key generation

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 07:27:03 -07:00
Khem Raj
3048b41652 prelink: Remove bbappends and patches
They have landed upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-07 08:44:10 -07:00
Khem Raj
51b766a7b3 Document building a full featured image with SDK
This can be used for on device building

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05 13:30:25 -07:00
Khem Raj
f2ec7afd1f gdb: keep empty gdbserver
gdbserver is still not available but we can keep the empty
package so we can build complex SDKs from OE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 19:03:01 -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
e9c5a90783 perf: Disable libunwind support via PACKAGECONFIG
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 18:08:30 -07:00
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