Commit graph

261 commits

Author SHA1 Message Date
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
Alistair Francis
4dd427ad88 linux-mainline: Fix kernel version checks
Fix the linux-mainline kernel version checks now that we are using
5.1.1.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-05-13 11:28:11 -07:00
Alistair Francis
e3e7f75961 linux: Update to 5.1 stable
This patch does the following:
 - Update the current linux-mainline_5.1 recipe to AUTOREV from the
   stable branch
 - Use the linux-mainline_5.1 by default for the HiFive Unleashed
 - Remove the older linux-riscv_5.0 recipe
 - Rename the common include to linux-mainline-common.inc

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-05-07 11:54:29 -07:00
Alistair Francis
15696914b9 u-boot: Check if ${UBOOT_ENV}.txt exists before using it
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-05-05 23:42:11 -07:00
Alistair Francis
9e781551e5 freedom-u540: Setup u-boot autoboot for TFTP
This patch does two things:
 - Patches u-boot to set the server ip by default
   - When u-boot has SD/MMC support we should remove this patch and
     instead set enviroment variables from uEnv.txt

 - Adds a tftp-boot.txt file
   - This file is built into a boot.src.uimg file which should then be
     copied to the TFTP directory. This file should be used by those who
     are intereted in u-boot autobooting from TFTP.
   - In the future a seperate boot file can be added allowing autoboot
     from the SD card

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
ce7cce91e8 freedom-u540: Allow u-boot to be an OpenSBI payload
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
a05b1d8932 u-boot: Add support for SMP boot on Freedom U540
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
bb370a5a30 opensbi: Fix the u-boot dependency
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
ef0189f2d8 wic: Update the sdcard generation
Update the SD card generation to follow a more standard sdcard boot
flow. At the moment we don't use this new boot flow, but let's at least
have it ready for future use.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-22 15:37:08 -07:00
Alistair Francis
b9e9d6942e linux-mainline: Use the new 32-bit defconfig in Linux 5.1
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-18 10:42:51 -07:00
Alistair Francis
e70dc53525 linux-mainline: Fix the 32-bit boot
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-16 20:46:45 -07:00
Alistair Francis
bf5b279c3d freedom-u540: Don't hardcode linux-version
Don't hardcode the Linux version to make it easier to overwrite the
Linux provider. There is only one linux-riscv version so it is not
required.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-16 20:46:17 -07:00
Alistair Francis
d77546d36e qemuriscv: Allow overriding RISCV_SBI_PLAT
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-04-10 11:16:42 -07:00
Gurjeet Singh
c3c86618f8 Added a missing word to docs 2019-04-03 09:09:31 -07:00
sungwon.pino
a0cbbaf964 gdb: Update to the latest version
Update to the latest version of the GDB.

Signed-off-by: pino-kim <sungwon.pino@gmail.com>
2019-04-01 08:25:41 -07:00
Alistair Francis
3e5c7c0661 docs: Update the Plasma Mobile docs
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-28 21:18:27 -07:00
Khem Raj
682f56e1b8 layer.conf: Add 1.7 (warrior) to compatible releases
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-26 14:55:18 -07:00
Khem Raj
155202886e layer.conf: Disable PIE for riscv32 as well
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-26 14:55:18 -07:00
Khem Raj
c7887bcfed layer.conf: Drop setting SECURITY_FLAGS form now defunct riscv-pk recipe
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-26 14:55:18 -07:00
Chin Huat Ang
014066d318 qemuriscv.inc: use ttyS0 as serial console
Fix /etc/inittab issue seen when running "runqemu nographic serial":

  INIT: Id "AMA0" respawning too fast: disabled for 5 minutes

Signed-off-by: Chin Huat Ang <chinhuat@gmail.com>
2019-03-26 11:17:51 -07:00
Khem Raj
ddbc816c35 freedom-u540.conf: set console to ttySIF0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-21 09:06:06 -07:00
Khem Raj
0aea644bb7 libunwind: Fix build for riscv64
Fixes errors like
| checking for ELF helper width... configure: error: Unknown ELF target: riscv64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-21 09:06:06 -07:00
Alistair Francis
a14f6bbc93 recipes-kernel: linux-mainline: Initial commit of mainline 5.1 kernel
Add a linux-mainline kernel from 5.1-rc1. The idea is that this kernel
will autorev the 5.1 development cycle and then be updated to autorev
the 5.1 stable branch after release.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-21 06:12:54 -07:00
Alistair Francis
ab1ebdc9ba glibc: Update 32-bit glibc
We can also remove the 32-bit fix that was included in the kernel.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-21 06:12:11 -07:00
Alistair Francis
41ef243e31 qemuriscv: Add the virtio-rng device to pass entropy to the guest
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-14 19:34:26 -07:00
Alistair Francis
b7a47b47b5 machine: qemuriscv: Update the serial consoles
Update the serial console settings to be more supportive of running QEMU
ptests.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-14 19:34:26 -07:00