Skip to content
Snippets Groups Projects
  1. Mar 06, 2019
    • Christian Lamparter's avatar
      lantiq: enlarge ZyXEL P-2812HNU-F1 kernel partition (FS#2124) · 33727ece
      Christian Lamparter authored
      The current snapshot release kernel with it's 2119245 Byte
      size is too big to fit into the 2097152 (2MiB) area that
      was set aside for the kernel. Which causes the device to
      fail to boot (after an update or even during a fresh install)
      
       NAND read: device 0 offset 0x60000, size 0x200000
        2097152 bytes read: OK
       ## Booting kernel from Legacy Image at 80800000 ...
          Image Name:   MIPS OpenWrt Linux-4.14.98
          Created:      2019-02-13   9:37:36 UTC
          Image Type:   MIPS Linux Kernel Image (lzma compressed)
          Data Size:    2119245 Bytes = 2 MiB
          Load Address: 80002000
          Entry Point:  80002000
          Verifying Checksum ... Bad Data CRC
       ERROR: can't get kernel image!
      
      This patch fixes the problem by enlarging the kernel partition
      at the cost of the ubi/data partition behind it. The patch
      also adds a KERNEL_SIZE variable to the image Makefile to
      prevent silent corruptions from happening in the future.
      
      Please note: The u-boot environment for the router also
      needs to be updated. So please attach an appropriate
      serial converter cable and enter the following commands
      into the u-boot prompt:
      
       setenv nboot 'nand read 0x80800000 0x60000 0x300000; bootm 0x80800000'
       saveenv
      
      The wiki has been updated accordingly:
      <https://openwrt.org/toh/zyxel/p2812hnu-f1
      
      >
      
      Fixes: FS#2124
      Suggested-by: Mafketel (User on bugs.openwrt.org)
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      33727ece
    • Daniel Golle's avatar
      ib: display whether profile comes with image metadata · 13c379e5
      Daniel Golle authored
      
      Having image metadata (and signature) appended is a condition for
      semi-automated sysupgrade, hence IB needs to be able to tell which
      images will end up with metadata.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      13c379e5
    • Daniel Golle's avatar
      ramips: mt7620: export chip version and pkg · c8778250
      Daniel Golle authored
      
      Similar to the (currently unused) mt7620_get_eco() function, introduce
      mt7620_get_chipver() and mt7620_get_pkg() functions to allow rt2x00 to
      probe for the type of WiSoC. This is ugly and probably unacceptable
      for upstream, however, it should help to evaluate which of those hacks
      are actually really needed, enumerate the possible values and label
      them in a more meaningful way than currently done in the vendor driver.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      c8778250
    • Paul Spooren's avatar
      metadata: add "metadata_version" field · 7fa9794c
      Paul Spooren authored
      
      allow downstream projects to see the current version of the metadata,
      usefull if eventually more variables change
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      7fa9794c
    • Paul Spooren's avatar
      metadata: add "target" entry · 208f2879
      Paul Spooren authored
      
      add "target" entry based on $(TARGETID) resulting in
      `<target>/<subtarget>`.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      208f2879
    • Paul Spooren's avatar
      metadata: fixup "board" · 26c16aec
      Paul Spooren authored
      
      currently the "board" parameter contains $(BOARD) which actually results
      to `<target>` (like ramips, ar71xx) without subtarget. However, one
      actually excepts (not?) to contain BOARD_NAME or DEVICE_NAME.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      26c16aec
  2. Mar 05, 2019
  3. Mar 04, 2019
  4. Mar 03, 2019
  5. Mar 02, 2019
    • Daniel Golle's avatar
      ltq-vdsl-fw: update download URL · bc97257f
      Daniel Golle authored
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      bc97257f
    • Daniel Golle's avatar
    • Chris Blake's avatar
      mpc85xx: Fix Aerohive HiveAP-330 initramfs image · 26cb167a
      Chris Blake authored
      
      At some point our initramfs image grew over 6MB, which is
      causing an issue when uncompressing in the stock bootloader:
      
      => bootm 0x5000000 - 0x1000000;
         Image Name:   Linux-4.19.24
         Created:      2019-02-23   1:58:20 UTC
         Image Type:   PowerPC Linux Kernel Image (gzip compressed)
         Data Size:    6752470 Bytes =  6.4 MB
         Load Address: 00000000
         Entry Point:  00000000
         Verifying Checksum ... OK
         Booting using the fdt blob at 0x1000000
         Uncompressing Kernel Image ... Error: inflate() returned -5
      GUNZIP: uncompress, out-of-mem or overwrite error - must RESET
         board to recover
         Loading Device Tree to 00ffa000, end 00fffc78 ... OK
      
      To get around this, we need to move to an uncompressed image
      for the initramfs image. While this makes a larger image, it
      is thankfully bootable so people can then convert their
      devices to run OpenWRT. It's worth noting the non-initramfs
      image is under 3M, so it will be ages before we have any issues
      with the flashed kernel.
      
      Signed-off-by: default avatarChris Blake <chrisrblake93@gmail.com>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      [keep commit message at less than 75 characters per line]
      26cb167a
    • David Bauer's avatar
      ath79: make TP-Link revision naming consistent · 6837c757
      David Bauer authored
      
      This commit makes the TP-Link hardware-revision naming consistent to
      match the one used by the vendor. TP-Link refers to the different
      revisions as "vX" not "Version X".
      
      Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
      6837c757
    • Kip Porterfield's avatar
      ramips: add support for Belkin F9K1109v1 · f2c83532
      Kip Porterfield authored
      Device specification:
      - SoC: Ralink RT3883 (MIPS 74Kc) 500Mhz
      - RAM: 64Mb
      - Flash: 8MB (SPI-NOR)
      - Ethernet: 10/100/1000 Mbps
      - WLAN
      	Wireless 1: SoC-integrated : 2.4/5 GHz
      	Wireless 2: 2.4 GHz RT3092L
      - LED: 2x USB, WAN, LAN
      - Key: WPS, reset
      - Serial: 4-pin header, (57600,8,N,1), 3.3V TTL,
      	GND, RX, TX, V - J12 marking on board
      - USB ports: 2 x USB 2.0
      
      Flashing instructions:
      
      Option 1 (from bootloader web)
      - Hold reset button on the back of router when plugging
        in power (for at-least 10 seconds after plugged in)
      - Connect to a Lan port
      - Set computer IP to 10.10.10.3
      - Go to http://10.10.10.123
      
       in a web browser
      - Click the Browse... Button and select the
         *squashfs.sysupgrade.bin file then click APPLY
      
      Option 2 (from the stock admin web)
      - Go to firmware upgrade
      - Upload the **factory** image *initramfs.bin first
      - Boot into openwrt
      - From Luci web in openwrt upload the *squashfs.sysupgrade.bin
      
      Signed-off-by: default avatarKip Porterfield <kip.porterfield@gmail.com>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      [added v1 to the compatible identifier, added pciid for
      the RT3092L, fixed pci unit-address, split out the F9K110X.dtsi
      to prepare for a possible F9K1103 patch]
      f2c83532
    • David Santamaría Rogado's avatar
      ath79: TP-Link Archer C7 v4 swap usb led names · 6c558bae
      David Santamaría Rogado authored
      
      Commit 34b10b46 made usb match with the corresponding usb label.
      The problem is that v4 seems to use in stock firmware the
      upper led for usb 1 and the lower led for usb 2.
      
      The led assigned varies between TP-Link models and even
      same model versions. For example, Archer C7 v1 and v2 have
      the leds in the reverse order.
      
      Revert 34b10b46 and swap led labels instead, now usb port
      and led label match and also respect the original behavior.
      
      Tested-by: default avatarOldrich Jedlicka <oldium.pro@gmail.com>
      Signed-off-by: default avatarDavid Santamaría Rogado <howl.nsp@gmail.com>
      6c558bae
    • Yangbo Lu's avatar
      layerscape: fix VFIO driver build issue since linux-4.14.99 · cb911a05
      Yangbo Lu authored
      
      The linux-4.14.99 had introduced below upstream patch.
      6636dc5e01c6 arm64: io: Ensure value passed to __iormb() is held in a 64-bit register
      
      It was causing VFIO driver build issue. This patch is to fix it.
      
       CC      drivers/vfio/fsl-mc/vfio_fsl_mc.o
      In file included from ./include/linux/scatterlist.h:9:0,
                       from ./include/linux/iommu.h:22,
                       from drivers/vfio/fsl-mc/vfio_fsl_mc.c:14:
      drivers/vfio/fsl-mc/vfio_fsl_mc.c: In function 'vfio_fsl_mc_dprc_wait_for_response':
      ./arch/arm64/include/asm/io.h:122:45: error: expected expression before ')' token
              : "=r" (tmp) : "r" ((unsigned long)(v))  \
                                                   ^
      drivers/vfio/fsl-mc/vfio_fsl_mc.c:334:3: note: in expansion of macro '__iormb'
         __iormb();
         ^~~~~~~
      ./arch/arm64/include/asm/io.h:122:45: error: expected expression before ')' token
              : "=r" (tmp) : "r" ((unsigned long)(v))  \
                                                   ^
      drivers/vfio/fsl-mc/vfio_fsl_mc.c:336:3: note: in expansion of macro '__iormb'
         __iormb();
         ^~~~~~~
      
      Reported-by: default avatarMathew McBride <matt@traverse.com.au>
      Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
      cb911a05
    • Christian Lamparter's avatar
      apm821xx: speed up ath9k-caldata extraction · ffd8ca18
      Christian Lamparter authored
      
      Reading and writing to and from flash storage is slow and currently,
      the ath10kcal_extract() scripts are even more at an disadvantage
      because they use a block size of 1 to be able skip.
      
      This patch reworks the extraction scripts to be much faster and
      efficient by reading and writing the calibration data in possibly
      one big block.
      
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      ffd8ca18
    • Dmitry Tunin's avatar
      ath79: speed up ath9k-eeprom extraction · 21e90685
      Dmitry Tunin authored
      
      This is a simple copy of ipq40xx: speed up ath10k-caldata
      extraction commit a69e101e
      
      Tested on DIR-825-B1
      
      3768+0 records in
      3768+0 records out
      real	0m 11.90s
      user	0m 0.03s
      sys	0m 9.94s
      
      1+0 records in
      1+0 records out
      real	0m 0.03s
      user	0m 0.00s
      sys	0m 0.03s
      
      With this change eeprom extraction is fast enough to get
      working Wi-Fi after initial install.
      
      Signed-off-by: default avatarDmitry Tunin <hanipouspilot@gmail.com>
      21e90685
    • Christian Lamparter's avatar
      x86: fix geode image builds redux · 4c70ac7b
      Christian Lamparter authored
      
      This patch adds more disabled DRM config symbols from the
      x86' config to the generic target configs. The existing
      symbols in the x86' configs are kept for now, until we
      know whenever we want to remove such symbols or not
      (see Github PR #1831, #1825, #1828).
      
      THis patch also contains a squashed patch from
      Daniel Engberg <daniel.engberg.lists@pyret.net> titled
      "kernel: Fix config for 4.14" which fixes a duplicated line
      added by: commit 8bdc241d ("x86: fix geode image builds")
      
      Fixes: 8bdc241d ("x86: fix geode image builds")
      Signed-off-by: default avatarDaniel Engberg <daniel.engberg.lists@pyret.net>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@gmail.com>
      4c70ac7b
Loading