<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey, branch master</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2022-05-19T14:39:54Z</updated>
<entry>
<title>ipq40xx: only include ath10k-board-qca4019 for the generic subtarget</title>
<updated>2022-05-19T14:39:54Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2021-11-12T12:17:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=5dbc370d8e6172b863c6ffff8082e017a90c4db7'/>
<id>urn:sha1:5dbc370d8e6172b863c6ffff8082e017a90c4db7</id>
<content type='text'>
Since MikroTik subtarget now uses dynamic BDF loading its crucial that it
doesnt include the board-2.bin at all which is provided by the
ath10k-board-qca4019 package.

So to resolve this include the ath10k-board-qca4019 package only for the
generic subtarget via its Makefile instead of via the target Makefile.

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>ipq40xx: dynamically build board-2.bin for Mikrotik</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2022-02-06T00:42:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=cfee3f2eeecc75abed3294a8b949c2ca48c3c08c'/>
<id>urn:sha1:cfee3f2eeecc75abed3294a8b949c2ca48c3c08c</id>
<content type='text'>
Mikrotik devices ship with the boardfile data right on the board itself.
This script takes the data from the sysfs firmware "wlan_data" to
generate a custom board-2.bin for the ath10k driver to work with.

The qcom,ath10k-calibration-variant in each device's device-tree file
are being removed as well.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>ipq40xx: RT-AC58U: Try ARTIFACTS for install.trx</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2022-01-08T18:29:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=394db1b0f019aecad9512808531577ba2d57c2af'/>
<id>urn:sha1:394db1b0f019aecad9512808531577ba2d57c2af</id>
<content type='text'>
Previous attempts of generating an "IMAGES" based approaches
to provide a ready-to-go image that can be flashed through
the vendor firmware's WEB-UI or via the bootloader Option 1
in order to perform a serial-console-less installation all
had the downsides. Either they rendered the INITRAMFS unusable
for the bootloader option 2, or broke the IMAGEBUILDER.

This hopefully does neither. The IMAGE_SIZE was changed to
account for the added 64 Byte U-Boot header.

