Hello,
Thank you for your effort! Unfortunately, that doesn't work for me as planned. The router always restarts when the LAN cable is plugged in or is connected.
Construction:
1.) Router disassembled and serial interface soldered. Rectangular pad is 3.3V, next to it RX, TX and Ground. end of the cable to a USB converter.
2.) I use Linux, USB recognized under /dev/ttyUSB0 by means of screen and 115200 connection established (LAN cable direct connection to PC, manual address I set to 192.168.1.100 and tftp-hpa is also installed and openwrt.bin is located in /srv/tftp)
3.) that works fine until he asks me to press a button otherwise the thing just starts again (I think that's normal)
4.) Entering the commands
setenv serverip 192.168.1.100
setenv ipaddr 192.168.1.1
tftpboot 0x82000000 openwrt.bin
bootm 0x82000000
So far so good, now the following 2 scenes.
A) before I type bootm I remove the LAN cable. Then the router starts and when I press very quickly when prompted, I get to openwrt (root@openwrt) as soon as I plug in the LAN cable and it reboots
B) I leave the LAN cable plugged in and the router doesn't boot openwrt at all but back to the starting position (where you have to press a key so that it doesn't restart over and over again)
I somehow searched for error, can find two
1.) Flash: 8MB
*** Warning - bad CRC, using default environment
2.) Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
Now I've tried 81000000 instead of 82000000 and other numbers but nothing works.
Now my question how do you get to the 82000000? Maybe these are different numbers? Can you imagine what else could be?
Thanks in advance for your answer,
Martin
Here is the procedure for plugging in the LAN cable
BusyBox v1.36.1 (2023-06-26 11:20:39 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 23.05.0-rc2, r23228-cd17d8df2a
-----------------------------------------------------
=== 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.
--------------------------------------------------
root@OpenWrt:/# [ 35.768823] br-lan: port 1(eth0) entered blocking state
[ 35.774244] br-lan: port 1(eth0) entered disabled state
[ 35.779954] device eth0 entered promiscuous mode
root@OpenWrt:/# ip addr
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
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel master br-lan state DOWN qlen 1000
link/ether d0:5b:a8:7c:02:4c brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether d0:5b:a8:7c:02:4c brd ff:ff:ff:ff:ff:ff
4: br-lan: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether d0:5b:a8:7c:02:4c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fdd0:4f13:21a7::1/60 scope global tentative noprefixroute
valid_lft forever preferred_lft forever
root@OpenWrt:/# [ 88.819838] eth0: link up (1000Mbps/Full duplex)
[ 88.824658] br-lan: port 1(eth0) entered blocking state
[ 88.830103] br-lan: port 1(eth0) entered forwarding state
�
U-Boot 1.1.4 (Sep 2 2015 - 10:08:50)
ap152_ar8033 - Dragonfly 1.0DRAM:
sri
ath_ddr_initial_config(278): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0xe, 0xe, 0xe, 0xe)
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 413k for U-Boot at: 87f98000
Reserving 192k for malloc() at: 87f68000
Reserving 44 Bytes for Board Info at: 87f67fd4
Reserving 36 Bytes for Global Data at: 87f67fb0
Reserving 128k for boot params() at: 87f47fb0
Stack Pointer at: 87f47f98
Now running in RAM - U-Boot at: 87f98000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x15
flash size 8MB, sector count = 128
Flash: 8 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init (MDC/MDIO config)::done
Dragonfly ---->8033 PHY*
AR8033 PHY init
athrs_ar8033_reg_init: Done 8111 (phyid: 0)
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:ff:ff:ff
ath_gmac_phy_setup
eth0 up
eth0
Qualcomm Atheros SPI NAND Driver, Version 0.1 (c) 2014 Qualcomm Atheros Inc.
ath_spi_nand_ecc: furture feat = 0x10
ath_spi_nand_ecc: middle feat = 0x10
ath_parse_read_id: SPI NAND M.Id: 0xc8 D.Id: 0xd1
====== NAND Parameters ======
sc addr = 0x87ff8000 page(write size) = 0x800 (erase size) block = 0x20000
Setting 0x181162c0 to 0x4b962100
Uaztemain: enter into !
zte_getHandOffState: read data=0x20 from 0x0
Uaztemain: no need to update ''
Hit any key to stop autoboot: 0
ath>
Here the firmware i tried
-rw-r--r-- 1 emka81 users 5795701 13. Aug 22:03 openwrt-23.05.0-rc1-ath79-nand-zte_mf282-initramfs-kernel.bin
-rw-r--r-- 1 emka81 users 6635810 13. Aug 22:03 openwrt-23.05.0-rc1-ath79-nand-zte_mf282-squashfs-sysupgrade.bin
-rw-r--r-- 1 emka81 users 5795051 14. Aug 10:14 openwrt-23.05.0-rc2-ath79-nand-zte_mf281-initramfs-kernel.bin
-rw-r--r-- 1 emka81 users 11141120 14. Aug 10:14 openwrt-23.05.0-rc2-ath79-nand-zte_mf281-squashfs-factory.bin
-rw-r--r-- 1 emka81 users 6932770 14. Aug 10:14 openwrt-23.05.0-rc2-ath79-nand-zte_mf281-squashfs-sysupgrade.bin
-rw-r--r-- 1 emka81 users 5794957 13. Aug 22:03 openwrt-23.05.0-rc2-ath79-nand-zte_mf282-initramfs-kernel.bin
-rw-r--r-- 1 emka81 users 6635810 13. Aug 22:03 openwrt-23.05.0-rc2-ath79-nand-zte_mf282-squashfs-sysupgrade.bin
-rw-r--r-- 1 emka81 users 5795041 14. Aug 10:14 openwrt-23.05.0-rc2-ath79-nand-zte_mf286-initramfs-kernel.bin
-rw-r--r-- 1 emka81 users 7096610 14. Aug 10:14 openwrt-23.05.0-rc2-ath79-nand-zte_mf286-squashfs-sysupgrade.bin
-rw-r--r-- 1 emka81 users 4905143 14. Aug 10:26 openwrt-23.05.0-rc2-ramips-rt305x-zte_mf283plus-initramfs-kernel.bin
-rw-r--r-- 1 emka81 users 5112113 14. Aug 10:26 openwrt-23.05.0-rc2-ramips-rt305x-zte_mf283plus-squashfs-sysupgrade.bin
-rw-r--r-- 1 emka81 users 5702948 14. Aug 00:11 openwrt-ath79-nand-zte_mf282-initramfs-kernel2.bin
-rw-r--r-- 1 emka81 users 9754567 14. Aug 00:10 openwrt-ath79-nand-zte_mf282-initramfs-kernel.bin
-rw-r--r-- 1 emka81 users 6512927 14. Aug 00:12 openwrt-ath79-nand-zte_mf282-squashfs-sysupgrade.bin
And the start of the serial console with screen
Loading from device 0: ath-spi-nand (offset 0x1300000)
Image Name: Linux Kernel Image
Created: 2016-12-09 1:01:15 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1279682 Bytes = 1.2 MB
Load Address: 80002000
Entry Point: 802929b0
ath_spi_nand_page_read :status=0x10
## Booting image at 81000000 ...
Image Name: Linux Kernel Image
Created: 2016-12-09 1:01:15 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1279682 Bytes = 1.2 MB
Load Address: 80002000
Entry Point: 802929b0
Verifying Checksum at 0x81000040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 802929b0) ...
## Giving linux memsize in bytes, 134217728
Starting kernel ...
Booting QCA956x
Linux version 2.6.31 (fanxy@SCL_XA241_154) (gcc version 4.3.3 (GCC) ) #1 Mon Dec 5 14:53:18 CST 2016
flash_size passed from bootloader = 8
arg 1: console=ttyS0,115200
arg 2: root=31:9
arg 3: rootfstype=cramfs
arg 4: init=/sbin/init
arg 5: mtdparts=ath-nor0:512k(uboot),128k(uboot-env);ath-spi-nand:1280k(fota-flag),1280k(caldata),1280k(mac),6m(cfg-param),1280k(oops),8m(web),3m(kernel),31m(rootfs),25m(data),50m(fota)
arg 6: mem=128M
CPU revision is: 00019750 (MIPS 74Kc)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 08000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00008000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00008000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 root=31:9 rootfstype=cramfs init=/sbin/init mtdparts=ath-nor0:512k(uboot),128k(uboot-env);ath-spi-nand:1280k(fota-flag),1280k(caldata),1280k(mac),6m(cfg-param),1280k(oops),8m(web),3m(kernel),31m(rootfs),25m(data),50m(fota) mem=128M
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 111544k/131072k available (2660k kernel code, 19356k reserved, 893k data, 172k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
r4k_clockevent_init: Ignoring int_usable failure
Console: colour dummy device 80x25
Calibrating delay loop... 387.07 BogoMIPS (lpj=774144)
Mount-cache hash table entries: 512
****************ALLOC***********************
Packet mem: 803c14c0 (0xe00000 bytes)
********************************************
NET: Registered protocol family 16
qca956x_gpio_init() done: GPIO_BASE = 0xB8040000
ath_pcibios_init: bus 0
====== NAND Parameters ======
sc = 0x87962200 page = 0x800 block = 0x20000 oobsize=0x80,oobavail=0x30
lan_ip: 192.168.0.1, lan_netmask: 255.255.255.0..........
SIOCGIFFLAGS: Noathr_gmac_ring_alloc Allocated 2048 at 0x8718a000
such device
sram_desc_cnt 1536,mac Unit 0,Tx r->ring_desc 0xbd000000
athr_gmac_ring_alloc Allocated 3584 at 0x87249000
sram_desc_cnt 4224,mac Unit 0,Rx r->ring_desc 0xbd000600
956x_GMAC: eth0 in SGMII MODE
Dragonfly -----> 8033 PHY
athrs_ar8033_reg_init
athrs_ar8033_reg_init: close 802.3az by write register for fix packet loss issue 20150826
read reg vale: [4007], [0], [1000]
athrs_ar8033_reg_init: Done
955x_SGMIIMax resets limit reached exiting...
955x_SGMII::athr_gmac_sgmii_setup Done
Setting Drop CRC Errors, Pause Frames and Length Error frames
read reg value on function qca956x_gmac_hw_setup(): [0]
Setting PHY...
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ADDRCONF(NETDEV_UP): eth0: link is not ready
brctl: iface eth1: No such devicdevice eth0 entered promiscuous mode
e
brctl: iface ath0: No such device
opms_wan_ifname=usb0
opms_wan_ifname=usb0
LanIfName=br0
killall: udhcpd: no process killed
killall: dnsmasq: no process killed
the mac_ip_list is null
the mac_ip_list is null
Password for 'admin' changed
ath_ahb: 10.2.r2-00013-4 (Atheros/multi-bss)
__ath_attach: Set global_scn[0]
Enterprise mode: 0x03bda000
Reading Flash for Calibraton data from 0x1000 and partition name is caldata
ar9300:Find mac MTD, MTD type = 4
Read mtd device successful,length = 0x6
ar9300_get_mac_address,ah_bustype is AHB.Green-AP : Green-AP : Attached
ar9300:Find mac MTD, MTD type = 4
Read mtd device successful,length = 0x6
ar9300_get_mac_address,ah_bustype is AHB.ath_get_caps[6166] rx chainmask mismatch actual 3 sc_chainmak 0
ath_get_caps[6141] tx chainmask mismatch actual 3 sc_chainmak 0
ath_attach_dfs[12593] dfsdomain 1
####zte debug:zte_dfs_netlink_init zte_dfs_netlink_init success
SC Callback Registration for wifi0
wifi0: Atheros 956X: mem=0xb8100000, irq=2
ath_pci: 10.2.r2-00013-4 (Atheros/multi-bss)
ath_pci_probe
PCI device id is 003c :003c
ath_pci 0000:00:00.0: ath DEBUG: sc=0x861f5400
ol_ath_pci_configure : num_desired MSI set to 0
ol_ath_attach() Download FW.
ol_ath_attach() HT Create .
ol_ath_attach() HIF Claim.
ol_ath_attach() BMI Done.
ol_ath_attach() WMI attached. wmi_handle 86970000
+HWT
SOC_RESET_CONTROL_ADDRESS : 800
CPU_INTR_ADDRESS = [0]
SOC_GLOBAL_RESET_ADDRESS = [0]
Rx_Filter : [0]
CE_per_engine_handler_adjust, base=861f5400 offset=57400
CE_per_engine_handler_adjust, base=861f5400 offset=57800
CE_per_engine_handler_adjust, base=861f5400 offset=57c00
CE_per_engine_handler_adjust, base=861f5400 offset=58000
CE_per_engine_handler_adjust, base=861f5400 offset=58400
CE_per_engine_handler_adjust, base=861f5400 offset=58800
CE_recv_buf_enqueue 653 Populate last entry 512 for CE 5
CE_recv_buf_enqueue 662 CE 5 wi 511 dest_ptr 0x86fce0 nbytes 0 recv_ctxt 0x869c94c0
-HWT
normal mode!
starting pid 1654, tty '/dev/ttyS0': '/bin/sh'
BusyBox v1.15.0 (2016-12-09 09:00:36 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
~ # /etc_ro/rc.d/rcS: line 165: zte_tcm: not found
HTC Service:0x0300 ep:1 TX flow control disabled
CE_pkt_dl_len_set CE 4 Pkt download length 64
ol_txrx_pdev_attach: 1424 tx desc's allocated ; range starts from 86b50000
HTC Service:0x0100 ep:2 TX flow control disabled
wmi_service_ready_event_rx: WMI UNIFIED SERVICE READY event
num_rf_chain : 00000002
ht_cap_info: : 0000085b
vht_cap_info : 338001b2
vht_supp_mcs : 0000fffa
LARGE_AP enabled. num_peers 144, num_vdevs 16, num_tids 256
idx 0 req 1 num_units 0 num_unit_info 2 unit size 444 actual units 145
chunk 0 len 64380 requested ,ptr 0x6b70000
Sat Jan ��
U-Boot 1.1.4 (Sep 2 2015 - 10:08:50)
ap152_ar8033 - Dragonfly 1.0DRAM:
sri
ath_ddr_initial_config(278): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0x10, 0x10, 0x10, 0x10)
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 413k for U-Boot at: 87f98000
Reserving 192k for malloc() at: 87f68000
Reserving 44 Bytes for Board Info at: 87f67fd4
Reserving 36 Bytes for Global Data at: 87f67fb0
Reserving 128k for boot params() at: 87f47fb0
Stack Pointer at: 87f47f98
Now running in RAM - U-Boot at: 87f98000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x15
flash size 8MB, sector count = 128
Flash: 8 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init (MDC/MDIO config)::done
Dragonfly ---->8033 PHY*
AR8033 PHY init
athrs_ar8033_reg_init: Done 8111 (phyid: 0)
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:ff:ff:ff
ath_gmac_phy_setup
eth0 up
eth0
Qualcomm Atheros SPI NAND Driver, Version 0.1 (c) 2014 Qualcomm Atheros Inc.
ath_spi_nand_ecc: furture feat = 0x10
ath_spi_nand_ecc: middle feat = 0x10
ath_parse_read_id: SPI NAND M.Id: 0xc8 D.Id: 0xd1
====== NAND Parameters ======
sc addr = 0x87ff8000 page(write size) = 0x800 (erase size) block = 0x20000
Setting 0x181162c0 to 0x4b962100
Uaztemain: enter into !
zte_getHandOffState: read data=0x20 from 0x0
Uaztemain: no need to update ''
Hit any key to stop autoboot: 0
ath>