找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 12638|回复: 13

有art相关移植到openwrt的大神帮小菜看看,求解

[复制链接]
发表于 2015-10-27 10:03 | 显示全部楼层 |阅读模式
我的板子是ar9344+qca8337

openwrt已经可以移植到我们自己做的板子上去了,网口都是通的,但是网口灯都不亮(求解下各位大神)开始编译art,校准无线,以下是我的操作步骤还是有问题
            1、.config 增加了CONFIG_PACKAGE_kmod-art2=y
           2、我在Package创建art2目录 并且把art2_815压缩包解压在art2目录下,以下图片是工作目录
           3、将art2_ver_4_9_815.tar.bz2 copy到了dl目录
          4、make package/art2/compile V=s 编译出现问题 两个问题:Makefile错误 ,没找到编译规则
看错误可能是makefile有问题或者别的问题,下面是我用的makefile  你们看下 怎么修改  谢谢了
有高手想试下的可以在这拿到art程序,不过编译通过了,希望不吝赐教
链接: http://pan.baidu.com/s/1mgpNn64 密码: fqj4

以下是我的makefile文件
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=art2
PKG_VERSION:=art2_ver_4_9_815
PKG_RELEASE:=1

PKG_BRANCH:=$(basename $(PKG_VERSION))
PKG_SOURCE:=$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://tritium.qca.qualcomm.com/software/ART2/$(PKG_BRANCH)/$(PKG_VERSION)

PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_VERSION)
include $(INCLUDE_DIR)/package-version-override.mk
include $(INCLUDE_DIR)/package.mk

#########################################################
############ ART DRIVER BUILD CONFIGURATION ############
#########################################################

ART2_APP_OPTS+= \
$(TARGET_CONFIGURE_OPTS) \
ART_ROOT=$(PKG_BUILD_DIR) \
WORKAREA=$(PKG_BUILD_DIR) \
TOOL_PREFIX=$(TARGET_CROSS)

EXTRA_CFLAGS+= \
-DUSE_PLATFORM_FRAMEWORK=1 \
-I$(PKG_BUILD_DIR) \
-I$(PKG_BUILD_DIR)/driver/linux/modules/include \

ifneq ($(CONFIG_DEBUG),)
ART2_APP_OPTS+= \
GDB=1
endif

ifneq ($(DEBUG),)
EXTRA_CFLAGS+= -DDK_DEBUG
endif

ifeq ($(BOARD),ipq806x)
ART2_APP_OPTS+=AKRONITE=1
EXTRA_CFLAGS+=-DAKRONITE_ART
endif

ifeq ($(BOARD),ar71xx)
EXTRA_CFLAGS+= -DAP83 -DWASP
endif

ifeq ($(BOARD_PCI), pcie)
EXTRA_CFLAGS+= -DWASP_OSPREY -DPYTHON_EMU
endif

define KernelPackage/art2
    SECTION:=QCA
    CATEGORY:=QCA Proprietary software
    URL:=http://www.qca.qualcomm.com
    MAINTAINER:=Qualcomm Atheros
    TITLE:=$(1) - QCA ART Driver & tools
    DEPENDS:=+libpthread +libc +librt
    FILES:=$(PKG_BUILD_DIR)/driver/linux/modules/art.$(LINUX_KMOD_SUFFIX)
endef

define KernelPackage/art2/Description
    This package contains a driver for ART and the tools to use it:
      - art.ko
      - nart.out
      - NART related libs
    It has been build specifically for $(1)
endef

define KernelPackage/art2/config
$(call Package/$(PKG_NAME)/override_source_path,kmod-art2)
$(call Package/$(PKG_NAME)/override_version,kmod-art2,$(PKG_SUPPORTED_VERSION))
endef

define Build/Compile
cd $(PKG_BUILD_DIR)/driver/linux/modules \
$(MAKE) clean
$(MAKE) -C "$(LINUX_DIR)" \
  CROSS_COMPILE="$(TARGET_CROSS)" \
  ARCH="$(LINUX_KARCH)" \
  SUBDIRS="$(PKG_BUILD_DIR)/driver/linux/modules" \
  EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
  modules
$(MAKE) -C $(PKG_BUILD_DIR) $(strip $(ART2_APP_OPTS)) \
  -f makefile.nart all
endef

