summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* platform-rpi: Update firmware to current releasecfi/for-mainlineChris Fiege2018-11-199-0/+0
| | | | | | | | This firmware was taken from the official firmware repository at: https://github.com/raspberrypi/firmware from 86e3ccc14e43618f82a13e639002199de29a16b1 Signed-off-by: Chris Fiege <chris@tinyhost.de>
* rpi: kernel: enable ARM-optimized SHA256 implementationRoland Hieber2018-11-181-1/+5
| | | | | | | CRYPTO_SHA256 is set as a dependency of several modules, so CRYPTO_SHA256_ARM shold be used too. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: detect stack corruption when calling the schedulerRoland Hieber2018-11-181-1/+1
| | | | | | | | | | | This option checks for a stack overrun on calls to schedule(). If the stack end location is found to be overwritten, always panic as the content of the corrupted region can no longer be trusted. This is to ensure no erroneous behaviour occurs which could result in data corruption or a sporadic crash at a later stage once the region is examined. The runtime overhead introduced is minimal. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: suspend-to-RAM is not needed on RPi, disable itRoland Hieber2018-11-181-10/+1
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: disable swap supportRoland Hieber2018-11-181-3/+1
| | | | | | RPi doesn't have any usable storage for swap. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: USELIB is only needed for libc ≤ 5, disable itRoland Hieber2018-11-181-1/+1
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: BOOTP is obsolete and not needed when DHCP is enabledRoland Hieber2018-11-181-1/+1
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: make kernel and module text and rodata read-onlyRoland Hieber2018-11-181-2/+4
| | | | Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: disable ext2 and ext3 supportRoland Hieber2018-11-181-7/+3
| | | | | | | ext2 and ext3 have been replaced by ext4, and those two file systems are not used on the target. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: enable /proc/config.gzRoland Hieber2018-11-181-1/+3
| | | | | | /proc/config.gz is useful for debugging or rebuilding the kernel. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: harden memory copies between kernel and userspaceRoland Hieber2018-11-181-1/+3
| | | | | | | This protects against using obviously wrong memory regions when copying memory to/from the kernel. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* rpi: kernel: enable soft lockup detectorRoland Hieber2018-11-181-1/+4
| | | | | | | | The kernel lockup detector should be active, as it's low overhead and potentially provides useful debug output when the system is failing due to a lockup. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* platform rpi: enable some network diag optionsRobert Schwebel2018-11-161-3/+3
| | | | | | Enable some debug options needed for 'ss'. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform rpi: lower magic sysrq capabilitiesRobert Schwebel2018-11-151-1/+1
| | | | | | | | | To avoid security issues, only sync (MAGIC_SYSRQ_DEFAULT_ENABLE == 0x10) is allowed by default. Note: with systemd, another value is always set at runtime (also 0x10 by default) so the runtime default should be changed there. Suggested by 'reason' checker. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-rpi: kernel: version bump 4.18.14 -> 4.19Alexander Dahl2018-11-142-417/+452
| | | | Signed-off-by: Alexander Dahl <post@lespocky.de>
* ptxdist: migrate 2018.10.0 -> 2018.11.0Roland Hieber2018-11-144-223/+28
| | | | | | | | | | | | Switch to using the gdb version provided by the toolchain, and clear its md5sum to prevent problems in the get stage (see thread in [9]). Otherwise use the default configuration. Compile-tested on platforms v7a, v8a and rpi. [9]: https://www.mail-archive.com/ptxdist@pengutronix.de/msg13675.html Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* v7a/kernel: use CONSOLE_LOGLEVEL_DEFAULT=7Uwe Kleine-König2018-11-061-1/+1
| | | | | | | | This matches the default value for this symbol and the two other platforms use 7, too. This makes the machine emit the "normal" logging when the loglevel=5 parameter is removed from the kernel command line. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
* platform-rpi: platformconfig: some cleanupMichael Olbrich2018-10-261-5/+5
| | | | | | | | | | | - enable stack protector - link with --as-needed - don't add CONFIG_DEBUG_SECTION_MISMATCH=y to makevars - don't create the ipkg index All suggested by reason. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-rpi: platformconfig: building the kernel requires opensslMichael Olbrich2018-10-261-2/+2
| | | | | | Needed to build scripts/extract-cert (CONFIG_SYSTEM_TRUSTED_KEYRING). Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-rpi: image-boot-vfat: add missing dependencyMichael Olbrich2018-10-261-0/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-rpi: image-boot-vfat: add layer supportMichael Olbrich2018-10-262-4/+5
| | | | | | Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: barebox-am335x-mlo: add layer supportMichael Olbrich2018-10-261-1/+1
| | | | | | Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: barebox-vexpress: add layer supportMichael Olbrich2018-10-262-2/+8
| | | | | | Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: image-rpi2: add layer supportMichael Olbrich2018-10-261-6/+7
| | | | | | Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: barebox-rpi2: add layer supportMichael Olbrich2018-10-262-2/+8
| | | | | | Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: barebox-mx6: add layer supportMichael Olbrich2018-10-262-2/+8
| | | | | | Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: barebox-am335x: add layer supportMichael Olbrich2018-10-262-2/+8
| | | | | | Remove all references to PTXDIST_PLATFORMCONFIGDIR to do this. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* opkg-utils: port patches from ptxdist-2018.10.0+Robert Schwebel2018-10-247-0/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 35f0ce952563221b5774efe4873d8c2a9c6f967c in ptxdist master, a patch was added to propagate the Installed-Size properly. Fixes the following error when building the rpi platform. The patch stack can be removed again after ptxdist-2018.11.0. ----------------------------------- target: host-genext2fs.install.post ----------------------------------- finished target host-genext2fs.install.post finished target world.targetinstall Creating ipkg index '/home/rsc/git/DistroKit/platform-rpi/packages/Packages'... Traceback (most recent call last): File "/home/rsc/git/DistroKit/platform-rpi/sysroot-host/bin/opkg-make-index", line 128, in <module> pkg = opkg.Package(abspath, relpath=pkg_dir, all_fields=opt_f) File "/home/rsc/git/DistroKit/platform-rpi/sysroot-host/bin/opkg.py", line 183, in __init__ control = tarf.extractfile("./control") File "/usr/lib/python2.7/tarfile.py", line 2145, in extractfile tarinfo = self.getmember(member) File "/usr/lib/python2.7/tarfile.py", line 1829, in getmember raise KeyError("filename %r not found" % name) KeyError: "filename './control' not found" make: *** [/home/rsc/git/DistroKit/ptxdist/rules/post/image_ipkg.make:55: /home/rsc/git/DistroKit/platform-rpi/packages/Packages] Error 1 Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform v7a: kernel: version bump 4.18 -> 4.19Robert Schwebel2018-10-232-409/+446
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform: v7a: Remove no longer needed make ruleAlexander Dahl2018-10-231-49/+0
| | | | | | | | | That one was used before renaming the platform to v7a, and later reintroducing support for Raspberry Pi 2. The package is not activated anymore and so there's no need to overwrite the rule from ptxdist itself anymore. Signed-off-by: Alexander Dahl <ada@thorsis.com>
* platform: v7a: Loosen toolchain version to minor releaseAlexander Dahl2018-10-231-1/+1
| | | | | | | | | No need to insist on point release. This way a user can update the toolchain to (the not yet existent) 2018.02.x once it arrives, without the need to touch the BSP. This makes it consistent with the other platforms rpi and v8a. Signed-off-by: Alexander Dahl <post@lespocky.de>
* ptxconfig: don't install libanlMichael Olbrich2018-10-231-1/+1
| | | | | | It's not used by anything. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform: rpi: kernel: Activate support for thermal sensorAlexander Dahl2018-10-231-2/+156
| | | | | | | | For lm-sensors to be able to read the RPi temperatur sensor we need CONFIG_THERMAL and CONFIG_HWMON, see https://github.com/groeck/lm-sensors/issues/30 for details. Signed-off-by: Alexander Dahl <post@lespocky.de>
* platform: rpi: kernel: Upgrade from 4.14.4 to 4.18.14Alexander Dahl2018-10-232-181/+199
| | | | Signed-off-by: Alexander Dahl <post@lespocky.de>
* scripts: backport bugfix for /etc/issue generationRobert Schwebel2018-10-051-7/+8
| | | | | | | | | | | | | | In 4e3f122b9094f2e7c990207f7564ea575a455e07, the /etc/issue banner generation was ported back to the version from ptxdist-2018.09.0. It turned out that there is a bug in ptxdist-2018.10.0 (missing ,g in regular expression), so we go back to that version, with the missing ,g added. The fix should go into ptxdist-2018.11.0, so we can remove this local override afterwards. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2018.08.0 -> 2018.10.0Robert Schwebel2018-10-054-9/+31
| | | | | | | Update to ptxdist-2018.10.0, which is the first one that contains layering support. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* scripts: revert /etc/issue generation to pre-ptxdist-2018.10.0 variantRobert Schwebel2018-10-051-0/+56
| | | | | | | | The upstream rework of the banner generation from ptxdist commit f53889792197d93ca2f9bb7edc0d8e778c0ba9e2 is broken. Revert temporarily to the version from ptxdist-2018.09.0. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-rpi: kernel: enable CONFIG_BPF as suggested by reasonRoland Hieber2018-09-181-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | reason suggests: --- reference +++ suggested @@ -1 +1,11 @@ -systemd_cgroup_bpf: {} +systemd_cgroup_bpf: + history: + systemd_ptxdist.ref: + description: | + Since systemd 235 (present in PTXdist 2018.01) BPF programs + attached to cgroups are used to implement some of the + firewalling features. This requires kernel support. + analyzer: kconfig.KernelConfig()['CGROUP_BPF'] + matched: (kconfig.KernelConfig().version >= + kconfig.KernelConfig().parse_version('4.10') and + kconfig.PTXBSPConfig().version >= + kconfig.PTXBSPConfig().parse_version('2018.01')) + value: True + value: False CGROUP_BPF depends on CONFIG_BPF_SYSCALL, so enable that too. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* platform-rpi: ptxdist: version bump 2018.06.0 -> 2018.08.0Roland Hieber2018-09-141-32/+23
| | | | | | Run a ptxdist migrate with default settings. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* platform-rpi: image-boot-vfat: update section nameRoland Hieber2018-09-141-1/+1
| | | | | | | | Since ptxdist 2016.07, there is only one unified image section in platformconfig. If the package is in a section named "image2", it will never be built because that section no longer exists. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* platform-v8a: ptxdist: version bump 2018.06.0 -> 2018.08.0Roland Hieber2018-09-141-29/+20
| | | | | | Run a ptxdist migrate with default settings. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* ptxdist: version bump 2018.06.0 -> 2018.08.0Robert Schwebel2018-08-162-7/+32
| | | | | | A new ptxdist version is out, use it to build DistroKit. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* kernel: version bump 4.17 -> 4.18Robert Schwebel2018-08-152-35/+68
| | | | | | kernel.org has released 4.18, update to the new kernel. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2018.05.1 -> 2018.06.1Robert Schwebel2018-06-212-86/+70
| | | | | | We have a new ptxdist version, so update DistroKit. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* kernel: version bump 4.16 -> 4.17Robert Schwebel2018-06-212-116/+46
| | | | | | kernel.org has released 4.17, update to the new kernel. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* qemu: remove leftover patchesRoland Hieber2018-06-054-146/+0
| | | | | | | | | | | | | | | | | With PTXdist 2018.05, qemu was bumped to version 2.11.1, so those patches are no longer applied. - 0001-virtfs-proxy-helper-make-sure-sys-xattr.h-is-include.patch: unclear if still needed, but qemu now builds fine without it. (Someone should to check whether we still have an "older glibc".) In any case this patch should be applied in upstream PTXdist if needed. - 0002-hw-sd-fix-out-of-bounds-check-for-multi-block-reads.patch: applied in upstream qemu-2.11, commit 8573378e62d19e25a2434e - 0003-memfd-fix-configure-test.patch: applied in upstream ptxdist-2018.04.0, commit 99f897ba09b9d1528a4b Fixes: 22ae0f6 ("ptxdist: version bump 2018.03.0 -> 2018.05.0") Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* platform-v7a: kernel: re-activate virtio supportRoland Hieber2018-06-051-1/+5
| | | | | | | | | | | | | | | This got lost in commit 5dc9701fe9ec ("platform-v7a: kernel version bump 4.15 -> 4.16"), and resulted in a qemu system no longer able to mount external 9p devices: $ ./configs/platform-v7a/run 9p [...] [ 1.799073] 9pnet_virtio: no channels available for device /dev/root [ 1.800620] VFS: Cannot open root device "root" or unknown-block(0,0): error -2 [ 1.802147] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Fixes: 5dc9701fe9ec ("platform-v7a: kernel version bump 4.15 -> 4.16") Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* ptxdist: version bump 2018.03.0 -> 2018.05.0Roland Hieber2018-05-234-19/+11
| | | | | | | We're too late for 2018.04.0, so we skip it. Some packages moved into staging, but they were disabled anyway. Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* platform-v8a: toolchain version bump 2016.06 -> 2018.02Rouven Czerwinski2018-05-231-3/+3
| | | | | | | Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de> Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [rhi: fix typo in the subject] Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
* platform-v7a: kernel version bump 4.15 -> 4.16Robert Schwebel2018-05-182-36/+42
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>