Commit Graph

189 Commits

Author SHA1 Message Date
Romain Perier
5da3cc7529 linux: version bump to 4.11-rc8
Linux kernel 4.11 being released soon, bump recipe to 4.11-rc8.

Signed-off-by: Romain Perier <romain.perier@collabora.com>
Tested-by: Trevor Woerner <twoerner@gmail.com>
2017-04-29 02:25:18 -04:00
Romain Perier
2d16766947 README: Update contribution section
Re-worded contribution section in order to send patches correctly on the
mainling list, including the correct headers in the mail (To: for
maintainers and Cc: for the ML)

Signed-off-by: Romain Perier <romain.perier@collabora.com>
2017-04-28 14:18:09 +02:00
Trevor Woerner
9771de6331 machine: rk3288: don't hard-code kernel choice
Allow the user to ultimately choose the kernel. Make 'linux' the _preferred_,
not the _required_.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Eddie Cai <eddie.cai.linux@gmail.com>
2017-03-18 12:52:15 -04:00
Trevor Woerner
3fe23069b5 u-boot-rockchip: race condition fix
Following on from the conversation here:
https://lists.yoctoproject.org/pipermail/yocto/2017-February/034681.html

It turns out there was a race condition in u-boot which explains why some
people saw failures one way and others say failures the other way. This race
has been fixed in openembedded-core:

http://git.openembedded.org/openembedded-core/commit/?id=60c90398580998b2379bb438f0f75b29285135a5

Therefore we need to align with the current behaviour.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-15 11:52:36 -04:00
Trevor Woerner
57b8048022 u-boot-rockchip: fix for binutils-2.28
The recent upgrade from binutils-2.27 to binutils-2.28 on openembedded-core
caused a build failure for u-boot-rockchip:

	arm-oe-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try linking with -N

Linking with -N fixes the issue. This patch adds that flag to the build so it
succeeds.

This has been build-tested, as well as run-tested on the firefly-rk3288.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-15 10:29:49 -04:00
Trevor Woerner
c912889014 u-boot-rockchip: add DEPENDS for bc
Another native tool added due to recipe-specific sysroots (RSS).

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-15 10:15:40 -04:00
Trevor Woerner
2ee7de26a5 u-boot-rockchip: add DEPENDS for dtc
The recent "recipe-specific sysroot" change in openembedded-core has caused
the build to be more strict about what tools can be used from the host. As
such it's probably best to use the generated dtc for u-boot.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-15 10:00:41 -04:00
Trevor Woerner
9ed7642ffd u-boot-rockchip: add
This recipe was taken from the Rockchip team's recipe at
6a139d5b75

It was mostly written by Jacob Chen <jacob-chen@iotwrt.com> and I've made a
couple small modifications.

Reviewd-by: Eddie Cai <eddie.cai.linux@gmail.com>
Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-06 11:12:11 -05:00
Trevor Woerner
4d0f7dab58 classes: rockchip-gpt-img: add
This bbclass was taken from the Rockchip team's work at
53d2e2e474
It was mostly written by Jacob Chen <jacob-chen@iotwrt.com>. I've made some
small modifications and added it.

Older images used (what Rockchip calls) the "legacy parameter" format. Newer
images use u-boot and a GPT partitioning scheme. This class allows the build
to generate a gpt-img file that can either be flashed to eMMC or written to an
SDcard (the same image is used for both).

This is the new image format used for rk3288 SoCs (e.g. the Firefly board).

Reviewed-by: Eddie Cai <eddie.cai.linux@gmail.com>
Signed-off-by: Jacob Chen <jacob-chen@iotwrt.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-05 10:43:02 -05:00
Trevor Woerner
ae1f699851 machine: rk3288: GPT image support
Configure any rk3288 build to generate the new GPT image which is then either
flashed to eMMC or dd'ed to an SDcard.

Reviewed-by Eddie Cai <eddie.cai.linux@gmail.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-02-26 01:26:46 -05:00
Trevor Woerner
1a36604417 machine: firefly-rk3288: specify bootloader
Set the default preferred bootloader for firefly-rk3288 to be u-boot-rockchip
and set the default name of the SPL binary.

Reviewed-by Eddie Cai <eddie.cai.linux@gmail.com>
Reviewed-by: Jacob Chen <jacob-chen@iotwrt.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-02-26 01:24:07 -05:00
Trevor Woerner
b8349d906e machine: rk3288: enable SoC-specific assignments
Enable machine overrides for RK3288.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-02-26 01:13:48 -05:00
Romain Perier
7525c6a895 README: Update informations in README
This updates obsolete informations in the README, like the suggested
version for oe-core or poky. It also updates my email address.

