Commit Graph

254 Commits

Author SHA1 Message Date
Trevor Woerner
9088965c3a update layer compatibility for hardknott
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2021-03-21 13:45:51 -04:00
Khem Raj
019ee14cf9 layer.conf: Add hardknott to compatible release branches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-18 09:40:44 -04:00
Trevor Woerner
8703709519 tinker board: refactor machine config
Create a common conf/machine/include/tinker.inc and re-spin
    - conf/machine/tinker-board.conf
    - conf/machine-tinker-board-s.conf
to just contain the differences.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2021-03-04 23:37:13 -05:00
Trevor Woerner
d6ffd0afc4 COMPATIBLE_MACHINE cleanup
The COMPATIBLE_MACHINE strings were getting unwieldy, so switch to the
MACHINEOVERRIDE notation so they're neater.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2021-03-04 23:36:44 -05:00
Trevor Woerner
43de504d48 rock-pi-e: add
Add support for Radxa's ROCK Pi E device
https://wiki.radxa.com/RockpiE

It's a great surprise to find upstream U-Boot and the Linux kernel already
provide support for this board! On the kernel side this support was
added in 5.11. However, that support is so new that even linux-yocto-dev
(which is based on 5.11) doesn't include the commits that add support
for this board yet. As a result I've added a custom Linux kernel recipe
(linux-stable-bleeding) which should, in time, become unnecessary.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2021-02-26 22:14:28 -05:00
Joshua Watt
ad65fd7736 rock-pi-4: Split our variant machines
Splits out the three variants of the rock-pi-4 (A, B & C) into their own
machines. Unfortunately, it is not possible to have a single machine
that works for all three, as there isn't any known ways for the
bootloader to distinguish them. The old rock-pi-4 machine is kept around
for use with older kernels

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2021-01-29 22:10:49 -05:00
Trevor Woerner
abafbdbacf linux-yocto_5.8.bbappend: remove associated patch
This should have been done in the last commit. Thanks Joshua Watt for pointing
this out to me.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2021-01-25 18:18:05 -05:00
Trevor Woerner
8831f3e2a9 linux-yocto_5.8.bbappend: remove
linux-yocto_5.8 has been removed from the list of kernels found in
openembedded-core, therefore this bbappend is no longer needed.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2021-01-23 14:35:14 -05:00
Joshua Watt
14ee5aa7c6 Fix Rock Pi 4 serial port
Fixes the serial port output stopping mid way through the boot process
by reverting the kernel commit that caused it.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-12-17 11:58:37 -05:00
Trevor Woerner
b6cb9881a7 LAYERSERIES_COMPAT: → gatesgarth
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-10-17 11:58:21 -04:00
Trevor Woerner
70c2725ae8 arm-none-eabi-gcc: remove
We already have a dependency on meta-arm/meta-arm in order to build
tf-a (there's no point carrying our own recipe when there's a common,
consolidated one to use in meta-arm).

meta-arm/meta-arm now has a dependency on meta-arm/meta-arm-toolchain.
meta-arm-toolchain has a recipe for virtual/arm-none-eabi-gcc, so we might
as well use that too, and remove our own version. Note that using the
meta-arm-toolchain recipe required a small change to how the dependency is
specified.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-07-20 23:25:43 -04:00
Joshua Watt
f0a10e707f wic: Use --offset and --fixed-size instead of --align and --size
The --align argument isn't intended to make a partition exist at a fixed
location like the Rockchip boot ROM requires. Use the recently added
--offset argument which will fail to build the image if the partition
can't be placed at the correct location. Also used --fixed-size to make
sure that Wic isn't inserting hidden padding that changes things around.

