openwrt/package/boot
Alberto Bursi ce73f89469 uboot-kirkwood: fix malformed boot configuration
With current uboot default configuration the bootloader will
fail to start the OpenWrt firmware with the following error:
-----
unexpected character 'b' at the end of partition
Error initializing mtdparts!
incorrect device type in ubi
Partition ubi not found!
Error, no UBI device/partition selected!
Wrong Image Format for bootm command
Error occured, error code = 112
-----

If the uboot configuration is examined with printenv
I can see that mdtparts line (on a nsa310) is wrong:
-----
mtdparts=mtdparts=orion_nand:0x0c0000(uboot),
0x80000(uboot_env),0x7ec0000(ubi)bootargs_root=
----

The "bootargs_root=" that was appended to it should not be there.

Fix the issue by adding a \0 line terminator at the end of affected lines,
mimicking what is also done by uboot upstream.

This issue was detected and confirmed on a nsa310, nsa325 and
a pogoplug v4, but it's not hardware-specific, so apply the same fix
to other devices as well.

Note that the issue is with the uboot's integrated boot configuration,
which is not used unless the uboot configuration in flash is unavailable
(erased or corrupted), which happens only on first time installation,
or if the user deletes the uboot configuration when upgrading uboot.
People just upgrading from an older uboot without erasing their previous
uboot configuration stored in flash would not have noticed this issue.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
2018-06-26 23:35:18 +02:00
..
apex ixp4xx: put apex images into image staging directory 2017-01-27 16:53:31 +01:00
arm-trusted-firmware-sunxi arm-trusted-firmware-sunxi: use release build and bump version 2018-02-05 12:58:27 +01:00
at91bootstrap at91: Add SAMA5D2 PTC EK board 2018-05-05 06:55:22 +02:00
fconfig treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
grub2 grub2: disable building platform code for target utility 2018-02-22 09:30:22 +01:00
imx-bootlets treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
kexec-tools kexec-tools: bump version to 2.0.16 2018-02-11 16:10:51 +01:00
kobs-ng kobs-ng: add header for integer definitions 2017-11-16 22:56:54 +01:00
rbcfg rbcfg: Implement CPU frequency control 2017-10-07 15:00:26 +02:00
uboot-ar71xx uboot-ar71xx: fix build error 2017-04-06 16:25:08 +02:00
uboot-at91 at91: Add SAMA5D2 PTC EK board 2018-05-05 06:55:22 +02:00
uboot-envtools ar71xx: add support for OCEDO Koala 2018-06-21 07:02:30 +02:00
uboot-fritz4040 ipq40xx: add target 2018-03-14 19:04:50 +01:00
uboot-imx6 uboot-imx6: fix build with GCC 7 2018-03-13 22:28:59 +01:00
uboot-kirkwood uboot-kirkwood: fix malformed boot configuration 2018-06-26 23:35:18 +02:00
uboot-lantiq lantiq: rename gphy firmware 2018-02-20 19:25:17 +01:00
uboot-layerscape layerscape: support ubifs rootfs in u-boot env 2018-02-13 10:01:51 +01:00
uboot-layerscape-armv8_32b layerscape: support ubifs rootfs in u-boot env 2018-02-13 10:01:51 +01:00
uboot-mvebu uboot-mvebu: fix build on hosts lacking pkg-config 2018-05-23 09:09:16 +02:00
uboot-mxs uboot-mxs: fix build on hosts lacking pkg-config 2018-05-23 09:29:28 +02:00
uboot-omap packages/uboot-omap: bugfix: serial using ns16550 fifo not enabled 2018-04-11 03:43:38 +02:00
uboot-oxnas uboot-oxnas: fix typo accidentally committed during oxnas reboot 2018-06-18 18:58:12 +02:00
uboot-sunxi sunxi: add build for sopine 2018-03-23 23:53:20 +01:00
uboot-xburst treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
uboot-zynq uboot-zynq: fix build on hosts lacking pkg-config 2018-05-23 09:40:45 +02:00
yamonenv packages: mark packages depending on a target as nonshared 2017-01-24 09:45:05 +01:00