<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k, branch a3ec85507370efd7802837aabebe691c1f6b34db</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=a3ec85507370efd7802837aabebe691c1f6b34db</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=a3ec85507370efd7802837aabebe691c1f6b34db'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2023-11-26T18:44:56Z</updated>
<entry>
<title>u-boot: introduce dependencies check for swig and pyelftools</title>
<updated>2023-11-26T18:44:56Z</updated>
<author>
<name>Tianling Shen</name>
</author>
<published>2023-06-25T16:37:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a3ec85507370efd7802837aabebe691c1f6b34db'/>
<id>urn:sha1:a3ec85507370efd7802837aabebe691c1f6b34db</id>
<content type='text'>
They are required by modern u-boot builds,
e.g. uboot-rockchip and uboot-sunxi.

Signed-off-by: Tianling Shen &lt;cnsztl@immortalwrt.org&gt;
</content>
</entry>
<entry>
<title>ipq40xx: enable UBI size checks for some Linksys NAND devices</title>
<updated>2023-11-26T17:37:21Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2023-11-11T12:53:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a7818e0550a2594d50d2874c1321784be093d8d2'/>
<id>urn:sha1:a7818e0550a2594d50d2874c1321784be093d8d2</id>
<content type='text'>
Add correct NAND_SIZE in device definitions for EA6350v3, EA8300, MR8300,
WHW01 and WHW03v2, to enable improved image size checks wrt UBI reserved
blocks on NAND devices.

Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>image: improve UBI image sizing on NAND devices</title>
<updated>2023-11-26T17:37:20Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2023-11-11T12:46:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=fc16df9fdd596d1a3f5c3be897dc0cf69c84c469'/>
<id>urn:sha1:fc16df9fdd596d1a3f5c3be897dc0cf69c84c469</id>
<content type='text'>
Many NAND devices use a build recipe with "append-ubi | check-size" to
ensure factory images don't exceed the target flash partition size.
However, UBI reserves space for bad block handling and other operational
overhead, and thus 'check-size' can overestimate the space available by
several MB. In practice, this means a failed check is definitely a failure,
while a passing check is only probably a pass.

Improve the situation by teaching 'Build/append-ubi' to check image sizes
while accounting for UBI reserved blocks. Add new device variable NAND_SIZE
and use with existing IMAGE_SIZE to derate the available space. Each UBI
device reserves 20 PEBs per 1024 PEBs of the entire NAND device for bad
blocks, plus an additional 4 PEBs overhead.

Many devices can transparently enable this check by setting NAND_SIZE based
on their flash storage, and may then remove any unneeded 'check-size'.

Link: http://www.linux-mtd.infradead.org/doc/ubi.html#L_overhead

Suggested-by: Shiji Yang &lt;yangshiji66@qq.com&gt;
Suggested-by: Robert Marko &lt;robimarko@gmail.com&gt;
Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>image: fix Linksys image alignment and simplify footer creation</title>
<updated>2023-11-26T17:37:20Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2023-11-14T01:14:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=cd5e0134b6bd2e34ad237d985da99c5307816c93'/>
<id>urn:sha1:cd5e0134b6bd2e34ad237d985da99c5307816c93</id>
<content type='text'>
Current factory image sizes for Linksys devices are 256-byte aligned. This
is not an issue writing factory images from the OpenWrt or Linksys GUIs,
but can lead to failures using a TFTP client from the Linksys bootloader:

     NAND write: device 1 offset 0x2800000, size 0xc00100
     Attempt to write to non page aligned data
     NAND write to offset 2800000 failed -22
      0 bytes written: ERROR

Simplify Linksys footer creation by migrating to a makefile build recipe,
and pre-pad the footer (with 0xFF) to ensure the final image is $(PAGESIZE)
aligned.  Finally, remove the old linksys-image.sh script no longer needed.

Linksys footer details are given below for future reference. The 256-byte
footer is appended to factory images and tested by both the Linksys
Upgrader (observed in EA6350v3) and OpenWrt sysupgrade.

  Footer format:
    .LINKSYS.     Checked by Linksys upgrader before continuing.  (9 bytes)
    &lt;VERSION&gt;     Upgrade version number, unchecked so arbitrary. (8 bytes)
    &lt;TYPE&gt;        Model of device, space padded (0x20).          (15 bytes)
    &lt;CRC&gt;         CRC checksum of factory image to flash.         (8 bytes)
    &lt;padding&gt;     Padding ('0' + 0x20 * 7)                        (8 bytes)
    &lt;signature&gt;   Signature of signer, unchecked so arbitrary.   (16 bytes)
    &lt;padding&gt;     Padding with nulls (0x00)                     (192 bytes)

Link: https://github.com/openwrt/openwrt/pull/11405#issuecomment-1358510123
Link: https://github.com/openwrt/openwrt/pull/11405#issuecomment-1587517739

