Okay I have noticed that if I boot the router via the main power supply and not the arduino's 3.3V supply I am able to consistently be able to copy across the initramfs file and boot into it, PROGRESS!
Now it gives me a prompt root@(none):/#
but when I try to type commands it sometimes sends weird bits and takes ages to type commands out. I also can't ping any website if I connect ethernet to the internet port but I can run ip addr
and it returns
root@(none):/# ip addr
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN 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 dc:be:5c:e9:c6:88 brd ff:ff:ff:ff:ff:ff
inet6 fe80::debe:5cff:fee9:c688/64 scope link
valid_lft forever preferred_lft forever
3: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether dc:be:5c:e9:c6:88 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global eth0.1
valid_lft forever preferred_lft forever
inet6 fe80::debe:5cff:fee9:c688/64 scope link
valid_lft forever preferred_lft forever
I've tried
scp openwrt-21.02.2-ath79-generic-tplink_archer-c6-v2-sysupgrade.bin root@192.168.1.1:/tmp
but I get
ssh: connect to host 192.168.1.1 port 22: Unknown error
lost connection
Any help on moving forward? Feels like I'm close.
EDIT 1: I've also tried removing the manual selection of IP address and tried manually selecting 192.168.1.1 and still doesn't send the file
EDIT 2: I tried bootm
after loading the sysupgrade file and noticed this, I'm not exactly sure how to fix it but I think it helps diagnose the problem.
ath> bootm
## Booting image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.10.100
Created: 2022-02-28 14:18:37 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2380691 Bytes = 2.3 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x81000040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728
Starting kernel ...
[ 0.000000] Linux version 5.10.100 (builder@buildhost) (mips-openwrt-linux-mu sl-gcc (OpenWrt GCC 11.2.0 r19009-58212a6194) 11.2.0, GNU ld (GNU Binutils) 2.37 ) #0 Mon Feb 28 14:18:37 2022
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] MIPS: machine is TP-Link Archer C6 v2 (US) / A6 v2 (US/TW)
[ 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-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] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,j ffs2
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, li near)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, line ar)
[ 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: 120580K/131072K available (5844K kernel code, 602K rwdata , 1276K rodata, 1228K init, 210K bss, 10492K 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+0x3c0/0x5b0 wit h crng_init=0
[ 0.000000] CPU clock: 775.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i dle_ns: 4932285024 ns
[ 0.000008] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 55418 93118ns
[ 0.008237] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.074769] pid_max: default: 32768 minimum: 301
[ 0.079768] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linea r)
[ 0.087476] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.097411] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.107840] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma x_idle_ns: 19112604462750000 ns
[ 0.118241] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.125503] pinctrl core: initialized pinctrl subsystem
[ 0.134400] NET: Registered protocol family 16
[ 0.139810] thermal_sys: Registered thermal governor 'step_wise'
[ 0.188949] clocksource: Switched to clocksource MIPS
[ 0.201742] NET: Registered protocol family 2
[ 0.206477] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear )
[ 0.214802] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.223707] TCP established hash table entries: 1024 (order: 0, 4096 bytes, l inear)
[ 0.231808] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.239251] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.246069] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.253014] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.260612] NET: Registered protocol family 1
[ 0.265227] PCI: CLS 0 bytes, default 32
[ 0.274894] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 0.285305] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.291514] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT Y) (c) 2001-2006 Red Hat, Inc.
[ 0.303517] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2 51)
[ 0.313879] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[ 0.320955] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.329766] printk: console [ttyS0] disabled
[ 0.334332] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 156 2500) is a 16550A
[ 0.343478] printk: console [ttyS0] enabled
[ 0.343478] printk: console [ttyS0] enabled
[ 0.352540] printk: bootconsole [early0] disabled
[ 0.352540] printk: bootconsole [early0] disabled
[ 0.377476] spi-nor spi0.0: w25q128 (16384 Kbytes)
[ 0.382553] 6 fixed-partitions partitions found on MTD device spi0.0
[ 0.389124] Creating 6 MTD partitions on "spi0.0":
[ 0.394072] 0x000000000000-0x000000020000 : "factory-boot"
[ 0.403256] 0x000000020000-0x000000030000 : "info"
[ 0.409151] 0x000000030000-0x000000050000 : "u-boot"
[ 0.416542] 0x000000050000-0x000000fd0000 : "firmware"
[ 0.433890] 0x000000fd0000-0x000000ff0000 : "tplink"
[ 0.439950] 0x000000ff0000-0x000001000000 : "art"
[ 1.163054] switch0: Atheros AR8337 rev. 2 switch registered on mdio.0
[ 1.820480] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 1.831743] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[ 1.838437] i2c /dev entries driver
[ 1.844235] NET: Registered protocol family 10
[ 1.856817] Segment Routing with IPv6
[ 1.860764] NET: Registered protocol family 17
[ 1.865443] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.878848] 8021q: 802.1Q VLAN Support v1.8
[ 1.883887] PCI host bridge /ahb/pcie-controller@18250000 ranges:
[ 1.890261] MEM 0x0000000012000000..0x0000000013ffffff
[ 1.895660] IO 0x0000000000000000..0x0000000000000000
[ 1.901231] PCI host bridge to bus 0000:00
[ 1.905477] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[ 1.912607] pci_bus 0000:00: root bus resource [io 0x0000]
[ 1.918362] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.925382] pci_bus 0000:00: No busn resource found for root bus, will use [b us 00-ff]
[ 1.933621] pci 0000:00:00.0: [168c:0056] type 00 class 0x028000
[ 1.939871] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 1.947002] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.953570] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 1.960453] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bi t]
[ 1.970333] /dev/root: Can't open blockdev
[ 1.974581] VFS: Cannot open root device "(null)" or unknown-block(0,0): erro r -6
[ 1.982364] Please append a correct "root=" boot option; here are the availab le partitions:
[ 1.991000] 1f00 128 mtdblock0
[ 1.991003] (driver?)
[ 1.997750] 1f01 64 mtdblock1
[ 1.997753] (driver?)
[ 2.004514] 1f02 128 mtdblock2
[ 2.004517] (driver?)
[ 2.011279] 1f03 15872 mtdblock3
[ 2.011283] (driver?)
[ 2.018034] 1f04 128 mtdblock4
[ 2.018037] (driver?)
[ 2.024792] 1f05 64 mtdblock5
[ 2.024795] (driver?)
[ 2.031554] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno wn-block(0,0)
[ 2.040086] Rebooting in 1 seconds..