<div dir="ltr"><div><div>Hi,<br><br></div>@Hartmut<br></div>Ok, now I see. Thanks!<br><br>@郭传鈜<br><div><div><div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><span style="font-size:14px">Acoording to mach-archer-c7.c ,I think we should use ath79_register_pci(); here and use /lib/preinit/81_load_ath10k_</span><span style="font-size:14px">board_bin to load calibration data for ath10k.</span></div></span></div></div></div></blockquote><div><br></div><div>So, I understand I have to remove this line from target/linux/ar71xx/files/arch/mips/ath79/mach-mc-mac1200r.c<br><br>ap91_pci_init(art + MAC1200R_PCIE_CALDATA_OFFSET, tmpmac);<br><br></div><div>Then, the MACs in my router end in:<br>- eth0=>47<br>- eth1=>49<br>- wlan1=>4A<br><br>so it makes sense to have wlan0 ending in 48 (i.e. eth1 minus 1). In target/linux/ar71xx/base-files/lib/preinit/81_load_ath10k_board_bin (art partition is mtd4):<br><br>                        dd if=/dev/mtdblock4 \<br>                                bs=1 skip=20492 count=2104 >> /tmp/ath10k-board.bin<br>                ;;<br>                mc-mac1200r)<br>                        local mac<br>                        mac=$(macaddr_add $(cat /sys/class/net/eth1/address) -1)<br><br>                        dd if=/dev/mtdblock4 \<br>                                bs=1 skip=20480 count=6 \<br>                                of=/tmp/ath10k-board.bin<br>                        macaddr_2bin $mac >> /tmp/ath10k-board.bin<br>                        dd if=/dev/mtdblock4 \<br>                                bs=1 skip=20492 count=2104 >> /tmp/ath10k-board.bin<br>                ;;<br>                r6100)<br>                        local mac<br>                        mac=$(macaddr_add $(cat /sys/class/net/eth1/address) +2)<br><br>                        dd if=/dev/mtdblock2 \<br><br></div><div></div><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><span><div>>> +$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,MAC1200R,mc-mac1200r,MC-MAC1200R,ttyS0,115200,0x12000001,1,8Mlzma))<br><span class=""><div>>The
 factory image is broken since TP-LINK started to use a new firmware 
format with RSA signature in China.This should be introduced in the TOH 
wiki I think:)<br></div></span></div></span></div></div></blockquote></div></div></div></blockquote><div><br></div><div>Besides adding this to the wiki, what should I change so that the factory firmware is not generated?<br><br></div><div>Thanks!<br><br>Roger</div></div></div></div></div></div></div>