<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/package/boot, branch v18.06.2</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v18.06.2</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v18.06.2'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2019-01-26T18:40:23Z</updated>
<entry>
<title>uboot-fritz4040: fix crash caused by interaction with gcc 7.1+</title>
<updated>2019-01-26T18:40:23Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2019-01-25T17:41:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=91d3b873530a9c6e27356ee99357bffdd6f042eb'/>
<id>urn:sha1:91d3b873530a9c6e27356ee99357bffdd6f042eb</id>
<content type='text'>
David Bauer reported a u-boot crash (data abort) at a odd
place (byteswap) when he ran ping/tftp on his 7530.

|(FRITZ7530) # ping 192.168.1.70
|eth0 PHY0 up Speed :1000 Full duplex
|eth0 PHY1 Down Speed :10 Half duplex
|eth0 PHY2 Down Speed :10 Half duplex
|eth0 PHY3 Down Speed :10 Half duplex
|eth0 PHY4 Down Speed :10 Half duplex
|Using eth0 device
|data abort
|pc : [&lt;84234774&gt;]      lr : [&lt;842351a4&gt;]
|sp : 8412fdb0  ip : 0000009b     fp : 00000000
|r10: 00000000  r9 : 00000001     r8 : 8412ff68
|r7 : 00000000  r6 : 0000002a     r5 : 84244e90  r4 : 8425e28e
|r3 : 84244e90  r2 : 14000045     r1 : 8412fdb0  r0 : 8425e28e
|Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
|Resetting CPU ...
|
|resetting ...

This issue is caused by switch from gcc 5.5 to 7.1+ as explained
in the upstream patch:

|From a768e513b07b5999a8e7d7740ac8d9da04ee7e51 Mon Sep 17 00:00:00 2001
|From: Denis Pynkin &lt;denis.pynkin@collabora.com&gt;
|Date: Fri, 21 Jul 2017 19:28:42 +0300
|Subject: [PATCH] net: Use packed structures for networking
|
|PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled
|by default for '-O2':
|
|BOOTP broadcast 1
|data abort
|pc : [&lt;8ff8bb30&gt;]          lr : [&lt;00004f1f&gt;]
|reloc pc : [&lt;17832b30&gt;]    lr : [&lt;878abf1f&gt;]
|sp : 8f558bc0  ip : 00000000     fp : 8ffef5a4
|r10: 8ffed248  r9 : 8f558ee0     r8 : 8ffef594
|r7 : 0000000e  r6 : 8ffed700     r5 : 00000000  r4 : 8ffed74e
|r3 : 00060101  r2 : 8ffed230     r1 : 8ffed706  r0 : 00000ddd
|Flags: nzcv  IRQs off  FIQs off  Mode S
|
|Core reason is usage of structures for network headers without packed
|attribute.

This patch just backports the upstream change to the
uboot-fritz4040 package.

Reported-by: David Bauer &lt;mail@david-bauer.net&gt;
Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>uboot-lantiq: fix compatibility with gcc7</title>
<updated>2018-09-26T18:36:32Z</updated>
<author>
<name>Martin Schiller</name>
</author>
<published>2018-09-24T12:09:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=0b99f08a64c3c3a49b1c994a9884c6f1c8bf12a9'/>
<id>urn:sha1:0b99f08a64c3c3a49b1c994a9884c6f1c8bf12a9</id>
<content type='text'>
Backport u-boot commit 704f3acfcf55343043bbed01c5fb0a0094a68e8a to fix
compatibility with gcc7.

Signed-off-by: Martin Schiller &lt;ms@dev.tdt.de&gt;
</content>
</entry>
<entry>
<title>grub2: rebase patches</title>
<updated>2018-08-30T12:11:36Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2018-08-23T17:08:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a662d6f6bcdcfd42713d4f4dc2d30698e451d280'/>
<id>urn:sha1:a662d6f6bcdcfd42713d4f4dc2d30698e451d280</id>
<content type='text'>
Patch 300-CVE-2015-8370.patch was added without proper rebasing on the
version used by OpenWrt, make it apply and refresh the patch to fix
compilation.

Fixes: 7e73e9128f ("grub2: Fix CVE-2015-8370")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
(cherry picked from commit 9ffbe84ea49fc643f41bfdf687de99aee17c9154)
</content>
</entry>
<entry>
<title>grub2: Fix CVE-2015-8370</title>
<updated>2018-08-30T11:16:20Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2018-08-23T02:07:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a0569f5e812bbe27d460085d7e4430a87c55bf95'/>
<id>urn:sha1:a0569f5e812bbe27d460085d7e4430a87c55bf95</id>
<content type='text'>
This CVE is a culmination of multiple integer overflow issues that cause
multiple issues like Denial of Service and authentication bypass.

More info: https://nvd.nist.gov/vuln/detail/CVE-2015-8370

