IPQ6018 编译记录

IPQ6000 编译记录

ipq6000

源码需找原厂或高通服务商或者其他途径,我用的是qca-networking-2020-spf-11-2_qca_oem-r11.2_00001.1-f0987f5840c7f151e2589aac616da6d9b9eb77f4.tar.gz,github上有相关源码
在这里插入图片描述
1.我用的是ubuntu16.04,版本低了估计编译容易报错,然后安装命令和工具:
sudo apt-get install gcc g++ binutils patch bzip2 flex make gettext pkg-config unzip zlib1g-dev libc6-dev subversion libncurses5-dev gawk sharutils curl libxml-parser-perl python-yaml ocaml-nox ocaml ocaml-findlib libssl-dev libfdt-dev
$ sudo apt-get install device-tree-compiler u-boot-tools
2.解压源码tar -zxvf qca-networking-2020-spf-11-2_qca_oem-r11.2_00001.1-f0987f5840c7f151e2589aac616da6d9b9eb77f4.tar.gz
3.解压后执行更新名:
rm -rf BOOT.AK.1.0 BOOT.BF.3.* IPQ8064.ILQ* IPQ4019.ILQ* IPQ8074.ILQ*
RPM.AK.1.0 TZ.AK.1.0 TZ.BF.2.7 TZ.BF.4.0.8 WIGIG.TLN*
$ cp -rf / .
$ repo init -u git://codeaurora.org/quic/qsdk/releases/manifest/qstak -b
release -m caf_AU_LINUX_QSDK_NHSS.QSDK.11.2_TARGET_ALL.12.0.4959.5073.xml
$ repo sync -j8 --no-tags -qc
$ mkdir -p qsdk/dl
$ cp -rf apss_proc/out/proprietary/Wifi/qsdk-ieee1905-security/* qsdk
$ cp -rf apss_proc/out/proprietary/Wifi/qsdk-qca-art/* qsdk
$ cp -rf apss_proc/out/proprietary/Wifi/qsdk-qca-wifi/* qsdk
$ cp -rf apss_proc/out/proprietary/Wifi/qsdk-qca-wlan/* qsdk
$ cp -rf wlan_proc/src/components/qca-wifi-fw-src-component-cmn-WLAN.HK.*
qsdk/dl/
$ cp -rf wlan_proc/pkg/wlan_proc/bin/QCA6018/qca-wifi-fw-QCA6018_v1.0-
WLAN.HK.* qsdk/dl/
$ tar xvf cnss_proc/src/components/qca-wifi-fw-src-component-cmn-WLAN.BL..tgz
-C qsdk/dl
$ tar xvf cnss_proc/src/components/qca-wifi-fw-src-component-halphy_toolsWLAN.BL.
.tgz -C qsdk/dl
$ cp -rf cnss_proc/src/components/* qsdk/dl
$ cp -rf cnss_proc/bin/QCA9888/hw.2/* qsdk/dl
$ cp -rf cnss_proc/bin/AR900B/hw.2/* qsdk/dl
$ cp -rf cnss_proc/bin/QCA9984/hw.1/* qsdk/dl
$ cp -rf cnss_proc/bin/IPQ4019/hw.1/* qsdk/dl
$ cp -rf qca-wifi-fw-AR988* qsdk/dl
$ cp -rf qca-wifi-fw-AR9887* qsdk/dl
$ cp -rf apss_proc/out/proprietary/QSDK-Base/meta-tools/ qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/common-tools/* qsdk/
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qsdk-qca-nss/* qsdk/
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qca-lib/* qsdk/
$ cp -rf apss_proc/out/proprietary/RSRC-NSS-MDUMP/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qca-mcs-apps/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qca-nss-userspace/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qca-time-services/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qca-qmi-framework/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/gpio-debug/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qca-diag/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/athtestcmd/* qsdk
$ tar xjvf apss_proc/out/proprietary/QSDK-Base/qca-IOT/qca-IOT.tar.bz2 -C qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/qca-cnss-daemon/* qsdk
$ cp -rf apss_proc/out/proprietary/QSDK-Base/fw-qca-stats/* qsdk
$ cp apss_proc/out/proprietary/QSDK-Base/qca-nss-fw-eip-cp/BIN-EIP197.CP.*
qsdk/dl/
$ sed -i ‘/QCAHKSWPL_SILICONZ/c\PKG_VERSION:= WLAN.HK.2.3-02932-
QCAHKSWPL_SILICONZ-1’ qsdk/qca/feeds/qca-cp/net/qca-cyp/Makefile
$ cp -rf apss_proc/out/proprietary/BLUETOPIA/qca-bluetopia/* qsdk
cp apss_proc/out/proprietary/RBIN-NSS-RETAIL/BIN-NSS.CP* qsdk/dl/
cp -rf apss_proc/out/proprietary/Hyfi/hyfi/* qsdk
cp -rf apss_proc/out/proprietary/Wifi/qsdk-whc/* qsdk
mkdir qsdk/qca/feeds/qca-son-mem-debug/qca-son-mem-debug
mv qsdk/qca/feeds/qca-son-mem-debug/Makefile qsdk/qca/feeds/qca-son-memdebug/Config.in qsdk/qca/feeds/qca-son-mem-debug/qca-son-mem-debug
cp -rf apss_proc/out/proprietary/Wifi/qsdk-whcpy/* qsdk
4.更新包:
$ cd qsdk
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a -f
5.先编译32位的固件然后才能编译64位的:
$ cp qca/configs/qsdk/ipq_premium.config .config
$ sed -i “s/TARGET_ipq_ipq806x/TARGET_ipq_ipq60xx/g” .config
$ sed -i “s/CONFIG_PACKAGE_qal/#CONFIG_PACKAGE_qal/g” .config
6.执行编译命令:
make -j1 V=s
7.编译完成后还执行如下命令生成最终能刷机的固件:
$ cd
$ mkdir -p common/build/ipq
$ mkdir -p apss_proc/out/meta-scripts
$ cp qsdk/qca/src/u-boot-2016/tools/pack.py apss_proc/out/meta-scripts/pack_hk.py
$ sed -i ‘s#</linux_root_path>#/</linux_root_path>#’ contents.xml
$ sed -i ‘s#</windows_root_path>#\</windows_root_path>#’ contents.xml
$ cp qsdk/bin/ipq/openwrt* common/build/ipq
$ cp -r apss_proc/out/proprietary/QSDK-Base/meta-tools apss_proc/out/
$ cp -rf qsdk/bin/ipq/dtbs/* common/build/ipq/
$ cp -rf skales/* common/build/ipq/
$ cp -rf wlan_proc/build/ms/bin/FW_IMAGES/* common/build/ipq/
$ cp qsdk/staging_dir/host/bin/ubinize common/build/ipq/
$ cd common/build
$ sed “s/‘’‘$/\n’‘’/g” -i update_common_info.py
$ sed -i “s/os.chdir(ipq_dir)//” update_common_info.py
$ sed
‘/debug/d;/packages/d;/“ipq6018_64”/d;/t32/d;/ret_prep_64image/d;/Required/d;/
skales/d;
/nosmmu/d;/os.system(cmd)/d;/os.chdir(ipq_dir)/d;/atfdir/d;/noac/d;/singleatf/d;/bl31.mbn/d’ -i update_common_info.py
$ sed -i -e ‘/Generating 32 bit atf images/,+17d’ update_common_info.py
$ sed -i -e ‘/ret_pack_64image==0/,+7d’ update_common_info.py
$ sed “s/^‘’‘/’‘’\n/g” -i update_common_info.py
$ sed -i -e ‘/prepareSingleImage.py and pack command for 64 bit/,+1d’
update_common_info.py
$ sed -i -e ‘/prepareSingleImage.py and pack command for LM512 64 bit/,+1d’
update_common_info.py
$ export BLD_ENV_BUILD_ID=P
$ python update_common_info.py
最后生成的固件参数如下(我编译的是64位的):
在这里插入图片描述在这里插入图片描述
常用修改路径:

修改主机型号:
qca/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
修改速率小数点不对的问题
qca/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_network/wifi_overview.htm
无线默认开启
qca/feeds/qca/net/qca-wifi/files/qcawificfg80211.sh
默认语言
qca/feeds/luci/modules/luci-base/root/etc/config/luci
添加对qcawificfg80211支持
qca/feeds/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua
修改IP地址
package/base-files/files/lib/functions/uci-defaults.sh
修改LAN,WAN位置
target/linux/ipq/base-files/etc/uci-defaults/network

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值