<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/adrian/target, branch rft-devices</title>
<subtitle>Staging tree of Adrian Schmutzler</subtitle>
<id>https://git.openwrt.org/openwrt/staging/adrian/atom?h=rft-devices</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/adrian/atom?h=rft-devices'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/'/>
<updated>2021-01-25T17:55:00Z</updated>
<entry>
<title>ath79: add support for TP-Link TL-WDR6500 v2</title>
<updated>2021-01-25T17:55:00Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-04-15T21:12:31Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=68f7438e8c94954e610744a5e4ab0fa1e1d48602'/>
<id>urn:sha1:68f7438e8c94954e610744a5e4ab0fa1e1d48602</id>
<content type='text'>
This ports the TP-Link TL-WDR6500 v2 from ar71xx to ath79.

Specifications:

  SoC: QCA9561
  CPU: 750 MHz
  Flash: 8 MiB (Winbond W25Q64FVSIG)
  RAM: 128 MiB
  WiFi 2.4 GHz: QCA956X 3x3 MIMO 802.11b/g/n
  WiFi 5 GHz: QCA9882-BR4A 2x2 MIMO 802.11a/n/ac
  Ethernet: 4x LAN and 1x WAN (all 100M)
  USB: 1x Header

Flashing instructions:

  As it appears, the device does not support flashing via GUI or
  TFTP, only serial is possible.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>config: limit CONFIG_PERF_EVENTS to top-level generic configs</title>
<updated>2021-01-25T13:37:41Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2020-10-21T16:13:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=0faa17235669da7f8a7cd7ab922a77b06d6d230a'/>
<id>urn:sha1:0faa17235669da7f8a7cd7ab922a77b06d6d230a</id>
<content type='text'>
Remove redundant target-level settings.

Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>malta: update target configs and fix build warnings</title>
<updated>2021-01-25T13:37:41Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2020-07-27T11:36:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=b67d086ef33ecd0f96075203ef5c766581b6c1b9'/>
<id>urn:sha1:b67d086ef33ecd0f96075203ef5c766581b6c1b9</id>
<content type='text'>
Comment out some conflicting target configs that are set from subtarget
configs, which sometimes lead to kernel compile warnings:

  scripts/kconfig/conf  --syncconfig Kconfig
  net/sched/Kconfig:45: warning: menuconfig statement without prompt
  .config:1038:warning: override: CPU_MIPS32_R2 changes choice state

Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>realtek: build ZyXEL vendor firmware compatible initramfs</title>
<updated>2021-01-24T17:12:34Z</updated>
<author>
<name>Bjørn Mork</name>
</author>
<published>2021-01-23T10:08:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=1fb413e6579a34a0040b526e681298909dfaa5ac'/>
<id>urn:sha1:1fb413e6579a34a0040b526e681298909dfaa5ac</id>
<content type='text'>
Append a device specific version trailer used by the stock
firmware upgrade application to validate firmwares.

The trailer contains a list of ZyXEL firmware version
numbers, which includes a four letter hardware identifier.
The stock web UI requires that the current hardware matches
one of the listed versions, and that the version number is
larger than a model specific minimum value. The minimum
version varies between V1.00 and V2.60 for the currently
known GS1900 models. The number is not used anywhere else
to our knowlege, and has no direct relation to the version
info in the u-image header.  We can therefore use an
arbitrary value larger than V2.60.

The stock firmware upgrade application will only load and
flash the part of the file specified in the u-image header,
regardless of file size.  It can therefore not be used to
flash images with an appended rootfs. There is therefore no
need to include the trailer in other images than the
initramfs. This prevents accidentally bricking by attempts
to flash other images from the stock web UI.

Stock images support all models in the series, listing
all of them in the version trailer.  OpenWrt provide model
specific images.  We therefore only list the single supported
hardware identifier for each image.  This eliminates the risk
of flashing the wrong OpenWrt image from stock web UI.

OpenWrt can be installed from stock firmware in two steps:

   1) flash OpenWrt initramfs image from stock web gui
   2) boot OpenWrt and sysupgrade to a squasfs image

The OpenWrt squashfs image depends on a static partition
map in the DTS.  It can only be installed to the "firmware"
partition.  This partition is labeled "RUNTIME1" in u-boot
and in stock firmware, and is referred to as "image 0" in
the stock flash management tool.  The OpenWrt initramfs
can be installed and run from either partitions. But if
you want to keep stock irmware in the spare system partition,
then you must make sure stock firmware is installed to the
"RUNTIME2" partition referred to as "image 1" in the stock
web UI. And the initial OpenWrt initramfs must be flashed
to "RUNTIME1"/"image 0".

The stock flash management application supports direct
selection of both which partition to flash and which
partition to boot next.  This allows software controlled
"dual-boot" between OpenWrt and stock firmware, without
using console access to u-boot. u-boot use the "bootpartition"
variable stored in the second u-boot environment to select
which of the two system partitions to boot.  This variable
is set by the stock flash management application, by direct
user input.  It can also be set in OpenWrt using e.g

 fw_setsys bootpartition 1

