- May 28, 2020
-
-
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>
-
Adrian Schmutzler authored
octeon has provided 5.4 as testing kernel for some time now, let's switch to 5.4 to have a bigger audience for testing. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
Kernel 5.4 is stable for about two months now and there is only a few patches anyway, so this is mostly upstream stuff. Therefore, it does not look like we need to keep old 4.14 around any longer. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
Kernel 5.4 is stable for about two months now and there is only one patch anyway, so this is mostly upstream stuff. Therefore, it does not look like we need to keep old 4.14 around any longer. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Yangbo Lu authored
Remove support for kernel 4.14, and NXP Layerscape SDK had not supported kernel 4.14 since LSDK-20.04 either. Signed-off-by:
Yangbo Lu <yangbo.lu@nxp.com>
-
- May 24, 2020
-
-
Álvaro Fernández Rojas authored
Exposing LEDs through LED controller instead of gpio-leds takes advantage of HW blinking. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Álvaro Fernández Rojas authored
Exposing LEDs through LED controller instead of gpio-leds takes advantage of HW blinking. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
Álvaro Fernández Rojas authored
Exposing LEDs through LED controller instead of gpio-leds takes advantage of HW blinking. Signed-off-by:
Álvaro Fernández Rojas <noltari@gmail.com>
-
INAGAKI Hiroshi authored
Buffalo WSR-2533DHP is identical to the WSR-2533DHPL, Buffalo sold it with renaming. Signed-off-by:
INAGAKI Hiroshi <musashino.open@gmail.com>
-
Ernst Spielmann authored
Specifications: - MT7628NN @ 580 MHz - 32 MB RAM - 8 MB Flash - 5x 10/100 Mbps Ethernet (built-in switch) - 2.4 GHz WLAN - 2x external, non-detachable antennas (1x for RT-N10P V3) Flash instructions: 1. Set PC network interface to 192.168.1.75/24. 2. Connect PC to the router via LAN. 3. Turn router off, press and hold reset button, then turn it on. 4. Keep the button pressed till power led starts to blink. 5. Upload the firmware file via TFTP. (Any filename is accepted.) 6. Wait until the router reboots. Signed-off-by:
Ernst Spielmann <endspiel@disroot.org> [fix node/property name for state_default] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Rafał Miłecki authored
5e75160 blobmsg: fix attrs iteration in the blobmsg_check_array_len() eeddf22 tests: runqueue: try to fix race on GitLab CI 89fb613 libubox: runqueue: fix use-after-free bug 1db3e7d libubox: runqueue fix comment in header 7c4ef0d tests: list: add test case for list_empty iterator Signed-off-by:
Rafał Miłecki <rafal@milecki.pl>
-
Matthias Schiffer authored
00b921d80ac0 Do not print line number in debug messages 96c42c5ed320 Fix length checks in cert_load() fe06b4b836b3 usign-exec: improve usign -F output handling 19f9e1917e1b usign-exec: return code fixes 077feb5b5824 usign-exec: close writing end of pipe early in parent process 7ec4bb764e1e usign-exec: remove redundant return statements 5a738e549d31 usign-exec: change usign_f_* fingerprint argument to char[17] 112488bbbccc usign-exec: do not close stdin and stderr before exec 38dcb1a6f121 usign-exec: fix exec error handling a9be4fb17df2 usign-exec: simplify usign execv calls 854d93e2326a Introduce read_file() helper, improve error reporting afc86f352bf7 Fix return code of write_file() fdff10852326 stdout/stderr improvements dddb2aa8124d ci: fix unit test failures by enabling full ucert build 5f206bcfe5c2 ci: enable unit testing Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
Rosen Penev authored
Signed-off-by:
Rosen Penev <rosenp@gmail.com> [cut out of patch with different subject] Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Rosen Penev authored
These are in if statements (where they should be), and echo output that is not piped to anything. These should be safe. Found with shellcheck. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-