Ok now I'm up and running from flash
I think the too much beer made me loose my rootfs
This is the complete log of the first correct boot from flash, we can see as right after bootup the eth0 has the garbage MAC and after br-lan pops in like 30secs, everything gets to its place correctly:
U-Boot 1.1.4-g2f741f5f-dirty (Jul 20 2015 - 09:50:50)
RP-AC66 bootloader version: 1.0.0.2
ap152 - Dragonfly 1.0DRAM:
sri
ath_ddr_initial_config(278): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0xd, 0xd, 0xd, 0xd)
64 MB
ASUS RP-AC66 gpio init : wps / reset pin
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Maximum malloc length: 128 KBytes
mem_malloc_start/brk/end: 0x83f98000/83f98000/83fc8000
*** Warning - bad CRC, using default environment
plat_dev_init: read 16384 bytes from offset 9fff1000 of WLANCAL fail! (r = -1)
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
Fetching MAC Address from 0x83fecbec
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ---->8033 PHY*
AR8033 PHY init
athrs_ar8033_reg_init: Done 8111 (phyid: 3)
Max resets limit reached exiting...
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 88:d7:f6:a3:a6:24
eth0 up
eth0
ath_set_tuning_caps: read WLANCAL fail!!! (r = -1)
Please choose the operation:
1: Load System code to SDRAM via TFTP.
2: Load System code then write to Flash via TFTP.
3: Boot System code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
You choosed 2
2: Load System code then write to Flash via TFTP.
Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
Please Input new ones /or Ctrl-C to discard
Input device IP (192.168.1.1) ==:192.168.1.1
Input server IP (192.168.1.10) ==:192.168.1.10
Input Linux Kernel filename () ==:openwrt-ath79-generic-dlink_dir-859-a1-squashfs-factory.bin
dup 1 speed 1000
switch prereq:0
Using eth0 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename 'openwrt-ath79-generic-dlink_dir-859-a1-squashfs-factory.bin'.
Load address: 0x81000000
Loading: T Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######################
done
Bytes transferred = 5439492 (530004 hex)
NetBootFileXferSize= 00530004
Erasing flash...
First 0x6 last 0x59 sector size 0x10000 89
Erased 84 sectors
write addr: 9f060000
## Checking 1st firmware at 9f060000 ...
Image Name: MIPS OpenWrt Linux-5.4.167
Created: 2021-12-18 1:52:19 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2061914 Bytes = 2 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Giving linux ramsize: 67108864 (64 MB)
Starting kernel ...
[ 0.000000] Linux version 5.4.167 (osboxes@osboxes) (gcc version 11.2.0 (OpenWrt GCC 11.2.0 r18371-5a4685cfa2)) #0 Sat Dec 18 01:52:19 2021
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] MIPS: machine is D-Link DIR-859 A1
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, 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-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 57152K/65536K available (4994K kernel code, 188K rwdata, 1104K rodata, 1192K init, 196K bss, 8384K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 51
[ 0.000000] random: get_random_bytes called from start_kernel+0x354/0x548 with crng_init=0
[ 0.000000] CPU clock: 775.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[ 0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[ 0.008215] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.074751] pid_max: default: 32768 minimum: 301
[ 0.079739] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.087455] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.099418] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.109820] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.117086] pinctrl core: initialized pinctrl subsystem
[ 0.123502] NET: Registered protocol family 16
[ 0.156811] clocksource: Switched to clocksource MIPS
[ 0.163226] NET: Registered protocol family 2
[ 0.168004] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.176107] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.184986] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.193080] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.200522] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.207351] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.214250] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.221914] NET: Registered protocol family 1
[ 0.226522] PCI: CLS 0 bytes, default 32
[ 0.234296] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.247135] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.253279] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.277671] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[ 0.284185] gpio-export gpio-export: 1 gpio(s) exported
[ 0.290485] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.297855] printk: console [ttyS0] disabled
[ 0.302391] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[ 0.311532] printk: console [ttyS0] enabled
[ 0.311532] printk: console [ttyS0] enabled
[ 0.320588] printk: bootconsole [early0] disabled
[ 0.320588] printk: bootconsole [early0] disabled
[ 0.337355] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[ 0.342707] 6 fixed-partitions partitions found on MTD device spi0.0
[ 0.349306] Creating 6 MTD partitions on "spi0.0":
[ 0.354259] 0x000000000000-0x000000040000 : "u-boot"
[ 0.360272] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.366528] 0x000000050000-0x000000060000 : "art"
[ 0.372235] 0x000000060000-0x000000f80000 : "firmware"
[ 0.378391] 0x000000260000-0x000000f80000 : "rootfs"
[ 0.384289] mtd: device 4 (rootfs) set to be root filesystem
[ 0.394527] 1 squashfs-split partitions found on MTD device rootfs
[ 0.400971] 0x000000590000-0x000000f80000 : "rootfs_data"
[ 0.407426] 0x000000f80000-0x000001000000 : "rootfs_data"
[ 0.415511] libphy: Fixed MDIO Bus: probed
[ 0.422753] ag71xx 19000000.eth: invalid MAC address, using random address
[ 1.107188] libphy: ag71xx_mdio: probed
[ 1.113041] ag71xx 19000000.eth: connected to PHY at mdio.0:03 [uid=004dd074, driver=Atheros 8031 ethernet]
[ 1.123703] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[ 1.130324] i2c /dev entries driver
[ 1.135722] NET: Registered protocol family 10
[ 1.144765] Segment Routing with IPv6
[ 1.148696] NET: Registered protocol family 17
[ 1.153353] 8021q: 802.1Q VLAN Support v1.8
[ 1.158511] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[ 1.164826] MEM 0x0000000012000000..0x0000000013ffffff
[ 1.170273] IO 0x0000000000000000..0x0000000000000000
[ 1.175814] PCI host bridge to bus 0000:00
[ 1.180081] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 1.187183] pci_bus 0000:00: root bus resource [io 0x0000]
[ 1.192935] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.199951] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.208164] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[ 1.214413] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 1.221478] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 1.228477] pci 0000:00:00.0: supports D1
[ 1.232618] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 1.239402] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 1.246255] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 1.253854] pci 0000:00:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[ 1.267808] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 1.281623] Freeing unused kernel memory: 1192K
[ 1.286303] This architecture does not have kernel memory protection.
[ 1.292969] Run /sbin/init as init process
[ 1.852134] init: Console is alive
[ 1.856067] init: - watchdog -
[ 2.347001] random: fast init done
[ 3.071074] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.265964] usbcore: registered new interface driver usbfs
[ 3.271770] usbcore: registered new interface driver hub
[ 3.277363] usbcore: registered new device driver usb
[ 3.289227] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.298040] ehci-fsl: Freescale EHCI Host controller driver
[ 3.305378] ehci-platform: EHCI generic platform driver
[ 3.313578] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.331642] init: - preinit -
[ 4.492620] random: jshn: uninitialized urandom read (4 bytes read)
[ 4.624563] random: jshn: uninitialized urandom read (4 bytes read)
[ 4.700822] random: jshn: 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
[ 9.071855] eth0: link up (1000Mbps/Full duplex)
[ 9.076723] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.140993] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 9.151772] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 9.280095] eth0: link down
[ 9.294885] procd: - early -
[ 9.298274] procd: - watchdog -
[ 9.976145] procd: - watchdog -
[ 10.060777] procd: - ubus -
[ 10.155731] urandom_read: 5 callbacks suppressed
[ 10.155739] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.233708] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.245160] procd: - init -
Please press Enter to activate this console.
[ 11.145427] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.413343] Loading modules backported from Linux version v5.15.8-0-g43e577d7a2cb
[ 11.421123] Backport generated by backports.git v5.15.8-1-0-g83f664bb
[ 11.497721] xt_time: kernel timezone is -0000
[ 11.533822] urngd: v1.0.2 started.
[ 11.747450] PPP generic driver version 2.4.2
[ 11.755368] NET: Registered protocol family 24
[ 11.840316] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x3c.
[ 11.867763] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[ 11.876484] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 11.910378] random: crng init done
[ 16.052802] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 16.062376] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 16.074324] ath10k_pci 0000:00:00.0: firmware ver 10.1-ct-8x-__fW-022-ecad3248 api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT crc32 3e4cf97f
[ 16.563929] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[ 17.542599] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16 peers: 127 tid: 256
[ 17.559380] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[ 17.565606] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424 sw-crypt: 0 ct-sta: 0'
[ 17.573925] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[ 17.626829] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[ 17.639742] ath10k_pci 0000:00:00.0: NOTE: Firmware DBGLOG output disabled in debug_mask: 0x10000000
[ 17.847637] ath9k 18100000.wmac: Direct firmware load for ath9k-eeprom-ahb-18100000.wmac.bin failed with error -2
[ 17.858290] ath9k 18100000.wmac: Falling back to sysfs fallback for: ath9k-eeprom-ahb-18100000.wmac.bin
[ 19.052918] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
[ 19.088684] kmodloader: done loading kernel modules from /etc/modules.d/*
BusyBox v1.34.1 (2021-12-18 01:52:19 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r18371-5a4685cfa2
-----------------------------------------------------
=== 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:/# ifconfig -a
eth0 Link encap:Ethernet HWaddr 6A:F8:80:EB:D1:AB
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:1 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:382 (382.0 B) TX bytes:180 (180.0 B)
Interrupt:4
lo Link encap:Local Loopback
LOOPBACK MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 88:D7:F6:A3:A6:26
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan1 Link encap:Ethernet HWaddr 88:D7:F6:A3:A6:24
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/# [ 48.797035] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 48.804183] jffs2_build_filesystem(): unlocking the mtd device...
[ 48.804185] done.
[ 48.812578] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 54.097868] br-lan: port 1(eth0) entered blocking state
[ 54.111027] br-lan: port 1(eth0) entered disabled state
[ 54.116665] device eth0 entered promiscuous mode
[ 57.218283] eth0: link up (1000Mbps/Full duplex)
[ 57.223087] br-lan: port 1(eth0) entered blocking state
[ 57.228520] br-lan: port 1(eth0) entered forwarding state
[ 57.259030] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root@OpenWrt:/# ifconfig -a
br-lan Link encap:Ethernet HWaddr 88:D7:F6:A3:A6:24
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fdbd:b8fe:3ef9::1/60 Scope:Global
inet6 addr: fe80::8ad7:f6ff:fea3:a624/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:164 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13087 (12.7 KiB) TX bytes:2238 (2.1 KiB)
eth0 Link encap:Ethernet HWaddr 88:D7:F6:A3:A6:24
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:171 errors:0 dropped:4 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15945 (15.5 KiB) TX bytes:2418 (2.3 KiB)
Interrupt:4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 88:D7:F6:A3:A6:26
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan1 Link encap:Ethernet HWaddr 88:D7:F6:A3:A6:24
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/# [ 93.268488] done.
[ 93.270506] jffs2: notice: (1871) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 93.430601] overlayfs: upper fs does not support tmpfile.
root@OpenWrt:/#
Let's see what it does with Luci.