I am trying to make a custom firmware for a non branded wifi extender. I have the following info and am unsure how to proceed. I have compiled mediatek filogic (mt7981) of openwrt 23 and 24, and booted the kernal using bootmenu. It seems I need support SPI NOR to get mtd's. I have serial access to the device if any other info is needed. Thanks in advance for any help:
also a pastebin of the dmesg https://pastebin.com/M5FPr3Q5
loadaddr=0x46000000
free -h
total used free shared buff/cache available
Mem: 230656 120048 83456 120 27152 96440
Swap: 0 0 0
cat /proc/cpuinfo
processor : 0
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 26.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
model name : ARMv8 Processor rev 4 (v8l)
BogoMIPS : 26.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
cat /proc/meminfo
MemTotal: 230656 kB
MemFree: 83992 kB
MemAvailable: 96740 kB
Buffers: 4880 kB
Cached: 16536 kB
SwapCached: 0 kB
Active: 17528 kB
Inactive: 7724 kB
Active(anon): 3860 kB
Inactive(anon): 96 kB
Active(file): 13668 kB
Inactive(file): 7628 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 3836 kB
Mapped: 6184 kB
Shmem: 120 kB
KReclaimable: 5428 kB
Slab: 43624 kB
SReclaimable: 5428 kB
SUnreclaim: 38196 kB
KernelStack: 1612 kB
PageTables: 456 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 115328 kB
Committed_AS: 9320 kB
VmallocTotal: 262930368 kB
VmallocUsed: 40636 kB
VmallocChunk: 0 kB
Percpu: 280 kB
cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "BL2"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 000b0000 00010000 "Factory"
mtd3: 00080000 00010000 "FIP"
mtd4: 00e80000 00010000 "firmware"
mtd5: 00350000 00010000 "kernel"
mtd6: 00b20000 00010000 "rootfs"
mtd7: 000f0000 00010000 "rootfs_data"
uname -r
5.4.246
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether fc:22:1c:70:10:70 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UP qlen 1000
link/ether fc:22:1c:70:10:71 brd ff:ff:ff:ff:ff:ff
4: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN qlen 1000
link/gre 0.0.0.0 brd 0.0.0.0
5: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
6: erspan0@NONE: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN qlen 1000
link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
7: ra0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UNKNOWN qlen 1000
link/ether fc:22:1c:70:10:72 brd ff:ff:ff:ff:ff:ff
8: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether fc:22:1c:70:10:71 brd ff:ff:ff:ff:ff:ff
9: rax0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br-lan state UNKNOWN qlen 1000
link/ether fe:22:1c:70:10:72 brd ff:ff:ff:ff:ff:ff
10: apcli0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master br-lan state DOWN qlen 1000
link/ether fa:22:1c:70:10:72 brd ff:ff:ff:ff:ff:ff
11: apclix0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop master br-lan state DOWN qlen 1000
link/ether f6:22:1c:70:10:72 brd ff:ff:ff:fcdf:ff:ff
cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 455-511, parent: platform/11d00000.pinctrl, pinctrl_moore:
gpio-456 ( |reset ) in hi IRQ ACTIVE LOW
gpio-463 ( |bfros:pio:ethwan ) out lo ACTIVE LOW
gpio-465 ( |bfros:pio:led1 ) out hi
gpio-466 ( |bfros:pio:led2 ) out hi ACTIVE LOW
gpio-467 ( |bfros:pio:led3 ) out hi ACTIVE LOW
cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02-SNAPSHOT'
DISTRIB_REVISION='r16841-cbe73ea33d'
DISTRIB_TARGET='mediatek/mt7981'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt 21.02-SNAPSHOT r16841-cbe73ea33d'
DISTRIB_TAINTS='no-all busybox'
ubus call system board
{
"kernel": "5.4.246",
"hostname": "Srepeater",
"system": "ARMv8 Processor rev 4",
"model": "MediaTek MT7981 RFB",
"board_name": "mediatek,mt7981-spim-nor-rfb",
"release": {
"distribution": "OpenWrt",
"version": "21.02-SNAPSHOT",
"revision": "r16841-cbe73ea33d",
"target": "mediatek/mt7981",
"description": "OpenWrt 21.02-SNAPSHOT r16841-cbe73ea33d"
}
}