Hi!
I’m trying to (re)build an OpenWrt release the first time myself, for an already-supported target (TP-Link Archer C2 AC750 V1).
My goal at this point is just to confirm I am able to succesfully rebuild a standard OpenWrt release with no modifications and get it run on the supported target.
However, I seem to have a slight problem with this: after flashing the produced sysupgrade image, the device seems to boot OK (judging from the LEDs) but I get no life in the LAN ports (DHCP client cannot get an address and tcpdump
shows there’s nothing going on except the traffic that the PC itself produces), and can then only do TFTP recovery to get things back to normal.
My first attempt after cloning the OpenWrt repository was:
git checkout v21.02.3
scripts/feeds update -a
scripts/feeds install -a
make menuconfig
# Here, I chose ramips / mt7620 / tplink_archer-c2-v1 and saved the config
make -j8 defconfig download clean world
This produced an image file by the name openwrt-ramips-mt7620-tplink_archer-c2-v1-squashfs-sysupgrade.bin
(note: no version number in the name), sized 4.7 MB, with the results described above.
My second attempt (after reading the build instructions a bit more thoroughly) was:
make clean && make config-clean
wget https://downloads.openwrt.org/releases/21.02.3/targets/ramips/mt7620/config.buildinfo -O .config
scripts/feeds install -a
scripts/feeds update -a
make menuconfig
# ramips and mt760 were already pre-selected so I only needed
# to choose tplink_archer-c2-v1 as the subtarget and save the config
make -j8 defconfig download clean world
This produced an image file by the name openwrt-21.02.3-ramips-mt7620-tplink_archer-c2-v1-squashfs-sysupgrade.bin
(with the version number included!), with a larger size (5.0 MB) but still not as large as the official 21.02.3 sysupgrade image for this device (5.2 MB).
Also, flashing this second attempt at an image gave the same result: the device seems to boot OK but there’s no life in the LAN ports after the boot has seemingly finished.
I’m obviously missing something since the size of the produced image is slightly smaller than the size of the official build but can’t figure out what.
Obviously, the next step would be checking out what is actually going on in the system console serial port but I don’t currently have the pin header soldered in on this board and would somehow expect to get a working build for a supported target (with the same configuration as the official build) even without needing to solder or debug anything just yet... so any ideas or suggestions would be welcome.