Taken from Fedora.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
(cherry picked from commit 7e73e9128f6a63b9198c88eea97c267810447be4)
</content>
</entry>
<entry>
<title>uboot-kirkwood: fix malformed boot configuration</title>
<updated>2018-06-26T21:35:18Z</updated>
<author>
<name>Alberto Bursi</name>
</author>
<published>2018-06-26T19:48:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ce73f894691a5423e79d32b35f1b735f0bc2289a'/>
<id>urn:sha1:ce73f894691a5423e79d32b35f1b735f0bc2289a</id>
<content type='text'>
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 &lt;alberto.bursi@outlook.it&gt;
</content>
</entry>
<entry>
<title>ar71xx: add support for OCEDO Koala</title>
<updated>2018-06-21T05:02:30Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2018-05-29T15:00:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=0c4f658d58458e12a48663f1a910a0e909b7a5ee'/>
<id>urn:sha1:0c4f658d58458e12a48663f1a910a0e909b7a5ee</id>
<content type='text'>
This commit adds support for the OCEDO Koala

SOC:	Qualcomm QCA9558 (Scorpion)
RAM:    128MB
FLASH:  16MiB
WLAN1:  QCA9558 2.4 GHz 802.11bgn 3x3
WLAN2:  QCA9880 5 GHz 802.11nac 3x3
INPUT:  RESET button
LED:    Power, LAN, WiFi 2.4, WiFi 5, SYS
Serial: Header Next to Black metal shield
        Pinout is 3.3V - GND - TX - RX (Arrow Pad is 3.3V)
        The Serial setting is 115200-8-N-1.

Tested and working:
 - Ethernet
 - 2.4 GHz WiFi
 - 5 GHz WiFi
 - TFTP boot from ramdisk image
 - Installation via ramdisk image
 - OpenWRT sysupgrade
 - Buttons
 - LEDs

Installation seems to be possible only through booting an OpenWRT
ramdisk image.

Hold down the reset button while powering on the device. It will load a
ramdisk image named 'koala-uImage-initramfs-lzma.bin' from 192.168.100.8.

Note: depending on the present software, the device might also try to
pull a file called 'koala-uimage-factory'. Only the name differs, it
is still used as a ramdisk image.

Wait for the ramdisk image to boot. OpenWRT can be written to the flash
via sysupgrade or mtd.

Due to the flip-flop bootloader which we not (yet) support, you need to
set the partition the bootloader is selecting. It is possible from the
initramfs image with

 &gt; fw_setenv bootcmd run bootcmd_1

Afterwards you can reboot the device.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
(cherry picked from commit e36f8b3f3980903d5cefc51fe274c19c7a0719f2)
</content>
</entry>
<entry>
<title>uboot-oxnas: fix typo accidentally committed during oxnas reboot</title>
<updated>2018-06-18T16:58:12Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2018-06-18T16:54:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=763c0473c8137b236b6d7504b1c6df3d48f90ea4'/>
<id>urn:sha1:763c0473c8137b236b6d7504b1c6df3d48f90ea4</id>
<content type='text'>
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
(cherry-picked from ff0f3522b7)
</content>
</entry>
<entry>
<title>uboot-oxnas: fix build with newer GCC</title>
<updated>2018-06-18T16:57:56Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2018-06-01T13:25:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b32c304be867716054907738dacae2adc6c059dd'/>
<id>urn:sha1:b32c304be867716054907738dacae2adc6c059dd</id>
<content type='text'>
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
(cherry-picked from d44b7b7d31)
</content>
</entry>
<entry>
<title>oxnas: reboot target</title>
<updated>2018-06-18T16:44:14Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2018-05-31T15:28:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=6f398aa76248dfdbd1ea31b8ef32431be0f762ee'/>
<id>urn:sha1:6f398aa76248dfdbd1ea31b8ef32431be0f762ee</id>
<content type='text'>
Reboot the oxnas target based on Linux 4.14 by rebasing our support on
top of the now-existing upstream kernel support.
This commit brings oxnas support to the level of v4.17 having upstream
drivers for Ethernet, Serial and NAND flash.
Botch up OpenWrt's local drivers for EHCI, SATA and PCIe based on the
new platform code and device-tree.
Re-introduce base-files from old oxnas target which works for now but
needs further clean-up towards generic board support.

Functional issues:
 * PCIe won't come up (hence no USB3 on Shuttle KD20)
 * I2C bus of Akitio myCloud device is likely not to work (missing
   debounce support in new pinctrl driver)

Code-style issues:
 * plla/pllb needs further cleanup -- currently their users are writing
   into the syscon regmap after acquireling the clk instead of using
   defined clk_*_*() functions to setup multipliers and dividors.
 * PCIe phy needs its own little driver.
 * SATA driver is a monster and should be split into an mfd having
   a raidctrl regmap, sata controller, sata ports and sata phy.

Tested on MitraStar STG-212 aka. Medion Akoya MD86xxx and Shuttle KD20.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
(squash-picked commit 17511a7ea8 and commit dcc34574ef from master)
</content>
</entry>
<entry>
<title>uboot-zynq: fix build on hosts lacking pkg-config</title>
<updated>2018-05-23T07:40:45Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2018-05-23T07:32:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=60522320f6fc3b81748045a0670b43b87bd8d244'/>
<id>urn:sha1:60522320f6fc3b81748045a0670b43b87bd8d244</id>
<content type='text'>
The uboot-mvebu package incorrectly used the host pkg-config for the tool
build parts, which broke the build on systems lacking pkg-config and only
worked by accident on those that have it installed.

Export the host-build specific environment variables for the uboot build
to redirect pkg-config invocations to our staged host build pkg-config in
buildroot.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
(cherry picked from commit 1289e00fffaebad7ab1a9cec33c7b0472edb4527)
</content>
</entry>
</feed>