Finally, the location of the rootfs isn't required to be at sector
262144 since u-boot and the kernel reads the partition table to find it
and actually hasn't been at this location anyway since Wic has been
padding the /boot partition, so remove it's alignment requirements.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-06-25 16:38:49 -04:00
Joshua Watt
d269803649 Use TF-A recipe from meta-arm
Converts the build to pull the canonical TF-A recipe from meta-arm
instead of duplicating it in this layer.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-06-25 16:38:48 -04:00
Joshua Watt
3a123838fd arm-trusted-firmware: Upgrade 2.2 -> 2.3
Upgrades arm-trusted-firmware to the latest version, which fixes a bug
where the RK3399 would hang during a warm reboot

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-04-29 00:02:58 -04:00
Trevor Woerner
fa058b869b linux-yocto: rockchip COMPATIBLE_MACHINEs
Add bbappend for the remaining linux-yocto kernels.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-04-19 00:39:54 -04:00
Joshua Watt
18b5329e2c Use linux-yocto kernel from OE-core
Updates all machines to use the linux-yocto kernel from OE-core instead
of maintaining distinct kernels in this repository.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-04-19 00:39:54 -04:00
Trevor Woerner
fa06a975a8 LAYERSERIES_COMPAT: update for dunfell
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-03-29 23:20:52 -04:00
Trevor Woerner
43434bd51c kernel bumps
mainline: 5.6-rc3 -> 5.6-rc7
	stable: 5.5.7 -> 5.5.13
	longterm: 5.4.23 -> 5.4.28
	longterm: 4.19.107 -> 4.19.113

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-03-28 04:26:54 -04:00
Trevor Woerner
ec8e858e43 kernel bumps
longterm 4.19.106 -> 4.19.107
	longterm 5.4.22 -> 5.4.23
	stable 5.5.6 -> 5.5.7

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-03-03 23:23:03 -05:00
Trevor Woerner
a96d36245d kernel bumps
longterm 4.19.103 -> 4.19.106
	stable 5.4.19 -> longterm 5.4.22
	stable 5.5.3 -> 5.5.6
	mainline 5.6-rc3 (new)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-28 11:58:52 -05:00
Trevor Woerner
91b8563a6b linux-longterm: set COMPATIBLE_MACHINE
The older, longterm, kernel doesn't have support for some of the newer
MACHINEs, so list the ones it does support explicitly.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-14 01:17:34 -05:00
Trevor Woerner
7068abcd34 kernel bumps
longterm: 4.19.101 -> 4.19.103
stable: 5.4.17 -> 5.4.19
stable: 5.5.1 -> 5.5.3

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-14 00:36:08 -05:00
Trevor Woerner
9e85e28587 remove image
This is a BSP layer, not a software demonstration layer.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-14 00:32:31 -05:00
Trevor Woerner
70587b9913 wic cleanup
Now that we've switched to using wic for image layout, we can remove the
unused recipes for proprietary vendor tools.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-14 00:26:52 -05:00
Trevor Woerner
d926dcdd54 veyron-speedy: remove machine
This MACHINE hasn't built successfully in a long time. Remove it, and
everything associated with it that isn't used anywhere else.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-14 00:25:26 -05:00
Sergey 'Jin' Bostandzhyan
3f8c52b2c4 Allow to override WKS_FILE variable
Currently machine configs define the partition layout for each machine
by setting the WKS_FILE variable. However, there are situations where it
may be needed to use a different, non default layout. To simplify such
configurations we will set WKS_FILE using ?= so that it can be easily
overriden in local configurations.

Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
2020-02-11 11:24:40 -05:00
Sergey 'Jin' Bostandzhyan
022877f438 Add tinker-board-s machine configuration
Asus Tinker Board-S has emmc on mmcblk1, this is also the default
configuration when building the image. If you need an image for booting
from the sd card set RK_BOOT_DEVICE to mmcblk0

Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
2020-02-11 10:20:58 -05:00
Sergey 'Jin' Bostandzhyan
1aea373d88 Add configuration parameter to set boot device for the image
wic modifies /etc/fstab on the root file system during image generation,
without the --ondisk parameter it assumes some default device name which
leads to an /etc/fstab file populated with /dev/sda entries.
This is not correct for the machines in the rockchip layer which use
mmcblkX.

This patch introduces an RK_BOOT_DEVICE option which is being set in the
machine configuratoin and which is being used in the wks files.
The variable expansion in the wks is handled by propagating the variable to
the wic environment.