Signed-off-by: Romain Perier <romain.perier@collabora.com>
2017-02-19 11:56:07 +01:00
Eddie Cai
a2ec1eaa1a linux: Add recipe for 4.10
Add mainline kernel support. Now the version is 4.10-rc8.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@collabora.com>
2017-02-18 18:32:16 +01:00
Trevor Woerner
b3c70ca0b6 machine: rk3066: Use SoC specific assignments
In this way the modifications will be used on all RK3066 boards.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@collabora.com>
2017-02-18 18:26:11 +01:00
Eddie Cai
18f6afefd1 machine: rk3188: Use SoC specific assignements
In this way the modifications will be used on all RK3188 boards.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@collabora.com>
2017-02-18 18:24:49 +01:00
Eddie Cai
57a9c8c104 machine: rk3188: separate rk3188 inc file from rk3066
Every SoC should have their own inc file. So separate it.

Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@collabora.com>
2017-02-18 18:23:12 +01:00
Trevor Woerner
2fae057dfc machine: remove DEFAULTTUNEs
The DEFAULTTUNE configuration should not be set at the BSP layer but in a
DISTRO layer (or a user's conf/local.conf). Remove the two DEFAULTTUNEs that
are currently in the layer and add a note in the README to inform users of
this issue and potential settings.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@collabora.com>
2017-02-18 18:05:44 +01:00
Romain Perier
e50c375578 machine: radxarock: use linux-rockchip by default
This is the kernel vendor that supports all hw components for this board,
so we use it by default.

Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2016-12-26 10:50:01 -05:00
Romain Perier
0f7f53c00e recipes-kernel: New recipe for linux-rockchip
New URL, fixes build failure. It should work with krogoth and morty.
Currently only the radxa rock is supported

Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2016-12-26 10:49:45 -05:00
Romain Perier
4c8c9e535f recipes-devtools: Add recipe for prebuilt-gcc-linaro
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2016-12-26 10:49:30 -05:00
Romain Perier
c86ebc7fd7 recipes-kernel: linux: Remove old recipes for linux-rockchip
These recipes are outdated, no longer build and use the wrong SRC_URI.
That's preferable to drop these recipes and rewrite the stuff from
scratch.

Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2016-12-26 10:49:16 -05:00
Romain Perier
a3b8c140a0 recipes-kernel: linux: Remove recipe for next
This BSP meta layer should not be used for kernel development. For this
the developer can simply compile his kernel outside of yocto. We prefer
provide recipes for upstream and vendors kernel.

Reviewed-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2016-12-26 10:48:27 -05:00
Trevor Woerner
ff4b14c419 linux_4.7.bb: bump version to 4.7.10
The version needs updating in order to build successfully.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@gmail.com>
2016-12-16 15:21:25 +01:00
Romain Perier
ce7b1e8f23 README: Change my email
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2016-11-23 17:04:13 +01:00
Romain Perier
5b0d2cd5f9 recipes-kernel: linux: inherit from KBUILD_DEFCONFIG and remove CONFIG_COMMAND
As we use KBUILD_DEFCONFIG, KERNEL_CONFIG_COMMAND is no longer required

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
2016-08-25 19:52:43 +02:00
Romain Perier
561f2a80b9 machine: Replace KERNEL_DEFCONFIG by KBUILD_DEFCONFIG
KBUILD_DEFCONFIG already existed in the yocto project. When it is used
with the kernel-yocto bbclass, it specifies an "in-tree" kernel
configuration file for use during a kernel build. So instead of use our
own variable we use the standard variable designed for that purpose

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
2016-08-25 19:51:48 +02:00
Romain Perier
e3efa2f2ec recipes-kernel: linux: Add rock2-square to the compatible machines
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2016-08-15 23:49:46 -04:00
Romain Perier
4123509beb machine: Add machine file for the Radxa Rock2 Square
Radxa Rock2 is a series of the second single board computer from Radxa.
This is the square baseboard.

http://radxa.com/Rock2

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2016-08-15 23:49:18 -04:00
Romain Perier
6e4e8a8e57 README: Update my email address
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
2016-08-08 19:42:12 +02:00
Romain Perier
6649996182 recipes-kernel: linux: Bump release to 4.7
Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2016-08-08 07:59:39 -04:00
Romain Perier
373fd58297 recipes-kernel: linux: Remove inclusion of kernel.bbclass
This bbclass is already required by linux-yocto.inc, so remove it as it
is redundant.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2016-08-08 07:59:28 -04:00
Romain Perier
bde3e571b9 recipes-kernel: linux: Remove the assignment of KCONFIG_MODE
This hack was required to ask do_kernel_configme to don't pass
option --noallconfig to configme (which had bad effects for
the current configuration). As the task configme is disabled,
this assignment is no longer required.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2016-08-08 07:59:17 -04:00
Romain Perier
ac1fce7ff7 recipes-kernel: linux: Use KERNEL_DEFCONFIG to configure the kernel
We define the KERNEL_CONFIGCOMMAND variable in order to launch
'make <defconfig' during the configure step of the recipe. As the old
'file://defconfig' is no longer required, we remove it. The task
do_kernel_configme is incompatible with the notion of in-tree defconfig,
so we disable it.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2016-08-08 07:59:08 -04:00
Romain Perier
8e1caba550 machine: Introduce a new variable KERNEL_DEFCONFIG
This variable will hold the name of the in-tree defconfig to use
to configure the kernel before compile it. This is better to use
in-tree config file now, is we don't plan to maintain a defconfig
file per board and it is also synced with upstream.

Signed-off-by: Romain Perier <romain.perier@free-electrons.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2016-08-08 07:58:46 -04:00
Romain Perier
5440eb5b30 linux: Renaming machines names in COMPATIBLE_MACHINE
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 20:45:17 +01:00
Romain Perier
3ec7904f8f Merge branch 'devs/twoerner/machine-rename'
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:44:34 +01:00
Trevor Woerner
4c59c2b941 rename machines
Rename the MACHINE configurations to better match the OE pattern of using the
board's name.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:43:15 +01:00
Trevor Woerner
0f48617a59 rk3066.inc: remove rockchip-update-img
None of the machines based on the RK3066 (or compatible) use an initrd image,
therefore an update image can't be successfully generated for them. Therefore
remove the request to try building this artifact.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:42:49 +01:00
Trevor Woerner
e2fe396daf rk3288.inc: gcc 5.2 is default on master
As of the 2015/09/04 commit 039211f0d8fe79d07b65f2f02e299b9656034214 on
openembedded-core, gcc 5.2 (5.%) is now the default on master. Therefore there
is no need to request it explicitly.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:42:08 +01:00
Romain Perier
86d3251eb5 Add new recipe for vboot-utils
This is the chrome OS verified boot utils, required to generate
partition layout and sign kernel on veyron platforms

Signed-off-by: Romain Perier <romain.perier@gmail.com>²
2015-10-31 18:35:39 +01:00
Romain Perier
13dc067936 Adding licenses directory with the Chromium license (the BSD-Style one)
Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:35:39 +01:00
Romain Perier
c1a0b02951 machine: Add support to the veyron-speedy machine desc. to work with sato images
This includes modules and firmwares to have a working drm and wifi. It also
defines the right x11 packages and dependencies.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:35:39 +01:00
Romain Perier
969b72e26a Add new recipe for the armsoc xorg driver
This is the xorg driver required to work with the Rockchip DRM.
It works with both the one from linux-veyron and the one in the
linux mainline kernel.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:35:39 +01:00
Romain Perier
6f141995cb Add a new recipe for linux-firmware-bcm-veyron
It includes firmware and system files for Broadcom bcm4354 required
to work with the linux kernel. These are the files from chromeos.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:35:39 +01:00
Romain Perier
85fcdbd4f0 Add new recipe for brcm-patchram-plus
This is the chromeos Broadcom patchram utility. We need it in order
to kick bluetooth device dynamically and "patch" bcm4354 chip with
the right firmware. It will be only required on linux-veyron, not
with linux mainline.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:35:39 +01:00
Romain Perier
9e09b09400 Add new recipe for linux-veyron
This is the linux kernel tree used by Google on veyron-based
chromebooks.

Signed-off-by: Romain Perier <romain.perier@gmail.com>
2015-10-31 18:35:39 +01:00
Trevor Woerner
5b764a3729 rk3066.inc: remove rockchip-update-img
None of the machines based on the RK3066 (or compatible) use an initrd image,
therefore an update image can't be successfully generated for them. Therefore
remove the request to try building this artifact.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Reviewed-by: Romain Perier <romain.perier@gmail.com>
2015-09-11 14:37:51 -04:00
Trevor Woerner
cba4c8779a rk3288.inc: gcc 5.2 is default on master
As of the 2015/09/04 commit 039211f0d8fe79d07b65f2f02e299b9656034214 on
openembedded-core, gcc 5.2 (5.%) is now the default on master. Therefore there
is no need to request it explicitly.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2015-09-07 03:14:24 -04:00
Romain Perier
a8540f935b README: Update versions for poky and oe-core
Update documentation to show that we now support yocto 1.9_M2

Signed-off-by: Romain Perier <romain.perier@gmail.com>
Reviewed-by: Trevor Woerner <twoerner@gmail.com>
2015-08-31 07:47:52 +02:00