Cześć,
próbuje uruchomić OpenWRT na tym routerze. Do tej pory bawiłem się obrazem initramfs, a teraz chciałem wgrać obraz do flash.
Hardware:
CPU: Lantiq GRX390
RAM: 128MB
Flash: 128MB NAND
Nie mam pojęcia do końca pojęcia jak zbootować obraz z uboota. Eksperymetalnie spróbowałem tylko wgrać obraz przez sysupgrade ze zbootowanego obrazu initramfs (tak jak to było dla BT Home Hub 5A). Efekt jest następujący:
root@OpenWrt:/tmp# sysupgrade openwrt-lantiq-xrx300-dlink_dwr-966-squashfs-sysup
grade.bin
Cannot save config while running from ramdisk.
Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Sending TERM to remaining processes ... rpcd netifd odhcpd uhttpd ntpd dnsmasq ubusd urngd logd
Sending KILL to remaining processes ...
Performing system upgrade...
removing ubiblock0_1
[ 1098.723047] block ubiblock0_1: released
Volume ID 0, size 17 LEBs (2193408 bytes, 2.0 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "kernel", alignment 1
Volume ID 1, size 16 LEBs (2064384 bytes, 1.9 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 78188544
Volume ID 7, size 606 LEBs (78188544 bytes, 74.5 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
umount: can't unmount /: Invalid argument
[ 1100.210442] reboot: Res�
ROM VER: 1.0.0
CFG 06
NAND
DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...
U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)
CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM: 128 MiB
NAND: ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In: serial
Out: serial
Err: serial
Net: internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch
Type "run flash_nfs" to mount root filesystem over NFS
part1_err=0,part2_err=0
Hit any key to stop autoboot: 0
argv=1
partnum=1
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=4"
UBI: MTD device size: 124 MiB
UBI: number of good PEBs: 992
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 8
UBI: available PEBs: 11
UBI: total number of reserved PEBs: 981
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 22/10
Volume kernel found at volume id 0
read 2097152 bytes from volume 0 to 80800000(buf address)
size=2172023,name=MIPS OpenWrt Linux-4.19.123
Bad kernel Checksum
CRC error , changing another booting partition from 1
Erasing redundant Nand...
Erasing at 0x160000 -- 100% complete.
Writing to redundant Nand... done
ROM VER: 1.0.0
CFG 06
NAND
DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...
U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)
CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM: 128 MiB
NAND: ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In: serial
Out: serial
Err: serial
Net: internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch
Type "run flash_nfs" to mount root filesystem over NFS
part1_err=1,part2_err=0
Wywala się na nieprawidłowej sumie CRC. Być może coś jest nie tak z partycją UBI, albo czegoś jeszcze brakuje. Ma ktoś pomysł jak rozwiązać ten problem?
partycje na oryginalnym obrazie:
root@home:/# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "uboot"
mtd1: 00040000 00020000 "ubootconfigA"
mtd2: 00040000 00020000 "ubootconfigB"
mtd3: 00040000 00020000 "gphyfirmware"
mtd4: 07c00000 00020000 "system_sw"
mtd5: 00100000 00020000 "calibration"
mtd6: 00100000 00020000 "factory"
mtd7: 00040000 00020000 "res"
mtd8: 001b9000 0001f800 "kernel"
mtd9: 00fdf800 0001f800 "rootfs"
mtd10: 0140e800 0001f800 "data_vol"
mtd11: 00217800 0001f800 "kernelb"
mtd12: 0101e800 0001f800 "rootfsb"
mtd13: 0001f800 0001f800 "sysconfig"
mtd14: 00217800 0001f800 "defconfig"
bootlog
ROM VER: 1.0.0
CFG 06
NAND
ROM VER: 1.0.0
CFG 06
NAND
DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...
U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)
CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM: 128 MiB
NAND: ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In: serial
Out: serial
Err: serial
Net: internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch
Type "run flash_nfs" to mount root filesystem over NFS
part1_err=0,part2_err=0
Hit any key to stop autoboot: 0
argv=1
partnum=1
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=4"
UBI: MTD device size: 124 MiB
UBI: number of good PEBs: 992
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 7
UBI: available PEBs: 507
UBI: total number of reserved PEBs: 485
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 20/9
Volume kernel found at volume id 0
read 2097152 bytes from volume 0 to 80800000(buf address)
size=1785792,name=MIPS LTQCPE Linux-3.10.12
UBI: mtd1 is detached from ubi0
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=4"
UBI: MTD device size: 124 MiB
UBI: number of good PEBs: 992
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 7
UBI: available PEBs: 507
UBI: total number of reserved PEBs: 485
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 20/9
Volume rootfs found at volume id 1
read 16629760 bytes from volume 1 to 80800000(buf address)
rootfs CRC = 7E483624
Firmware_version=[DWR-966_v1.0.3CP_r03]
CRC OK, booting...
UBI: mtd1 is detached from ubi0
Creating 1 MTD partitions on "nand0":
0x0000001c0000-0x000007dc0000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=4"
UBI: MTD device size: 124 MiB
UBI: number of good PEBs: 992
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 7
UBI: available PEBs: 507
UBI: total number of reserved PEBs: 485
UBI: number of PEBs reserved for bad PEB handling: 9
UBI: max/mean erase counter: 20/9
Volume kernel found at volume id 0
read 0 bytes from volume 0 to 80800000(buf address)
Read [1806336] bytes
## Booting kernel from Legacy Image at 80800000 ...
Image Name: MIPS LTQCPE Linux-3.10.12
Created: 2016-04-14 7:57:11 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1785792 Bytes = 1.7 MiB
Load Address: 80002000
Entry Point: 8000a970
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 3.10.12 (jackson@WNC-JPR233-BM4) (gcc version 4.8.1 20130401 (prerelease) (Linaro GCC 4.8-2013.04) ) #8 Thu Apr 14 15:56:55 CST 2016
[ 0.000000] SoC: xRX330 rev 1.1
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[ 0.000000] adding memory size:267386880 from DT
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 0ff00000 @ 00000000 (usable)
[ 1.150000] Switch API: PCE MicroCode loaded !!
[ 1.150000] gphy_driver_init: fw_mode:11G-FW, no of phys:4, mode:0
mount: mounting none on /dev/pts failed: No such file or directory
rootdir=/
table='/etc/device_table.txt'
makedevs: line 64: can't create node dev/ram: File exists
makedevs: line 109: can't create node dev/vcc/: File exists
makedevs: line 111: can't create node dev/vc/: File exists
starting pid 611, tty '': '/etc/init.d/rcS S boot'
Switch antenna
The last switch is under INTernal antenna.
starting pid 655, tty '': '/sbin/getty 115200 ttyLTQ0'
System Init...
ECC failed: 0
ECC corrected: 0
Number of bad blocks: 0
Number of bbt blocks: 0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00100000...
cal_wlan0.bin
mac
(none) login: Using current ascii!!
user obj count 2
Module version: Can Not Connect To /tmp/cgi-2-sys!
sed: bad option in substitution expression
Jan 1 00:00:08 udevd[771]: error: runtime directory '/run/udev' not writable, for now falling back to '/dev/.udev'
Jan 1 00:00:08 udevd[772]: specified group 'tty' unknown
Jan 1 00:00:08 udevd[772]: specified group 'dialout' unknown
Jan 1 00:00:08 udevd[772]: specified group 'kmem' unknown
Jan 1 00:00:08 udevd[772]: specified group 'video' unknown
Jan 1 00:00:08 udevd[772]: specified group 'lp' unknown
Jan 1 00:00:08 udevd[772]: specified group 'disk' unknown
Jan 1 00:00:08 udevd[772]: specified group 'floppy' unknown
Jan 1 00:00:08 udevd[772]: specified group 'cdrom' unknown
Jan 1 00:00:08 udevd[772]: specified group 'tape' unknown
insmod: can't insert '/lib/modules/3.10.12/ltqmips_vrx318_e1.ko': Input/output error
Importing configuration...
upfwFlag: false
bootPar:A
curVer:DWR-966_v1.0.3CP_r03
oldVer:0
Firmware Upgrade: false
@@ import table name: FirewallNatConfig
Polling Interval = 60
Priority Threshold = 7
Byte Rate based Management = 1
Packet Rate based Management = 0
Poll history = 1
Maximum delete sessions = 30
Mode = 0
@@ import table name: VoiceLine
@@ import table name: VoiceLine
@@ import table name: ethWanSetting
@@ import table name: SPI
@@ import table name: UrlFltrConfig
@@ import table name: FirewallDmz
@@ import table name: VoiceProfile
@@ import table name: wifiClient
@@ import table name: QoS
@@ import table name: RmtMgrConfig
@@ import table name: wifiProfile
@@ import table name: wifiProfile
@@ import table name: wifiProfile
@@ import table name: wifiProfile
@@ import table name: system
@@ import table name: VpnL2TPUserAccount
@@ import table name: ResetToDefault
@@ import table name: lteRadio
@@ import table name: SecurityConfig
@@ import table name: wifiSchedules
@@ import table name: tr69Config
@@ import table name: ntpConfig
@@ import table name: ApFwUpgrade
@@ import table name: accessMgmt
@@ import table name: sysLogInfo
@@ import table name: wifiAOCStrigger
@@ import table name: wifiAOCSstatus
@@ import table name: DhcpServerBasic
@@ import table name: RoutingConfig
@@ import table name: wifiRadio
@@ import table name: wifiRadio
@@ import table name: wifiAP
@@ import table name: wifiAP
@@ import table name: wifiAP
@@ import table name: wifiAP
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: Services
@@ import table name: UPNP
@@ import table name: VpnConfig
@@ import table name: MultiLanguage
@@ import table name: MacTable
@@ import table name: MacTable
@@ import table name: MacTable
@@ import table name: MacTable
Loading USB Host mode driver
@@ import table name: MacTable
@@ import table name: MacTable
@@ import table name: ethWanSwitch
@@ import table name: Lan
@@ import table name: wifiWPS
@@ import table name: wifiWPS
@@ import table name: VpnPPTPUserAccount
@@ import table name: SambaSetting
@@ import table name: dlnaConfig
@@ import table name: ethWanStatus
@@ import table name: lteNwStatus
@@ import table name: lteNwStatus
@@ import table name: AuthCfg
@@ import table name: AuthCfg
@@ import table name: PeerToPeer
@@ import table name: DbgSetting
@@ import table name: wifiACLconfig
@@ import table name: lteNwProfile
@@ import table name: lteNwProfile
@@ import table name: FirewallConfig
@@ import table name: lteWanPriority
@@ import table name: ltePinStatus
@@ import table name: ltePinStatus
@@ import table name: SambaAccount
@@ import table name: SambaAccount
@@ import table name: wifiProfilecommit
@@ import table name: RemoteLog
@@ import table name: RemoteLog
@@ import table name: RemoteLog
@@ import table name: users
@@ import table name: VoiceLineSignaling
@@ import table name: VoiceLineSignaling
@@ import table name: crontab
@@ import table name: groups
@@ import table name: groups
@@ import table name: groups
@@ import table name: wifiStatus
@@ import table name: ddns
@@ import table name: VoiceProfileSignaling
@@ import table name: RoamingPDPType
@@ import table name: lteHwInfo
OK
Import DB : DONE
Found USB module connected on PCI(e)
insmod: can't insert '/lib/modules/3.10.12/usb-storage.ko': File exists
insmod lte modules .....
evtDsptchInit-120 :
evtDsptchInit-141 :
[ 16.490000] ltq_gphy_firmware_config: fw_mode:11G-FW, no of phys:4,data_ptr:5440000
Network ok
disable PHY...
run script : firewall.sh
firewall init
run script : firewall_ipv6.sh
firewall_ipv6 init
run script : iptables_fw.sh
iptables_fw init
WWAN init with MAL manager ...
BR_MAC_ADDR= E8:CC:18:B8:F4:9D
run script : firewall_rule.sh
wlan_discover: PCI_DEVICES COUNT: 4
wlan_discover: PCI_ATH COUNT: 1
wlan_discover: PCI_LTQ COUNT: 0
wlan_discover: AHB_WLAN_COUNT: 1
wlan_discover: TOTAL WLAN COUNT: 2
wlan_discover: VALID PHY_CNT: 2
run script : filter_ipv6.sh
ipv6 filter init
run script : SessionLimit.sh
SessionLimit init
run script : filter.sh
filter init
run script : upnp_service.sh
upnp_service init
run script : forward.sh
forward init
run script : vpn_method.sh
vpn_method init
run script : urlfilter.sh
urlfilter init
Switch Init done
wlan_discover: highest discovered apIndex is 2
run script : schedule_rule.sh
schedule_rule init
run script : regmag.sh
regmag init
rc.bringup_wlan init
wlan_cmd =init
i=0
Initializing wave
run script : QosInit.sh
run script : dmz.sh
dmz init
sh: 0: unknown operand
net.ipv6.conf.all.disable_ipv6 = 1
IPv6 ENABLE is off
starting webs Daemon...dwatch: process[/usr/local/bin/webs]: 2596
successfully started webs(pid2596)
Done
net.ipv6.conf.all.disable_ipv6 = 1
addr:192.168.1.1
killall: dnsmasq: no process killed
[um.c]pUserName:admin, pPassword:admin, pGroup:admin
setup accounts...
setup accounts...Enter Admin
.
tar: invalid gzip magic
tar: can't open '/tmp/eeprom.tar.gz': No such file or directory
dwatch: process[udhcpd]: 2747
successfully started udhcpd(pid2747)
udhcpd (v1.17.1) started
mtlk module loaded in address: 0x86f00000
mtlkroot module loaded in address: 0x85510000
enable PHY...
LTETrig=
cat: can't open '/tmp/wifisetting_11n': No such file or directory
ifconfig: SIOCGIFFLAGS: No such device
rc.bringup_wlan start 0 1
START_VAP=0 , END_VAP=1
Starting Wave interface 0
sh: 2: unknown operand
[ 52.730000] [RMNET:HI] rmnet_vnd_ioctl(): Unkown IOCTL 0x00008B01
drvhlpr.sh: drvhlpr terminated with status 4
ALERT #####################################################################################
ALERT ######### mtlk_set_wls_if: MAC of wlan0 is wrong. Must end with 0 or 8 ##########
ALERT ######### Number of supported VAPs may be limited due to this error #################
ALERT #####################################################################################
by pass mtlk_init_hostapd.sh
killing 4159
sh: can't kill pid 4159: No such process
WLANBeacon=100
WLANRTSTh=2346
WLANCh=0
WLANNetMode=bgn
WLANFortyMode=2040
WLANBoningCh=1
WLANTxoffset=0
WLANNetMode_int=23
WLANFortyMode_int=1
cat: can't open '/tmp/wifiDebug': No such file or directory
cant get the LTE bandinfo
WIFI ACL control script
Configuration file: /tmp/hostapd_1.conf
Using interface wlan0 with hwaddr e8:cc:18:b8:f4:9f and ssid "DWR-966_B8F49D"
WLANACLEn_1=0
WLANACLEn_2=0
disable the ACL
rc.bringup_wlan start 1 2
START_VAP=1 , END_VAP=2
Starting Wave interface 1
by pass mtlk_init_hostapd.sh
non boot phase
iptables: Bad rule (does a matching rule exist in that chain?).
interface ath1 does not exist!
interface ath1 does not exist!
udhcpd (v1.17.1) started
udhcpd: can't open '/var/lib/misc/udhcpd_br1.leases': No such file or directory
WIFI ACL control script
WLANACLEn_1=0
WLANACLEn_2=0
disable the ACL
no platform found
rc.bringup_wlan initac
wlan_cmd =initac
i=1
Initializing ath
[ 80.230000] +HWT
[ 80.230000] -HWT
[ 80.230000] HTC Service:0x0300 ep:1 TX flow control disabled
[ 80.240000] HTC Service:0x0100 ep:2 TX flow control disabled
[ 80.260000] HTC TX lookup failed!
[ 80.260000] HTC TX lookup failed!
[ 80.270000] HTC TX lookup failed!
[ 80.270000] HTC TX lookup failed!
[ 80.270000] HTC TX lookup failed!
[ 80.280000] HTC TX lookup failed!
[ 80.280000] HTC TX lookup failed!
[ 80.280000] HTC TX lookup failed!
[ 80.290000] HTC TX lookup failed!
[ 80.290000] HTC TX lookup failed!
[ 80.290000] HTC TX lookup failed!
[ 80.290000] HTC TX lookup failed!
[ 80.300000] HTC TX lookup failed!
[ 80.300000] HTC TX lookup failed!
[ 80.300000] HTC TX lookup failed!
[ 80.310000] HTC TX lookup failed!
[ 80.310000] HTC TX lookup failed!
[ 80.310000] HTC TX lookup failed!
[ 80.320000] HTC TX lookup failed!
[ 80.320000] HTC TX lookup failed!
[ 80.320000] HTC TX lookup failed!
[ 80.330000] HTC TX lookup failed!
[ 80.330000] HTC TX lookup failed!
[ 80.330000] HTC TX lookup failed!
[ 80.340000] HTC TX lookup failed!
[ 80.340000] HTC TX lookup failed!
[ 80.340000] HTC TX lookup failed!
[ 80.350000] HTC TX lookup failed!
[ 80.350000] HTC TX lookup failed!
[ 80.350000] HTC TX lookup failed!
[ 80.360000] HTC TX lookup failed!
[ 80.360000] HTC TX lookup failed!
[ 80.360000] HTC TX lookup failed!
[ 80.370000] HTC TX lookup failed!
[ 80.370000] HTC TX lookup failed!
[ 80.370000] HTC TX lookup failed!
[ 80.380000] HTC TX lookup failed!
[ 80.380000] HTC TX lookup failed!
[ 80.380000] HTC TX lookup failed!
[ 80.390000] HTC TX lookup failed!
[ 80.390000] HTC TX lookup failed!
[ 80.390000] HTC TX lookup failed!
[ 80.400000] HTC TX lookup failed!
[ 80.400000] HTC TX lookup failed!
[ 80.400000] HTC TX lookup failed!
[ 80.410000] HTC TX lookup failed!
[ 80.410000] HTC TX lookup failed!
[ 80.410000] HTC TX lookup failed!
[ 80.420000] HTC TX lookup failed!
[ 80.420000] HTC TX lookup failed!
[ 80.420000] HTC TX lookup failed!
[ 80.430000] HTC TX lookup failed!
[ 80.430000] HTC TX lookup failed!
[ 80.430000] HTC TX lookup failed!
[ 80.440000] HTC TX lookup failed!
[ 80.440000] HTC TX lookup failed!
[ 80.440000] HTC TX lookup failed!
[ 80.450000] HTC TX lookup failed!
[ 80.450000] HTC TX lookup failed!
[ 80.450000] HTC TX lookup failed!
[ 80.460000] HTC TX lookup failed!
[ 80.460000] HTC TX lookup failed!
[ 80.460000] HTC TX lookup failed!
rc.bringup_wlan start 2 4
START_VAP=2 , END_VAP=4
Starting QCA interface
ath_wlan_ap_start 2
[ 81.840000] [RMNET:HI] rmnet_vnd_ioctl(): Unkown IOCTL 0x00008B01
Create ath0 interface for device wifi0
[ 81.940000] VAP device ath0 created
ath0
Radio is up
wifi interface wifi0 is up
ifconfig: SIOCGIFFLAGS: No such device
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Interface doesn't accept private ioctl...
AMPDU (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDUFrames (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDULim (8BE0): Operation not permitted
Error for wireless request "Set Frequency" (8B04) :
SET failed on device ath0 ; Invalid argument.
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Making Topology File . . .
Starting QCA interface
ath_wlan_ap_start 3
[ 86.370000] [RMNET:HI] rmnet_vnd_ioctl(): Unkown IOCTL 0x00008B01
Create ath1 interface for device wifi0
[ 86.450000] VAP device ath1 created
ath1
Radio is up
wifi interface wifi0 is up
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Interface doesn't accept private ioctl...
AMPDU (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDUFrames (8BE0): Operation not permitted
Interface doesn't accept private ioctl...
AMPDULim (8BE0): Operation not permitted
Error for wireless request "Set Frequency" (8B04) :
SET failed on device ath1 ; Invalid argument.
/etc/rc.d/ath_wlan_ap_start: line 1: [1: not found
Making Topology File . . .
ath0 Link encap:Ethernet HWaddr E8:CC:18:B8:F4:9E
cat: can't open '/tmp/wifisetting_11ac': No such file or directory
killing 5251
sh: can't kill pid 5251: No such process
WLANBeacon=100
WLANRTSTh=2346
WLANCh=0
WLANNetMode=ac
WLANFortyMode=80
WLANBoningCh=1
WLANNetMode_s=11AC
WLANFortyMode_s=VHT80
CHMODE=11ACVHT80
QCA9880 warming up 1 sec
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
QCA9880 warm up
non boot phase
Configuration file: /tmp/hostapd_ac.conf
ath0: Could not connect to kernel driver
Using interface ath0 with hwaddr e8:cc:18:b8:f4:9e and ssid 'DWR-966_5GHz_B8F49D'
WIFI ACL control script
WLANACLEn_1=0
WLANACLEn_2=0
disable the ACL
RUN led_config.sh
killall: ripd: no process killed
killall: syslogd: no process killed
killall: syslog-ng: no process killed
Power LED : delay_on=, delay_off=0, brightness=1
killall: send_radiosyslog.sh: no process killed
killall: send_voipsyslog.sh: no process killed
sh: can't kill pid 5423: No such process
--------------- EMI CMD START ---------------
writing 0x8000000f into address 0x1f2030c8
--------------- Disable Auto-polling ---------------
--------------- Disable port 0 GPHY CLKOUT ---------------
write dev=0x0, reg=0xd, data=0x1f
write dev=0x0, reg=0xe, data=0xea9
write dev=0x0, reg=0xd, data=0x401f
write dev=0x0, reg=0xe, data=0x15
--------------- RGMII slew rate control enable ---------------
write dev=0x0, reg=0xd, data=0x1f
write dev=0x0, reg=0xe, data=0xea8
write dev=0x0, reg=0xd, data=0x401f
write dev=0x0, reg=0xe, data=0x85
--------------- Enable Auto-polling ---------------
--------------- Restart auto-negotiation ---------------
--------------- EMI CMD END ---------------
--------------- Change Ethernet Port output voltage START ---------------
write dev=0x0, reg=0x13, data=0x501
write dev=0x2, reg=0x13, data=0x501
write dev=0x4, reg=0x13, data=0x501
write dev=0x1, reg=0x13, data=0x501
--------------- Change Ethernet Port output voltage END ---------------
event handler already exist.
Terminated
Not start VoIP Services...Done
TR69 is Disabled
killall: inadyn: no process killed
run script : upnp_service.sh
killall: miniupnpd: no process killed
UPNP Service on
BOOTLoader:U-Boot-2010.06-dirty-LANTIQ-v-2.3.08
CPU:P02003
Kernel:3.10.12
Software:DWR-966_v1.0.3CP_r03-1556-14Apr16
Branch:P02003-UGW-6.1
Tool Chain:4.8-linaro/0.9.33.2
PPA SubSystem version info:v3.0.0-0
PPA ppacmd utility tool info:2.9.0
PPE HAL driver info:128.4.3.1.0.0.2
Switch API Version: 2.0.1
Wave wlan version: 03.04.02.40_05_UGW_6.1
Wave wlan driver version: 03.04.02.00.25.c9c85872fd07
Wave wlan MAC FW version: FW_3.4.2_based_on_3.4.2.40_for_UGW_r3625
Wave300 wlan PHY version: 1668
AR10 wlan PHY version: 1796
Wave wlan scripts version:
Starting the cron deamon...crond started
/etc/rc.common: line 92: ./mnt/data/dbg_script.sh: not found
bootlog z openwrt:
ROM VER: 1.0.0
CFG 06
NAND
DDR autotuning Rev 1.0
DDR size from 0xa0000000 - 0xa7ffffff
DDR check ok... start booting...
U-Boot 2010.06-dirty-LANTIQ-v-2.3.08 (Aug 14 2015 - 10:30:43)
CLOCK CPU 600M RAM 300M
16 Bit RAM
DRAM: 128 MiB
NAND: ONFI flash detected
ONFI param page 0 valid
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
128 MiB
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
In: serial
Out: serial
Err: serial
Net: internal phy using 25Mhz clock
Internal phy firmware version: 0x8434
ar10 Switch
Type "run flash_nfs" to mount root filesystem over NFS
part1_err=0,part2_err=0
Hit any key to stop autoboot: 0
GRX330 # setenv loadaddr 0x84000000
GRX330 # run net_ram
Using ar10 Switch device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'uImage'.
Load address: 0x84000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
####################
done
Bytes transferred = 4109737 (3eb5a9 hex)
## Booting kernel from Legacy Image at 84000000 ...
Image Name: MIPS OpenWrt Linux-4.19.123
Created: 2020-05-30 13:40:47 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 4109673 Bytes = 3.9 MiB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 4.19.123 (aleksander@LAPTOP-OLEK) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13400-d182e08d92)) #0 SMP Sat May 30 13:40:47 2020
[ 0.000000] SoC: xRX330 rev 1.1
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[ 0.000000] MIPS: machine is D-Link DWR-966
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Detected 1 available secondary CPU(s)
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x98/0x4dc with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu s26256 r8192 d22896 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyLTQ0,115200
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=0007fff0
[ 0.000000] Readback ErrCtl register=0007fff0
[ 0.000000] Memory: 119672K/131072K available (5091K kernel code, 201K rwdata, 1292K rodata, 3128K init, 227K bss, 11400K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 600MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[ 0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[ 0.007891] Calibrating delay loop... 397.82 BogoMIPS (lpj=795648)
[ 0.045938] pid_max: default: 32768 minimum: 301
[ 0.050851] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.057350] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.067410] rcu: Hierarchical SRCU implementation.
[ 0.073260] smp: Bringing up secondary CPUs ...
[ 0.078695] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.078710] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.078845] CPU1 revision is: 00019556 (MIPS 34Kc)
[ 0.105870] Synchronize counters for CPU 1: done.
[ 0.130196] smp: Brought up 1 node, 2 CPUs
[ 0.138401] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.148033] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 0.154489] pinctrl core: initialized pinctrl subsystem
[ 0.161390] NET: Registered protocol family 16
[ 0.183192] pinctrl-xway 1e100b10.pinmux: Init done
[ 0.189323] dma-xway 1e104100.dma: Init done - hw rev: 8, ports: 5, channels: 24
[ 0.223147] gpio-stp-xway 1e100bb0.stp: Init done
[ 0.229193] usbcore: registered new interface driver usbfs
[ 0.234761] usbcore: registered new interface driver hub
[ 0.240115] usbcore: registered new device driver usb
[ 0.247900] clocksource: Switched to clocksource MIPS
[ 0.254483] NET: Registered protocol family 2
[ 0.260285] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.267895] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.274880] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.281308] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.287881] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.293656] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.300277] NET: Registered protocol family 1
[ 0.490973] random: fast init done
[ 3.860576] gptu: totally 6 16-bit timers/counters
[ 3.865414] gptu: misc_register on minor 63
[ 3.869576] gptu: succeeded to request irq 126
[ 3.874055] gptu: succeeded to request irq 127
[ 3.878583] gptu: succeeded to request irq 128
[ 3.883111] gptu: succeeded to request irq 129
[ 3.887608] gptu: succeeded to request irq 130
[ 3.892124] gptu: succeeded to request irq 131
[ 3.896782] No VPEs reserved for AP/SP, not initialize VPE loader
[ 3.896782] Pass maxvpes=<n> argument as kernel argument
[ 3.908149] No TCs reserved for AP/SP, not initializing RTLX.
[ 3.908149] Pass maxtcs=<n> argument as kernel argument
[ 3.920770] Crashlog allocated RAM at address 0x3f00000
[ 3.926301] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 3.946423] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.952185] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.970800] io scheduler noop registered
[ 3.974808] io scheduler deadline registered (default)
[ 3.982465] xway-rcu-gphy 1f203000.rcu:gphy@264: Failed to lookup gate clock
[ 3.989516] xway-rcu-gphy: probe of 1f203000.rcu:gphy@264 failed with error -2
[ 3.998306] 1e100c00.serial: ttyLTQ0 at MMIO 0x1e100c00 (irq = 112, base_baud = 0) is a lantiq,asc
[ 4.007214] console [ttyLTQ0] enabled
[ 4.007214] console [ttyLTQ0] enabled
[ 4.014516] bootconsole [early0] disabled
[ 4.014516] bootconsole [early0] disabled
[ 4.026147] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[ 4.031168] nand: AMD/Spansion S34ML01G1
[ 4.034916] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 4.042476] Scanning device for bad blocks
[ 4.114055] 8 fixed-partitions partitions found on MTD device 14000000.nand
[ 4.119568] Creating 8 MTD partitions on "14000000.nand":
[ 4.124920] 0x000000000000-0x000000100000 : "uboot"
[ 4.131272] 0x000000100000-0x000000140000 : "ubootconfigA"
[ 4.136825] 0x000000140000-0x000000180000 : "ubootconfigB"
[ 4.142405] 0x000000180000-0x0000001c0000 : "gphyfirmware"
[ 4.148099] 0x0000001c0000-0x000007dc0000 : "ubi"
[ 4.154129] 0x000007dc0000-0x000007ec0000 : "calibration"
[ 4.159703] 0x000007ec0000-0x000007fc0000 : "factory"
[ 4.164886] 0x000007fc0000-0x000008000000 : "res"
[ 4.170853] libphy: Fixed MDIO Bus: probed
[ 4.176665] wdt 1f8803f0.watchdog: Init done
[ 4.187343] NET: Registered protocol family 10
[ 4.193591] Segment Routing with IPv6
[ 4.196001] NET: Registered protocol family 17
[ 4.200382] 8021q: 802.1Q VLAN Support v1.8
[ 4.315256] libphy: lantiq,xrx200-mdio: probed
[ 4.407436] Intel XWAY PHY11G (xRX v1.2 integrated) 0:01: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:01, irq=POLL)
[ 4.421004] Intel XWAY PHY11G (xRX v1.2 integrated) 0:02: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:02, irq=POLL)
[ 4.434645] Intel XWAY PHY11G (xRX v1.2 integrated) 0:03: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:03, irq=POLL)
[ 4.448286] Intel XWAY PHY11G (xRX v1.2 integrated) 0:04: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:04, irq=POLL)
[ 4.463226] UBI: auto-attach mtd4
[ 4.465094] ubi0: attaching mtd4
[ 4.602655] ubi0: scanning is finished
[ 4.633808] ubi0: attached mtd4 (name "ubi", size 124 MiB)
[ 4.637913] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 4.644693] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 4.651337] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[ 4.658059] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[ 4.664027] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[ 4.671199] ubi0: max/mean erase counter: 22/9, WL threshold: 4096, image sequence number: 0
[ 4.679579] ubi0: available PEBs: 496, total reserved PEBs: 496, PEBs reserved for bad PEB handling: 20
[ 4.688962] ubi0: background thread "ubi_bgt0d" started, PID 450
[ 4.692396] block ubiblock0_1: created from ubi0:1(rootfs)
[ 4.700326] ubiblock: device ubiblock0_1 (rootfs) set to be root fil[ 4.716918] Freeing unused kernel memory: 3128K
[ 4.720032] This architecture does not have kernel memory protection.
[ 4.726391] Run /init as init process
[ 4.749993] init: Console is alive
[ 4.752319] init: - watchdog -
[ 4.776215] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.787516] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.799970] SCSI subsystem initialized
[ 4.807099] ehci-platform: EHCI generic platform driver
[ 4.817347] dwc2 1e101000.usb: 1e101000.usb supply vusb_d not found, using dummy regulator
[ 4.824353] dwc2 1e101000.usb: Linked as a consumer to regulator.0
[ 4.830301] dwc2 1e101000.usb: 1e101000.usb supply vusb_a not found, using dummy regulator
[ 4.941437] dwc2 1e101000.usb: DWC OTG Controller
[ 4.944798] dwc2 1e101000.usb: new USB bus registered, assigned bus number 1
[ 4.951776] dwc2 1e101000.usb: irq 62, io mem 0x1e101000
[ 4.958221] hub 1-0:1.0: USB hub found
[ 4.960833] hub 1-0:1.0: 1 port detected
[ 4.965830] dwc2 1e106000.usb: 1e106000.usb supply vusb_d not found, using dummy regulator
[ 4.972964] dwc2 1e106000.usb: Linked as a consumer to regulator.0
[ 4.978986] dwc2 1e106000.usb: 1e106000.usb supply vusb_a not found, using dummy regulator
[ 5.089247] dwc2 1e106000.usb: DWC OTG Controller
[ 5.092589] dwc2 1e106000.usb: new USB bus registered, assigned bus number 2
[ 5.099567] dwc2 1e106000.usb: irq 91, io mem 0x1e106000
[ 5.106004] hub 2-0:1.0: USB hub found
[ 5.108659] hub 2-0:1.0: 1 port detected
[ 5.117539] usbcore: registered new interface driver usb-storage
[ 5.122403] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.132904] init: - preinit -
[ 5.313955] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.335358] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 8.375591] lantiq,xrx200-net 1e108000.eth eth0: port 1 got link
[ 8.380211] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.494409] procd: - early -
[ 9.496142] procd: - watchdog -
[ 10.115971] procd: - watchdog -
[ 10.118171] procd: - ubus -
[ 10.128395] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.170546] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.176035] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.183675] procd: - init -
Please press Enter to activate this console.
[ 10.423117] lantiq,xrx200-net 1e108000.eth eth0: port 1 lost link
[ 10.630847] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.655773] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[ 10.739332] xt_time: kernel timezone is -0000
[ 10.773743] PPP generic driver version 2.4.2
[ 10.780828] NET: Registered protocol family 24
[ 10.808201] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 11.021803] urngd: v1.0.2 started.
[ 11.221157] random: crng init done
[ 11.223147] random: 6 urandom warning(s) missed due to ratelimiting
[ 23.101430] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 23.123812] br-lan: port 1(eth0.1) entered blocking state
[ 23.127876] br-lan: port 1(eth0.1) entered disabled state
[ 23.133826] device eth0.1 entered promiscuous mode
[ 23.137941] device eth0 entered promiscuous mode
[ 23.165468] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 28.215590] lantiq,xrx200-net 1e108000.eth eth0: port 1 got link
[ 28.220213] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.228115] br-lan: port 1(eth0.1) entered blocking state
[ 28.232108] br-lan: port 1(eth0.1) entered forwarding state
[ 28.239877] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
BusyBox v1.31.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r13401-1d6aff7d75
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
USB i switch działa więc mogę wrzucić na niego dowolny obraz. Zrobiłem sobie też kopię wszystkich partycji i jak coś pójdzie nie tak przywrócenie oryginalnego softu nie jest problemem. 
Kod który testuję jest na Githubie. Wszelkie uwagi milie widziane 