aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-rcar-gen3/recipes-kernel/linux
AgeCommit message (Collapse)AuthorFilesLines
2021-06-29Refactor kernel configuration fragment handlingScott Murray1-6/+5
Refactor the kernel configuration fragment handling to shift all AGL applied configuration fragments into a new AGL_KCONFIG_FRAGMENTS variable that is used to generate SRC_URI and KERNEL_CONFIG_FRAGMENTS additions for the various BSPs. The intent is to make it simple to disable AGL provided configuration in downstream builds as the IC EG has expressed as a requirement. Additionally, the rework has allowed for some clean up of accumulated cruft. In practice, clearing AGL_KCONFIG_FRAGMENTS drops all non-BSP provided kernel configuration with the exception of some qemu BSP related additions required for AGL CI and some explicitly configurable things like netboot support. Notable changes: - Instead of always using AGL's own fragment merging logic on top of the BSP kernel recipe, an effort is now made to leverage the BSP recipes' own merging schemes, so there are now separate include files for kernel-yocto.bbclass and plain kernel.bbclass based kernel recipes, as well as a common include file that defines the AGL_KCONFIG_FRAGMENTS variable and its derivations. That file can be included directly in bbappends for BSP kernel recipes that use the KERNEL_CONFIG_FRAGMENTS scheme (e.g. meta-ti, meta-qcom). - The SMACK enabling configuration in meta-app-framework has been updated to supply different fragments for enabling SMACK by default for 4.x and 5.x kernels. This removes a warning from always supplying the old configuration, and allows providing a CONFIG_LSM definition to ensure over-riding any BSP modifications. This allows removing the previous hack to handle CONFIG_LSM being set in the defconfigs in linux-raspberrypi. - By request, the linux-yocto support from meta-agl-bsp/meta-core has been rationalized into meta-agl-core to improve the experience when using meta-agl-core standalone for testing. - All demo supporting kernel configuration has been removed, a subsequent change to meta-agl-demo will add it there by leveraging AGL_KCONFIG_FRAGMENTS. - The hardware device support has been split out of the can-bus.cfg fragment, in favor of shifting it to meta-agl-demo. A few other stray non-CAN configuration options have also been removed from can-bus.cfg, as they do not seem to be required. Bug-AGL: SPEC-3983 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: If6662fd36e26cec767b1d53b1188a74d01ef9dcf Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/26460 Reviewed-by: Hiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
2020-11-04Revert "[RCAR] Fix gcc 10 build failed on u-boot and kernel."Ronan Le Martret2-57/+0
Bug-AGL: SPEC-3674 This reverts commit 66814faec0f8e589b48af8c22a70d94d96bf0957. Change-Id: Iad269aac57a58d909ab5ea97110538e5a89cab80 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25499 ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-10-19[RCAR] Update Renesas BSP to v4.1.0Ronan Le Martret1-3/+0
Bug-AGL: [SPEC-3617] Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Change-Id: Ic1f4c424f76ff5c357752e32aa8a47ff805273dc Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25417 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
2020-10-15[RCAR] Fix gcc 10 build failed on u-boot and kernel.Ronan Le Martret2-0/+57
* cherry pick upstream patch to fix u-boot and linux kernel on gcc 10 build issue. Bug-AGL: [SPEC-3617] Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Change-Id: I0c85938287861a8efc328b5c08bbf364027f6473 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25416 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
2020-08-24[RCAR] Remove perf fix on renesas boardronan2-138/+0
* In RCAR BSP 4.14 the perf fix is upstream, we don't need to keep this fix in AGL. Bug-AGL: SPEC-3516 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Change-Id: Ic014347319318122f99eabf48170a5b393ab46c5 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25069 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-07-14[RCAR] Fix salvator-x buildRonan Le Martret1-2/+2
- We need a fix to build the package perf for salvator-x (m3/h3). This fix already exists but it was apllied for ulcb machine. Change-Id: Ia42a8c0e3bdd7e6aaf844b1931d2c2df85b9dabf Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24961 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2020-07-07Apply the perf fix only when meta-rcar-gen3-adas is not presentJan-Simon Möller1-4/+6
Currently the upstream rcar bsp does need the fix for building perf. The meta-rcar-gen3-adas layer contains a fix in the big patchqueue. Thus conditionally apply the perf build fix. Bug-AGL: SPEC-3443 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: Icbf53add71ed731c35dec149841691c82ae4372c Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24914 Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
2020-07-07Revert temp fix of perf build and weston bbappendJan-Simon Moeller1-1/+4
We need to evaluate if and where we need to place the perf fix or if upstream includes it. Likewise for the weston bbappend. Bug-AGL: SPEC-3443 Change-Id: I78fb37bc3b0d4531c70e71d70c6663de1ab0d987 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24911 Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
2020-07-07Use upstream meta-renesas from github and update meta-rcar-gen3-adas integrationJan-Simon Moeller2-0/+133
Thanks to the work done by Renesas and members of our community, we can now directly use meta-renesas from upstream github. A shout-out to everyone involved (Kurokawa-san, Ronan, Stephane). It turned-out it is simpler to create a symlink-based slim version of meta-rcar-gen3-adas layer instead of BBMASK'ing what should not be in there. See the comments in meta-agl-bsp/meta-rcar-gen3-adas/conf/NOTES as to why. Remaining work is to include the packages outside of the layer.conf in a follow-up. Bug-AGL: SPEC-3380 Change-Id: I2be1b44049d74146546380e2eb866f0558a26822 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24796 Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
2020-03-12meta-rcar-gen3: Add Xen specific device tree for m3ulcbJérémy Fanguède3-0/+103
Provide a specific version of the device tree (appended with -xen) to run with Xen. Only the R-Car m3ulcb board is supported and tested so far. Add also the Xen block device backend support in the kernel, to be able to run block device based DomU. From U-Boot, Xen and Linux Dom0 can be run as follows (assuming binaries are in sdcard first partition): > setenv bootargs > fatload mmc 0:1 0x48080000 xen-m3ulcb.uImage > fatload mmc 0:1 0x48000000 r8a7796-m3ulcb-xen.dtb > fatload mmc 0:1 0x7a000000 Image-m3ulcb.bin > bootm 0x48080000 - 0x48000000 The Linux Dom0 bootargs are hardcoded in the device tree, the rootfs is expected to be on /dev/mmcblk1p2 Bug-AGL: SPEC-2912 Change-Id: Ia86e0789650eaf79d13691cf4f53755c8cb8f06c Signed-off-by: Jérémy Fanguède <j.fanguede@virtualopensystems.com>
2020-01-30[RCAR] Split ADSP path for ulcb and ulcb-kfRonan Le Martret1-44/+0
- If we want to build AGL for ulcb board without the meta-rcar (kingficher board support), we need to split the patch. Change-Id: I145887d4619a7132e46f98f30e1fc0dd3de6b29a Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2019-07-23linux-renesas: Add ADSP patch only for m3ulcbPierre Marzin1-1/+1
The patch are only used for the m3ulcb machine. Bug-AGL: SPEC-2564 Change-Id: Idfca2b7a48b7a53efee6dcf2f21b0f8932d7b43d Signed-off-by: Pierre Marzin <pierre.marzin@iot.bzh>
2019-03-12[RCAR] Fix patch on kernel dtsRonan Le Martret1-8/+12
* For RCAR BSP v3.15.0, we need to fix this patch Bug-AGL: SPEC-2185 Change-Id: Iadf40e6bfe964c3881d411cbdaab956ce524bc76 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2019-03-12[RCAR] Remove upstream patchRonan Le Martret2-146/+0
This patch is now upstream (RCAR BSP 3.15.0), so it useless to keep it in AGL. Bug-AGL: SPEC-2185 Change-Id: I10f1c99d4854c364960f310e4e12b385f6c55465 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-12-18linux-renesas: Add smack patches to R-CarJosé Bollo1-0/+3
The patch for CGROUP2 is important for running without capabilities. Bug-AGL: SPEC-2006 Bug-AGL: SPEC-1016 Change-Id: I0dfec85bdc66b220e20776501522e71579e6a742 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-10-12[RCAR] ADSP enable and add sound hardware abstraction in DTRonan Le Martret2-0/+126
The ADSP on Renesas SoCs required a reserved memory area to become enabled, and this needs to be done manually. This patch adds sound hardware abstraction information for the m3ulcb and m3ulcb-kf (kingfisher) device trees. This is helpful on-board the ADSP for dynamically determining sound hardware at runtime, allowing single binaries to be used between the two boards. Future work will incorporate the h3ulcb and Salvator boards into the abstraction. Bug-AGL: SPEC-1227 Bug-AGL: SPEC-1424 Bug-AGL: SPEC-1571 Change-Id: I78edc5854a95520276bdcd9fd9766a120d2c04d7 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au> Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-08-15Revert "[rcar-gen3] Disable ipv6"Ronan Le Martret2-7/+2
Bug-AGL: SPEC-490 This reverts commit d88997d1d16897abb83a161c215cbec25d9b5e0f. Change-Id: I7c7a989fb1bf1df1de3c0557792ea4b013fec709 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2018-07-23linux-renesas: kernel: backport pn533_usb fix from upstreamMatt Ranostay2-0/+146
Backport pn533_usb incorect stack use from linux-next kernel NOTE: this kernel is tracking LTS so at some point it will need to be reverted Bug-AGL: SPEC-1544 Change-Id: I90fd3e0339dfdb148eb01b6ef836353bc2ac6a43 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-02-16linux-renesas: stop inheriting from 4.9Martin Kelly1-1/+0
With rocko, we're on 4.14, so we should stop inheriting from linux-agl-4.9.inc, which is applying a Smack patch that has already been merged into 4.14. Change-Id: I15e1dd270d111d44b089f9587fcdccf9abec2210 Signed-off-by: Martin Kelly <mkelly@xevo.com>
2018-02-15linux-renesas: remove bbappendMartin Kelly1-2/+0
This bbappend attempts to remove a patch that doesn't exist, so on rocko, it is now breaking the build. Remove it. Change-Id: Ieddbe8c73c5efa2568ea09a83be73e151618be8e Signed-off-by: Martin Kelly <mkelly@xevo.com>
2018-02-13Revert "Fix kernel gcc7 issue"ronan2-133/+0
This reverts commit 9b7584fd0ca807998643028a264b25c8dbbbed18. Change-Id: I41337a1ee9425cfcfe19cf1406b3b4391f4af3be
2018-02-13remove backport commitronan1-0/+3
Change-Id: I63e974a075752a9d2f7cba3a1880321c7c4c6b17 Signed-off-by: ronan <ronan.lemartret@gmail.com>
2018-02-13Revert "Fix CVE-2017-1000364 by backporting the patches for gen3"ronan4-1043/+0
This reverts commit 9b9894c5497f9604282f5abc25de7dd48b99e7b8. Change-Id: Iab95fb8feb2f50397d6a285bddffaafd37a62984
2018-02-13Update rcar gen3 kernel bbappend versionronan1-0/+0
Change-Id: I0ad8b780183feead322bd4dd5cceb25d4b2bad2d Signed-off-by: ronan <ronan.lemartret@gmail.com>
2018-02-13Fix kernel gcc7 issueRonan Le Martret2-0/+128
Change-Id: Iad0345ed3b70c555970d4d00e6008376b70903fa Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-11-22Rework Linux Kernel fragment applicationsTom Rini7-110/+4
- All kernel recipes must inherit linux-agl.inc - All kernel recipes for a given version (e.g. 4.9) should include linux-VER-agl.inc in order to avoid duplication (such as the SMACK label patch or security fixes) - We enforce having merge_config.sh be invoked at the end, in order to make sure fragments will be applied. - Add a new fragment for Raspberry Pi to ensure the Pi Touchscreen is still enabled. With all of the above, we fix a number of minor issues as well, such as platforms manually enabling NBD/RAMDISK for netboot as the previous logic was not working in all cases. Bug-AGL: SPEC-946 Change-Id: Ic688e899df5861d83712af12d8e1c6c3c9643300 Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12063 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: José Bollo <jobol@nonadev.net> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-10-28Add joystick.cfg for usb joystick and steering-wheel kernel configurezheng_wenlong1-0/+3
Add joystick.cfg into meta-agl-bsp/recipes-kernel, Then include this cfg in each board bbappend. Related commit: https://gerrit.automotivelinux.org/gerrit/#/c/10463/ Change-Id: Ie484cc8017e7198cefa0d8e7476032c325a8348d Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11575 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Thomas Rini <trini@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-09-18Add uvc.cfg for usb video class kernel configurezheng_wenlong1-0/+3
Add uvc.cfg into meta-agl-bsp/recipes-kernel, Then include this cfg in each board bbappend. See: https://gerrit.automotivelinux.org/gerrit/#/c/10803/ Change-Id: I5faebefef3560a27496103e1ad4a1ca70377a1ba Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10893 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-07-12Add ath9k_htc driver to rcar-gen3 for demosScott Murray2-0/+3
Add the kernel configuration fragment for the ath9k_htc driver used by the D-Link USB Wifi adapter recommended for demos to rcar-gen3. Change-Id: I7739193adaeeba985625ea9058ee5c991b77b63a Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10077 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-06-29Fix CVE-2017-1000364 by backporting the patches for gen3Jan-Simon Möller4-0/+1048
Backport of patches from upstream for 4.9 - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.9.y&id=cfc0eb403816c5c4f9667d959de5e22789b5421e - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.9.y&id=5d10ad6297260e9b85e7645ee544a6115bb229e4 - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.9.y&id=ce7fe8595902c3f03ef528c2dc1928b3f4b67fcf Bug-AGL: SPEC-705 Change-Id: Ic10d65a80f9cd334067e507715dfe9589fbde744 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9883 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
2017-05-12linux-renesas: Applies Smack patch for bluetoothJosé Bollo2-0/+57
This patch allows kernel sockets to be used by applications. Bug-AGL: SPEC-554 Change-Id: Ib3562cb68334500b375b5dd341ead314c438f5e6 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9371 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-04-20meta-rcar-gen3: add CONFIG_INPUT_UINPUT to bluetooth.cfgMatt Ranostay1-0/+5
CONFIG_INPUT_UINPUT is needed for AVRCP controls to be registered and function within bluez. AGL-Bug: SPEC-540 Change-Id: Idbc63b8844fac595d73cb34f6a7eb4fb2243028d Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2017-03-19[rcar-gen3] Disable ipv6Ronan Le Martret2-1/+6
* ipv6 was disable in the previous version of the Renesas gen3 BSP (v2.12) and boot with ipv6 doesn't work, for now, on the Gen3 board. Bug-AGL: SPEC-471 Change-Id: I0c0f14cbf3b5d8404e9b8108d24740ecaea762c2 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-02-06Add bluetooth support to renesas rcar-gen3.Builder2-1/+33
Change-Id: Iad1185f03ad82e297f5368108d586f0af3894b23 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-01-02Fix to get netboot activated also for renesas gen3Romain Forlot3-1/+6
Change-Id: I9b512a907398de9c96dc46111c74bed4059f7b8e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2016-12-06add namespace to config kernelRonan2-0/+8
* missing namespace into defconf Change-Id: I9f292f8186fb771f8eb8c82ad8e7e985c474e9ea Signed-off-by: Ronan <ronan.lemartret@iot.bzh>