Commit graph

386 commits

Author SHA1 Message Date
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
Khem Raj
b9be00d487 qtbase,qtdeclarative: Add -pthread to linker flags
Helps to link in atomic functions on riscv64

Fixes
qtestcase.h:359: more undefined references to `__atomic_fetch_xor_1' follow
collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-12 21:44:07 -07:00
Khem Raj
643ab0b4c4 Add qt5 to dynaic layers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-12 21:44:07 -07:00
sungwon.pino
9e1acc045b mariadb: remove mariadb verison 5.x bbappend
mariadb update to version 10.3.13
so we don't need to have mariadb version 5.x
bbappned and patch anymore.

Signed-off-by: pino-kim <sungwon.pino@gmail.com>
2019-03-08 09:56:41 -08:00
Khem Raj
550e98c1bd opensbi: Fix build with gcc9 tentatively
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-08 05:51:32 -08:00
Khem Raj
551482f31e ltp: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-08 05:51:32 -08:00
Alistair Francis
eac35fc45a recipes-kernel: Remove pci.cfg
PCIe support is now enabled by default in the RISC-V defconfig, remove
the extra .cfg file.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 22:37:41 -08:00
Alistair Francis
8c8e8eabc9 linux-kernel: Remove the 4.19 kernel
The 4.19 kernel doesn't work with openSBI or the new defconfig, so
remove it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 22:37:41 -08:00
Alistair Francis
672c73f1be riscv-pk: Remove riscv-pk as we no longer use BBL
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 22:37:41 -08:00
Alistair Francis
fbfab7fbaf qemuriscv: Enable earlycon via SBI
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 20:23:00 -08:00
Alistair Francis
f28b3cfb9a qemuriscv: Enable OpenSBI by default for booting
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 20:23:00 -08:00
Alistair Francis
3ee1f8f2d4 qemuriscv: Bump kernel versions to work with OpenSBI
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 20:23:00 -08:00
Alistair Francis
25a6b5055c linux-yocto: Set qemuriscv32 and qemuriscv64 as compatible
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-07 20:23:00 -08:00
Alistair Francis
354aa21689 docs: Add information on building Plasma Mobile for RISC-V
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-04 18:24:09 -08:00
Alistair Francis
cf0877972b wic: Bump up the boot loader partition size
This allows us to future proof changes in openSBI as we can just dd the
bootloader to the SD card.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-04 18:21:38 -08:00
Alistair Francis
cf24c54a36 README.md: Update to use openSBI
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-04 18:21:38 -08:00
Alistair Francis
6cbef3699d freedom-u540: Enable OpenSBI by default for booting
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-04 18:21:38 -08:00
Alistair Francis
d6e7e6f7db recipes-kernel: linux-riscv: Update to 5.0 release
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-03-04 18:21:38 -08:00
Khem Raj
5b35295781 mariadb: Fix build issues on risc-v
Fixes issue #99

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-03 22:07:15 -08:00
Alistair Francis
577898d7ae opensbi: Bump to version 0.3
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-27 10:22:02 -08:00
Alistair Francis
841a445b60 opensbi: Fix 32-bit cross compile
There appears to be some strange behaviour with OE's 32-bit toolchain
which causes soft float and hard flot linker errors. The same issue is
seen when building u-boot. For now we can fix the problem by not
specifying the mabi or march when building openSBI.

We also need to backport a patch that has been submitted to ensure the
32-bit build works.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-24 08:17:54 -08:00
Alistair Francis
b5f422571d opensbi: Bump to version 0.2
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-24 08:17:54 -08:00
Alistair Francis
14d0ed47db baremetal-riscv: Remove BBL
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-24 08:17:19 -08:00
Alistair Francis
2ec848f8f3 linux-yocto-dev: Fix missing stat64 system call
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>
2019-02-12 11:45:45 -08:00
Alistair Francis
47b2303211 glibc: Update the 32-bit glibc fork
Update the glibc fork to the latest submission.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-05 11:04:55 -08:00
Alistair Francis
10fe1ad628 libgpg-error: Remove riscv32 backport patch
The meta layer now has version 1.35 so this patch is no longer needed.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2019-02-04 19:21:02 -08:00