找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2955|回复: 1

QCA9531_Openwtr环境搭建以及编译

[复制链接]
发表于 2019-12-29 17:29 | 显示全部楼层 |阅读模式
悬赏3恩山币未解决
想要在QCA9531上刷自己折腾的OpenWrt固件,因为需要有些特殊的功能 需要自己编写代码,不是简单得做一个路由器
但是现在在Ubuntu上搭建环境的时候 make时候出了点问题,因为以前没有接触过所以不知道从哪下手,希望有大佬能帮忙,可以有偿
或者说有按照高通厂商提供的build文件进行编译嘛?

就是这玩意

After copying the necessary files to the appropriate directories, enter the following commands to continue with the process of generating the QSDK framework:

$ repo init -u git://codeaurora.org/quic/qsdk/releases/manifest/qstak -b release -m caf_AU_LINUX_QSDK_NHSS.QSDK_MIPS.6.0.R4_TARGET_ALL.0.2.3900.010.xml --repourl=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
  repo init -u git://codeaurora.org/quic/qsdk/releases/manifest/qstak -b release -m caf_AU_LINUX_QSDK_NHSS.QSDK_MIPS.6.0.R4_TARGET_ALL.0.2.3900.010.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
$ repo sync -j8 --no-tags -c
$ mkdir -p qsdk/dl
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/Wifi/qsdk-qca-wifi/* qsdk
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/Wifi/qsdk-qca-wlan/* qsdk
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/Wifi/qsdk-qca-art/* qsdk
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/Wifi/qsdk-qca-athdiag/* qsdk
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/Wifi/qsdk-ieee1905-security/* qsdk
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/QSDK-Base/qca-lib/* qsdk
$ cp ~/QCA9531/WLAN.BL.3.6/cnss_proc/src/components/* qsdk/dl
4. (Optional) This step applies only for QCA9531.ILQ.6.0/QCA9563.ILQ.6.0.
$ cp ~/QCA9531/WLAN.BL.3.6/cnss_proc/bin/QCA9888/hw.2/* qsdk/dl


Run the following commands for all chipsets, regardless of whether they are
QCA9558.ILQ.6.0, QCA9531.ILQ.6.0, or QCA9563.ILQ.6.0.
$ tar xzvf ~/QCA9531/WLAN.BL.3.6/cnss_proc/src/components/qca-wifi-fw-src-component-cmn-WLAN.BL.3.6-00139-S-1.tgz -C qsdk/dl
$ tar xzvf ~/QCA9531/WLAN.BL.3.6/cnss_proc/src/components/qca-wifi-fw-src-component-halphy_tools-WLAN.BL.3.6-00139-S-1.tgz -C qsdk/dl
$ cp CNSS.PS.2.6/* qsdk/dl/
(Optional) This step applies only to WHC customers.
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/Wifi/qsdk-whc/* qsdk
$ cp -rf ~/QCA9531/NHSS.QSDK_MIPS.6.0/apss_proc/out/proprietary/Wifi/qsdk-whcpy/* qsdk


The QSDK framework has been developed using Ubuntu (version 14.04), and Debian. However, QSDK framework regenerates critical tools required to compile firmware at build-time. In that sense, the framework is independent from the host environment; although it is developed using the distributions above, it is expected to work on others such as RedHat, Mint, or Fedora. This command is for Debian/Ubuntu; it must be customized for other distributions:
$ 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 ocaml-nox ocaml-nox ocaml ocaml-findlib \
libpcre3-dev binutils-gold python-yaml

Since the framework automatically downloads the open source components, make sure an internet connection is active on the build host while creating the build.
To create the QSDK build, enter the following commands:
1. Install the different feeds in the build framework.
$ cd qsdk
$ make package/symlinks

Copy the base configuration to use for the build.
$ cp qca/configs/qca955x.ln/ar71xx_premium_beeliner.config .config

Regenerate a complete configuration file and start the build:
$ make defconfig
4. (Optional) This step applies only for QCA9531.ILQ.6.0/QCA9563.ILQ.6.0.
$ sed -i -e '/CONFIG_PACKAGE_qca-wifi-fw-hw7-10.4-asic/d' .config
$ sed -i -e '/CONFIG_PACKAGE_qca-wifi-fw-hw9-10.4-asic/d' .config
$ make V=s -j5

但是这样编译老是报错 错误还不一样


只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
发表于 2020-4-16 17:39 | 显示全部楼层
我也遇到了一样的问题,或许我们能交流下,QQ3121267362
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-9-28 13:08

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表