Commit Graph

331 Commits

Author SHA1 Message Date
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
Trevor Woerner
59408a8b23 kernel bumps
delete: 4.17 and 4.18
update: 4.19.36 -> 4.19.78 (LTS)
update: 5.0.14 -> 5.2.20 (EOL)
add:    5.3.5 (current stable)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-10-09 14:24:51 -04:00
Trevor Woerner
78d19c52fb layer compat: warrior -> zeus
Update the LAYERSERIES_COMPAT from warrior to zeus.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-10-09 07:37:15 -04:00
Trevor Woerner
74fe21490a u-boot tinker: remove patch
The tinker-rk3288 MACHINE is no longer in need of a patch to disable I2C in
SPL. The latest _defconfig no longer enables this option by default.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-08-27 11:58:48 -04:00
Trevor Woerner
3806ac2240 linux-stable: 5.0.13 -> 5.0.14
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-05-08 10:04:22 -04:00
Trevor Woerner
cb595da70d README: update status
As of early 2019, U-Boot has been fixed and the firefly-rk3288 boots again.
Update the status in the README to reflect this change.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-05-08 10:04:22 -04:00
Trevor Woerner
bc09904bc2 classes/rockchip-gpt-img.bbclass: cleanup GPTIMG_APPEND
Put MACHINE-specific tweaks into MACHINE configuration.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-05-08 10:04:22 -04:00
Trevor Woerner
14d058ab4c linux-stable: 5.0.9 -> 5.0.13
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-05-08 10:04:21 -04:00
Trevor Woerner
c8c1333050 tinker-rk3288 u-boot: disable CONFIG_SPL_I2C_SUPPORT
The SPL for the Tinker Board has to fit into 32 KiB. Currently this limit
is exceeded.

CONFIG_SPL_I2C_SUPPORT is not needed to move to main U-Boot. So let's
disable it.

Suggested-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

This patch was imported from the U-Boot patchwork:
https://patchwork.ozlabs.org/patch/1049112/

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-04-23 15:41:24 -04:00
Trevor Woerner
5169cb5931 linux-stable_4.19: 4.19.6 -> 4.19.36
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-04-23 05:30:02 -04:00
Trevor Woerner
988fe279da linux-stable_5.0: 5.0.9 add
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-04-23 05:11:10 -04:00
Trevor Woerner
605f5fe077 layer.conf: update for warrior
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2019-04-03 02:10:56 -04:00
Trevor Woerner
6e68ab9d95 linux-stable_4.19: add
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-12-05 21:35:00 -05:00
Trevor Woerner
0330f0a2c2 linux-stable_4.18: 4.18.8 -> 4.18.20
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-12-05 21:34:13 -05:00
Trevor Woerner
e353b08fc2 conf/layer.conf: update COMPAT to thud
Update this layer's compatibility declaration to the next release: thud.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-10-02 04:27:10 -04:00
Trevor Woerner
2476870e46 linux-stable: add 4.18
Since 4.17 is EOL, add a 4.18 recipe.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-09-15 12:00:05 -04:00
Trevor Woerner
2a0732ef9d linux-stable: 4.17.17 -> 4.17.19
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-09-15 12:00:05 -04:00
Trevor Woerner
35ef6a6100 README: re-write
Create a more modern README file for this BSP layer clarifying patch
submission, adding status and history, and removing build instructions
(which are better described with OE/Yocto Project documentation).

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-09-14 12:21:20 -04:00
Shyam Saini
4c4d7dae31 conf: machine: Add support for vyasa-rk3288
This patch adds initial support for the Amarula Vyasa Board.

Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
2018-09-14 11:13:48 -04:00
Trevor Woerner
c84de579e2 README: remove bouncy email
The provided email for Romain doesn't appear to be valid anymore.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-08-30 09:42:16 -04:00
Trevor Woerner
498b6d8245 linux-stable: 4.17.11 -> 4.17.17
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-08-21 00:25:45 -04:00
Trevor Woerner
c8f65ec56f linux-stable: 4.17.6 -> 4.17.11
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-08-01 11:55:50 -04:00
Trevor Woerner
654e9d61c9 linux-stable: 4.17.3 -> 4.17.6
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-07-13 18:28:07 -04:00
Trevor Woerner
a8ce2c0b9b rockchip-gpt-img.bbclass: fix dts filename
Remove the "${KERNEL_IMAGETYPE}" (i.e. zImage) that preceeded the dts file
since that file no longer has the image-type prepended to it in the deploy
dir.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2018-07-13 18:28:07 -04:00