Reported-by: Stijn Segers &lt;foss@volatilesystems.org&gt;
Reported-by: Wyatt Martin &lt;wawowl@gmail.com&gt;
Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>image: use helper function for size units</title>
<updated>2023-11-26T17:37:20Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2023-11-11T12:29:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b16e14a220fcab19e3145328057e7188f00b6a17'/>
<id>urn:sha1:b16e14a220fcab19e3145328057e7188f00b6a17</id>
<content type='text'>
Add the make function 'exp_units' for helping evaluate k/m/g size units in
expressions, and use this to consistently replace many ad hoc substitutions
like '$(subst k,* 1024,$(subst m, * 1024k,$(IMAGE_SIZE)))' in makefiles.

Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>ipq40xx: fix typo in Linksys WHW01 image definition</title>
<updated>2023-11-26T17:37:20Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2023-10-02T04:51:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c66511bc488c3665d47dd60baf981ca1c385c221'/>
<id>urn:sha1:c66511bc488c3665d47dd60baf981ca1c385c221</id>
<content type='text'>
Use lower-case "k" in IMAGE_SIZE for Linksys WHW01, permitting proper unit
conversions in build recipes (e.g. 75776k -&gt; 75776*1024).

Fixes: 2a9f3b7717 ("ipq40xx: fix up Linksys WHW01 board name, device definition")
Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>ath79: add support for D-link DAP-1720 A1</title>
<updated>2023-11-26T17:27:35Z</updated>
<author>
<name>Rani Hod</name>
</author>
<published>2023-11-12T23:15:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=e29f4a3f70d278cf7e360519d97d94f54baae278'/>
<id>urn:sha1:e29f4a3f70d278cf7e360519d97d94f54baae278</id>
<content type='text'>
D-Link DAP-1720 rev A1 is a mains-powered AC1750 Wi-Fi range extender,
manufactured by Alpha Networks [8WAPAC28.1A1G].
(in square brackets: PCB silkscreen markings)

Specifications:
* CPU (Qualcomm Atheros QCA9563-AL3A [U5]):
  775 MHz single core MIPS 74Kc;
* RAM (Winbond W9751G6KB-25J [U3]):
  64 MiB DDR2;
* ROM (Winbond W25Q128FV [U16]):
  16 MiB SPI NOR flash;
* Ethernet (AR8033-AL1A PHY [U1], no switch):
  1 GbE RJ45 port (no PHY LEDs);
* Wi-Fi
  * 2.4 GHz (Qualcomm Atheros QCA9563-AL3A [U5]):
    3x3 802.11n;
  * 5 GHz (Qualcomm Atheros QCA9880-BR4A [U9]):
    3x3 802.11ac Wave 1;
  * 3 foldable dual-band antennas (U.fl) [P1],[P2],[P3];
* GPIO LEDs:
  * RSSI low (red/green) [D2];
  * RSSI medium (green) [D3];
  * RSSI high (green) [D4];
  * status (red/green) [D5];
* GPIO buttons:
  * WPS [SW1], co-located with status LED;
  * reset [SW4], accessible via hole in the side;
* Serial/UART:
  Tx-Gnd-3v3-Rx [JP1], Tx is the square pin, 1.25mm pitch;
  125000-8-n-1 in U-boot, 115200-8-n-1 in kernel;
* Misc:
  * 12V VCC [JP2], fed from internal 12V/1A AC to DC converter;
  * on/off slide switch [SW2] (disconnects VCC mechanically);
  * unpopulated footprints for a Wi-Fi LED [D1];
  * unpopulated footprints for a 4-pin 3-position slide switch (SW3);

MAC addresses:
* Label = LAN;
* 2.4 GHz WiFi = LAN;
* 5 GHz WiFi = LAN+2;

Installation:
* `factory.bin` can be used to install OpenWrt from OEM firmware via the
  standard upgrade webpage at http://192.168.0.50/UpdateFirmware.html
* `recovery.bin` can be used to install OpenWrt (or revert to OEM
  firmware) from D-Link Web Recovery. To enter web recovery, keep reset
  button pressed and then power on the device. Reset button can be
  released when the red status LED is bright; it will then blink slowly.
  Set static IP to 192.168.0.10, navigate to http://192.168.0.50 and
  upload 'recovery.bin'. Note that in web recovery mode the device
  ignores ping and DHCP requests.

Note: 802.11s is not supported by the default `ath10k` driver and
firmware, but is supported by the non-CT driver and firmware variants.
The `-smallbuffers` driver variant is recommended due to RAM size.

Co-developed-by: Anthony Sepa &lt;protectivedad@gmail.com&gt;
Signed-off-by: Rani Hod &lt;rani.hod@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: ar: convert to mac-base</title>
<updated>2023-11-26T05:34:18Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2023-11-26T04:36:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=b7f26c63929da908f83c767689bc25ef161db466'/>
<id>urn:sha1:b7f26c63929da908f83c767689bc25ef161db466</id>
<content type='text'>
Replacement for deprecated mac-address-increment

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: ar: convert to nvmem-layout</title>
<updated>2023-11-26T05:34:18Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2023-11-26T03:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=9783340af9db3be4e21d89426090c394a3074856'/>
<id>urn:sha1:9783340af9db3be4e21d89426090c394a3074856</id>
<content type='text'>
Will allow removing deprecated mac-address-increment.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>ath79: tp9343: convert to nvmem-layout</title>
<updated>2023-11-26T03:43:35Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2023-11-26T01:36:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=de1d9da150a5381e8cbc363be892ebb698188db8'/>
<id>urn:sha1:de1d9da150a5381e8cbc363be892ebb698188db8</id>
<content type='text'>
Allows getting rid of deprecated mac-address-increment.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
</feed>
