summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* opkg-utils: remove local patchesMichael Olbrich2019-09-107-224/+0
| | | | | | | This was a backport from PTXdist upstream. The patches are identical to the patches in the current PTXdist version. The local copy is no longer needed. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: version bump 2019.08.0 -> 2019.09.0Robert Schwebel2019-09-054-12/+18
| | | | | | A new ptxdist version is out, use it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox: version bump 2019.07.0 → 2019.08.1Roland Hieber2019-08-2111-20/+378
| | | | Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: barebox: version bump 2019.06.1 -> 2019.07.0Ahmad Fatoum2019-08-2111-20/+34
| | | | | | | | | Particularly relevant in this release is the v5.2 device tree sync which is a prerequisite for the incoming STM32MP1 support. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Roland Hieber <rhi@pengutronix.de> Tested-by: Roland Hieber <rhi@pengutronix.de>
* ptxdist: version bump 2019.07.0 -> 2019.08.0Robert Schwebel2019-08-124-8/+10
| | | | | | A new ptxdist version is out, so we migrate Distrokit. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* kernel: deactivate CONFIG_VALIDATE_FS_PARSERRobert Schwebel2019-08-062-2/+2
| | | | | | | | The filesystem parameter description parser validation is not useful except when working on the mount interface and prints confusing messages during boot. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-rpi, platform-v7a: kernel: version bump 5.1 -> 5.2Robert Schwebel2019-07-096-133/+491
| | | | | | | | | | | Linux 5.2 is out, so we update the kernel to the new version. The config is mostly oldconfiged with defaults, but we enable CONFIG_NULL_TTY and CONFIG_COUNTER. The OMAP hardware random number generator was applied in the upstream kernel, so we can remove it here. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: barebox-rpi2: enable BCM283X_SDHOSTRoland Hieber2019-07-092-1/+2
| | | | | | | | | | | | Since barebox v2019.06.0 [1], there is now an driver for the sdhost on the RPi 3, and the sdhost/sdhci pin-swapping workaround in the RPi 3 device tree was undone again [2]. Therefore we now need to build the sdhost driver so the RPi 3 barebox can read SD cards again. [1]: barebox commit d6d3d0aecece84afe9eb ("mci: add driver for BCM283x sdhost core") [2]: barebox commit 9036d1db4d4a9a61bcda ("ARM: rpi3: remove swapped sdhci and sdhost") Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: barebox: version bump 2019.03.0 -> 2019.06.1Roland Hieber2019-07-0911-30/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | Just a simple oldconfig with default values for all variants with the help of ./scripts/update-diffs-v7a.sh. Changes in config symbols: * BAREBOX_MAX_PBLX_SIZE was removed in v2019.04.0 because pblx was removed. The maximum file size is now instead determined by BAREBOX_MAX_IMAGE_SIZE. [1] * The m25p80 driver was refactored to use the spi_mem API [2] (affects am355x and mx6) * The ARMv8 clocksource can now also work with ARMv7 timers, so it is auto-enabled by kconfig since barebox v2019.05.0. [3] * GPIO_BCM283X was replaced by PINCTRL_BCM283X in v2019.04.0. [4] * CRC16 was replaced by CRC_ITU_T in v2019.04.0 [5], but since it has no prompt in the menu and it is actually not selected by anyone except on am335x-mlo, it now stays disabled in the other variants. Relevant barebox commits: [1]: 9e72ea7a006cd0931913 ("images: pbl: verify CONFIG_BAREBOX_MAX_IMAGE_SIZE is not exceeded" [2]: 80b6b874944d7982e6c7 ("mtd: devices: m25p80: use the spi_mem_xx() API") [3]: dece707522434d5c8eb3 ("clocksource: Enable architected timer support for CPU_V7") [4]: be717102c8ba2d0ea022 ("pinctrl: bcm2835: move existing code from gpio.") [5]: 74de1afbd2ed4262d410 ("crc: import crc_itu_t() from kernel") Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* kernel: enable UTS_NSRobert Schwebel2019-07-083-3/+3
| | | | | | systemd requires UTS_NS, so enable it in the kernel. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: migrate from version 2019.06.0 to 2019.07.0Roland Hieber2019-07-084-10/+25
| | | | | | Keep all new features on their default values for now. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: barebox-vexpress: slim down config diffRoland Hieber2019-06-052-140/+113
| | | | | | | | | | | | | | | | | | | * don't disable common features unnecessarily: enable the features BZLIB, FS_FAT_LFN, FS_FAT_WRITE, FS_NFS, HWRNG, I2C, LED, LED_TRIGGERS, LZO_DECOMPRESS, MENU, NET_USB*, PINCTRL, REGULATOR, SPI, USB, USBGADGET_START, USB_EHCI, USB_GADGET, USB_GADGET_AUTOSTART, USB_GADGET_SERIAL, USB_HOST, USB_STORAGE WATCHDOG, XZ_DECOMPRESS, ZLIB, and the commands mmuinfo, bootz, clk, cmp, i2c, imd, led, trigger, let, ln, memtest, menu, menutree, mm, msleep, of_node, of_property, readf, regulator, sha1sum, spi, state, time, usb, usbgadget, and wd. All of those are enabled in the barebox-common config too, and make sense to have on a generic barebox. * repair compile log level < default log level by using the defaults * disable unneeded features: - CMD_LOADB: no one uses kermit these days Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: barebox-rpi2: slim down config diffRoland Hieber2019-06-052-180/+165
| | | | | | | | | | | | | | | | | | | | | * don't disable common features unnecessarily: enable the features BOOTM_*, BZLIB, DRIVER_SPI_GPIO, HWRNG, I2C, I2C_GPIO, IMD, LED_GPIO_OF, LZO_DECOMPRESS, MCI_MMCI, MTD, NET, NET_NFS, NET_RESOLV, NET_IFUP, NET_DHCP, NET_USB_*, OF_BAREBOX_DRIVERS, OF_NET, PINCTRL, RESET_SOURCE, STATE, USB_EHCI, USB_GADGET_SERIAL, USB_HOST, USB_STORAGE, XZ_DECOMPRESS, ZLIB, and the commands cmd, dhcp, host, i2c, imd, ip-route-get, led, trigger, memtest, ping, regulator, sha1sum, spi, state, tftp, and usb. All of those are enabled in the barebox-common config too, and make sense to have on a generic barebox. * repair compile log level < default log level by using the defaults * disable unneeded features: - CMD_LOADB: no one uses kermit these days - BAREBOXENV_TARGET: should come from a common barebox-tools package - CMD_MENU_MANAGEMENT: not used - PASSWORD: not used Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: barebox-mx6: slim down config diffRoland Hieber2019-06-052-40/+27
| | | | | | | | | | | | * don't disable common features unnecessarily: enable the features BZLIB, DRIVER_SPI_GPIO, I2C_GPIO, NET_NFS, STATE, XZ_DECOMPRESS, and the commands bootz, cmp, defaultenv, sha1sum, and state. All of those are enabled in the barebox-common config too, and make sense to have on a generic barebox. * repair compile log level < default log level by using the defaults * disable unused features (CMD_MENU_MANAGEMENT) Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: barebox-am335x: slim down config diffRoland Hieber2019-06-052-79/+49
| | | | | | | | | | | | | | | | | * don't disable common features unnecessarily: enable the features BZLIB, DRIVER_SPI_GPIO, HWRNG, I2C_GPIO, IMD, NET_USB*, REGULATOR, STATE, USB_EHCI, USB_HOST, XZ_DECOMPRESS, ZLIB, and the commands cmp, defaultenv, imd, memtest, regulator, sha1sum, state, and usb. All of those are enabled in the barebox-common config too, and make sense to have on a generic barebox. * repair compile log level < default log level by using the defaults * now that USB_HOST is enabled, MUSB_HOST makes sense too * disable unneeded features: - CMD_LOADB: no one uses kermit these days - FIT image support: not used - initrd support: not used Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: bareboxes: use config diffs with the common reference configRoland Hieber2019-06-059-0/+721
| | | | | | | | | | | | | | Make it easier to maintain a common set of features and also review the device-specific changes between all the barebox variants by using the config diff mechanism which has been available since PTXdist 2019.01.0. No barebox config was harmed in the making of this patch, only their difference to the common reference config was computed. Also add a helper script to regenerate the config diffs after the common config was changed. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: bareboxes: use shared settings from the barebox-common packageRoland Hieber2019-06-0511-39/+15
| | | | | | | | | | | As implemented in the previous commit, the barebox version and MD5 can be reduced to one entry in the menu. Also do the same for the host-lzop dependency, which will be needed for every barebox package when using the common reference config. Be sure to depend on the new barebox-common package so the barebox packages are rebuilt when the version and MD5 variables change. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: barebox-common: add a common reference config for all barebox variantsRoland Hieber2019-06-054-0/+853
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This package serves multiple purposes: * Make the barebox version and MD5 for all used barebox variants configurable with just one menu entry. * Have a common barebox configuration with a baseline feature set, which can be used by all barebox-* variants as a reference config with the config diff functionality introduced in PTXdist 2019.01.0. The common config is currently based on ARCH_BCM283X, which seems to generate the smallest config diff for all the existing device-specific barebox configs (which will be adapted in the next commits). The new barebox-common package only exists for the ability to call "ptxdist menuconfig" on it in order to change the common config. It isn't meant to build or install anything, so the compile, install and targetinstall stages can be no-ops. Also make sure that the menu entry for the common configuration is listed before all other barebox variants by naming the kconfig file appriopriately. Since the barebox-common config uses LZO image compression, depend on host-lzop too. Then configure it to use the version which is currently used for all other variants in the v7a platform. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* pre/barebox: barebox-url: only use <PKG>_VERSION to build the URLRoland Hieber2019-06-051-0/+6
| | | | | | | | | | | | | | | | | | | | When adding another barebox package to a BSP, e.g. named barebox-foo, the BAREBOX_FOO variable will contain "barebox-foo-$(VERSION)". This variable is used to build BAREBOX_DIR, BAREBOX_SOURCE, and BAREBOX_FOO_URL. We must to keep the customized package postfix in the build directory, but in the latter case, the -foo postfix is transferred into the URL, which will lead to errors while downloading the source. We actually only need the barebox version to download the source tarball, so use a static "barebox-" string to build the barebox/url macro and also the BAREBOX_FOO_SOURCE variable in the package template, so the same tarball isn't downloaded multiple times with different names. Forwarded: https://www.mail-archive.com/ptxdist@pengutronix.de/msg14535.html Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: remove unused barebox_mlo menu entryRoland Hieber2019-06-051-45/+0
| | | | | | There is no corresponding make file, and the package is not selected. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* ptxdist: version bump 2019.05.0 → 2019.06.0Robert Schwebel2019-06-034-30/+8
| | | | | | We have a new version; update. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a, platform-rpi: enable ARM unwinderRobert Schwebel2019-05-202-8/+8
| | | | | | The UNWINDER_ARM helps to get proper stack traces. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: switch on gpio trace eventsRobert Schwebel2019-05-201-1/+1
| | | | | | | 'reason' suggests: "Trace events for GPIOs are helpful and low-overhead, so don't disable them if tracing is enabled globally.", so enable them. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: vexpress: run qemu with CPU 4 coresMichael Olbrich2019-05-201-1/+1
| | | | | | | | Newer versions of qemu can use multiple threads to emulate the CPU cores. This can speed up booting significantly: 22 seconds instead of 34 seconds for multi-user.target on on test machine. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: barebox: add dependency to LZOP toolsJuergen Borleis2019-05-201-0/+1
| | | | | | | | | | | | | | Since commit 2532fa8e1faf66f5ee0dc52a5deafaba74a96562 "platform-v7a: barebox: use reworked vexpress patches" the bootloader gets compressed via 'lzop' tools. Due to the missing dependency to these build host tools, building this bootloader fails sporadically, depending on the build order. This change adds the explicit dependency to these 'lzop' tools to have it available when used. Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
* ptxdist: remove nonexistent config symbolRoland Hieber2019-05-071-1/+0
| | | | | | | | | | This symbol is not part of PTXdist 2019.05.0, it cannot be found in menuconfig, and is removed as soon as saving changes. It probably slipped in due to local changes in the working tree during the PTXdist update. Fixes: 643f557226e15c4a2ec8 ("ptxdist: version bump 2019.04.0 → 2019.05.0") Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* ptxconfig: enable hexdump reverseRobert Schwebel2019-05-071-1/+1
| | | | | | | | | | | 'reason' suggests: "The hexdump utility is useful to generate hexdumps from files and memory. With the -R option, it can also read hexdump so it can serve as a fallback to transfer files to the target when only a serial console is available." So enable it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-rpi/v7a: kernel version bump 5.0 -> 5.1Robert Schwebel2019-05-066-42/+125
| | | | | | The new kernel has been released today, so update. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2019.04.0 → 2019.05.0Robert Schwebel2019-05-034-8/+36
| | | | | | A new ptxdist version has been released, update. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2019.03.1 -> 2019.04.0Robert Schwebel2019-04-054-9/+10
| | | | | | A new ptxdist version has been released, update. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxconfig: enable sftp serverRobert Schwebel2019-03-302-8/+1
| | | | | | | | SFTP is used by sshfs, which is a useful tool to directly access files on a target machine from a development host. Enable it. Inspired-by: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* tests: remove old testlibRobert Schwebel2019-03-302-1536/+0
| | | | | | Nowadays we test with Jenkins and labgrid, so remove the old testlib. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2019.03.0 → 2019.03.1Roland Hieber2019-03-134-8/+8
| | | | | | | | | This fixes an errors in systemd.get, which only happened when that systemd tarball was not already downloaded previously: ptxdist: error: Wrong md5sum for 'systemd' (.../src/systemd-241-7-ga09c170122cf.tar.gz) Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* scripts: p-all: allow overriding ptxdist via $PTXDISTRoland Hieber2019-03-131-1/+8
| | | | | | | This actually makes it possible to call specific versions of PTXdist, e.g. when migrating to a specific version. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* platform-v7a: add patch for omap hwrngRouven Czerwinski2019-03-112-0/+36
| | | | | | | | | | | The kernel does not use the omap hwrng as an entropy source, since the quality is not set. The getrandom system call is now used by OpenSSH, which results in a long wait of 2 Minutes on first boot because of the ed25519 key generation. This patch sets the quality within the driver, allowing the beaglebone black to boot fast again. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
* platform-rpi: enable FORTIFY_SOURCESRouven Czerwinski2019-03-111-2/+1
| | | | | | This platform supports it, enable it. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
* platform v8a: enable FORTIFY_SOURCESRobert Schwebel2019-03-111-1/+1
| | | | | | The platform supports this hardening option, enable it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform v7a: enable FORTIFY_SOURCESRobert Schwebel2019-03-111-2/+1
| | | | | | The platform supports this hardening option, enable it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v8a: sync kernelconfigRoland Hieber2019-03-111-4/+0
| | | | | | | | The kernelconfig shows changes when doing a 'ptxdist oldconfig kernel', which were introduced previously in commit 7cb2beb67. Fixes: 7cb2beb67b21adbf3a5e ("platform-v8a: fix reason checks") Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v8a: enable gcc stack clash protectionRoland Hieber2019-03-111-1/+1
| | | | | | | | | | | | | | | This setting was introduced in PTXdist 2019.03.0: Generate code to prevent stack clash style attacks. When this option is enabled, the compiler will only allocate one page of stack space at a time and each page is accessed immediately after allocation. Thus, it prevents allocations from jumping over any stack guard page provided by the operating system. Make use of it to get more secure binaries with gcc-8's new -fstack-clash-protection option. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v8a: toolchain version bump 2018.02 → 2018.12Roland Hieber2019-03-111-3/+3
| | | | | | Update to OSELAS.Toolchain-2018.12, which has gcc 8.2.1 and glibc 2.28. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: sync kernelconfigRoland Hieber2019-03-111-2/+2
| | | | | | | | The compiler version is part of the kernelconfig, so changing the toolchain changes the kernelconfig too. Update the kernelconfig with a simple 'ptxdist oldconfig kernel'. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: enable gcc stack clash protectionRoland Hieber2019-03-111-1/+1
| | | | | | | | | | | | | | | This setting was introduced in PTXdist 2019.03.0: Generate code to prevent stack clash style attacks. When this option is enabled, the compiler will only allocate one page of stack space at a time and each page is accessed immediately after allocation. Thus, it prevents allocations from jumping over any stack guard page provided by the operating system. Make use of it to get more secure binaries with gcc-8's new -fstack-clash-protection option. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* v7a: toolchain version bump 2018.02 → 2018.12Roland Hieber2019-03-111-3/+3
| | | | | | Update to OSELAS.Toolchain-2018.12, which has gcc 8.2.1 and glibc 2.28. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* rpi: sync kernelconfigRoland Hieber2019-03-111-2/+2
| | | | | | | | The compiler version is part of the kernelconfig, so changing the toolchain changes the kernelconfig too. Update the kernelconfig with a simple 'ptxdist oldconfig kernel'. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* rpi: enable gcc stack clash protectionRoland Hieber2019-03-111-1/+1
| | | | | | | | | | | | | | | This setting was introduced in PTXdist 2019.03.0: Generate code to prevent stack clash style attacks. When this option is enabled, the compiler will only allocate one page of stack space at a time and each page is accessed immediately after allocation. Thus, it prevents allocations from jumping over any stack guard page provided by the operating system. Make use of it to get more secure binaries with gcc-8's new -fstack-clash-protection option. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* rpi: toolchain version bump 2018.02 → 2018.12Roland Hieber2019-03-111-3/+3
| | | | | | Update to OSELAS.Toolchain-2018.12, which has gcc 8.2.1 and glibc 2.28. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* ptxdist: version bump 2019.02.0 → 2019.03.0Roland Hieber2019-03-114-15/+13
| | | | | | Use the default config values. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* scripts: add helper to run PTXdist on all platformconfigsRoland Hieber2019-03-111-0/+6
| | | | | | | This makes it easier not to forget some platforms e.g. when doing a ptxdist migrate. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* gitignore all old config filesRoland Hieber2019-03-111-1/+1
| | | | | | | | | The platformconfig.old, kernelconfig.old, bareboxconfig.old etc. files are autogenerated by 'ptxdist oldconfig' and are only backups for the config before the oldconfig. Since the config files are versioned, those backup files have no value for us. Signed-off-by: Roland Hieber <rhi@pengutronix.de>