Skip to content
Snippets Groups Projects
  1. Feb 24, 2021
    • Daniel Golle's avatar
      base-files: remove unneeded '$' signs in nand.sh · 287bd78e
      Daniel Golle authored
      
      When using Shell arithmetric evaluation via $((..)) the variables in
      the expression do not need to be prefixed by the '$' sign.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      Unverified
      287bd78e
    • Adrian Schmutzler's avatar
      ath79: create common DTSI for Senao ar934x APs · ce8b535e
      Adrian Schmutzler authored
      
      This creates a shared DTSI for ar934x Senao/Engenius APs:
      
       - EAP300 v2
       - ENS202EXT v1
       - EAP600
       - ECB600
      
      Since ar9341/ar9344 have different configuration, this new file
      mostly contains the partitioning.
      
      Suggested-by: default avatarMichael Pratt <mcpratt@pm.me>
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      ce8b535e
    • Adrian Schmutzler's avatar
      ath79: create common DTSI for Senao ar724x APs · 4204d70d
      Adrian Schmutzler authored
      
      This creates a shared DTSI for ar724x Senao/Engenius APs:
      
       - ENH202 v1
       - EAP350 v1
       - ECB350 v1
      
      Since ar7240/ar7242 have different configuration, this new file
      mostly contains the partitioning.
      
      Suggested-by: default avatarMichael Pratt <mcpratt@pm.me>
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      4204d70d
    • Adrian Schmutzler's avatar
      ath79: enable UART in SoC DTSI files · 3a4b7511
      Adrian Schmutzler authored
      
      The uart node is enabled on all devices except one (GL-USB150 *).
      Thus, let's not have a few hundred nodes to enable it, but do not
      disable it in the first place.
      
      Where the majority of devices is using it, also move the serial0
      alias to the DTSI.
      
      *) Since GL-USB150 even defines serial0 alias, the missing uart
         is probably just a mistake. Anyway, disable it for now so this
         patch stays cosmetic.
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      3a4b7511
    • Sungbo Eo's avatar
      kirkwood: set testing kernel version to 5.10 · 1322150b
      Sungbo Eo authored
      
      Tested on Pogoplug V4.
      
      Linksys EA3500 will not build with buildbot settings and should be
      disabled when the target is switched, unless the image size is
      reduced again.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      [add EA3500 comment]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      1322150b
    • Sungbo Eo's avatar
      kirkwood: update config for kernel 5.10 · 1bb3f593
      Sungbo Eo authored
      
      Update config with make kernel_oldconfig.
      
      CONFIG_SATA_PMP=y is added manually as done for 5.4.
      This should be resolved properly in a separate issue.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      [add back CONFIG_SATA_PMP, rebase/refresh]
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      1bb3f593
    • Sungbo Eo's avatar
      kirkwood: refresh patches for kernel 5.10 · 58ebc507
      Sungbo Eo authored
      
      Refresh patches to make them apply to kernel 5.10.
      The removed patch has been merged upstream.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      58ebc507
    • Sungbo Eo's avatar
      kirkwood: copy files to kernel 5.10 · e464d365
      Sungbo Eo authored
      
      Copy config and patches to kernel 5.10.
      
      Signed-off-by: default avatarSungbo Eo <mans0n@gorani.run>
      e464d365
    • Adrian Schmutzler's avatar
      kernel: add further missing symbols · 8d766aa6
      Adrian Schmutzler authored
      
      CONFIG_NET_DSA_MV88E6XXX_PTP was simply missing in generic config.
      
      CONFIG_I2C_PXA_SLAVE was previously enabled via i2c-pxa package,
      but got removed there without moving the symbol to generic config.
      
      Fixes: dd13add3 ("kernel: i2c-pxa: remove slave")
      
      Signed-off-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
      8d766aa6
    • Daniel Golle's avatar
      sysupgrade-nand: allow limiting rootfs_data by setting env variable · 5c10f26c
      Daniel Golle authored
      
      Check if firmware environment variable 'rootfs_data_max' exists and is
      set to a numerical value greater than 0. If so, limit rootfs_data
      volume to that size instead of using the maximum available size.
      
      This is useful on devices with lots of flash where users may want to
      have eg. a volume for persistent logs and statistics or for external
      applications/containers. Persistence on rootfs overlay is limited by
      the size of memory available during the sysugprade process as that
      data needs to be copied to RAM while the volume is being recreated
      during sysupgrade. Hence it is unsuitable for keeping larger amounts
      of data accross upgrade which makes additional volume(s) for
      application data desirable.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      5c10f26c
    • Daniel Golle's avatar
      image: allow building FIT and uImage with ramdisk · 330bd380
      Daniel Golle authored
      
      Instead of embedding the initrd cpio archive into the kernel, allow
      for having an external ramdisk added to the FIT or uImage.
      This is useful to overcome kernel size limitations present in many
      stock bootloaders, as the ramdisk is then loaded seperately and doesn't
      add to the kernel size. Hence we can have larger ramdisks to host ie.
      installers with all binaries to flash included (or a web-based
      firmware selector).
      In terms of performance and total size the differences are neglectible.
      
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      330bd380
    • Daniel Golle's avatar
      image: add support for building FIT image with filesystem · e6aac8d9
      Daniel Golle authored
      
      Allow for single (external-data) FIT image to hold kernel, dtb and
      squashfs. In that way, the bootloader verifies the system integrity
      including the rootfs, because what's the point of checking that the
      hash of the kernel is correct if it won't boot in case of squashfs
      being corrupted? Better allow bootloader to check everything needed
      to make it at least up to failsafe mode. As a positive side effect
      this change also makes the sysupgrade process on nand potentially
      much easier as it is now.
      In short: mkimage has a parameter '-E' which allows generating FIT
      images with 'external' data rather than embedding the data into the
      device-tree blob itself. In this way, the FIT structure itself remains
      small and can be parsed easily (rather than having to page around
      megabytes of image content). This patch makes use of that and adds
      support for adding sub-images of type 'filesystem' which are used to
      store the squashfs. Now U-Boot can verify the whole OS and the new
      partition parsers added in the Linux kernel can detect the filesystem
      sub-images, create partitions for them, and select the active rootfs
      volume based on the configuration in FIT (passing configuration via
      device tree could be implemented easily at a later stage).
      
      This new FIT partition parser works for NOR flash (on top of mtdblock),
      NAND flash (on top of ubiblock) as well as classic block devices
      (ie. eMMC, SDcard, SATA, NVME, ...).
      It could even be used to mount such FIT images via `losetup -P` on a
      user PC if this patch gets included in Linux upstream one day ;)
      
      Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      e6aac8d9
  2. Feb 23, 2021
Loading