define KernelPackage/art2/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nartbuild/*.out $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nartbuild/*.so $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/BoardData/*.bin $(1)/usr/sbin
$(INSTALL_BIN) ./files/art.init $(1)/etc/init.d/art
endef

$(eval $(call KernelPackage,art2))


我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2015-10-27 10:05 | 显示全部楼层
补出错图片

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2015-10-27 10:06 | 显示全部楼层
大神们速速来看下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2015-10-28 13:52 | 显示全部楼层
咋没高手看看呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2015-11-5 18:47 | 显示全部楼层
呵呵 问题已经解决了 谢谢 http://www.witimes.com/openwrt-porting-art/#comment-99 作者
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-9 11:35 | 显示全部楼层
楼主,我用art2_ver2_28_6和ver_4_9_815,按在上面修改后编译后全部都会出现以下错误:
/home/edna/art2/driver/linux/modules/dk_func.c:428:1: warning: initialization from incompatible pointer type [enabled by default]
};
^
/home/edna/art2/driver/linux/modules/dk_func.c:428:1: warning: (near initialization for 'dk_fops.compat_ioctl') [enabled by default]
  CC [M]  /home/edna/art2/driver/linux/modules/client.o
mips-openwrt-linux-uclibc-gcc: warning: environment variable 'STAGING_DIR' not defined
  CC [M]  /home/edna/art2/driver/linux/modules/main.o
mips-openwrt-linux-uclibc-gcc: warning: environment variable 'STAGING_DIR' not defined
/home/edna/art2/driver/linux/modules/main.c: In function 'dk_module_init':
/home/edna/art2/driver/linux/modules/main.c:79:15: warning: unused variable 'chip_rev_id' [-Wunused-variable]
         INT32 chip_rev_id=0;
               ^
  CC [M]  /home/edna/art2/driver/linux/modules/dk_pci_bus.o
mips-openwrt-linux-uclibc-gcc: warning: environment variable 'STAGING_DIR' not defined
/home/edna/art2/driver/linux/modules/dk_pci_bus.c:249:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dk_id_tbl'
static struct pci_device_id __devinitdata dk_id_tbl[] = {
                                           ^
/home/edna/art2/driver/linux/modules/dk_pci_bus.c:284:13: error: 'dk_id_tbl' undeclared here (not in a function)
   id_table: dk_id_tbl,
             ^
make[2]: *** [/home/edna/art2/driver/linux/modules/dk_pci_bus.o] 错误 1
make[1]: *** [_module_/home/edna/art2/driver/linux/modules] 错误 2
make[1]:正在离开目录 `/home/edna/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.14.25'
make: *** [default] 错误 2

难道是缺少什么库文件软件包,求大神看看。

点评

linux kernel3.8以后,把: __devinit, __devinitdata, __devinitconst, __devexit, __devexitdata, __devexitconst 这些都去掉了。解决办法:#define __devinitdata  详情 回复 发表于 2017-11-21 16:19
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-1 19:53 | 显示全部楼层
楼主你好,我现在也在将art移植到openwrt,能否把artgui.exe发给我一份呢,我的邮箱是benxuelan0402@126.com,不胜感谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-7-25 14:48 | 显示全部楼层
大神, 有art2_ver_4_9_815.tar.bz2源码吗, 可否发一份给我?你的art程序链接不可用了, 谢谢!我的邮箱317679902@qq.com
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-19 09:36 | 显示全部楼层
求  art2_ver_4_9_815.tar.bz2  代码, 邮箱 2606308379@qq.com  多谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-11-7 22:21 | 显示全部楼层
求一个 art2 2.28 软件包
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-11-21 16:19 | 显示全部楼层
edna528 发表于 2015-11-9 11:35
楼主,我用art2_ver2_28_6和ver_4_9_815,按在上面修改后编译后全部都会出现以下错误:
/home/edna/art2/dr ...

linux kernel3.8以后,把: __devinit, __devinitdata, __devinitconst, __devexit, __devexitdata, __devexitconst 这些都去掉了。解决办法:#define __devinitdata
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-10-19 20:46 来自手机 | 显示全部楼层
学习学习一一一一一
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-10-19 20:51 来自手机 | 显示全部楼层
http://www.witimes.com/openwrt-porting-art/
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2023-3-14 13:53 | 显示全部楼层
链接: http://pan.baidu.com/s/1mgpNn64 密码: fqj4  连接失效,能重新发一份?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-18 09:52

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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