Skip to content
Permalink
Branch: staging
Commits on Jan 24, 2019
  1. ipq40xx: rt-ac58u dsa test

    chunkeey committed Jan 3, 2019
    Has many problems. The dsa_register_switch is locking up the
    switch hardware and this needs to be investigated.
  2. WIP: qca8k_mmio integration

    chunkeey committed Jan 2, 2019
  3. WIP: ipqess integration

    chunkeey committed Nov 18, 2018
    This will not only break most devices, it will also break any
    existing configuration, so please instruct sysupgrade to drop
    the /etc/config/network.
    
    Tested on the FB4040, NBG6617 and RT-AC58U
  4. ipq40xx: ipqess ethernet driver

    blogic authored and chunkeey committed Nov 18, 2018
    modified John Crispin's essedma replacement driver.
    
    Fouled-up-by: Christian Lamparter <chunkeey@gmail.com>
  5. iw: some fix

    chunkeey committed Dec 15, 2018
  6. ath10k-firmware: 3.6 140

    chunkeey committed Jul 9, 2018
    and fixup ipq-wifi
  7. ipq40xx: add support for the ZyXEL NBG6617

    chunkeey committed Dec 20, 2016
    This patch adds support for ZyXEL NBG6617
    
    hardware highlights:
    
    SOC:    IPQ4018 / QCA Dakota
    CPU:    Quad-Core ARMv7 Processor rev 5 (v7l) Cortex-A7
    DRAM:   256 MiB DDR3L-1600/1866 Nanya NT5CC128M16IP-DI @ 537 MHz
    NOR:    32 MiB Macronix MX25L25635F
    ETH:    Qualcomm Atheros QCA8075 Gigabit Switch (4 x LAN, 1 x WAN)
    USB:    1 x 3.0 (via Synopsys DesignWare DWC3 controller in the SoC)
    WLAN1:  Qualcomm Atheros QCA4018 2.4GHz 802.11bgn 2:2x2
    WLAN2:  Qualcomm Atheros QCA4018 5GHz 802.11a/n/ac 2:2x2
    INPUT:  RESET Button, WIFI/Rfkill Togglebutton, WPS Button
    LEDS:   Power, WAN, LAN 1-4, WLAN 2.4GHz, WLAN 5GHz, USB, WPS
    
    Serial:
    	WARNING: The serial port needs a TTL/RS-232 3.3v level converter!
    	The Serial setting is 115200-8-N-1. The 1x4 .1" header comes
    	pre-soldered. Pinout:
    	  1. 3v3 (Label printed on the PCB), 2. RX, 3. GND, 4. TX
    
    first install / debricking / restore stock:
     0. Have a PC running a tftp-server @ 192.168.1.99
     1. connect the PC to any LAN-Ports
     2. put the openwrt...-factory.bin (or V1.00(ABCT.X).bin for stock) file
        into the tftp-server root directory and rename it to just "ras.bin".
     3. power-cycle the router and hold down the the WPS button (for 30sek)
     4. Wait (for a long time - the serial console provides some progress
        reports. The u-boot says it best: "Please be patient".
     5. Once the power LED starts to flashes slowly and the USB + WPS LEDs
        flashes fast at the same time. You have to reboot the device and
        it should then come right up.
    (Flashing through the web-interface is possible but there's a caveat:
    The size of the rootfs in the generated ras.bin has to match that of
    ZyXEL's vendor firmware! For the NBG6617 this is 20316160 Bytes)
    
    Additional Notes:
    
    To open the ZyXEL NBG6617:
     0. remove the four rubber feet glued on the backside
     1. remove the four philips screws and pry open the top cover
        (by applying force between the plastic top housing from the
        backside/lan-port side)
    
    Access the real u-boot shell:
    ZyXEL uses a proprietary loader/shell on top of u-boot: "ZyXEL zloader v2.02"
    When the device is starting up, the user can enter the the loader shell
    by simply pressing a key within the 3 seconds once the following string
    appears on the serial console:
       Hit any key to stop autoboot:  3
    
    The user is then dropped to a locked shell.
    
    |NBG6617> HELP
    |ATEN    x[,y]     set BootExtension Debug Flag (y=password)
    |ATSE    x         show the seed of password generator
    |ATSH              dump manufacturer related data in ROM
    |ATRT    [x,y,z,u] RAM read/write test (x=level, y=start addr, z=end addr, u=iterations)
    |ATGO              boot up whole system
    |ATUR    x         upgrade RAS image (filename)
    |NBG6617>
    
    In order to escape/unlock a password challenge has to be passed.
    Note: the value is dynamic! you have to calculate your own!
    
    First use ATSE $MODELNAME (MODELNAME is the hostname in u-boot env)
    to get the challange value/seed.
    
    |NBG6617> ATSE NBG6617
    |012345678901
    
    This seed/value can be converted to the password with the help of this
    bash script (Thanks to http://www.adslayuda.com/Zyxel650-9.html authors):
    - tool.sh -
    ror32() {
      echo $(( ($1 >> $2) | (($1 << (32 - $2) & (2**32-1)) ) ))
    }
    v="0x$1"
    a="0x${v:2:6}"
    b=$(( $a + 0x10F0A563 ))
    c=$(( 0x${v:12:14} & 7 ))
    p=$(( $(ror32 $b $c) ^ $a ))
    printf "ATEN 1,%X\n" $p
    - end of tool.sh -
    |# bash ./tool.sh 012345678901
    |
    |ATEN 1,879C711
    
    copy and paste the result into the shell to unlock zloader.
    |NBG6617> ATEN 1,0046B0017430
    If the entered code was correct the shell will change to
    use the ATGU command to enter the real u-boot shell.
    |NBG6617> ATGU
    |NBG6617#
    
    Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
  8. test

    chunkeey committed Mar 24, 2018
  9. ipq40xx/apm821xx: add install.scr target for the RT-AC58U, MR33 and MR24

    chunkeey committed Feb 3, 2018
    This patch adds a install.scr target that produces a script
    which can be uploaded and run on the device in order to
    perform the initial installation.
    
    i.e.: (MR33 and RT-AC58U)
    
    |(IPQ40xx) # tftpboot 84000000 openwrt-ipq40xx-asus_rt-ac58u-squashfs-install.scr
    |[...]
    |         ###########
    |
    |Bytes transferred = 6828032 (683000 hex)
    |NetBootFileXferSize= 00683000
    |(IPQ40xx) # crc32 $fileaddr $filesize
    |CRC32 for 84000000 ... 84682fff ==> e2a750b7
    
    and to start the process
    
    |(IPQ40xx) # source $fileaddr:install
    |## Executing script at 84000000
    |[...]
    
    MR24
    |=> tftpboot c00000 openwrt-apm821xx-nand-meraki_mr24-squashfs-install.scr
    |[...]
    |=> source $fileaddr
    |[...]
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  10. ipq40xx: set ethernet mac in preinit

    chunkeey committed Mar 13, 2018
    Mathias Kresin explained that this makes it easier to
    use the same sysupgrade config backup configurations
    on different machines.
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  11. mediatek: add hnat offloading

    blogic authored and chunkeey committed Feb 21, 2018
    not fully functional yet
    
    Signed-off-by: John Crispin <john@phrozen.org>
  12. tools: sstrip: port changes from upstream 3.0a

    chunkeey committed Oct 3, 2018
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  13. config: enable KERNEL_AIO, KERNEL_FANOTIFY and KERNEL_FHANDLE

    chunkeey committed Oct 3, 2018
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  14. n600 and n750

    chunkeey committed Sep 13, 2018
  15. ath79: fix WNDR3700v2 and WNDR3800 sysupgrade from AR71XX

    chunkeey committed Aug 15, 2018
    Currently, the WNDR3700(v1), WNDR3700v2, WNDRMAC and WNDR3800
    share the same "wndr3700" board_name. This is because the ar71xx'
    board detection function wndr3700_board_detect() in
    target/linux/ar71xx/base-files/lib/ar71xx.sh only changes the
    model/machine name, but leaves the board_name as "wndr3700".
    
    i.e.: (On a WNDR3700v2)
    /tmp/sysinfo/board_name => wndr3700
    /tmp/sysinfo/model => NETGEAR WNDR3700v2
    
    Users coming from ar71xx can use sysupgrade too. But I highly
    advise to backup the configuration on a PC and then use
    "sysupgrade -n openwrt.bin " and start from a new configuration
    on the next boot.
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
    ---
    Yea, this patch is highly optional. If the direct upgrade path
    should be left as is, then please ignore it.
  16. ath79: fix WNDR3700/WNDR3800 wifi reg size

    chunkeey committed Aug 15, 2018
    "[...] the size component shall be zero."
    (See "PCI Bus Binding to: IEEE Std 1275-1994 Rev 2.1"
    section "4.1.1 Open Firmware-defined Properties for Child Nodes")
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
    
    ---
    this is (or should be) a purely cosmetic change. The device should
    work fine regardless.
  17. network: utils: linkwatch utility

    chunkeey committed Apr 22, 2016
    This utility pokes dhcp-clients that manage a WAN port of
    a swconfig supported VLAN switch.
  18. upnpbridge: add upnpbridge

    chunkeey committed May 21, 2016
    Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
  19. gemini: unify and fix ib-nas4220b and sq201 image creation

    chunkeey committed Jan 22, 2019
    Both Build/sq201-images and Build/nas4220b-images scripts
    are very similar. This patch unifies both methods at the
    cost of renaming the produced sysupgrade file names, but
    with the benifit of creating better reproducible files.
    
    The patch also fixes a race in parallel builds in which case
    the ImageInfo of one device could end up in both sysupgrade
    files.
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  20. gemini: lazy set IMAGE_NAME

    chunkeey committed Jan 22, 2019
    Currently, IMAGE_NAME is expanded at declaration time
    and this causes strange filename in the builder's logs:
    
    |cp: cannot stat '[...]/openwrt-gemini-dlink-dns-313-.': No such file or directory
    |cp: cannot stat '[...]/openwrt-gemini-nas4220b-.': No such file or directory
    |[...]
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  21. layerscape: dts: Unify naming of gpio-keys nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  22. oxnas: dts: Unify naming of gpio-led nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  23. oxnas: dts: Unify naming of gpio-keys nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  24. kernel: 4.19: use upstream usbport led trigger fix

    chunkeey committed Jan 18, 2019
    This patch replaces the current hack with a better
    version of the RFC patch has been accepted upstream.
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  25. ipq806x: dts: Unify naming of gpio-led nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  26. ipq806x: dts: Unify naming of gpio-keys nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  27. ipq40xx: dts: Unify naming of gpio-led nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  28. ipq40xx: dts: Unify naming of gpio-keys nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  29. apm821xx: dts overhaul

    chunkeey committed Dec 23, 2018
     - remove stray #address-cells / #size-cells
    
     - fix partition unit-addresses in wd-mybooklive.dts
    
     - remove index from MBL's gpio node name
    
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
  30. apm821xx: dts: Unify naming of gpio-led nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  31. apm821xx: dts: Unify naming of gpio-keys nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
  32. at91: dts: Unify naming of gpio-keys nodes

    ynezz authored and chunkeey committed Dec 30, 2018
    In DTS Checklist[1] we're now demanding proper generic node names, as
    the name of a node should reflect the function of the device and use
    generic name for that[2]. Everybody seems to be copy&pasting from DTS
    files available in the repository today, so let's unify that naming
    there as well and provide proper examples.
    
    1. https://openwrt.org/submitting-patches#dts_checklist
    2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation
    
    Signed-off-by: Petr Štetiar <ynezz@true.cz>
    Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
Older
You can’t perform that action at this time.