Okay so what's next?
Make sure you have all the build pre-requisites installed as per that link. Current Debian/Ubuntu also need the python2 package installed. Make sure all your packages are updated.
Current git repo URL is https://git.openwrt.org/openwrt/openwrt.git
Once that's cloned, for testing purposes, checkout the lede-17.01 branch (since it's known to be "good" and compiles cleanly). Update and install the feeds as described. Run make menuconfig
and set your general architecture and the specific device.
ar71xx
generic
archer-c7-v2
You might want to add LuCI if you're not comfortable with pure command-line access to the device.
make -jN clean download world
Where N is the number of "processing cores" to use. Typically the number of cores on your machine or VM +/- 1. On a four-core machine that I don't do anything else with while compiling, I use -j5
-- if you intend to do anything while compiling, go with the number of cores -1 at most.
Hit the daily post limit on the other account so I'll be posting with this one lol..
Here's what I've done so far:
Okay so so far I hav run:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
Pretty lost on what to do next.
You shouldn't need the "deadsnakes" PPA, as far as I know. python2.7-dev
is still available for Ubuntu.
Follow the directions at https://openwrt.org/docs/guide-developer/build-system/install-buildsystem then move to the next page on starting your first builds.
From Build scripts that document changes and enable easy re-creation of build environment
### Prerequisites for buildroot
sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev
sudo apt-get install gawk gcc-multilib flex git-core gettext libssl-dev
### Prerequisite on Ubuntu 17.10 as it has python3 by default
sudo apt-get install python
You may also need "GNU time" -- see How install GNU gtime to avoid feeds and make menuconfig error if it isn't already installed on your system.
I'm going to start at it again.. But since you know so much about this... How hard would it be for you to build it for me? Or maybe by the grace of god I'll get this figured out:) Again thanks so much!!
Where do I go from here?
Target System (Atheros AR7xxx/AR9xxx) --->
Subtarget (Generic) --->
Target Profile (TP-LINK Archer C7 v2) --->
Under LuCI > Collections, select your personal choice of
- luci
- luci-ssl
- luci-ssl-openssl
I prefer an SSL/TLS version. I use the OpenSSL variant as other packages I use already require the OpenSSL libraries. The luci-ssl
variant uses the mbedTLS library, which is well respected.
Save, then
make -jN clean download world
grab a beer
Man I'm so close to a cold one!! Just a couple more stupid questions:rofl:
Where in the world is LuCI?
You need to update and install feeds in order to see packages like Luci.
Wiki gives you advice.
https://wiki.openwrt.org/doc/howto/build#updating_feeds
Seems like it's stuck.. How long does it take to compile?
Here's part of the log:
tyler@tyler:~/openwrt$ make menuconfig
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
configuration written to .config
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
tyler@tyler:~/openwrt$ ./scripts/feeds update -a
Updating feed 'packages' from 'https://git.openwrt.org/feed/packages.git' ...
Cloning into './feeds/packages'...
remote: Counting objects: 4208, done.
remote: Compressing objects: 100% (3561/3561), done.
remote: Total 4208 (delta 179), reused 3326 (delta 102)
Receiving objects: 100% (4208/4208), 2.54 MiB | 226.00 KiB/s, done.
Resolving deltas: 100% (179/179), done.
Create index file './feeds/packages.index'
Collecting package info: done
Collecting target info: done
Updating feed 'luci' from 'https://git.openwrt.org/project/luci.git' ...
Cloning into './feeds/luci'...
remote: Counting objects: 4004, done.
remote: Compressing objects: 100% (2291/2291), done.
remote: Total 4004 (delta 828), reused 2485 (delta 379)
Receiving objects: 100% (4004/4004), 3.76 MiB | 222.00 KiB/s, done.
Resolving deltas: 100% (828/828), done.
Create index file './feeds/luci.index'
Collecting package info: done
Collecting target info: done
Updating feed 'routing' from 'https://git.openwrt.org/feed/routing.git' ...
Cloning into './feeds/routing'...
remote: Counting objects: 388, done.
remote: Compressing objects: 100% (324/324), done.
remote: Total 388 (delta 26), reused 139 (delta 2)
Receiving objects: 100% (388/388), 262.38 KiB | 244.00 KiB/s, done.
Resolving deltas: 100% (26/26), done.
Create index file './feeds/routing.index'
Collecting package info: done
Collecting target info: done
Updating feed 'telephony' from 'https://git.openwrt.org/feed/telephony.git' ...
Cloning into './feeds/telephony'...
remote: Counting objects: 253, done.
remote: Compressing objects: 100% (241/241), done.
remote: Total 253 (delta 21), reused 29 (delta 0)
Receiving objects: 100% (253/253), 164.79 KiB | 440.00 KiB/s, done.
Resolving deltas: 100% (21/21), done.
Create index file './feeds/telephony.index'
Collecting package info: done
Collecting target info: done
tyler@tyler:~/openwrt$ ./scripts/feeds install -a
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
Installing all packages from feed packages.
Installing package 'acl' from packages
Installing package 'attr' from packages
Installing package 'acme' from packages
Installing package 'netcat' from packages
Installing package 'luci-base' from luci
Installing package 'luci-lib-nixio' from luci
Installing package 'luci-lib-ip' from luci
Installing package 'luci-lib-jsonc' from luci
Installing package 'lucihttp' from luci
Installing package 'luci-app-uhttpd' from luci
Installing package 'acpica-unix' from packages
Installing package 'acpid' from packages
Installing package 'adblock' from packages
Installing package 'addrwatch' from packages
Installing package 'aggregate' from packages
Installing package 'aircrack-ng' from packages
Installing package 'procps-ng' from packages
Installing package 'pciutils' from packages
Installing package 'kmod' from packages
Installing package 'alpine' from packages
Installing package 'libpam' from packages
Installing package 'alsa-lib' from packages
Installing package 'alsa-utils' from packages
Installing package 'announce' from packages
Installing package 'ap51-flash' from packages
Installing package 'apache' from packages
Installing package 'apr' from packages
Installing package 'apr-util' from packages
Installing package 'expat' from packages
Installing package 'sqlite3' from packages
Installing package 'pcre' from packages
Installing package 'unixodbc' from packages
Installing package 'postgresql' from packages
Installing package 'apcupsd' from packages
Installing package 'libgd' from packages
Installing package 'libjpeg' from packages
Installing package 'libpng' from packages
Installing package 'tiff' from packages
Installing package 'freetype' from packages
Installing package 'apinger' from packages
Installing package 'aria2' from packages
Installing package 'gnutls' from packages
Installing package 'libtasn1' from packages
Installing package 'p11-kit' from packages
Installing package 'cryptodev-linux' from packages
Installing package 'libgcrypt' from packages
Installing package 'libgpg-error' from packages
Installing package 'libxml2' from packages
Installing package 'libssh2' from packages
Installing package 'c-ares' from packages
Installing package 'ariang' from packages
Installing package 'arp-scan' from packages
Installing package 'at' from packages
Installing package 'atftp' from packages
Installing package 'attendedsysupgrade-common' from packages
Installing package 'auc' from packages
Installing package 'autoconf' from packages
Installing package 'm4' from packages
Installing package 'perl' from packages
Installing package 'db47' from packages
Installing package 'gdbm' from packages
Installing package 'automake' from packages
Installing package 'autossh' from packages
Installing package 'avahi' from packages
Installing package 'intltool' from packages
Installing package 'dbus' from packages
Installing package 'libdaemon' from packages
Installing package 'avrdude' from packages
Installing package 'libftdi1' from packages
Installing package 'confuse' from packages
Installing package 'avro' from packages
Installing package 'jansson' from packages
Installing package 'xz' from packages
Installing package 'bash' from packages
Installing package 'bandwidthd' from packages
Installing package 'php7' from packages
Installing package 'uw-imap' from packages
Installing package 'icu' from packages
Installing package 'openldap' from packages
Installing package 'cyrus-sasl' from packages
Installing package 'mariadb' from packages
Installing package 'libaio' from packages
Installing package 'net-snmp' from packages
Installing package 'banhosts' from packages
Installing package 'bc' from packages
Installing package 'bcp38' from packages
Installing package 'beanstalkd' from packages
Installing package 'beep' from packages
Installing package 'bind' from packages
Installing package 'bitlbee' from packages
Installing package 'glib2' from packages
Installing package 'libffi' from packages
Installing package 'bluelog' from packages
Installing package 'bluez' from packages
Installing package 'python' from packages
Installing package 'python-pip-conf' from packages
Installing package 'libical' from packages
Installing package 'bmon' from packages
Installing package 'bmx7-dnsupdate' from packages
Installing package 'bmx7' from routing
Installing package 'inotify-tools' from packages
Installing package 'bogofilter' from packages
Installing package 'bonnie++' from packages
Installing package 'boost' from packages
Installing package 'python3' from packages
Installing package 'bridge-utils' from packages
Installing package 'btrfs-progs' from packages
Installing package 'bwm-ng' from packages
Installing package 'canutils' from packages
Installing package 'ccid' from packages
Installing package 'pcsc-lite' from packages
Installing package 'ccrypt' from packages
Installing package 'cgi-io' from packages
Installing package 'chaosvpn' from packages
Installing package 'tinc' from packages
Installing package 'chardet' from packages
Installing package 'check' from packages
Installing package 'chrony' from packages
Installing package 'pps-tools' from packages
Installing package 'libcap' from packages
Installing package 'cifs-utils' from packages
Installing package 'clamav' from packages
Installing package 'pcre2' from packages
Installing package 'musl-fts' from packages
Installing package 'clamsmtp' from packages
Installing package 'classpath' from packages
Installing package 'file' from packages
Installing package 'click' from packages
Installing package 'cmdpad' from packages
Installing package 'collectd' from packages
Installing package 'libmodbus' from packages
Installing package 'mosquitto' from packages
Installing package 'libwebsockets' from packages
Installing package 'libuv' from packages
Installing package 'nut' from packages
Installing package 'tcp_wrappers' from packages
Installing package 'owfs' from packages
Installing package 'liboping' from packages
Installing package 'rrdtool1' from packages
Installing package 'lm-sensors' from packages
Installing package 'conserver' from packages
Installing package 'coova-chilli' from packages
Installing package 'coreutils' from packages
Installing package 'crconf' from packages
Installing package 'crelay' from packages
Installing package 'hidapi' from packages
Installing package 'crtmpserver' from packages
Installing package 'cryptsetup' from packages
Installing package 'lvm2' from packages
Installing package 'cshark' from packages
Installing package 'daemonlogger' from packages
Installing package 'libdnet' from packages
Installing package 'danish' from packages
Installing package 'python-dns' from packages
Installing package 'python-pcapy' from packages
Installing package 'python-dpkt' from packages
Installing package 'darkstat' from packages
Installing package 'davfs2' from packages
Installing package 'neon' from packages
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
tyler@tyler:~/openwrt$ make -j5 clean download world
make[1] clean
time: target/linux/prereq#0.34#0.03#0.49
make[1] tools/flock/compile
make[2] -C tools/flock compile
make[1] tools/download
make[2] -C tools/gmp download
make[2] -C tools/mpc download
make[2] -C tools/mpfr download
make[2] -C tools/libelf download
make[2] -C tools/expat download
make[2] -C tools/m4 download
make[2] -C tools/libtool download
make[2] -C tools/autoconf download
make[2] -C tools/automake download
make[2] -C tools/flex download
make[2] -C tools/bison download
make[2] -C tools/pkg-config download
make[2] -C tools/mklibs download
make[2] -C tools/zlib download
make[2] -C tools/sstrip download
make[2] -C tools/make-ext4fs download
make[2] -C tools/e2fsprogs download
make[2] -C tools/mtd-utils download
make[2] -C tools/mkimage download
make[2] -C tools/firmware-utils download
make[2] -C tools/patch-image download
make[2] -C tools/quilt download
make[2] -C tools/padjffs2 download
make[2] -C tools/mm-macros download
make[2] -C tools/missing-macros download
make[2] -C tools/cmake download
make[2] -C tools/scons download
make[2] -C tools/bc download
make[2] -C tools/findutils download
make[2] -C tools/gengetopt download
make[2] -C tools/patchelf download
make[2] -C tools/mtools download
make[2] -C tools/dosfstools download
make[2] -C tools/libressl download
make[2] -C tools/lzma-old download
make[2] -C tools/squashfs download
make[2] -C tools/lzma download
make[2] -C tools/squashfs4 download
make[2] -C tools/tar download
make[2] -C tools/xz download
make[2] -C tools/patch download
make[2] -C tools/flock download
make[2] -C tools/sed download
make[1] toolchain/download
make[2] -C toolchain/binutils download
make[2] -C toolchain/kernel-headers download
make[2] -C toolchain/gdb download
make[2] -C toolchain/gcc/initial download
make[2] -C toolchain/gcc/final download
make[2] -C toolchain/musl download
make[2] -C toolchain/fortify-headers download
make[1] package/download
make[2] -C feeds/luci/collections/luci download
make[2] -C package/boot/uboot-envtools download
make[2] -C package/base-files download
make[2] -C feeds/luci/applications/luci-app-firewall download
make[2] -C feeds/luci/modules/luci-base download
make[2] -C feeds/luci/libs/luci-lib-ip download
make[2] -C feeds/luci/libs/luci-lib-jsonc download
make[2] -C feeds/luci/libs/luci-lib-nixio download
make[2] -C feeds/luci/modules/luci-mod-admin-full download
make[2] -C feeds/luci/protocols/luci-proto-ipv6 download
make[2] -C feeds/luci/protocols/luci-proto-ppp download
make[2] -C feeds/luci/collections/luci-ssl download
make[2] -C feeds/luci/themes/luci-theme-bootstrap download
make[2] -C feeds/luci/contrib/package/lucihttp download
make[2] -C feeds/luci/libs/rpcd-mod-rrdns download
make[2] -C package/firmware/ath10k-firmware download
make[2] -C package/firmware/wireless-regdb download
make[2] -C package/kernel/gpio-button-hotplug download
make[2] -C package/kernel/linux download
make[2] -C package/kernel/mac80211 download
make[2] -C package/libs/libjson-c download
make[2] -C package/libs/libnl-tiny download
make[2] -C package/libs/libubox download
make[2] -C package/libs/mbedtls download
make[2] -C package/libs/toolchain download
make[2] -C package/libs/uclient download
make[2] -C package/libs/ustream-ssl download
make package/download: build failed. Please re-run make with -j1 V=s to see what's going on
make[1] target/download
make[2] -C target/linux download
make[1] world
make[2] tools/compile
make[2] package/cleanup
make[3] -C tools/flock compile
make[3] -C tools/sed compile
make[3] -C tools/tar compile
make[3] -C tools/xz compile
make[3] -C tools/patch compile
^[[A make[3] -C tools/patch-image compile
make[3] -C tools/expat compile
make[3] -C tools/pkg-config compile
make[3] -C tools/sstrip compile
make[3] -C tools/m4 compile
make[3] -C tools/scons compile
make[3] -C tools/mtools compile
make[3] -C tools/lzma compile
make[3] -C tools/autoconf compile
make[3] -C tools/missing-macros compile
make[3] -C tools/libressl compile
make[3] -C tools/automake compile
make[3] -C tools/dosfstools compile
make[3] -C tools/libtool compile
make[3] -C tools/mkimage compile
make[3] -C tools/cmake compile
make[3] -C tools/gmp compile
make[3] -C tools/libelf compile
make[3] -C tools/flex compile
make[3] -C tools/mklibs compile
make[3] -C tools/e2fsprogs compile
make[3] -C tools/mm-macros compile
make[3] -C tools/gengetopt compile
make[3] -C tools/patchelf compile
make[3] -C tools/mpfr compile
make[3] -C tools/bison compile
make[3] -C tools/mpc compile
make[3] -C tools/findutils compile
make[3] -C tools/bc compile
make[3] -C tools/quilt compile
make[3] -C tools/padjffs2 compile
make[3] -C tools/zlib compile
make[3] -C tools/squashfs4 compile
make[3] -C tools/lzma-old compile
make[3] -C tools/mtd-utils compile
make[3] -C tools/firmware-utils compile
make[3] -C tools/make-ext4fs compile
make[3] -C tools/squashfs compile
make[2] toolchain/compile
make[3] -C toolchain/binutils compile
make[3] -C toolchain/fortify-headers compile
make[3] -C toolchain/gdb compile
make[3] -C toolchain/gcc/initial compile
That doesn't look stuck, a targetted buildconfig (so not everything an the kitchen sink) takes somewhere between 20 and 30 minutes on a higher end consumer system - if you want to build 'everything' (no one does, except for the buildbots), you'd spend the better part of the day.
While you're waiting for it, if you haven't used any of the following utilities yet, a look at their man pages or tutorials would be helpful:
- git -- find a tutorial on this one!
- diff
- patch
You could also just modify the hwid from 0xc7000002 to 0xffffffff of a compiled image with a hexeditor...
This magic number has the offset 0x40 to the beginning of the image...
I have modified a trunk factory image for c7v2 for you openwrt-factory-c7v2
The next steps work only with a programmer or with a working openwrt:
What would be much better, if you flash a backup of your bootloader partition.
Did you have a backup?
If not, probably anyone could provide one and you change the mac to the one labeled on the bottom of your router.
Or you dump your bootloader partition and modify it to have the right values in it.
At the end of it there is your hwid, mac address and the wps pin. Look at this picture u-boot_mod. This should also be true for c7.
Or you send me the dump of your bootloader partition and your mac and i will modify it for you...
I will for sure try changing that factory image & let you know how it goes.
As far as the bootloader.. I don't have a backup of it. I got this router for free from a buddy. He for sure doesn't have one either. How would I go about dumping the bootloader?
The easiest way is with a working openwrt running...
- dd if=/dev/mtd0 of=/www/uboot.bin (make a dump)
- http://192.168.1.1/uboot.bin (download to your pc if you have luci) or with ssh
Or with a hw spi programmer.
The linked factory image is currently only modified to your wrong hwid...
Have you tried my modified factory image?
If it fails to recover... Post serial log...
I'm not home right now so can't try it at the moment. I'll let you know in a few hours how it goes:)
Just tried to flash the trunk factory image "openwrt-factory-c7v2" that you linked up above... And it failed too:(
Here's the log:
eth1 up
eth0, eth1
Setting 0x18116290 to 0x58b1214f
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC7v2_tp_recovery.bin'.
Load address: 0x80060000
Loading: T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################################
done
Bytes transferred = 9535488 (918000 hex)
original_product_id = ffffffff
original_product_ver = ffffffff
recovery_product_id = ffffffff
recovery_product_ver = 01
auto update firmware: product id verify fail!
Autobooting in 1 seconds
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... Stream with EOS marker is not supportedLZMA E RROR 1 - must RESET board to recover
Now i had also modified the hwver to 0xffffffff (offset 0x44)...
Redownload from the same link and try again...
This should finally work, send me pm with your u-boot dump and your desired mac address and i will create you a fixed u-boot image...
Looks like it somewhat worked.. Here's the log:
Using eth1 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'ArcherC7v2_tp_recovery.bin'.
Load address: 0x80060000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######################################################
done
Bytes transferred = 16252928 (f80000 hex)
original_product_id = ffffffff
original_product_ver = ffffffff
recovery_product_id = ffffffff
recovery_product_ver = ffffffff
auto update firmware: product id verify sucess!
Firmware recovery: product id verify sucess!
Firmware recovery: FLASH_SIZE = 16 filesize = 0xf80000.
Erasing flash...
First 0x2 last 0xf9 sector size 0x10000 249
Erased 248 sectors
Copy to Flash... write addr: 9f020000
done
U-Boot 1.1.4 (Apr 24 2015 - 13:53:04)
ap135 - Scorpion 1.0DRAM:
sri
Scorpion 1.0
ath_ddr_initial_config(178): (32bit) ddr2 init
tap = 0x00000003
Tap (low, high) = (0x3, 0x1b)
Tap values = (0xf, 0xf, 0xf, 0xf)
128 MB
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment
*** Warning *** : PCIe WLAN Module not found !!!
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
athrs_sgmii_res_cal: cal value = 0xe
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
Scorpion ----> S17 PHY *
Vlan config...
TEST: FINAL REG VAL after TX Calibration - 0x46000000
TEST: FINAL XMII VAL after RX Calibration - 0x56000000
TEST: FINAL ETH_CFG VAL after RX Calibration - 0x00028001
athrs17_reg_init: complete
: cfg1 0x80000000 cfg2 0x7335
eth0: ba:be:fa:ce:08:41
eth0 up
athrs17_reg_init_wan done
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x800c0000 cfg2 0x7214
eth1: ba:be:fa:ce:08:41
eth1 up
eth0, eth1
Setting 0x18116290 to 0x58b1214f
Autobooting in 1 seconds
## Booting image at 9f020000 ...
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 4.4.92 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3101-bce140e) ) #0 Tue Oct 17 14:59:45 2017
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] No valid device tree found, continuing without
[ 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] 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] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=ARCHER-C7-V2 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 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=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 125328K/131072K available (3076K kernel code, 160K rwdata, 412K rodata, 312K init, 205K bss, 5744K 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] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5309056796 ns
[ 0.000007] sched_clock: 32 bits at 360MHz, resolution 2ns, wraps every 5965232126ns
[ 0.008283] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[ 0.071186] pid_max: default: 32768 minimum: 301
[ 0.076196] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.083238] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.092530] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.103023] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.110379] NET: Registered protocol family 16
[ 0.116106] MIPS: machine is TP-LINK Archer C7
[ 0.123912] ar724x-pci ar724x-pci.0: PCIe link is down
[ 0.129414] registering PCI controller with io_map_base unset
[ 0.135634] registering PCI controller with io_map_base unset
[ 0.582286] Can't analyze schedule() prologue at 800670fc
[ 0.594938] PCI host bridge to bus 0000:00
[ 0.599307] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.606656] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.612580] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.619804] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.628359] PCI host bridge to bus 0000:01
[ 0.632740] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.640048] pci_bus 0000:01: root bus resource [io 0x0001]
[ 0.645980] pci_bus 0000:01: root bus resource [??? 0x00000000 flags 0x0]
[ 0.653194] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.662034] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[ 0.669825] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[ 0.677538] pci 0000:01:00.0: using irq 41 for pin 1
[ 0.683373] clocksource: Switched to clocksource MIPS
[ 0.689608] NET: Registered protocol family 2
[ 0.694972] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.702388] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.709195] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.716027] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.722250] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.729136] NET: Registered protocol family 1
[ 0.737305] Crashlog allocated RAM at address 0x3f00000
[ 0.754216] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.760415] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.772762] io scheduler noop registered
[ 0.776966] io scheduler deadline registered (default)
[ 0.782591] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.791520] console [ttyS0] disabled
[ 0.815402] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.824582] console [ttyS0] enabled
[ 0.824582] console [ttyS0] enabled
[ 0.831990] bootconsole [early0] disabled
[ 0.831990] bootconsole [early0] disabled
[ 0.844326] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.849809] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.855702] 5 tp-link partitions found on MTD device spi0.0
[ 0.861358] Creating 5 MTD partitions on "spi0.0":
[ 0.866254] 0x000000000000-0x000000020000 : "u-boot"
[ 0.872364] 0x000000020000-0x0000001533d4 : "kernel"
[ 0.878677] 0x0000001533d4-0x000000ff0000 : "rootfs"
[ 0.884977] mtd: device 2 (rootfs) set to be root filesystem
[ 0.890779] 1 squashfs-split partitions found on MTD device rootfs
[ 0.897088] 0x0000003e0000-0x000000ff0000 : "rootfs_data"
[ 0.903859] 0x000000ff0000-0x000001000000 : "art"
[ 0.909895] 0x000000020000-0x000000ff0000 : "firmware"
[ 0.925500] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[ 1.561674] libphy: ag71xx_mdio: probed
[ 2.154878] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 2.166179] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 2.754951] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
[ 2.762879] NET: Registered protocol family 10
[ 2.770512] NET: Registered protocol family 17
[ 2.775119] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.788003] 8021q: 802.1Q VLAN Support v1.8
βββββββββββββ[ 2.799130] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.807449] Freeing unused kernel memory: 312K
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ_ββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββ}ββββββββββββββoββββββββββββββββββββββββββββββoβββββββββββββββββββββββββββββββββββββββββββββββββββββββoββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[βββββββββββββββββββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββ{ββββ_ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββoββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββoβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 3.781252] init: Console is alive
[ 3.784911] init: - watchdog -
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββξΏββββββββββββββββββ}ββββββββββββββββββββββββββββββββββββββββββoββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββoβββββββmβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββoββββββββββββββββββββββββββββββββββββββββββββββββββoββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββoββββββββββββ{ββββββββββββββββββββββββββββββββgβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββoββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 4.831080] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.859803] usbcore: registered new interface driver usbfs
[ 4.865490] usbcore: registered new interface driver hub
[ 4.870949] usbcore: registered new device driver usb
[ 4.880104] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.887909] ehci-platform: EHCI generic platform driver
[ 4.893309] ehci-platform ehci-platform.0: EHCI Host Controller
[ 4.899375] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 4.909648] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
[ 4.915765] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
βββββββββββββ[ 4.933408] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 4.940623] hub 1-0:1.0: USB hub found
[ 4.944746] hub 1-0:1.0: 1 port detected
[ 4.949026] ehci-platform ehci-platform.1: EHCI Host Controller
[ 4.955099] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 4.965394] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
[ 4.971500] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
ββββββββ[ 4.993401] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 5.000654] hub 2-0:1.0: USB hub found
[ 5.004752] hub 2-0:1.0: 1 port detected
[ 5.009345] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.027040] init: - preinit -
βββxβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 6.022042] eth1: link up (1000Mbps/Full duplex)
[ 6.042842] random: procd: uninitialized urandom read (4 bytes read, 33 bits of entropy available)
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
βββββwβββ[ 9.251869] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 9.261941] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 9.360441] eth1: link down
[ 9.371687] procd: - early -
[ 9.375192] procd: - watchdog -
ββββββ[ 9.979508] procd: - watchdog -
[ 9.982896] procd: - ubus -
βββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 10.094009] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
[ 10.116653] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
[ 10.126133] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
[ 10.135341] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
[ 10.144741] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
βββββββββ[ 10.153994] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
[ 10.163983] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
[ 10.173196] random: ubusd: uninitialized urandom read (4 bytes read, 42 bits of entropy available)
[ 10.182632] procd: - init -
βββββββPlease press Enter to activate this console.
ββ[ 10.493863] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.516388] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 10.530567] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 10.538740] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 10.593252] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[ 10.599208] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
βββββββββ[ 10.816774] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:01:00.0.bin failed with error -2
[ 10.827654] ath10k_pci 0000:01:00.0: Falling back to user helper
βββ[ 11.017572] firmware ath10k!pre-cal-pci-0000:01:00.0.bin: firmware_loading_store: map pages failed
[ 11.026904] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/cal-pci-0000:01:00.0.bin failed with error -2
[ 11.037426] ath10k_pci 0000:01:00.0: Falling back to user helper
βββββββββ[ 11.388280] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[ 11.397684] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[ 11.410723] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00016 api 5 features no-p2p,raw-mode,mfp crc32 0c5668f8
[ 11.421514] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[ 11.432117] ath10k_pci 0000:01:00.0: Falling back to user helper
ββββββββ[ 11.511326] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[ 11.533140] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
βββββββ[ 12.657051] ath10k_pci 0000:01:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
ββββββββββββββββββββββββββ[ 12.858324] ip_tables: (C) 2000-2006 Netfilter Core Team
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββ[ 12.919329] nf_conntrack version 0.5.0 (1963 buckets, 7852 max)
ββ[ 12.951445] xt_time: kernel timezone is -0000
[ 12.976806] PPP generic driver version 2.4.2
[ 12.983064] NET: Registered protocol family 24
[ 13.073991] ieee80211 phy1: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[ 13.087096] kmodloader: done loading kernel modules from /etc/modules.d/*
βxβββββββββββββββββββββββββββββββββ{ββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{βββββββββββββββββββββββββββββββββββββββββ{ββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 14.338785] random: jshn: uninitialized urandom read (4 bytes read, 53 bits of entropy available)
βββββββββββββββββββββββoββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββgββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 20.547808] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 20.581229] jffs2_build_filesystem(): unlocking the mtd device... done.
[ 20.587990] jffs2_build_filesystem(): erasing all blocks after the end marker... βββββββββββββββββββββββββββββββββββββββββ
[ 23.545992] eth1: link up (1000Mbps/Full duplex)
[ 23.566247] device eth1 entered promiscuous mode
ββ[ 23.592828] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 23.668421] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
βββββββββββββ[ 24.543493] br-lan: port 1(eth1) entered forwarding state
[ 24.549013] br-lan: port 1(eth1) entered forwarding state
βββββ[ 24.576158] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
ββββββββββββββββββ[ 25.665994] eth0: link up (1000Mbps/Full duplex)
[ 25.670817] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
ββββββββββββββββββ[ 26.543400] br-lan: port 1(eth1) entered forwarding state
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββoβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 45.123398] random: nonblocking pool is initialized
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ{βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ[ 77.487542] done.
[ 77.489525] jffs2: notice: (1079) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
ββββββββββββββββββββββββββββ
Looks like no other needed partitions are overwritten because wifi got successful initialized...
Cool.
I could provide you a script that modifies only the header of new images or we could try to repair the root issues... Bootloader / config partitions...
What is your favorite way?
Could you post the output of the command "iw list" to verify wifi is ok?
Check with "ifconfig if you have the right mac address... (should be labeled on the routers bottom)