Commit graph

386 commits

Author SHA1 Message Date
Robert Henry
0d5a7c956f Fix typo in setup.sh
s/unleased/unleashed/
2019-10-18 06:37:39 +05:30
Alistair Francis
91f6a2afbc layer.conf: Mark as compatible with zeus
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-10-08 15:42:42 -07:00
Vijai Kumar K
98708e9065 Fix some minor typos in documentation
Fix minor typos in README.md and docs/Plasma-Mobile-on-Unleashed.md.

Signed-off-by: Vijai Kumar K <vijaikumar.kanagarajan@gmail.com>
2019-10-01 07:23:56 -07:00
Alistair Francis
55a188ec70 openssl: Update the RV32 append to 1.1.1d
While we are updating OpenSSL let's also update the patch based on the
latest submission.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 15:36:40 -07:00
Alistair Francis
270c8cb7c1 linux-mainline: Move some configs into the include file
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 10:40:26 -07:00
Alistair Francis
90b51bb980 u-boot: Fix the mabc probing with 5.3 device tree
Fix the ethernet compatible sting name with the 5.3 kernel device tree.
This restores u-boots networking access when using the 5.3 kernel.

This patch is taken from the mainline master u-boot but rebased onto our
current 2019.07 + 21 patches u-boot. Once 2019.10 is released we can
drop all of these patches.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 10:40:26 -07:00
Alistair Francis
fd7b332336 linux: Use the defconfig for freedom-u540
Let's now use the defconfig for the HiFive Unleashed. We can still apply
any extra configs ontop with a config patch.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 10:40:26 -07:00
Alistair Francis
df313e796d recipes-kernel: Update to the 5.3 kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-16 10:40:26 -07:00
Alistair Francis
1b726bf8bb ltp: Remove RISC-V Patches
These no longer appear to be required, so let's remove them.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-10 07:13:23 -07:00
Alistair Francis
11504e23cf libffi: Remove from meta-riscv
OE-Core is using libffi 3.3-rc0 so remove the duplication from
meta-riscv.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-07 15:06:16 -07:00
Alistair Francis
9fd71929aa linux-yocto_4.19: Remove qemuriscv64 compatibile
No one is testing the 4.19 kernel and it probably doesn't work with the
latest OpenSBI work so let's just remove it from meta-riscv.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
296eb2c68b linux-yocto: Update the compatibility
Now that we are using the newer glibc port and 5.2 kernel headers remove
the qemuricv32 compatible machine from the 5.0 kernel and add it to the
5.2 kernel.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
eeb27aac67 openssl: Fix y2038 64-bit time_t build failures
Fix the build failures on 32-bit RISC-V.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
b5443214a2 busybox: Fix y2038 64-bit time_t build failures
Fix the build failures on 32-bit RISC-V.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Alistair Francis
f41e9accae linux: Update to the 5.2 kernel headers
OE-Core has upgraded to the 5.2 kernel headers. This means that all RV32
software now requires a 64-bit time_t. Update the glibc fork to an
implementation that works in a 64-bit time_t. At the same time we can
revert the linux kernel patch.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-09-02 12:59:55 -07:00
Khem Raj
0ec98278a9 setup.sh: Do not delete build dir
When building in a non CI env this all is not
needed as the user might accidentally end up losing all the build
artifacts that are not intendeed to. On CI systems its better to delete
it via extra step outside setup

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-29 22:45:36 -07:00
Alistair Francis
99cdf8d0cf machine/qemuriscv32: Remove device loader
Now that we are using QEMU 4.1 we can use QEMU's -bios option and
-kernel option and remove the device loader.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-08-23 07:33:03 -07:00
Khem Raj
04e6b2c12e riscv: Enable SECURITY_CFLAGS and GLIBC PIE for rv32/rv64
GCC PIE works fine

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-16 18:01:10 -07:00
Khem Raj
4c57b60dbe Do not disable GCCPIE
It seems to work fine with gcc9 and clang 9

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-15 15:48:09 -07:00
Alistair Francis
2d65e7069b glibc: Fix the glibc SRCREV
Now that OE is using glibc 2.30 and the SRCREV_glibc variable we need to
update our SRCREV.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-08-07 15:40:13 -07:00
Alistair Francis
f48bec2be0 u-boot: Add OSTree uEnx.txt file
Add the uEnx.txt file to meta-riscv to allow users to build OSTree
setups for the HiFive Unleashed. This is based on the original version
from Ricardo Salveti (@ricardosalveti).

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-08-06 18:41:13 -07:00
Alistair Francis
679a01b574 u-boot: Run the boomcmd if we load a uEnv.txt file
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-08-02 18:57:57 -07:00
Alistair Francis
cb0857efe5 freedom-u540: Use fitImage
Let's swap to using a fitImage by default. At the same time let's update
the u-boot boot commands to handle all the image types and support
loading a uEnv.txt file.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-25 15:19:43 -07:00
Alistair Francis
1b9f96753d linux: freedom-u540: Enable FuseFS support
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-25 00:56:17 -07:00
Ricardo Salveti
213de15b97 freedom-u540: prefer += instead of append for IMAGE_FSTYPES
Append causes IMAGE_FSTYPES to contaminate initramfs-based images, as
even when forcing it to be empty at the recipe level, it always shows up
after parsing.