to select "RUNTIME2"/"image 1" as default, assuming a
stock firmware version is installed in that partition.

Signed-off-by: Bjørn Mork &lt;bjorn@mork.no&gt;
</content>
</entry>
<entry>
<title>realtek: use vendor-specific magic for ZyXEL</title>
<updated>2021-01-24T17:12:34Z</updated>
<author>
<name>Bjørn Mork</name>
</author>
<published>2021-01-23T10:08:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=ca4832fcac83bc375a48648bd77d3283d0742128'/>
<id>urn:sha1:ca4832fcac83bc375a48648bd77d3283d0742128</id>
<content type='text'>
The stock firmware of the ZyXEL GS1900 series use a non-standard
u-image magic.  This is not enforced by the stock u-boot, which is
why we could boot images with the default magic.  The flash
management application of the stock firmware will however verify
the magic, and refuse any image with another value.

Convert to vendor-specific value to get flash management support
in stock firmware, including the ability to upgrade to OpenWrt
directly from stock web UI.

Signed-off-by: Bjørn Mork &lt;bjorn@mork.no&gt;
</content>
</entry>
<entry>
<title>x86: fix upgrade by emptying SUPPORTED_DEVICES</title>
<updated>2021-01-23T22:42:47Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2021-01-23T21:09:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=29167cbca3653de05a8b915bc21327dac7d05174'/>
<id>urn:sha1:29167cbca3653de05a8b915bc21327dac7d05174</id>
<content type='text'>
x86 uses append-metadata, but only for signing and not for the
metadata itself.

Since recently SUPPORTED_DEVICES was assigned with a global value
and is not empty anymore, append-metadata will now actually put
metadata into x86 images. This breaks sysupgrade on x86.

To fix it for the moment, let's just empty SUPPORTED_DEVICES for
this target again.

In the long term, one should either not add metadata to the images
if it is not desired, and/or remove the unintended fwtool check.

Fixes: f52081bcf938 ("treewide: provide global default for SUPPORTED_DEVICES")

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>bcm53xx: use default SUPPORTED_DEVICES for Meraki MR32</title>
<updated>2021-01-23T22:42:47Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2021-01-23T21:03:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=4571ef48d8226dda152f921bd12eb254bea001bd'/>
<id>urn:sha1:4571ef48d8226dda152f921bd12eb254bea001bd</id>
<content type='text'>
Since the new global SUPPORTED_DEVICES are now available in bcm53xx
as well, we do not need to specify an explicit value for the MR32
anymore.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>ath79: add support for Senao Engenius EAP1200H</title>
<updated>2021-01-23T11:53:22Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2021-01-10T07:40:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=96017a60138bdf97d2f1f7e7b519b4ad6ff13b88'/>
<id>urn:sha1:96017a60138bdf97d2f1f7e7b519b4ad6ff13b88</id>
<content type='text'>
FCC ID: A8J-EAP1200H

Engenius EAP1200H is an indoor wireless access point with
1 Gb ethernet port, dual-band wireless,
internal antenna plates, and 802.3at PoE+

**Specification:**

  - QCA9557 SOC
  - QCA9882 WLAN	PCI card, 5 GHz, 2x2, 26dBm
  - AR8035-A PHY	RGMII GbE with PoE+ IN
  - 40 MHz clock
  - 16 MB FLASH		MX25L12845EMI-10G
  - 2x 64 MB RAM	NT5TU32M16FG
  - UART at J10		populated
  - 4 internal antenna plates (5 dbi, omni-directional)
  - 5 LEDs, 1 button (power, eth0, 2G, 5G, WPS) (reset)

**MAC addresses:**

  MAC addresses are labeled as ETH, 2.4G, and 5GHz
  Only one Vendor MAC address in flash

  eth0 ETH  *:a2 art 0x0
  phy1 2.4G *:a3 ---
  phy0 5GHz *:a4 ---

**Serial Access:**

  the RX line on the board for UART is shorted to ground by resistor R176
  therefore it must be removed to use the console
  but it is not necessary to remove to view boot log

  optionally, R175 can be replaced with a solder bridge short

  the resistors R175 and R176 are next to the UART RX pin at J10

**Installation:**

  2 ways to flash factory.bin from OEM:

  Method 1: Firmware upgrade page:

    OEM webpage at 192.168.1.1
    username and password "admin"
    Navigate to "Firmware Upgrade" page from left pane
    Click Browse and select the factory.bin image
    Upload and verify checksum
    Click Continue to confirm and wait 3 minutes

  Method 2: Serial to load Failsafe webpage:

    After connecting to serial console and rebooting...
    Interrupt uboot with any key pressed rapidly
    execute `run failsafe_boot` OR `bootm 0x9fd70000`
    wait a minute
    connect to ethernet and navigate to
    "192.168.1.1/index.htm"
    Select the factory.bin image and upload
    wait about 3 minutes