This results in correct /etc/fstab entries and in a correct kernel
bootargs root= parameter.

Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
2020-02-11 10:20:58 -05:00
Trevor Woerner
6e0ce163b0 kernel: enable -c menuconfig
This patch allows the user to run menuconfig from bitbake.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-03 14:03:27 -05:00
Trevor Woerner
f45146a0d7 rename: linux-stable.inc -> linux-mutual.inc
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-03 13:40:22 -05:00
Trevor Woerner
21dc7d1caa linux-stable: 5.5.1 add
Remove linux-stable_5.3.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-03 12:33:20 -05:00
Trevor Woerner
e211102cd3 linux-stable: 5.4.2 -> 5.4.17
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-03 12:24:33 -05:00
Trevor Woerner
7b9df638e5 linux-longterm: 4.19.88 -> 4.19.101
Changed name from linux-stable to linux-longterm.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2020-02-03 11:54:29 -05:00
Joshua Watt
0b7d842fca tinker-rk3288: Rename to tinker-board
Renames the tinker-rk3288 to match the convention of naming the machines
with the manufacturers official board name.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-02-03 11:05:55 -05:00
Joshua Watt
764e7c8431 rock-pi-4: Fix description
The Rock Pi 4 is based on a RK3399, not a RK3288

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-02-03 11:05:26 -05:00
Joshua Watt
a0162457c5 rock-pi-4: Add machine
Adds the machine definition for the Rock Pi 4 based around the RK3399
SoC.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-01-27 16:32:28 -05:00
Joshua Watt
01467664da rk3399: Add generic rk3399 support
Adds support for the rk3399 SoC. Notably:
 *) Split out the default kernel config and image type from
    rockchip-defaults.inc now that not all support chips are ARMv7
 *) Apply a patch to Arm Trusted Firmware to fix a compile issue
 *) Arm Trusted Firmware requires the arm-none-eabi-native compiler to
    compile the M0 firmware.
 *) Modify u-boot to pull in the ATF files when compiling
 *) The rk3399 is support by the panfrost driver in mesa, so enable it

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-01-27 16:32:19 -05:00
Joshua Watt
1035b5d734 gcc-arm-none-eabi-native: Add recipe
Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R
and Cortex-M processors from ARM. This toolchain is required to build
Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile
some firmware for the M0 coprocessor.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-01-27 16:32:09 -05:00
Joshua Watt
2b92cf7f8e arm-trusted-firmware: Add recipe
Adds a recipe to build Arm Trusted Firmware

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-01-27 16:31:55 -05:00
Joshua Watt
fdd07d09c2 rk3288: Add common rk3288 boot include wic
Adds a common rk3288-boot.wks file that all machine kickstart files can
include to get their boot partitions correctly configured.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-01-27 10:18:44 -05:00
Joshua Watt
d59f392f3f rk3288: Add wic.bmap images
Adds the wic bitmap images to IMAGE_FSTYPES. bmaptool can use these
files to efficiently copy sparse images to media

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-01-24 14:11:28 -05:00
Joshua Watt
143227b5d4 Remove u-boot-rockchip
Removes the u-boot-rockchip recipe. Upstream oe-core has dropped support
for Python2, which is required to build this recipe. It appears that no
machines are actually using it anymore, so it can be removed.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2020-01-24 13:29:30 -05:00
Joshua Watt
5e96349999 rk3288: Convert to using wic
Coverts the firefly-rk3288, tinker-rk3288, and vyasa-rk3288 machines to
use wic instead of the rockchip-gpt-img class. The rock2-squared machine
has to keep the older image class because u-boot doesn't provided a
combined idbloader for it.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2019-12-12 01:20:26 -05:00
Joshua Watt
e8fd1f92ed rk3288: Append GPT image type
Appends the GPT image type to IMAGE_FSTYPES instead of overriding. This
allows additional types to be preserved if they are specified in
local.conf

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2019-12-10 23:00:58 -05:00
Trevor Woerner
6732e8b981 rock2-square: reinstate non-idbloader u-boot
Unfortunately, although the rock2-square is an rk3288-based device, its U-Boot
has not been updated to use the TPL+SPL/idbloader mechanism. This commit adds
back the previous U-Boot packaging but only for the rock2-square.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-12-10 12:52:18 -05:00
Joshua Watt
85f1ba657f mesa: Enable panfrost for rk3288 SOC
Configures mesa to build in the panfrost and render-only KMS driver
when building for the rk3288 SOC. The panfrost kernel module is already
compiled as a module by default for armv7.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2019-12-09 22:59:15 -05:00
Trevor Woerner
017e3e3868 linux-stable: 5.2.20 -> 5.4.2
remove: 5.2.20
add: 5.4.2

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-12-09 21:37:08 -05:00
Trevor Woerner
7afe95d11c linux-stable: 5.3.5 -> 5.3.15
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-12-09 21:36:56 -05:00
Trevor Woerner
756ca9711d linux-stable: 4.19.78 -> 4.19.88
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-12-09 21:36:49 -05:00
Joshua Watt
295b58facf Fix rk3288 bootloader
Recent versions of u-boot use a combined SPL/TPL (called idbloader.img)
in the loader1 partition, which then loads the full u-boot from the
loader2 partition. Update the GPT partition class to reflect this
change. Additionally, remove the u-boot bbappend since it is no longer
needed.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
2019-12-09 21:32:23 -05:00