- May 28, 2020
-
-
Álvaro Fernández Rojas authored
Also removes random module and switches to new bcm2711 thermal driver. Boot tested on RPi 4B v1.1 4G. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Álvaro Fernández Rojas authored
Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Daniel Golle authored
b84a329 jail: use sane termios settings for console pts b9b39e2 jail: handle containers seperately Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
Enrique Rodríguez Valencia authored
disable_vht parameter needs to be set when using wpa_supplicant NOHT/HT* modes. Signed-off-by:
Enrique Rodríguez Valencia <enrique.rodriguez@galgus.net>
-
Enrique Rodríguez Valencia authored
When configuring the radio in legacy mode from luci, the htmode is not set correctly to NOHT, causing the radio in mesh mode to be set to HT40. Signed-off-by:
Enrique Rodríguez Valencia <enrique.rodriguez@galgus.net>
-
Jo-Philipp Wich authored
Add a local hack to prevent the Broadcom WPA authenticator process from inheriting the lock descriptor 1000 used to prevent concurrent executions of the init script. Without this fix, repeated invocations of /etc/init.d/network, e.g. for obtaining the enabled state, would hang forever. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Álvaro Fernández Rojas authored
Support for 64 bits has been remove on latest master of raspberry/firmware. Update to latest commit with 64 bit support since we don't support installing 32 bit packages on 64 bit targets. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Jakov Petrina authored
This patch backports additional fixes for XDP support in the mvneta driver. These changes are found upstream as commits: b37fa92e20ef2 net: mvneta: fix build skb for bm capable devices f383b2950070c net: mvneta: rely on page_pool_recycle_direct in mvneta_run_xdp 79572c98c554d mvneta driver disallow XDP program on hardware buffer management 44efc78d0e464 net: mvneta: fix XDP support if sw bm is used as fallback Signed-off-by:
Jakov Petrina <jakov.petrina@sartura.hr>
-
Jakov Petrina authored
This patch backports XDP support in the mvneta driver used by Marvell ARMADA 37x, 38x and 37xx series SoCs. Supported actions are: - XDP_DROP - XDP_PASS - XDP_REDIRECT - XDP_TX Patches are present upstream as following commits: * b0a43db9087a net: mvneta: add XDP_TX support * 9e58c8b41065 net: mvneta: make tx buffer array agnostic * fa383f6b77a2 net: mvneta: move header prefetch in mvneta_swbm_rx_frame * 0db51da7a8e9 net: mvneta: add basic XDP support * 8dc9a0888f4c net: mvneta: rely on build_skb in mvneta_rx_swbm poll routine * 568a3fa24a95 net: mvneta: introduce page pool API for sw buffer manager * ff519e2acd46 net: mvneta: introduce mvneta_update_stats routine Signed-off-by:
Jakov Petrina <jakov.petrina@sartura.hr>
-
Thibaut VARÈNE authored
The clean target tries to remove what looks like a bogus 'rbcfg', probably carried over copy-pasta. Remove the name of the generated executable ('fbtest') instead. Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org> Fixes: 8099f4e0 ("fbtest utility ")
-
Thibaut VARÈNE authored
tl;dr: dd will silently truncate the output if reading from special files (e.g. sysfs attributes) with a too large bs parameter. This problem was exposed on some RouterBOARD ipq40xx devices which use a caldata payload which is larger than PAGE_SIZE, contrary to all other currently supported RouterBOARD devices: the caldata would fail to properly load with the current scripts. Background: dd doesn't seem to correctly handle read() results that return less than requested data. sysfs attributes have a kernel exchange buffer which is at most PAGE_SIZE big, so only 1 page can be read() at a time. In this case, if bs is larger than PAGE_SIZE, dd will silently truncate blocks to PAGE_SIZE. With the current scripts using bs=<size> count=1, the data is truncated to PAGE_SIZE as soon as the requested <size> exceeds this value. This commit works around this problem by using `cat` in the caldata routines that can read from a file (routines that read from mtd devices are untouched). cat correctly handles partial read requests. The output is then piped to dd with the same parameters as before, to ensure that the resulting file remains exactly the same. This is a simple workaround, the downside is that it uses a pipe and one more executable, and therefore has a larger memory footprint and is slower. This is deemed acceptable considering these routines are only used at boot time. Tested-by:
Robert Marko <robimarko@gmail.com> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Thibaut VARÈNE authored
The new sysfs soft_config driver makes buggy rbcfg obsolete and entirely replaces it. Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Thibaut VARÈNE authored
This commit introduces support for R/W access to the CPU frequency setting of routerboot on ath79 hardware. On unsupported hardware, the sysfs attribute will expose the raw tag value (read-only) to help with reverse engineering its meaning. Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Thibaut VARÈNE authored
This routine will be shared between hard and soft config drivers. Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Thibaut VARÈNE authored
This driver exposes the data encoded in the "soft_config" flash segment of MikroTik RouterBOARDs devices. It presents the data in a sysfs folder named "soft_config" through a set of human-and-machine-parseable attributes. Changes can be discarded by writing 0 to the 'commit' attribute, or they can be committed to flash storage by writing 1. This driver does not reuse any of the existing code previously found in the "rbcfg" utility and makes this utility obsolete by providing a clean sysfs interface. Like "rbcfg", this driver requires 4K_SECTORS support since the flash partition in which these parameters are stored is typically 4KB in size. Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Thibaut VARÈNE authored
This routine will be shared between hard and soft config drivers. Also use scnprintf() instead of snprintf(). Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Thibaut VARÈNE authored
For the sake of strictly typed code, add a missing const qualifier. Add a missing return value in error path. Check the return value of mtd_read(), for good measure. Also demote the error printks of failed sysfs file creation to warn level since they are not fatal in the init() sequence. Finally, add a note regarding PAGE_SIZE and clarify a comment. Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Thibaut VARÈNE authored
The depends and select should apply to the sysfs driver, not the meta config. Tested-by:
Koen Vandeputte <koen.vandeputte@ncentric.com> Tested-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> Signed-off-by:
Thibaut VARÈNE <hacks@slashdirt.org>
-
Álvaro Fernández Rojas authored
Some firmwares are already provided by linux-firmware. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Álvaro Fernández Rojas authored
bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 3B v1.2 bcm2710: boot tested on RPi 3B v1.2 bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Álvaro Fernández Rojas authored
Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Álvaro Fernández Rojas authored
Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
- May 27, 2020
-
-
Pavel Balan authored
This patch adds support for the COMFAST CF-E130N v2, an outdoor wireless CPE with a single Ethernet port and a 802.11bgn radio. Specifications: - QCA9531 SoC - 1x 10/100 Mbps Ethernet with PoE-in support - 64 MB of RAM (DDR2) - 16 MB of FLASH - 5 dBi built-in antenna - POWER/LAN/WLAN green LEDs - 4x RSSI LEDs (2x red, 2x green) - UART (115200 8N1) and GPIO (J9) headers on PCB Flashing instructions: The original firmware is based on OpenWrt so a sysupgrade image can be installed via the stock web GUI. The U-boot bootloader also contains a backup TFTP client to upload the firmware from. Upon boot, it checks its ethernet network for the IP 192.168.1.10. Host a TFTP server and provide the image to be flashed as file firmware_auto.bin. MAC address setup: The art partition contains four consecutive MAC addresses: 0x0 aa:bb:cc:xx:xx:c4 0x6 aa:bb:cc:xx:xx:c6 0x1002 aa:bb:cc:xx:xx:c5 0x5006 aa:bb:cc:xx:xx:c7 However, the manufacturer in its infinite wisdom decided that one address is enough and both eth0 and WiFi get the MAC address from 0x0 (yes, that's overwriting the existing and valid address in 0x1002). This is obviously also the address on the device's label. Signed-off-by:
Pavel Balan <admin@kryma.net> [fix configs partition, fix IMAGE_SIZE, add MAC address comment, rename ATH_SOC to SOC] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
The common separator in this case is a single space. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
- May 26, 2020
-
-
Matthias Schiffer authored
The remainder of the patch series proposed by upstream [2] for the locking synchronization issue [1]. [1] https://www.openwall.com/lists/musl/2020/05/22/3 [2] https://www.openwall.com/lists/musl/2020/05/22/10 Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
Matthias Schiffer authored
Import proposed upstream fix [2] for the critical locking synchronization bug recently found in musl [1]. This affects all programs that are temporarily multithreaded, but then return to single-threaded operation. [1] https://www.openwall.com/lists/musl/2020/05/22/3 [2] https://www.openwall.com/lists/musl/2020/05/22/10 Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
Sebastian Schaper authored
AHB is 258 MHz for this device (CPU_PLL / 3), but there is no difference between 64 MHz and 50 MHz for spi-max-frequency, thus increase to 50 MHz. Tested on revisions C1 and C3. Signed-off-by:
Sebastian Schaper <openwrt@sebastianschaper.net>
-
Sebastian Schaper authored
GPIO 11 needs to be pulled high for the external gigabit switch to work, this is currently solved via gpio-hog. Replace with phy0 reset-gpios. Tested on revisions C1 and C3. Reset button is still working for reboot, to enter failsafe, and to enter bootloader http recovery. Signed-off-by:
Sebastian Schaper <openwrt@sebastianschaper.net>
-
Sebastian Schaper authored
The device has a total of 8 LEDs, 5 of which are controlled by the switch (LAN 1-4, WAN). Only power, wifi and wps are controlled by the SoC. * led_power is on GPIO 5 (not 15), boot flashing sequence is now visible * remove led 'internet', since it is only connected to the switch * remove ucidef_set_led_switch for WAN from 01_leds, as it has no effect Tested on revisions C1 and C3. Signed-off-by:
Sebastian Schaper <openwrt@sebastianschaper.net> [adjust commit title] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Hans Dedecker authored
3a44844c97 nss_compat: internal_end*ent may clobber errno, hiding ERANGE [BZ #25976] c839175267 aarch64: fix strcpy and strnlen for big-endian [BZ #25824] Signed-off-by:
Hans Dedecker <dedeckeh@gmail.com>
-
Adrian Schmutzler authored
These devices seem to have the same board, so let's have a common file. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
J. Scott Heppler authored
Specifications: * MediaTek MT7620A (580 Mhz) * 8 MB of FLASH * 64 MB of RAM * 2.4Ghz and 5.0Ghz radios * 5x 10/100 Mbps Ethernet (1 WAN and 4 LAN) * UART header on PCB (57600 8n1) * Green/Orange Power LEDs illuminating a Power-Button Lens * Green/Orange Internet LEDs GPIO controlled illuminating a Globe/Internet Lens * 3x button - wps, power and reset * U-boot bootloader Installation: The sysupgrade.bin image is reported to be OEM web flashed with an ncc_att_hwid appended. ncc_att_hwid is a 32bit binary in the GPL Source download for either the TEW-810DR or DIR-810L and is located at source/user/wolf/cameo/ncc/hostTools. The invocation is: ncc_att_hwid -f tew-810dr-squashfs-factory.bin -a -m "TEW-810DR" -H "1.0R" -r "WW" -c "1.0" This may need to be altered if your hardware version is "1.1R". The image can also be directly flashed via serial tftp: 1. Load *.sysupgrade.bin to your tftp server directory and rename for convenience. 2. Set a static ip 192.168.10.100. 3. NIC cable to a lan port. 4. Serial connection parameters 57600,8N1 5. Power on the TEW-810 and press 4 for a u-boot command line prompt. 6. Verify IP's with U-Boot command "printenv". 7. Adjust tftp settings if needed per the tftp documentation 8. Boot the tftp image to test the build. 9. If the image loads, reset your server ip to 192.168.1.10 and restart network. 10. Log in to Luci, 192.168.1.1, and flash the *sysupgrade.bin image. Notes: The only valid MAC address is found in 0x28 of the factory partition. Other typical offsets/caldata only contain example data: 00:11:22:00:0f:xx Signed-off-by:
J. Scott Heppler <shep971@centurylink.net> [remove "link rx tx" in 01_leds, format and extend commit message, fix DTS led node names] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Jo-Philipp Wich authored
078bb57 uci: reset uci_ptr flags when merging options during section add 3df62bc session: deny access if password login is disabled Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
Stijn Segers authored
Add Netgear WNDR4300SW to the list of supported boards. Signed-off-by:
Stijn Segers <foss@volatilesystems.org>
-
Roger Pueyo Centelles authored
The UBIFS_FS_ZSTD is exposed when UBIFS is enabled. Signed-off-by:
Roger Pueyo Centelles <roger.pueyo@guifi.net> [adjust commit title] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Felix Fietkau authored
86818eaa976b blob: make blob_parse_untrusted more permissive cf2e8eb485ab tests: add fuzzer seed file for crash in blob_len c2fc622b771f blobmsg: fix length in blobmsg_check_array 639c29d19717 blobmsg: simplify and fix name length checks in blobmsg_check_name 66195aee5042 blobmsg: fix missing length checks Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- May 25, 2020
-
-
Adrian Schmutzler authored
Between 4.19 and 5.4, the kernel moved the partition parsers into the parsers subdirectory. This led to some necessary rebasing of our local patches for parsers, which partially has been performed without caring about where the code was inserted. This commit tries to adjust our local patches so that parsers are inserted at the "proper" positions with respect to alphabetic sorting (if possible). Thus, the commit is cosmetic. While this might look useless now, it will make life easier when adding other parsers in the future or for rebasing on kernel changes. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
These trailing whitespaces were reported during kernel patch refresh. While at it, harmonize a few indents as well. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
This patch has been backported to stable kernel 5.4 already. Remove our local patch explicitly now, as by applying the patch (or refreshing) the relevant code is actually added a second time. Refresh remaining patches as well. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-