Commit graph

98 commits

Author SHA1 Message Date
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
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
Mirza Krak
293cdd2029 linux-riscv: move common parts between kernel versions in to .inc file
Reduces duplication.

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00
Mirza Krak
fe8fa317aa linux-riscv: clean-up
Cosmetic clean-up mostly based on the linux-yocto-template

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
be1cd58519 gdb-riscv: Switch to using upstream master + OE patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 20:23:36 -07:00
Khem Raj
9dfec0496f qemu_riscv.bb: Only build for risc-v when doing target builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:33:28 -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
4702abe1d4 riscv-qemu: Switch to master branch
qemu is now upstream so start using master branch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:16:20 -07:00
Khem Raj
aba18fdc33 prelink: Fix segfaults in prelink-rtld
prelink-rtld was segfaulting because prelink looks for
libs in lib64 folder for 64-bit machines, however on riscv
the directories are simply /lib and /usr/lib

Secondly define the ldso name for riscv

backport another patch to fix DT_NEEDED processing

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:14:19 -07:00
Khem Raj
9ffc522446 linux-riscv: Add earlyprintk.cfg for qemu
- early printk is must for qemu to work
- Remove dead code
- Update to tip of respective branches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:11:59 -07:00
Khem Raj
dfc6f46d96
README.md: Monitor master branch in travis 2018-03-17 18:27:00 -07:00
Khem Raj
e41a7ba4a4
Correct typo in github url in travis shield 2018-03-16 19:01:57 -07:00
Khem Raj
bb86c39270 travis: Use mkdir -p so we can reuse the existing directories
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 18:32:49 -07:00
Khem Raj
993fd422a1 travis: Enable repo init color prompt
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 18:30:29 -07:00