summaryrefslogtreecommitdiff
path: root/recipes-kernel
AgeCommit message (Collapse)Author
2023-02-27toradex_imx_v6_v7.config: Disable some debugging configsPhilippe Schenker
The locking debug configs where causing a regression in boot-time so do disable them. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 05e7288c4781b33599e00a46d279a02351f1e6c2)
2023-02-27toradex_imx_v6_v7.config: Disable some media configsPhilippe Schenker
Disable all TV stuff and put every other media related driver to module. CONFIG_MEDIA_SUPPORT=m does exactly this. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit dee03d24716a63b72b2dcecf38e9207acd19305e)
2023-02-27toradex_imx_v6_v7.config: Do not use -m flag in merge_config.shPhilippe Schenker
The -m flag causes the script to not call make in the end. That means if we put e.g. CONFIG_MEDIA_SUPPORT to module, this does not disable all the configs below the one until make is being issued. fix the header that suggests to use this flag in order to enable us to simplify the diff config by disabling/putting to module whole categories of configs. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit ebc968f1d7522b21ec8ffe19dbb87fd3f5d4ed6c)
2023-02-27toradex_imx_v8.config: Disable tv stuffPhilippe Schenker
Follow the change that has been done on toradex_imx_v6_v7.config and disable unnecessary TV and SDR stuff. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 68e4859cadb5853bb4e1687d67ab819930c8886d)
2023-02-27toradex_imx_v8.config: Do not use -m flag in merge_config.shPhilippe Schenker
The -m flag causes the script to not call make in the end. That means if we put e.g. CONFIG_MEDIA_SUPPORT to module, this does not disable all the configs below the one until make is being issued. fix the header that suggests to use this flag in order to enable us to simplify the diff config by disabling/putting to module whole categories of configs. Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 60884f6adf3d645a40cd177279c5f1383dfb7215)
2023-02-27linux-toradex-mainline: refresh patchMax Krummenacher
Refresh patch against v6.3-rc1. Compare with commit 30233a229fdb ("thermal/drivers/imx: Use generic thermal_zone_get_trip() function") Rework linux-toradex-mainline-rt to have additionally its own directory for local files. Move the rt only files there and keep the old thermal patch version there. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-01-26linux-toradex-mainline: refresh toradex specific defconfigMax Krummenacher
Apply toradex_imx_v8.config on the vanilla 6.2-rc5 aarch64 defconfig. Apply toradex_imx_v6_v7.config on the vanilla 6.2-rc5 arm imx_v6_v7_defconfig. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-01-26linux-toradex-mainline-rt: move to 6.2.y-rtMax Krummenacher
Set the fixed hash to v6.2-rc3-rt1. As we use `LINUX_VERSION ?=` set the variable before including linux-toradex-mainline_git.bb. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-01-05linux-toradex-mainline-rt: move to 6.1.y-rtMax Krummenacher
Set the fixed hash to 6.1-rc7-rt5. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-01-05linux-toradex-mainline: move to 6.2-rc1Max Krummenacher
Set the fixed hash to 6.2-rc1 and remove the patches now in upstream. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-12-09Use `use-head-next` only for SRCREV variableFrancesco Dolcini
Remove usage of the `use-head-next` override for anything, apart the SRCREV variable. Currently this variable is only used on local builds, while uprev on Jenkins CI/CD is implemented using `scripts/uprev-srcrev` that update only the SRCREV variable. This way we ensure a consistent experience despite how the image is build and we avoid potential confusion. Related-to: ELB-4885 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit c11ecc861461dfbcc1cdadbf2807d992ce9b1499) Conflicts: recipes-kernel/linux/linux-toradex-mainline_git.bb
2022-12-09toradex_imx_v6_v7.config: Add usb_hiddevPhilippe Schenker
Add CONFIG_USB_HIDDEV This gets rid of the error-message hid-generic 0003:046D:C52B.0003: device has no listeners, quitting This is seen with a Logitech Universal Receiver. Related-to: ELB-4812 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 8be201d9c8b79dc90b9a22cb73094f11ac854305)
2022-12-09linux-toradex-mainline: Refresh 32-bit SOM defconfigFrancesco Dolcini
Add CONFIG_USB_CONN_GPIO=y to the defconfig. Fixes: dacfc2adbe0c ("linux-toradex-mainline: Rework imx6ull usb dual-role patch") Related-to: ELB-4886 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit ba86dd56a6d9ffc8a381db6b070aa4e015d136ed)
2022-12-09linux-toradex-mainline: Lower CMA size percentage on 32-bit SOMFrancesco Dolcini
Lower CMA size percentage from 50% to 35% on i.MX 6/6ULL/7 based SOM, with that the following CMA Memory will be reserved depending on SKU memory. | SOM Memory | CMA Memory | |--- |--- | | >= 1GiB | 256MiB | | 512MiB | 192MiB | | 256MiB | 96MiB | With this change is possible to have a GPU application and video playback on low memory SKU, without having allocation failures and the related OOM killer issues. No changes on SKU with >= 1GiB memory. Related-to: ELB-4740 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit 3f2d00f899ca9483bbb20b9b5fb9ae2262c19196)
2022-12-09linux-toradex: rt: improve configMax Krummenacher
The PREEMPT_RT config depends indirectly on !KVM, so make sure that KVM is not set. Related-to: ELB-4887 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit cc3fcee6080e1943e4fb3fef95e4eff7b3cd768c)
2022-12-09linux-toradex-mainline: split out rt kernelMax Krummenacher
Split out the real time kernel build from the existing linux-toradex-mainline recipe. This simplifies updateing the srcrev automated and makes it clearer what is being built. Releated-to: ELB-4868 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit b6a453bdcd4841f44dc6c86f2abd06fe97936580) Conflicts: recipes-kernel/linux/linux-toradex-mainline_git.bb
2022-12-09linux-toradex-mainline: Support usb otg on colibri-imx6ullPhilippe Schenker
This commit adds two patches to our upstream kernel that solves the reset loop and the OTG device-host dual-role switching Related-to: ELB-4790, ELB-4610 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit a9d1419f9cca3f3d86590cfca49db5be990b3b81) Drop 0001-ARM-dts-colibri-imx6ull-Enable-dual-role-switching.patch as that one will come in through mainlining. Thus only ELB-4610 is addressed. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-11-17linux-toradex-mainline: bump to 6.1-rc from master branchMarcel Ziswiler
Bump the version to 6.1-rc taken from the master branch. This is a partial revert of commit fca2bcd00e61 ("linux-toradex-mainline: bump to 6.0 kernel"). Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-11-02Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Sun Oct 30 08:47:22 UTC 2022 Matrix Build: image-torizoncore-kirkstone-6.x.y-nightly-matrix 80 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-torizoncore-kirkstone-6.x.y-nightly-matrix/80 Signed-off-by: ci.toradex <cicd@toradex.com> (cherry picked from commit be8cf57e1bf2ccb049923a62787a6a90efd58a4c)
2022-10-27linux-toradex-mainline: Compile wifi stack as modulesStefan Eichenberger
Compile the 80211 drivers as loadable kernel modules. By having them as loadable modules we have the filesystem already ready when loading so that the modules can access the regulatory.db under /lib/firmware/regulatory.db. This will allow us to change the regulatory domain with iw reg set if required. Related-to: ELB-4815 Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> (cherry picked from commit ca5ce278e2baa20b50ab5ce7b6a0f5a2d8898e4d)
2022-10-14linux-toradex-mainline: Add systemd required imx8 kernel configFrancesco Dolcini
Add standard systemd requirements [0] to imx8 defconfig. [0] https://github.com/systemd/systemd/blob/main/README Related-to: ELB-4855 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit fe6128314274d707b67f80ce512b146892a06ec0)
2022-10-14linux-toradex-mainline: Add systemd required imx6/7 kernel configFrancesco Dolcini
Add standard systemd requirements [0] to imx6 and imx7 defconfig. [0] https://github.com/systemd/systemd/blob/main/README Related-to: ELB-4824 Related-to: ELB-4792 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit f7475859a8b534f74d33622cd9d92cd8b7d06a28)
2022-10-14Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Wed Oct 5 14:55:40 UTC 2022 Matrix Build: image-tdxref-kirkstone-6.x.y-nightly-matrix 76 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-kirkstone-6.x.y-nightly-matrix/76 Signed-off-by: ci.toradex <cicd@toradex.com> (cherry picked from commit 0a52bbb4b3759d21848330bac72f1b23ac9d6c7d)
2022-10-14linux-toradex-mainline: ull default peripheralsPhilippe Schenker
This commit adds two relevant patches that do enable default peripherals for NAND modules. Related-to: ELB-4809 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 3fd01b00dc972f26a6df31619f2c2985148a1270)
2022-10-14linux-toradex-mainline: fix data-mapping kernel crashMax Krummenacher
If a panel-dpi node does not have the data-mapping property defined an uninitalized pointer is used with strcmp resulting in a kernel crash during boot. [ 6.509726] 8<--- cut here --- [ 6.513351] Unable to handle kernel NULL pointer dereference at virtual address 00000013 [ 6.522189] [00000013] *pgd=00000000 [ 6.526111] Internal error: Oops: 5 [#1] SMP ARM [ 6.530833] Modules linked in: [ 6.533983] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.0.0-6.0.0-devel+git.4fe89d07dcc2 #1 [ 6.542483] Hardware name: Freescale i.MX6 Ultralite (Device Tree) [ 6.548768] PC is at strcmp+0x0/0x34 [ 6.552449] LR is at panel_dpi_probe+0xc4/0x1f0 [ 6.557092] pc : [<c0640e50>] lr : [<c0760dc4>] psr: 60000013 [ 6.563470] sp : f083dcc0 ip : 00000001 fp : c15004d0 [ 6.568791] r10: 00000000 r9 : ef7f4d08 r8 : c2178000 [ 6.574115] r7 : c230b740 r6 : c256d100 r5 : 00000013 r4 : c256b4c0 [ 6.580757] r3 : 00000000 r2 : c2178000 r1 : c12bd7f0 r0 : 00000013 [ 6.587399] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 6.594659] Control: 10c5387d Table: 8000406a DAC: 00000051 [ 6.600507] Register r0 information: non-paged memory [ 6.605676] Register r1 information: non-slab/vmalloc memory [ 6.611457] Register r2 information: slab task_struct start c2178000 pointer offset 0 [ 6.619488] Register r3 information: NULL pointer [ 6.624296] Register r4 information: slab kmalloc-128 start c256b480 pointer offset 64 size 128 [ 6.633208] Register r5 information: non-paged memory [ 6.638367] Register r6 information: slab kmalloc-192 start c256d0c0 pointer offset 64 size 192 [ 6.647278] Register r7 information: slab kmalloc-256 start c230b700 pointer offset 64 size 256 [ 6.656191] Register r8 information: slab task_struct start c2178000 pointer offset 0 [ 6.664207] Register r9 information: non-slab/vmalloc memory [ 6.669981] Register r10 information: NULL pointer [ 6.674876] Register r11 information: non-slab/vmalloc memory [ 6.680738] Register r12 information: non-paged memory [ 6.685987] Process swapper/0 (pid: 1, stack limit = 0xaf192ddd) [ 6.692202] Stack: (0xf083dcc0 to 0xf083e000) [ 6.696672] dcc0: 00000000 c0e2f724 00000000 c12b606c 00000013 c0a01820 f083dd08 00000001 [ 6.705001] dce0: 00000000 c2178000 c17eea20 c0a06930 c230b7f4 c2178000 00000000 9fb7a78a [ 6.713328] dd00: c230b740 c2112810 c1e74008 c2178000 00000000 c13c9e68 c1802000 c076116c [ 6.721654] dd20: c21787a0 9fb7a78a c2178000 c2178000 c156455c f083dd50 2e266000 c1799dd4 [ 6.729980] dd40: 00000000 60000093 00000000 c018a198 00000001 00000080 00000000 00000001 [ 6.738303] dd60: c21787c0 c0e236f8 c2178000 c21787c0 00000001 c0181cac c2178000 c1799dd4 [ 6.746629] dd80: c2178000 c156455c c0e2f724 c17de9e0 a0000013 c0186f08 c0a0167c 00000001 [ 6.754952] dda0: 00000001 c2178000 c156a29c c021e0e8 a0000013 c1799dc4 a0000013 c1799dc4 [ 6.763277] ddc0: c0f7e79c c0e2f724 c0f7e860 9fb7a78a c0f7e79c 00000000 c2112810 c1766a80 [ 6.771602] dde0: 00000000 c17eea20 c13c9e68 c1802000 c15004d0 c079113c 00000000 c2112810 [ 6.779927] de00: c1766a80 00000000 c17eea20 c078e168 c21129bc c079e2c0 c2112810 c1766a80 [ 6.788250] de20: c2112810 00000000 c256b358 c078e534 c0f7e79c 9fb7a78a c0f7e860 c1e76200 [ 6.796577] de40: c2112810 c2112810 00000000 c256b358 c13c9e68 c078e6d4 c2112854 c2112810 [ 6.804900] de60: c1766a80 c2178000 c256b358 c078eedc 00000000 c1766a80 c078ee30 c2178000 [ 6.813226] de80: c256b358 c078c094 c20a98e4 c20a98b0 c2242054 9fb7a78a c20a98e4 c1766a80 [ 6.821550] dea0: c256b300 00000000 c1767dd8 c078d50c c12be0c8 c0e2f660 00000000 c1766a80 [ 6.829875] dec0: 00000000 c17ddb00 c1608fcc 00000000 c13c9e68 c078fe98 c2178000 c1532458 [ 6.838198] dee0: c17ddb00 c1532468 c2178000 c01022a4 c21f6067 c21f605a c21f6059 c014be00 [ 6.846523] df00: c2001300 c21f6000 00000129 c12f2658 c15004d0 00000000 c2178000 00000006 [ 6.854846] df20: 00000006 00000000 c2178000 c17ddb00 c1608fcc c1549870 c1549854 9fb7a78a [ 6.863171] df40: c15638d4 00000007 c21f6000 c1549874 c1549854 c13c9e68 c1802000 c1501328 [ 6.871494] df60: 00000006 00000006 00000000 c15004d0 00000000 00000129 00000000 c1608f80 [ 6.879820] df80: c0e24474 00000000 00000000 00000000 00000000 00000000 00000000 c0e24488 [ 6.888142] dfa0: 00000000 c0e24474 00000000 c0100128 00000000 00000000 00000000 00000000 [ 6.896465] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 6.904788] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000 [ 6.913110] strcmp from panel_dpi_probe+0xc4/0x1f0 [ 6.918132] panel_dpi_probe from panel_simple_probe+0x27c/0x604 [ 6.924279] panel_simple_probe from platform_probe+0x58/0xbc [ 6.930162] platform_probe from really_probe+0xd8/0x410 Fixes: 3a16d8f ("linux-toradex-mainline: panel-dpi: reintroduce data-mapping") Related-to: ELB-4682 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit f6243dd1a7d5f5b060507a9a2e44ae9f147978fe)
2022-10-14linux-toradex-mainline: bump preempt-rt to 6.0-rt11Francesco Dolcini
Bump preempt-rt flavour to 6.0-rt11. Related-to: ELB-4789 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit e65773a4181d8d85b8e3871f901a3fa742d5a2de)
2022-10-14linux-toradex-mainline: bump preempt-rt to 6.0-rc7Marcel Ziswiler
Bump preempt-rt flavour to 6.0-rc7. While at it also update the preempt-rt summary. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 9b86c32746a0a660e8942f0e09fd0fa69d5c7826)
2022-10-14linux-toradex-mainline: bump to 6.0 kernelMarcel Ziswiler
Build just released Linux kernel v6.0: - set version to 6.0.0 - set branch to linux-6.0.y - pin to v6.0 commit hash Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 55f8111703cca1b219239ad20bfe69c1e23fc34a)
2022-09-24linux-toradex-mainline: aarch64: defconfig from toradex_imx_v8.configFrancesco Dolcini
Add new toradex_imx_v8.config, to be used to generate aarch64/defconfig using merge_config.sh. In general the following commands can be used: make defconfig scripts/kconfig/merge_config.sh -m .config toradex_imx_v8.config make savedefconfig Disabled, since not needed by BSP: - CONFIG_BLK_DEV_RAM - CONFIG_THERMAL_STATISTICS - CONFIG_PPS_CLIENT_GPIO - CONFIG_BT_RFCOMM Enabled, from `m` to `y`, since used by some automated test: - CONFIG_CPU_FREQ_GOV_POWERSAVE - CONFIG_CPU_FREQ_GOV_CONSERVATIVE All the other changes in the defconfig are because of different kconfig dependencies. Related-to: ELB-4624 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit e7b3c1953359f060aa593cd2ebc02456cbc619f2)
2022-09-24arm: dts: colibri-imx6: usb dual-role switching et. al.Marcel Ziswiler
This series is an assortment of USB dual-role specific commits as follows: Introduce USBC_DET GPIO based USB dual-role aka device/host switching. Move USB VBUS supply from single carrier board to module level device tree. This pin is as per Colibri module family standard. Specify USBH_PEN GPIO being active-low rather than active-high (cosmetic only). Related-to: ELB-4615 Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> (cherry picked from commit 3bceffee49805da9718126acb47f3c5c2614434a)
2022-09-24linux-toradex-mainline: Cleanup imx6/7 kernel configFrancesco Dolcini
Cleanup imx6/imx7 defconfig: - remove imx/fsl driver not required by our SOMs - compile as module USB net driver - enable common USB/PCIe WiFi drivers - enable bridge/vlan support as module (WiFi AP usecase) - disable multiple drivers that are not relevant for our carrier board and SOM - enable emergency shutdown in case of thermal issues - disable INPUT_EVBUG, it is really noisy and useful only on very specific debug scenarios Related-to: ELB-4712 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> (cherry picked from commit 97d116afb8ed7cf4c9a30ec302ef02bfd357b53b)
2022-09-24linux-toradex-mainline: panel-dpi: reintroduce data-mappingMax Krummenacher
The DT property data-mapping can be used to set the bus-format for a panel entirely defined from the DT. Reintroduce it until we get a solution accepted into mainline. Related-to: ELB-4682 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 3a16d8fab8ccc49022786eda0d0a5639fd8db3fe)
2022-09-24Bump SRCREVci.toradex
Bump SRCREV hashes as used in build of Thu Sep 1 18:26:00 UTC 2022 Matrix Build: image-tdxref-kirkstone-6.x.y-nightly-matrix 48 Matrix Build Status: SUCCESS Triggered by: https://jenkins.int.toradex.com/job/image-tdxref-kirkstone-6.x.y-nightly-matrix/48 Signed-off-by: ci.toradex <cicd@toradex.com> (cherry picked from commit f2707a6d795445378c2177bd14f6dda4c8558adc)
2022-08-30linux-toradex-mainline: Add patch to change imx temp thresholdFrancesco Dolcini
Add a patch to set the critical temperature threshold to the SoC max value. The patch was denied upstream [1] as any other patch trying to solve the same problem in a configurable way [2], [3]. [1] https://lore.kernel.org/all/20220420091300.179753-1-francesco.dolcini@toradex.com/ [2] https://lore.kernel.org/all/20220516190001.147919-1-francesco.dolcini@toradex.com/ [3] https://lore.kernel.org/all/20220617070847.186876-1-francesco.dolcini@toradex.com/ Related-to: ELB-4686 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2022-08-12linux-toradex-mainline: bump to 5.19Philippe Schenker
Bump to the latest mainline linux 5.19 as well as the RT version of the kernel. This will make verdin-imx8mp now also properly build as on 5.18 dahlia device-trees where still missing Related-to: ELB-4658 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2022-08-09perf: fix build for latest linux-mainlineMax Krummenacher
The following landed in Linux 5.19-rc7 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/tools/perf?id=ee87a0841aa538ab7ad49cf5679ac5ea2682c909 Depend on python3-setuptools to be prepared. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-08-08meta: drop tk1/tegra/vf machine referencesMing Liu
We've decided not maintain these machines in BSP6, let's drop the machine references. There is a special varialbe UBOOT_KERNEL_TYPE, it's only being used by apalis-tk1 machine, so also drop it. Related-to: ELB-4471 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2022-08-04linux-toradex-mainline: aarch64: Enable at24 eeprom driverFrancesco Dolcini
Enable EEPROM AT24 as built-in driver for Toradex Verdin family since as module it is not loaded automatically. Related-to: ELB-4598 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2022-08-02linux-toradex-mainline: Fix Jenkins nightly buildFrancesco Dolcini
Jenkins recipe uprev (`use-head-next`) is done differently compared to running manually bitbake on the developer machine. The hashes are updated in a preliminary step, and afterward bitbake is running with only the SRCREV variables updated, without setting use-head-next. Because of that currently the build is failing since KERNEL_VERSION_SANITY_SKIP is not set while building and the version does not match. To avoid that just set the KERNEL_VERSION_SANITY_SKIP to "1" unconditionally, once we branch out master to kirkstone we will need a to review this. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2022-08-02linux-toradex-mainline: Reduce imx6/7 kernel image sizeFrancesco Dolcini
Reduce kernel image size to be able to fit on the 12MB of flash currently available on NAND Toradex SOM, without this change it's not possible to flash these modules. The following changes are done: - filesystems non required for the root partition compiled as modules - disable non-needed i.MX SOCs - disable non-needed functionality (kexec, swap, spi-nor driver, pata driver, rc-core drivers). The new defconfig is generated using merge_config.sh from imx_v6_v7_defconfig: ``` make imx_v6_v7_defconfig scripts/kconfig/merge_config.sh -m .config toradex_imx_v6_v7.config make savedefconfig ``` These steps at the moment need to be executed manually, they are not currently integrated into the recipe nor the build procedure. Related-to: ELB-4633 Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2022-08-02linux-toradex-mainline: Remove obsolete patchFrancesco Dolcini
Remove 0001-Revert-kbuild-Enable-DT-schema-checks-for-.dtb-targe.patch, same change is already available in the upstream project, commit 75e895343d5a ("Revert "kbuild: Enable DT schema checks for %.dtb targets"") Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2022-08-02linux-toradex-mainline: Fix Jenkins nightly buildFrancesco Dolcini
Jenkins recipe uprev (`use-head-next`) is done differently compared to running manually bitbake on the developer machine. The hashes are updated in a preliminary step, and afterward bitbake is running with only the SRCREV variables updated, without setting use-head-next. Because of that currently the build is failing since the latest sha from master is not present in the linux-5.18.y branch. To avoid that just set the KBRANCH to "master" unconditionally, once we branch out master to kirkstone we will set it to the chosen Linux Kernel branch. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2022-07-18linux-toradex-mainline: change to use LZ4 compression instead of LZOMing Liu
There are two reasons for doing this: - LZ4 compression is an extremely fast decoder that can improve booting time, some research reference: https://events.static.linuxfound.org/sites/events/files/lcjpcojp13_klee.pdf - The lzop recipe has been moved from OE to meta-openembedded layer, see: https://lore.kernel.org/openembedded-core/20220524152401.1663317-9-ross.burton@arm.com/ we should keep involving in as less dependencies as we can from meta-openembedded. Related-to: ELB-4534 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2022-07-18linux-toradex-mainline: bump versionsMax Krummenacher
Bump rt branches to latest release and development. Correct LINUX_VERSION settings to what is latest. Bump the git hashes to latest released. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-07-05arm32: imx: defconfig: enable spidev and mrvl bluetoothMax Krummenacher
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-07-05linux-toradex-mainline:defconfig: encrease CMA reserved memoryMing Liu
Set the CMA area to 256MB for modules with 512MB and more RAM, and to 50% of the RAM for modules which have less than 512MB Related-to: ELB-2913 Signed-off-by: Ming Liu <ming.liu@toradex.com>
2022-06-08arm32: imx: defconfig: enable stmpe adcMax Krummenacher
Enable the driver for the ADC part of the STMPE MFD device. Related-to: ELB-4312 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-06-01aarch64: defconfig: enable remoteproc and rpmsg configurationsMarcel Ziswiler
Enable Remoteproc and Rpmsg configurations useful e.g. for HMP style use cases. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-06-01aarch64: defconfig: re-base with v5.18Marcel Ziswiler
Re-base with v5.18 defconfig which BTW features some additions and clean-up my humble self upstreamed. - Drop any other archs than CONFIG_ARCH_APPLE (workaround CONFIG_ARCH_NR_GPIO=0) and CONFIG_ARCH_MXC again. - Enable CONFIG_NET_DSA_TAG_OCELOT et. al again. - Enable CONFIG_BT_RFCOMM again. - Enable CONFIG_BLK_DEV_RAM with a size of 64 MB again. - Drop some irrelevant CONFIG_NET_VENDORs again. - Build CONFIG_DWMAC_DWC_QOS_ETH as a module again. - Enable CONFIG_AX88796B_PHY, CONFIG_MICROCHIP_PHY, CONFIG_SMSC_PHY=m, CONFIG_MDIO_BITBANG, CONFIG_MDIO_BCM_UNIMAC=m and CONFIG_MDIO_THUNDER again. - Drop a bunch of CONFIG_SERIALs, CONFIG_I2Cs, CONFIG_SPIs, CONFIG_PINCTRLs and CONFIG_GPIOs again. - Build CONFIG_PPS_CLIENT_LDISC and CONFIG_PPS_CLIENT_GPIO as modules again. - Enable CONFIG_THERMAL_STATISTICS with a CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS of 10000 again. - Drop a bunch of CONFIG_VIDEOs, CONFIG_MEDIAs, CONFIG_DVBs, CONFIG_DRMs and CONFIG_SNDs again. - Enable CONFIG_USB_CONN_GPIO again. - Drop a bunch of CONFIG_USBs again. - Enable CONFIG_MEMORY again. - Drop a bunch of CONFIG_PHYs again. - Enable CONFIG_PHY_SAMSUNG_USB2 again. - Enable CONFIG_CRYPTO_DES, CONFIG_CRYPTO_DEV_AMLOGIC_GXL=m, CONFIG_INDIRECT_PIO, CONFIG_CRC_CCITT=m and CONFIG_CRC8 again. - Enable CONFIG_DYNAMIC_DEBUG again. Last but not least run it through savedefconfig again. This fixes the Verdin iMX8M Mini while booting not providing any Ethernt, PCIe and USB functionality. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2022-05-31tegra124: defconfig: enable more networking configurationsMarcel Ziswiler
Enable more networking configurations useful e.g. for TSN style use cases. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>