QSDK与OPENWRT区别

来源 https://www.jianshu.com/p/178ae18b2570

QSDK是一种在openwrt的基础上,加入了高通atheros芯片相关资料的一种环境。

QSDK与openwrt的区别主要在如下几个方面:

  • arch/mips/ath79/* – updated QCA base platform device support – GPLv2
  • sound/soc/ath79/* – new ALSA-compliant QCA soundcard driver – ISC
  • drivers/net/ethernet/atheros/ag71xx/* – updated QCA Ethernet switch driver – GPLv2
  • net/core/* – performance enhancement updates to Linux sk_buff management – GPL v2
  • drivers/spi – added modes to QCA spi driver – GPLv2
  • drivers/mtd/nand/ – new QCA NAND flash controller driver – ISC

编译步骤如下:(基于ubuntu)

sudo apt-get install gcc g++ binutils ptach bzip2 flex make gettext  \
pkg-config unzip zlib1g-dev libc6-dev subversion libncurses5-dev \
gawk sharutils curl libxml-parser-perl ocaml-nox

安装repo和git

QSDK代码是归档在codeaurora上,代码下载需要用到repo工具
安装repo

安装下载工具git和curl

sudo apt-get install git-core curl

使用curl获取repo :

curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo

地址链接: https://mirrors.tuna.tsinghua.edu.cn/help/git-repo/

QSDK的代码路径为git://codeaurora.org/quic/qsdk/releases/manifest/qstak

对应的版本和名称执行repo init

$ repo init -u git://codeaurora.org/quic/qsdk/releases/manifest/qstak -b release -m caf_AU_LINUX_QSDK_RELEASE_BANANA_10.4_C1_TARGET_ALL.2.4.3.1008.089.xml --repo-url=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
$ repo sync

参考链接: https://blog.csdn.net/yubing_615/article/details/51538377

QSDK 下载:

  1. repo init -u git://codeaurora.org/quic/qsdk/releases/manifest/qstak -b release
    
            -m  caf_AU_LINUX_QSDK_RELEASE_BANANA_SW_TARGET_ALL.2.7.029.xml
  2.  repo sync
  3. mkdir -p qsdk/dl
  4.    tar xjvf qsdk-qca-wifi-2.7.029.tar.bz2 -C qsdk
    tar xjvf qsdk-qca-wlan-2.7.029.tar.bz2 -C qsdk
    tar xjvf qsdk-qca-shortcut-fe-2.7.029.tar.bz2 -c qsdk

编译QSDK

  1.      cd qsdk
    make package/symlinks
  2. 拷贝配置文件,目前该目录下有三个配置文件

    ar71xx_open.config
    ar71xx_premium.config : 生成16m flash使用的bin文件
    ar71xx_wireless.config : 生成8m flash使用的bin文件
    cp qca/configs/qca955x.ln/ar71xx_<profile>.config .config
  3. 重新生成配置文件并build

    make defconfig

    make V=s

  4. 去目录下去.bin文件download到设备上

目录路径为:qsdk\bin\ar71xx
主要文件为:openwrt-ar71xx-generic-ap147-16M-kernel.bin (或 openwrt-ar71xx-generic-ap147-16M-kernel.bin)
openwrt-ar71xx-generic-ap147-16M-rootfs-squashfs.bin (或 openwrt-ar71xx-generic-ap147-8M-rootfs-squashfs.bin)

=================== End

05-11 11:35