<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/target/linux, 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>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>ipq40xx: add support for Linksys WHW01 v1</title>
<updated>2022-05-19T14:39:11Z</updated>
<author>
<name>Peter Adkins</name>
</author>
<published>2021-06-09T20:35:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=20847f070f28df6f8eeacd9c9447ab3b497b2b84'/>
<id>urn:sha1:20847f070f28df6f8eeacd9c9447ab3b497b2b84</id>
<content type='text'>
This patch adds support for Linksys WHW01 v1 ("Velop") [FCC ID Q87-03331].

Specification
-------------

SOC:             Qualcomm IPQ4018
WiFi 1:          Qualcomm QCA4019 IEEE 802.11b/g/n
WiFi 2:          Qualcomm QCA4019 IEEE 802.11a/n/ac
Bluetooth:       Qualcomm CSR8811 (A12U)
Ethernet:        Qualcomm QCA8072 (2-port)
SPI Flash 1:     Mactronix MX25L1605D (2MB)
SPI Flash 2:     Winbond W25M02GV (256MB)
DRAM:            Nanya NT5CC128M16IP-DI (256MB)
LED Controller:  NXP PCA963x (I2C)
Buttons:         Single reset button (GPIO).

Notes
-----

There does not appear to be a way to trigger TFTP recovery without entering
U-Boot. The device must be opened to access the serial console in order to
first flash OpenWrt onto a device from factory.

The device has automatic recovery backed by a second set of partitions on
the larger of the two SPI flash ICs. Both the primary and secondary must
be flashed to prevent accidental rollback to "factory" after 3 failed boot
attempts.

Serial console
--------------

A serial console is available on the following pins of the populated J2
connector on the device mainboard (115200 8n1).

(&lt;-- Top of PCB / Device)

  J2
  [o o o o o o]
       |   | |
       |   |  `-- GND
       |    `---- TX
       `--------- RX

Installation instructions
-------------------------

1. Setup TFTP server with server IP set to 192.168.1.236.
2. Copy compiled `...squashfs-factory.bin` to `nodes-jr.img` in tftp root.
3. Connect to console using pinout detailed in the serial console section.
4. Power on device and press enter when prompted to drop into U-Boot.
5. Flash first partition device via `run flashimg`.
6. Once complete, reset device and allow to power up completely.
7. Once comfortable with device upgrade reboot and drop back into U-Boot.
8. Flash the second partition (recovery) via `run flashimg2`.

Revert to "factory"
-------------------

1. Download latest firmware update from vendor support site.
2. Copy extracted `.img` file to `nodes-jr.img` in tftp root.
3. Connect to console using pinout detailed in the serial console section.
4. Power on device and press enter when prompted to drop into U-Boot.
5. Flash first partition device via `run flashimg`.
6. Once complete, reset device and allow to power up completely.
7. Once comfortable with device upgrade reboot and drop back into U-Boot.
8. Flash the second partition (recovery) via `run flashimg2`.

Signed-off-by: Peter Adkins &lt;peter@sunkenlab.com&gt;
(calibration from nvmem, updated to 5.10+5.15)
Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>ipq40xx: mikrotik: dont include ath10k-board-qca4019 by default</title>
<updated>2022-05-19T09:07:02Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2022-05-14T18:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=5eee67a72fed52ac686dd467d93eea95d44c8dff'/>
<id>urn:sha1:5eee67a72fed52ac686dd467d93eea95d44c8dff</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 dont include the ath10k-board-qca4019 package on the
MikroTik subtarget.

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
