Commit Graph

7397 Commits

Author SHA1 Message Date
Pawel Dembicki
df4d332b1e layerscape: fix sd-card sysupgrade
So far, kernel has not been written correctly to SD card during
sysupgrade, as both target path and offset were wrong.

This patch fixes it, and adds some descriptive output on the way.

Fixes: 0841b68c91 ("layerscape: support sysupgrade for SD card ext4
rootfs")

Reviewed-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[alter/extend commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-27 17:47:19 +08:00
Adrian Schmutzler
0d32423daf treewide: simplify inclusion of subtarget image files
Many target use a repetitive if-include scheme for their subtarget
image files, though their names are consistent with the subtarget
names.

This patch removes these redundant conditions and just uses the
variable for the include where the target setup allows it.

For sunxi, this includes a trivial rename of the subtarget image
Makefiles.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-27 17:46:42 +08:00
Adrian Schmutzler
9ce97902e7 bcm63xx: reorganize board patches into fewer files
At the moment, bcm63xx creates one patch for each board to add to
board_bcm963xx.c. While this is not really helpful to get an overview
in the first place, it is particularly painful if you want to change
something for an early file and have to refresh all the later patches
accordingly.

Since it does not look like these board patches are upstreamed either,
this commit consolidates all board additions into one patch per "board".
By this, both adding and editing boards should become much simpler,
and we drop about 1300 lines of "code" from patches as well.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-27 11:35:11 +08:00
Adrian Schmutzler
eb44bda202 ath79: enable upgrade from ar71xx for Qxwlan devices
This supports upgrade from ar71xx for the recently added Qxwlan
devices E1700AC v2, E558 v2, E750A v4 and E750G v8.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-27 11:34:31 +08:00
Roman Kuzmitskii
9a7b57e172 octeon: use dedicated function to move config backup
All octeon devices use the same or a very similar way to backup
and restore configuration.

We expect to have more devices added and in order to stop
repeating ourselves move the logic to a separate function.

While at it, add a few checks.

Signed-off-by: Roman Kuzmitskii <damex.pp@icloud.com>
[commit message facelift]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-27 11:34:07 +08:00
Nick Hainke
85f489a36d ath79: fix block protection clearing
The block protection bits of macronix do not match the implementation.
The chip has 3 BP bits. Bit 5 is actually the third BP but here the
5th bit is SR_TB. Therefore the patch adds SR_TB to the mask. In the
4.19er kernel the whole register was simply set to 0.

The wrong implementation did not remove the block protection. This led
to jffs2 errors in the form of:
"jffs2: Newly-erased block contained word 0x19852003 at offset 0x..."
This caused inconsistent memory and other errors.

Suggested-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-10-26 11:45:37 +08:00
Nick Hainke
737b6b107a ath79: define 2.4GHz radio for litebeam ac gen2
The litebeam ac gen2 has a 2.4GHz management radio.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-10-26 11:42:22 +08:00
Nick Hainke
343e2d6a6d ath79: define 2.4GHz radio for nanostation ac loco
The nanostation ac loco has a 2.4GHz management radio.

Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-10-26 11:41:58 +08:00
Nick Hainke
2fbf32eb6e ath79: fix nanostation ac loco ethernet interface
In 4.14 the delays were not cleared, so setting "rgmii" as phy-mode
did not affect delays set by the bootloader. With 5.4 kernel the
situation changed and the ethernet interface stopped working.

Just taking the ethernetpart from the litebeam ac gen2 will fix
the issue.

Explained-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Nick Hainke <vincent@systemli.org>
2020-10-26 11:41:34 +08:00
Jianhui Zhao
be6b680892 ramips: mt7621: use lzma-loader for U7621-06
The U7621-06 fails to boot if the kernel is large.
Enabling lzma-loader resolves the issue.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2020-10-26 11:40:25 +08:00
CN_SZTL
8047ecbd5a
Merge Mainline 2020-10-25 22:15:27 +08:00
CN_SZTL
17c618e31c
naiveproxy: fix typo error 2020-10-25 22:13:46 +08:00
CN_SZTL
ddd82d1a6b
Merge Mainline 2020-10-25 17:57:42 +08:00
CN_SZTL
89941c8fd3
naiveproxy: fix var setting
Fixes: #216.
2020-10-25 17:55:24 +08:00
CN_SZTL
ca06b70b56
busybox: make busybox understand special cron time like @daily 2020-10-25 15:24:45 +08:00
CN_SZTL
b8b3172055
Merge Mainline 2020-10-25 15:19:02 +08:00
CN_SZTL
fefab16f57
luci-app-unblockneteasemusic-go: bump to v1.14 2020-10-25 14:43:39 +08:00
CN_SZTL
fbe43dda29
UnblockNeteaseMusic-Go: bump to v0.2.7 2020-10-25 14:41:18 +08:00
CN_SZTL
1a14c9852a
luci-app-serverchan: bump to v1.79 2020-10-25 14:40:34 +08:00
CN_SZTL
3a3fe3f445
node-request: add PKG_HASH 2020-10-25 14:38:01 +08:00
CN_SZTL
8394fcaf2f
oaf: bump to latest git HEAD 2020-10-25 14:34:13 +08:00
CN_SZTL
6cfa995fba
OpenClash: bump to 0.40.13-beta 2020-10-25 14:33:05 +08:00
CN_SZTL
f1a9e235fa
luci-app-jd-dailybonus: bump to v0.8.6 2020-10-25 14:31:18 +08:00
CN_SZTL
09d5aa83cd
luci-app-passwall: sync with upstream source 2020-10-25 14:22:57 +08:00
CN_SZTL
fba54535c8
naiveproxy: sync with upstream source 2020-10-25 12:28:21 +08:00
CN_SZTL
9dd5a7c056
linux: refresh patches for kernel 5.4
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-10-24 20:08:26 +08:00
Mattraks
b8f4857dee
v2ray: update sed args and upx ignore errors 2020-10-24 16:59:49 +08:00
Beginner
9eb3cbbc91 v2ray: update v4.31.3 2020-10-24 11:38:20 +08:00
AmadeusGhost
ea3ddbe9ca autocore-arm: adjust display order 2020-10-24 11:35:55 +08:00
Thibaut VARÈNE
ad8c4d3e8d
ar71xx: mikrotik: bypass id check in __rb_get_wlan_data()
The id parameter in __rb_get_wlan_data() was incorrectly used on the
assumption that id "0" would always be tied to ath9k with RLE encoding
and positive id (in fact, only id "1" was valid) would always be tied to
("external") ath10k with LZO encoding.

Newer hardware revisions of supported devices prove this assumption to
be invalid, with ath9k caldata being now wrapped in MAGIC_ERD and LZO
compressed, so disable this check to allow newer hardware to correctly
decode caldata for ath9k.

Note: this patch assumes that ath9k caldata is never stored with the new
"LZOR" encoding scheme found on some ath10k devices.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(cherry picked from commit 1c6990fe6d)
[keep publishing ath10k caldata in sysfs: it's the way it's done on 18.06]
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
Tested-by: Baptiste Jonglez <git@bitsofnetworks.org> [Mikrotik RB941-2nD r3]
2020-10-23 17:47:04 +08:00
AmadeusGhost
47d017962c luci-theme-edge: sync upstream source code 2020-10-23 11:38:30 +08:00
AmadeusGhost
55097d4f7c autocore: enable sensors support for ipq806x 2020-10-23 11:27:42 +08:00
Petr Štetiar
c8360aeaf3 Revert "target: select procd-{ujail,seccomp} if !SMALL_FLASH"
This reverts commit 6a56a6eb30 as several
users have reported unbootable systems.

Suggested-by: Roman Kuzmitskii <damex.pp@icloud.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-10-23 11:20:10 +08:00
CN_SZTL
76d682c9d9
Merge Mainline 2020-10-22 22:57:05 +08:00
CN_SZTL
60a0a88809
Revert "procd: jail: clean up capability handling and non-root ubusd"
This reverts commit bfc67bcc16.
2020-10-22 22:54:49 +08:00
CN_SZTL
363add2f7c
Revert "ubus: prepare to run ubusd as non-root user"
This reverts commit 99f35613e7.
2020-10-22 22:54:26 +08:00
CN_SZTL
341c6b1d00
uboot-sunxi: refresh patches 2020-10-22 13:04:37 +08:00
CN_SZTL
0980aba2c0
sunxi: fix NanoPi R1 support 2020-10-22 13:02:23 +08:00
CN_SZTL
3ea1ed9408
uboot-sunxi: drop outdated patch 2020-10-22 12:53:37 +08:00
CN_SZTL
01fd1d168c
Merge Mainline 2020-10-22 12:48:04 +08:00
Chen Minqiang
1aac44a221
ramips: ralink: rename some functions 2020-10-22 12:43:59 +08:00
Daniel Golle
dee5c5ee14 target: select procd-{ujail,seccomp} if !SMALL_FLASH
Add procd-ujail and procd-seccomp to DEFAULT_PACKAGES if not building
for space-constraint (FEATURES:=small_flash) targets.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-22 11:40:26 +08:00
Daniel Golle
bfc67bcc16 procd: jail: clean up capability handling and non-root ubusd
Unify capability handling to only use OCI spec parsers even for ujail
slim containers which previously supposedly used their own format.

 80c9516 cgroups: restrict allowed keys in 'unified' section
 5ade567 cgroups: memory controller fixes
 3121467 early: run ubusd non-root as user ubus, group ubus
 12a5b97 jail: adapt to new ubus socket path
 788d144 instance: actually wire up capabilities filename
 ebc5a7f jail: nuke old capabilities code in favour of reusing OCI code
 6c5233a jail: capabilities: apply in two phases

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-22 11:37:50 +08:00
Daniel Golle
99f35613e7 ubus: prepare to run ubusd as non-root user
Move /var/run/ubus.sock to /var/run/ubus/ubus.sock in preparation for
having ubusd run as non-root user.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-22 11:36:54 +08:00
Daniel Golle
ea183a6b59 target: include selinux-variants if CONFIG_SELINUX is set
Rather than unconditionally adding busybox and procd to the set of
default packages, add busybox-selinux and procd-selinux in case
CONFIG_SELINUX is set.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-10-22 11:36:08 +08:00
CN_SZTL
d7c06b9040
ipq40xx: drop kernel 4.14 support
kernel 4.14 is no longer supported with existing DTS files.

Fixes: #214

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-10-21 13:27:14 +08:00
AmadeusGhost
0e20fef781 npc: update to 0.26.9 2020-10-21 11:37:38 +08:00
AmadeusGhost
215bf7d9a0 minieap: update to 0.93 2020-10-21 11:34:48 +08:00
coolsnowwolf
9d99e47a0f r8125: bump to 9.004.01 to fix packet loss issue 2020-10-21 11:31:02 +08:00
Beginner
0efe647914 v2ray : update v4.31.2 (#5682) 2020-10-21 11:27:24 +08:00