WARNING: Hmm, this could/did break if the initramfs isn't available...
(But let's not forget it again that this is dangerous)

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: leds: do reverse lookup in get_dt_led()</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2021-10-20T22:35:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=0a7a4a0f77a26009eb6429674b83e544761d74c9'/>
<id>urn:sha1:0a7a4a0f77a26009eb6429674b83e544761d74c9</id>
<content type='text'>
In order to match the "label"-less DT properties we have to get
creative. In theory the dt-node should have everything (i.e.:
color, function and function-enumerator) to make the device-name
in /sys/class/leds. But thanks to color being a binary value
and not a "string", we would have to maintain a lookup table that
keeps in sync with the dt-binding.

It's much easier to use the "uevent" property of every led-class
device and do reverse lookup with it by comparing the OF_FULLNAME
with the alias pathname.

(This works with gpio-leds ... let's see where it breaks)

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: add Cisco Meraki MR18</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2021-07-30T15:59:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=7d5f6d0d675eb6af6a1efe323c45f8f8c0fce861'/>
<id>urn:sha1:7d5f6d0d675eb6af6a1efe323c45f8f8c0fce861</id>
<content type='text'>
Specifications:

SOC:    Atheros/Qualcomm QCA9557-AT4A @ 720MHz
RAM:    2x Winbond W9751G6KB-25 (128 MiB)
FLASH:  Hynix H27U1G8F2BTR-BC TSOP48 ONFI NAND (128 MiB)
WIFI1:  Atheros AR9550 5.0GHz (SoC)
WIFI2:  Atheros AR9582-AR1A 2.4GHz
WIFI2:  Atheros AR9582-AR1A 2.4GHz + 5GHz
PHYETH: Atheros AR8035-A, 802.3af PoE capable Atheros (1x Gigabit LAN)
LED:    1x Power-LED, 1 x RGB Tricolor-LED
INPUT:  One Reset Button
UART:   JP1 on PCB (Labeled UART), 3.3v-Level, 115200n8
        (VCC, RX, TX, GND - VCC is closest to the boot set jumper
	 under the console pins.)

Flashing instructions:

Depending on the installed firmware, there fastly different methods
to flash a MR18. These have been documented on:
&lt;https://openwrt.org/toh/meraki/mr18&gt;

Note: upgrades from AR71XX are possible, but require the force
sysupgrade option.

The LEDs has changed since AR71XX. The white LED is now used during
the boot and when upgrading instead of the green tricolor LED.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: add Cisco Meraki Z1</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2021-06-23T20:46:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=92fc0e6063e30ef7202c20e276a123bf8684214a'/>
<id>urn:sha1:92fc0e6063e30ef7202c20e276a123bf8684214a</id>
<content type='text'>
Specifications:

SOC:	Atheros AR9344 @ 560MHz
RAM:	2x Winbond W9751G6KB-25 (128 MiB)
FLASH:	Hynix H27U1G8F2BTR (128 MiB)
WIFI1:	Atheros AR9340 5.0GHz (SoC)
WIFI2:	Atheros AR9280 2.4GHz
SWITCH:	Atheros AR8236 (5x Gigabit (1x WAN, 4x LAN)
LED:	1x Power-LED, 1 x RGB Tricolor-LED
INPUT:	One Reset Button
USB:	One USB 2.0 Port
UART:	JP1 on PCB (Labeled UART), 3.3v-Level, 115200n8
        (GND, TX, RX, VCC - GND is next to the UART silk screen)

Flashing Instructions:

Since this device is brought over from an old AR71xx, there's
already a wiki-page with detailed instructions:
&lt;https://openwrt.org/toh/meraki/z1&gt;

The gist:
1. Get a root-shell on the device (see wiki). (needs UART access)
2. make a backup (to a PC/safe location) of the existing Meraki
   firmware.
3. copy over the OpenWrt initramfs kernel for the Z1.
   This gets written into the kernel NAND partition.
   (Verify that written image is complete!)

After the following reboot and successfull boot of the staging
OpenWrt initramfs image:

4. copy over the sysupgrade.bin for the router and use sysupgrade
   to make the installation permanent.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: ar934x: still advertise subpage on soft ecc</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2021-07-31T01:33:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=84e114c79e1f84f2d0528203efe4d878760c82bb'/>
<id>urn:sha1:84e114c79e1f84f2d0528203efe4d878760c82bb</id>
<content type='text'>
This sort of reverts Koen Vandeputte's commit
6561ca1fa51 ("ath79: ar934x: fix mounting issues if subpage is not supported")

since it does not work on the MR18 as the UBI is coming from
Meraki in that way and it used to work with AR71XX before.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: nand: enable software BCH support</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2021-07-31T21:16:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=c7a1e16d7387da18fe1282240a8e124ce3903122'/>
<id>urn:sha1:c7a1e16d7387da18fe1282240a8e124ce3903122</id>
<content type='text'>
This is necessary to support the Meraki MR18 and likely Z1
as well.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>apm821xx: disable Netgear WNDR4700</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2020-08-11T17:14:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=5b5c8834e4ef64af92ae4fa03b508d880c368c24'/>
<id>urn:sha1:5b5c8834e4ef64af92ae4fa03b508d880c368c24</id>
<content type='text'>
This patch disables the Netgear WNDR4700 image, because as it turns
out that neither gzipped nor xz'd zImages would work. The reason for
the crash is that there are sevaral problems with Netgear's "bootcmd":

&gt; if loadn_dniimg 0 0x180000 0x4e0000 &amp;&amp; chk_dniimg 0x4e0000; then nand read 0x800000 0x180000 0x20000;bootm 0x500000 - 0x800040;else fw_recovery; fi"

This loads the dni-image starting offset 0x180000 from the NAND
flash (which is the DTB partition) to 0x4e0000 in the RAM. It then
checks whenever the provided image is "valid". If it is then it
reads the DTB again to 0x800000 in the RAM and starts the extraction
and boot process. (If the image wasn't valid then it starts the
automated firmware recovery).

The issues here are that first: the kernel image gets "squeezed"
between 0x500040 and 0x7fffff... And second, the decompressor
only has area 0x0 - 0x500000 for decompression.

Hence it would be much easier to "fix" the bootcmd by providing
new values (which have been successfully tested with the original
Netgear WNDR4700 v1.0.0.56 firmware) for the RAM locations and
make full use of the fact that loadn_dniimg loads the DTB as well.

This needs to be done only once. Just connect a serial adapter to
interface with uboot and overwrite (and save) the new bootcmd.

WARNING: The serial port needs a TTL/RS-232 3.3v level converter!

Steps:
 0. Power-off the WNDR4700
 1. Connect the serial interface (you need to open the WNDR4700)
 2. Power-up the WNDR4700
 3. Monitor the boot-sequence and hit "Enter"-key when it says:

  "Hit any key to stop autoboot" (Be quick, you have a ~2 second window)

 4. in the Prompt enter the following commands (copy &amp; paste)

 setenv bootcmd "if loadn_dniimg 0 0x180000 0xae0000 &amp;&amp; chk_dniimg 0xae0000; then bootm 0xb00000 - 0xae0040;else fw_recovery; fi"
 saveenv
 run bootcmd

Note: This new bootcmd will also unbrick devices that were bricked
by the bigger 4.19/5.4 kernels recently before the buildbot was
instructed to skip it.

Note2: This method was tested with a WNDR4700. A big kernel with most
debug features enabled on v5.4.52 measured 3.10 MiB when compressed
with lzma. The uncompressed kernel is 9.83 MiB. This is over the 3 MiB,
the device reserves for the kernel... But it booted! For bigger kernels,
the device needs repartitioning of the the ubi partition due to the
kernel+dtb not fitting into the partition.

Note3: For initramfs development. I would advice to load the initramfs
images to 0x800000 (or higher). i.e.: tftp 800000 wndr4700.bin

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>lldpd: always depend on libbsd</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Guilherme Janczak</name>
</author>
<published>2022-05-09T13:10:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=d0e9603dc27ed6b792b37761f1433f12e51fa2be'/>
<id>urn:sha1:d0e9603dc27ed6b792b37761f1433f12e51fa2be</id>
<content type='text'>
lldpd calls setproctitle() and strtonum(); its configure.ac script has
fallbacks for when they're not found, but they should come from libbsd
instead.

Signed-off-by: Guilherme Janczak &lt;guilherme.janczak@yandex.com&gt;
</content>
</entry>
</feed>