Using += allows the recipe to set another value without being influenced
by the machine configuration.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2019-07-25 00:55:51 -07:00
Ricardo Salveti
fa8c8584c4 wic: add freedom-u540 wic for sota/ostree
Wic file to be used with sota/ostree (meta-updater), as the source for
root needs to be provided by the otaimage plugin.

It can be maintained outside this layer, but having it maintained at the
official meta-riscv layer makes it a lot easier for users experimenting
with meta-updater.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2019-07-25 00:55:26 -07:00
Ricardo Salveti
311ab1a78f freedom-u540: set UBOOT_DTB_LOADADDRESS
Based on the default u-boot machine configuration, useful for fitImage
support (known address for loading the device-tree).

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2019-07-24 11:50:56 -07:00
Khem Raj
9d52dc3a2c musl: Delete riscv patches as they are upstreamed in musl >= 1.1.23
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-23 18:15:49 -07:00
Ricardo Salveti
c23d485f94 u-boot: change overrides to be specific to freedom-u540
The changes done by this bbappend are all specific to freedom-u540, so
change every override to be machine specific.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
2019-07-18 20:51:05 -07:00
Alistair Francis
5d40902f03 linux: freedom-u540: Enable support for an INITRD
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-17 15:59:58 -07:00
Alistair Francis
b39d2fce6b linux: freedom-u540: Don't force command line arguments
Allow u-boot to overwrite the command line arguments if the user wants
to.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-17 15:59:58 -07:00
Palmer Dabbelt
bf6e63d854 Add meta-python before meta-multimedia
meta-multimedia depends on meta-python.  I'm not sure why it's
necessary to add all the dependent layers in order, but if I don't do
this I get a bunch of exceptions during setup.sh that result in no
meta-python in my bblayers.conf and thus a non-functional bitbake.

setup.sh was already explicitly adding meta-python, so this patch just
adds it before meta-multimedia.  That fixes the errors on my side.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2019-07-11 09:57:14 -07:00
sungwon.pino
82047e30b6 setup.sh: Changed to be buildable according to input of each MACHINE
Minor fix.
Changed to be buildable according to input of each MACHINE.
Add buildable machine's information in script.

