bananapi r64 uses mediatek,mt753x gsw switch device.
configure network defaults accordingly.
Signed-off-by: Oskari Lemmela
---
target/linux/mediatek/image/mt7622.mk | 6 --
.../linux/mediatek/mt7622/base-files/etc/board.d/02_network | 3 ++-
2 files changed, 6
CONFIG_MMC_BLK enables block devices for SD/eMMC
Signed-off-by: Oskari Lemmela
---
target/linux/mediatek/mt7622/config-5.4 | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/linux/mediatek/mt7622/config-5.4
b/target/linux/mediatek/mt7622/config-5.4
index 1b0b1e36a6..30afb4ebe2 100644
f2fs filesystem and loop device support are needed for f2fs
overlay over squashfs.
Signed-off-by: Oskari Lemmela
---
target/linux/mediatek/mt7622/config-5.4 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/linux/mediatek/mt7622/config-5.4
b/target/linux/mediatek/mt7622/config-5.4
f2fs tools are needed for generating f2fs overlay.
vfat modules are used for recovery mounting.
Fixes: f72a2b004c3 ("mediatek: add bpi-r64 emmc support")
Signed-off-by: Oskari Lemmela
---
target/linux/mediatek/image/mt7622.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
di
mt7622-bananapi-bpi-r64.dts uses gsw switch device.
Change default network config to include switch device.
Oskari Lemmela (5):
mediatek: mt7622: add missing CONFIG_MMC_BLK
mediatek: mt7622: enable support for f2fs overlay
mediatek: mt7622: fix bpi-r64 emmc f2fs overlay
mediatek: mt7622
simplify maintaining mt7622-bananapi-bpi-r64-rootdisk.dts by
storing only differences between upstream dts
Signed-off-by: Oskari Lemmela
---
.../dts/mt7622-bananapi-bpi-r64-rootdisk.dts | 574 +-
1 file changed, 1 insertion(+), 573 deletions(-)
diff --git a/target/linux
use upstream DSA solution to match current bananapi-bpi-r64
network default settings.
Signed-off-by: Oskari Lemmela
---
.../patches-5.4/0005-dts-mt7622-add-gsw.patch | 53 ---
1 file changed, 53 deletions(-)
diff --git a/target/linux/mediatek/patches-5.4/0005-dts-mt7622-add
Adding -H option copies partition to MBR after pmbr entry.
Max 3 partitions can be copied to MBR.
Hybrid MBR is needed only in special cases.
For example mt7622 SD card boot needs MBR entry with boot
flag enabled.
Signed-off-by: Oskari Lemmela
---
tools/firmware-utils/src/ptgen.c | 39
guid and name function should be called before storing
partition info.
Signed-off-by: Oskari Lemmela
---
tools/firmware-utils/src/ptgen.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c
index a55f2e7a14
- Clean compile warnings
- Fix GPT guid and EFI System Partition naming
- Add support for hybrid MBR partitions
- Use LBA addressing for GPT and don't leave
gaps between partitions.
- use hybrid partitions for mt7622 image generation
Oskari Lemmela (6):
firmware-utils/ptgen
Do not align partitions with sectors. Only kb align
for GPT is supported.
Use 254 heads and 63 sectors for PMBR.
Signed-off-by: Oskari Lemmela
---
tools/firmware-utils/src/ptgen.c | 33 +++-
1 file changed, 20 insertions(+), 13 deletions(-)
diff --git a/tools
- set only one EFI system partition
- use shorter path for DEVICE_DTS file
Signed-off-by: Oskari Lemmela
---
target/linux/mediatek/image/mt7622.mk | 13 ++---
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/target/linux/mediatek/image/mt7622.mk
b/target/linux/mediatek
remove extra arguments from printf message
Signed-off-by: Oskari Lemmela
---
tools/firmware-utils/src/ptgen.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c
index 93c2d32a3f..a55f2e7a14 100644
--- a
mt7622 uses MBR partition for booting from SD card.
Add hybrid MBR entry with boot flag after PMBR entry.
Signed-off-by: Oskari Lemmela
---
target/linux/mediatek/image/mt7622.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/mediatek/image/mt7622.mk
b
Add possibility to use images and initramfs in artifacts.
Signed-off-by: Oskari Lemmela
---
include/image.mk | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/image.mk b/include/image.mk
index 29df0938bc..8b7b2b9740 100644
--- a/include/image.mk
+++ b/include
use generic function to get env partition
Fixes: 7043e4334f0 ("mediatek: mt7622: improve sysupgrade on MMC")
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-envtools/files/mediatek | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/package/boot/uboot-envt
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-envtools/files/mediatek| 14 ++--
.../mt7622/base-files/lib/upgrade/platform.sh | 34 +--
2 files changed, 34 insertions(+), 14 deletions(-)
diff --git a/package/boot/uboot-envtools/files/mediatek
b/package/boot/uboot
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-mediatek/Makefile | 12 +
.../403-add-bananapi_bpi-r64_defconfigs.patch | 275 --
.../404-add-bananapi-bpi-r64-snand.patch | 34 +++
target/linux/mediatek/image/mt7622.mk | 6 +-
.../115-dts-bpi64-add
Some BananaPi BPI-R64 boards have W25N01GV 128MB serial NAND
attached to SPI bus. Add support for installing OpenWRT to it.
Serial NAND bootloader files are added to SD card image.
Bootmenu entry provides easy install process.
Oskari Lemmela (4):
mediatek: bpi-r64: use separate partition for
emmc booloader is stored to separate partition.
fip size is increased to 2MB.
Signed-off-by: Oskari Lemmela
---
.../403-add-bananapi_bpi-r64_defconfigs.patch | 8
target/linux/mediatek/image/mt7622.mk | 13 +++--
2 files changed, 11 insertions(+), 10
eMMC booloader is stored to separate partition.
FIP size is increased to 2MB.
Signed-off-by: Oskari Lemmela
---
.../403-add-bananapi_bpi-r64_defconfigs.patch | 8
target/linux/mediatek/image/mt7622.mk | 13 +++--
2 files changed, 11 insertions(+), 10
.
Changes after v1:
- rebase to current master
- reorder ubi volumes. fit partition is always with index 2
- rename bl2 and fip images
- remove default 32MB value for overlay ubi partition
- make nand upgrade as default one
- fix indentations
Oskari Lemmela (4):
mediatek: bpi-r64: use separate
Default to nand upgrade if root device is not mmc block device.
Change default uboot environment same way.
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-envtools/files/mediatek| 14 ++--
.../mt7622/base-files/lib/upgrade/platform.sh | 34 +--
2 files changed, 34
Use generic functions to get env partition.
Fixes: 7043e4334f0 ("mediatek: mt7622: improve sysupgrade on MMC")
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-envtools/files/mediatek | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/package/boot/uboo
Some of bpi-r64 boards have serial NAND attached to SPI bus.
Add SD card image support for installing openwrt to it.
Separate preloader and uboot images for snand are generated.
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-mediatek/Makefile | 12 +
.../403-add-bananapi_bpi
Some of sunxi devices have onboard SPI flash.
Enable SPI NOR support and MTD fit split in kernel config.
Signed-off-by: Oskari Lemmela
---
target/linux/sunxi/config-4.14 | 9 -
target/linux/sunxi/config-4.19 | 9 -
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a
Backport A64 watchdog DTS change to 4.14 kernel.
Signed-off-by: Oskari Lemmela
---
...arm64-dts-allwinner-a64-Add-watchdog.patch | 54 +++
1 file changed, 54 insertions(+)
create mode 100644
target/linux/sunxi/patches-4.14/040-arm64-dts-allwinner-a64-Add-watchdog.patch
diff
-boot image can be written to SPI flash via booting
from SD card and then writing u-boot-with-spl.bin to
/dev/mtd0.
Oskari Lemmela (9):
sunxi: add a64 watchdog support
sunxi: add spi flash support to kernel
sunxi: spi flash dts changes
sunxi: switch to lzma compressed fit image
sunxi
Backport A64 SPI flash DTS changes to 4.14 kernel.
Add Openwrt specific flash partitions to Sopine.
Signed-off-by: Oskari Lemmela
---
...80-arm64-allwinner-a64-add-SPI-nodes.patch | 83 +++
...ner-sun50i-a64-Add-spi-flash-node-fo.patch | 41 +
...a64-sopine-Add-Sopine
Use LZMA compressed fit image to load kernel and dtb.
Fit image can be used load kernel and dtb from SPI flash.
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-sunxi/uEnv-a64.txt | 5 ++-
package/boot/uboot-sunxi/uEnv-default.txt | 5 ++-
package/boot/uboot-sunxi/uEnv-pangolin.txt
Add support for reading and writing environment stored in
SPI flash device.
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-envtools/files/sunxi | 33 +
1 file changed, 33 insertions(+)
create mode 100644 package/boot/uboot-envtools/files/sunxi
diff --git a
Patches to move pine64 LTS environment to SPI flash device.
Signed-off-by: Oskari Lemmela
---
...-move-env-to-spi-flash-in-pine64-lts.patch | 27 +
...efines-if-config-env-is-in-spi-flash.patch | 57 +++
2 files changed, 84 insertions(+)
create mode 100644
package/boot
: Oskari Lemmela
---
.../sunxi/base-files/lib/upgrade/platform.sh | 30 ++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/target/linux/sunxi/base-files/lib/upgrade/platform.sh
b/target/linux/sunxi/base-files/lib/upgrade/platform.sh
index 88ef4790e9..436e4d8517
Add support for SPI driver and booting from SPI.
Signed-off-by: Oskari Lemmela
---
...i-allwinner-spi-driver-sun6i-support.patch | 311 ++
...er-sunxi-fix-spurious-timeout-issues.patch | 30 ++
.../302-sunxi-add-spi-flash-bootcmd.patch | 81 +
...03-sunxi-dt-a64-sopine
CPU: R18 High Performance Quad-core 64-bit Cortex-A53
GPU: Mali400MP2 OpenGL ES 2.0/1.1/1.0, OpenVG 1.1, EGL
Memory: 2GB LPDDR3 (shared with GPU)
Onboard Storage: TF card / NOR flash(16MB)
Onboard Network: 1000M/100M Ethernet RJ45
Signed-off-by: Oskari Lemmela
---
package/boot/uboot-sunxi
Backport A64 unstable timer patches from linux 5.1
Signed-off-by: Oskari Lemmela
---
target/linux/sunxi/cortexa53/config-4.14 | 1 +
target/linux/sunxi/cortexa53/config-4.19 | 1 +
...arch_counter_get_cntpct-to-read-the-.patch | 125 +
...-for-Allwinner-A64-timer
Useful diagnostic commands for measuring connection info.
Implemented cell location, carrier aggregation and MIMO chain
info in easily parsable json format.
Compressed package size increased by 9kB.
Signed-off-by: Oskari Lemmela
---
commands-nas.c | 663
Add support for common-refs and double arrays.
Fix error message line and type parsing.
Signed-off-by: Oskari Lemmela
---
data/gen-code.pl | 11 +--
data/gen-common.pm | 10 ++
data/gen-error-list.pl | 2 +-
data/gen-header.pl | 5 -
4 files changed, 24
First patch updates dynamic code generator to handle newer data from
libqmi project. After data is synced from libqmi project, more connection
diagnostic commands are added to uqmi.
Oskari Lemmela (3):
uqmi: update code generator
uqmi: sync data from libqmi project
uqmi: add more
Make soft_config writable in all cases. Performing soft_config commit
will fail if mtd partition is not writable.
Signed-off-by: Oskari Lemmela
---
.../drivers/platform/mikrotik/rb_softconfig.c | 17 +++--
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git
a/target
Add support for variable size erase blocks.
Enable it to all targets which has mikrotik targets.
Signed-off-by: Oskari Lemmela
---
target/linux/ath79/mikrotik/config-default| 1 +
target/linux/generic/config-5.10 | 1 +
...support-for-minor-aligned-partitions.patch | 397
soft_config read-only, so changing it to writable.
Variable size erase blocks could be used to replace
MTD_SPI_NOR_USE_4K_SECTORS_LIMIT patch too.
Oskari Lemmela (3):
generic: platform/mikrotik: make soft_config writable without 4K
sectors
mikrotik: enable variable size erase
mikrotik: make
Parent mtd partition needs to be writable
Signed-off-by: Oskari Lemmela
---
target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5n.dtsi | 1 -
target/linux/ath79/dts/qca9533_mikrotik_routerboard-16m.dtsi | 1 -
.../ath79/dts/qca9556_mikrotik_routerboard-wap-g-5hact2hnd.dts | 1
Current mikrotik ath79 devices do not use switching devices.
Change the kernel config options to the DSA driver.
Signed-off-by: Oskari Lemmela
---
target/linux/ath79/mikrotik/config-default | 4
1 file changed, 4 insertions(+)
diff --git a/target/linux/ath79/mikrotik/config-default
b
should be upstremable. Only thing is two non-standard sysfs
controls (force_enable, port_state). They are also possible to implement
as debugfs files if they are not accepted by the upstream.
---
I used the preinit script to rename eth1 interface to sfp.
Is there a better way to do this?
Oskari
:
TFTP boot initramfs image and then perform sysupgrade. Follow common
MikroTik procedure as in https://openwrt.org/toh/mikrotik/common.
Signed-off-by: Oskari Lemmela
---
.../qca9557_mikrotik_routerboard-960pgs.dts | 279 ++
target/linux/ath79/image/mikrotik.mk | 9
Enable POE control to the mikrotik hex poe
Signed-off-by: Oskari Lemmela
---
.../qca9557_mikrotik_routerboard-960pgs.dts | 31 +++
1 file changed, 31 insertions(+)
diff --git a/target/linux/ath79/dts/qca9557_mikrotik_routerboard-960pgs.dts
b/target/linux/ath79/dts
Backport ar934x SPI driver delay fixes
Signed-off-by: Oskari Lemmela
---
...-ar934x-fix-transfer-and-word-delays.patch | 30 +++
1 file changed, 30 insertions(+)
create mode 100644
target/linux/ath79/patches-5.10/401-spi-ar934x-fix-transfer-and-word-delays.patch
diff --git
a
Add a hwmon-based driver to the mikrotik POE controllers.
Signed-off-by: Oskari Lemmela
---
.../linux/ath79/files/drivers/hwmon/rbpoe.c | 260 +++
.../linux/ath79/files/drivers/hwmon/rbpoe.h | 25 ++
.../ath79/files/drivers/hwmon/rbpoeport.c | 315 ++
target
Always allow writing to the soft_config partition. The kernel sets the
partition to read-only mode if the mtd device does not support 4k erase
size.
Signed-off-by: Oskari Lemmela
Tested-by: Stefan Hellermann
---
.../drivers/platform/mikrotik/rb_softconfig.c | 17 +++--
1 file
The parent partition must be writable. Otherwise,
all child partitions are in read-only mode.
Signed-off-by: Oskari Lemmela
Tested-by: Stefan Hellermann
---
target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5n.dtsi | 1 -
target/linux/ath79/dts/qca9533_mikrotik_routerboard-16m.dtsi
read-only, so changing it to writable.
v2 changes:
- Collect Tested-by tags
- Reword commit messages
Oskari Lemmela (3):
generic: platform/mikrotik: allow soft_config writes without 4k
sectors
mikrotik: add support for mtd erase of varying sizes
mikrotik: make soft_config writable
Add support for variable size erase blocks.
Enable it in all targets with mikrotik devices.
Signed-off-by: Oskari Lemmela
Tested-by: Stefan Hellermann
---
target/linux/ath79/mikrotik/config-default| 1 +
target/linux/generic/config-5.10 | 1 +
...support-for-minor-aligned
Currently only the set operation is supported.
Add support for getting the current operating mode.
Signed-off-by: Henrik Ginstmark
Signed-off-by: Oskari Lemmela
---
commands-dms.c | 46 +-
commands-dms.h | 2 ++
2 files changed, 35 insertions(+), 13
Current mikrotik ath79 devices do not use switch drivers.
Enable the QCA8K driver and disable the old AR8126 phy.
Signed-off-by: Oskari Lemmela
---
target/linux/ath79/mikrotik/config-default | 4
1 file changed, 4 insertions(+)
diff --git a/target/linux/ath79/mikrotik/config-default
b
fixes are required for the poe controller.
Oskari Lemmela (5):
ath79: mikrotik: change to qca8k DSA driver
ath79: add support for MikroTik RouterBOARD 960PGS (hEx PoE)
ath79: fix ar934x spi driver delays
ath79: mikrotik: add poe driver
ath79: mikrotik: add poe to hex poe board
Backport spi driver delay fixes from the 5.17-rc1 kernel.
Signed-off-by: Oskari Lemmela
---
...-ar934x-fix-transfer-and-word-delays.patch | 32 +
...3-v5.17-spi-ar934x-fix-transfer-size.patch | 67 +++
2 files changed, 99 insertions(+)
create mode 100644
target/linux
:
TFTP boot initramfs image and then perform sysupgrade. Follow common
MikroTik procedure as in https://openwrt.org/toh/mikrotik/common.
Signed-off-by: Oskari Lemmela
---
.../qca9557_mikrotik_routerboard-960pgs.dts | 279 ++
target/linux/ath79/image/mikrotik.mk | 9
Add hwmon based driver for mikrotik POE controllers.
Signed-off-by: Oskari Lemmela
---
.../linux/ath79/files/drivers/hwmon/rbpoe.c | 256 ++
.../linux/ath79/files/drivers/hwmon/rbpoe.h | 25 ++
.../ath79/files/drivers/hwmon/rbpoeport.c | 311 ++
target/linux
Enable poe controller to hex poe board.
Signed-off-by: Oskari Lemmela
---
.../qca9557_mikrotik_routerboard-960pgs.dts | 31 +++
1 file changed, 31 insertions(+)
diff --git a/target/linux/ath79/dts/qca9557_mikrotik_routerboard-960pgs.dts
b/target/linux/ath79/dts
60 matches
Mail list logo