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
Khem Raj
e503d131b1
travis.yml: Do not use multi-line commands
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-16 18:27:19 -07:00
Khem Raj
55879039a4
Add travis shield
2018-03-16 18:24:23 -07:00
Khem Raj
f2af47cad0
Add travis CI configuration
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-16 18:18:11 -07:00
Khem Raj
a6cec434af
Add license logo
2018-03-16 17:52:50 -07:00
Khem Raj
d8d012b8ae
Update build instructions
2018-03-16 17:46:11 -07:00
Khem Raj
b9717f0341
Add setup scripts
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-16 17:16:53 -07:00
Khem Raj
943dedf192
linux-riscv: Add recipe for 4.16 upcoming release
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-16 16:56:05 -07:00
Khem Raj
1741996b09
linux-riscv: Drop riscv64 baremetal from compatible machine
...
baremetal does not run linux kernel
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-16 16:55:27 -07:00
Taras Kondratiuk
16a13a6328
linux-riscv: use in-tree defconfig
...
It is easier to update kernel version if in-tree defconfig is used.
Signed-off-by: Taras Kondratiuk <takondra@cisco.com >
2018-03-16 15:11:01 -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
b993d03686
init-ifupdown: Add interfaces file for qemuriscv64
...
This is needed for kernel passed IP config to work
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-10 23:59:34 -08:00
Khem Raj
27a5e1ebca
qemu_riscv: Use riscv-all branch and drop upstreamed patches
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-10 22:49:22 -08:00
Khem Raj
56a0ee8c59
prelink: Add risc-v support
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-10 15:23:08 -08:00
Khem Raj
6372f14546
libatomic-ops: Fix host contamination [host-user-contaminated] QA warning
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-10 11:10:41 -08:00
Khem Raj
c359e72fd0
libatomic-ops: Switch to using master
...
RISC-V support is not in a release yet
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-10 11:07:05 -08: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
5b3d178967
README.md: Fix typo
...
Signed-off-by: Khem Raj <raj.khem@gmail.com >
2018-03-09 18:24:30 -08:00
Mirza Krak
f2149e9405
libgpg-erro: add riscv support
...
Backported patch from upstream
Signed-off-by: Mirza Krak <mirza.krak@endian.se >
2018-03-09 18:22:01 -08:00