The planned upstream release of 32-bit RISC-V glibc will support statx,
so this patch will not be required in the kernel.
Unfortunately the current 32-bit RISC-V glibc fork does not implement
statx. To allow newer kernels to boot into userspace let's apply this
patch that can be dropped when the glibc port is merged.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This adds openSBI support. openSBI aims to be the reference
implementation for the M mode firmware. We are going to use it to remove
BBL from the boot flow.
The eventual aim is to have openSBI merged into the meta layer to
support qemuriscv* machines.
Unfortunately openSBI requires a 5.0 kernel, so at the moment we aren't
going to use it.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Update the Freedom U540 defconfig to work with:
- AMD GPUs attached with PCIe MicroSemi Expansion board
- Including Wayland and X11 display via HDMI
- USB input attached with PCIe MicroSemi Expansion board
At the same time we are also swapping to use the config output of
savedefconfig instead of copying the entire .config file. This
simplifies the defconfig management.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This is needed when building gdb from git, in OE-core gdb is built from
tarballs where this issue is not seen, so keep this fix local here
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Add functionality to bbl to modify the device tree passed to Linux to
specify the MicroSemi PCIe device.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
To avoid conflicts with the MicroSemi PCIe root complex (the one most
commonly used) remove the Xilinx config.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Add the 4.20 kernel. This involves editing some of the required
Freedom-U540 patches as they conflict with the 4.20 tree, but we want to
keep them for the 4.19 tree.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
In preperation for the 4.20 kernel release (and to help test) add the
4.20 kernel but don't set it as the default yet.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
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>
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>
libffi 3.3-rc0 has much better RISC-V suppor then our single patch. Use
the RC release instead of a single patch.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
The mainline master GDB is very good now and even includes support for
debugging RISC-V Linux applications. Use the master branch until the
next GDB release is cut with all of this new support.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>