**Return to OEM:**

  If you have a serial cable, see Serial Failsafe instructions
  otherwise, uboot-env can be used to make uboot load the failsafe image

  *DISCLAIMER*
  The Failsafe image is unique to Engenius boards.
  If the failsafe image is missing or damaged this will brick the device
  DO NOT downgrade to ar71xx this way, it can cause kernel loop or halt

  ssh into openwrt and run
  `fw_setenv rootfs_checksum 0`
  reboot, wait 3 minutes
  connect to ethernet and navigate to 192.168.1.1/index.htm
  select OEM firmware image from Engenius and click upgrade

**TFTP recovery:**

  Requires serial console, reset button does nothing

  rename initramfs to 'vmlinux-art-ramdisk'
  make available on TFTP server at 192.168.1.101
  power board, interrupt boot
  execute tftpboot and bootm 0x81000000

  NOTE: TFTP is not reliable due to bugged bootloader
  set MTU to 600 and try many times

**Format of OEM firmware image:**

  The OEM software of EAP1200H is a heavily modified version
  of Openwrt Kamikaze. One of the many modifications
  is to the sysupgrade program. Image verification is performed
  simply by the successful ungzip and untar of the supplied file
  and name check and header verification of the resulting contents.
  To form a factory.bin that is accepted by OEM Openwrt build,
  the kernel and rootfs must have specific names...

    openwrt-ar71xx-generic-eap1200h-uImage-lzma.bin
    openwrt-ar71xx-generic-eap1200h-root.squashfs

  and begin with the respective headers (uImage, squashfs).
  Then the files must be tarballed and gzipped.
  The resulting binary is actually a tar.gz file in disguise.
  This can be verified by using binwalk on the OEM firmware images,
  ungzipping then untaring.

  Newer EnGenius software requires more checks but their script
  includes a way to skip them, otherwise the tar must include
  a text file with the version and md5sums in a deprecated format.

  The OEM upgrade script is at /etc/fwupgrade.sh.

  OKLI kernel loader is required because the OEM software
  expects the kernel to be no greater than 1536k
  and the factory.bin upgrade procedure would otherwise
  overwrite part of the kernel when writing rootfs.

Note on PLL-data cells:

  The default PLL register values will not work
  because of the external AR8035 switch between
  the SOC and the ethernet port.

  For QCA955x series, the PLL registers for eth0 and eth1
  can be see in the DTSI as 0x28 and 0x48 respectively.
  Therefore the PLL registers can be read from uboot
  for each link speed after attempting tftpboot
  or another network action using that link speed
  with `md 0x18050028 1` and `md 0x18050048 1`.

  The clock delay required for RGMII can be applied
  at the PHY side, using the at803x driver `phy-mode`.
  Therefore the PLL registers for GMAC0
  do not need the bits for delay on the MAC side.
  This is possible due to fixes in at803x driver
  since Linux 5.1 and 5.3

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
<entry>
<title>treewide: provide global default for SUPPORTED_DEVICES</title>
<updated>2021-01-23T11:45:21Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2021-01-19T19:05:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=f52081bcf938efcd910832f3c3713ab9f3ca0738'/>
<id>urn:sha1:f52081bcf938efcd910832f3c3713ab9f3ca0738</id>
<content type='text'>
The majority of our targets provide a default value for the variable
SUPPORTED_DEVICES, which is used in images to check against the
compatible on a running device:

  SUPPORTED_DEVICES := $(subst _,$(comma),$(1))

At the moment, this is implemented in the Device/Default block of
the individual targets or even subtargets. However, since we
standardized device names and compatible in the recent past, almost
all targets are following the same scheme now:

  device/image name:  vendor_model
  compatible:         vendor,model

The equal redundant definitions are a symptom of this process.

Consequently, this patch moves the definition to image.mk making it
a global default. For the few targets not using the scheme above,
SUPPORTED_DEVICES will be defined to a different value in
Device/Default anyway, overwriting the default. In other words:
This change is supposed to be cosmetic.

This can be used as a global measure to get the current compatible
with: $(firstword $(SUPPORTED_DEVICES))
(Though this is not precisely an achievement of this commit.)

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>kernel: mtdsplit_uimage: replace "edimax, uimage" parser</title>
<updated>2021-01-22T20:03:11Z</updated>
<author>
<name>Bjørn Mork</name>
</author>
<published>2021-01-20T17:36:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/adrian/commit/?id=402408b36840e078b8a98d66163d72e48ca3275b'/>
<id>urn:sha1:402408b36840e078b8a98d66163d72e48ca3275b</id>
<content type='text'>
The "edimax,uimage"" parser can be replaced by the generic
parser using device specific openwrt,partition-magic and
openwrt,offset properties.

Signed-off-by: Bjørn Mork &lt;bjorn@mork.no&gt;
</content>
</entry>
</feed>