Signed-off-by: sungwon.pino <sungwon.pino@gmail.com>
2019-07-10 09:44:13 -07:00
Alistair Francis
b19692e67d README: Update the README to include more detailed instructions
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-10 09:43:38 -07:00
Alistair Francis
7f90dea34e u-boot: Update the boot script to fall back to MMC load
Update the u-boot boot script to try a TFTP load first and if that fails
fall back to an MMC load.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-10 09:43:38 -07:00
Alistair Francis
4a6f008cec u-boot: Update the bbappend to apply to 2019.07
Update the bbappend to apply to 2019.07 and backport the new device tree
bindings and SPI/MMC support.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-10 09:43:38 -07:00
Alistair Francis
76f72ba89d freedom-u540.conf: Set the RISCV_SBI_FDT based on the kernel DTB
The Linux kernel 5.2 does not work with the device tree included in the
HiFive Unleashed firmware. To allow the kernel to boot let's build the
kernel's device tree into OpenSBI by default.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-10 09:37:34 -07:00
Alistair Francis
246f51d9b0 linux-mainline: Update to the 5.2 kernel release
Update to the 5.2 kernel release. This includes a large number of
upstream patches for the Unleashed. Due to the large defconfig changes
let's drop the 5.1 support when we upgrade.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-10 09:37:34 -07:00
Alistair Francis
58d8b69fcb freedom-u540-opensbi.wks: Change partition order
Change the partition order so that the /boot partition is the first
partition. This allows u-boots auto boot to work as expected. FSBL will
still load OpenSBI as it uses GPT UUIDs to match the boot partition.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-09 14:22:59 -07:00
Alistair Francis
bdde094e02 freedom-u540.conf: Include OpenSBI on boot partition
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-09 14:22:59 -07:00
Alistair Francis
6f816dda30 freedom-u540.conf: Include boot.scr.uimg in the boot partition
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-09 14:22:59 -07:00
Alistair Francis
05425ec9f7 freedom-u540.conf: Use double # for comments
We are about to add commented out lines as well as comments, which can
be confusing to read. To clear it up a bit let's add doubl # lines for
real comments.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-09 14:22:59 -07:00
Alistair Francis
a453e36434 linux: Remove unused 32bit.cfg kernel config
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-08 09:11:00 -07:00
Alistair Francis
b9ddd7d692 travis: Try to stop builds timing out
Instead of having a Travis CI system that constantly timesout let's do
two things:
 1. Adjust the Travis CI setup to be as fast as possible. By removing as
 many commands as we can, avoiding installing too many dependencies and
 doing a shallow git clone we can save time.
 2. Use timeout to test each major RISC-V machine for 55 minutes. If we
 run until we hit the timeout we count the test as a pass. This should
 allow use to rely on the tests passing before merging commits while
 also testing all three boards.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-07-08 09:10:35 -07:00
Alistair Francis
94ff1c259f conf/machine: Update with qemuriscv64 in OE-Core
Now that the qemuriscv64 machine is in OE-Core let's update the
meta-riscv layer to use that.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-06-24 19:15:08 -07:00
Alistair Francis
b85df8e861 linux-yocto_5.0: Don't specify qemuriscv64 as compatible
qemuriscv64 is already marked as compatible in OE-Core linux-yocto_5.0,
so let's remove the duplicate.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-06-24 19:15:08 -07:00
Alistair Francis
d0bd2937b9 recipes-bsp/opensbi: Remove OpenSBI from meta-riscv
OpenSBI is now supported in OE-Core, remove it from meta-riscv.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-06-24 19:15:08 -07:00
Alistair Francis
75d2ecbe9a u-boot: Fix UBOOT_ENTRYPOINT variable setting
Ensure that UBOOT_ENTRYPOINT is set correctly for the HiFive Unleased.

This patch also includes a small change that removes the incorrect and
unneeded arch option when using mkimage to create the boot script.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-06-24 19:14:51 -07:00
Alistair Francis
4157f3e012 gdb: Remove the RISC-V GDB
Now that GDB 8.3 has been merged into the meta layer we no longer need a
custom GDB version.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-05-21 09:29:33 -07:00
Khem Raj
ac17429667 layer.conf: Mark master warrior and newer compatible only
we are now getting changes which are in master ( would be 2.8 ) release
so its important to let users know that they can no longer use master
with older releases

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-21 09:29:22 -07:00