旧版本版本的全志R16平台的tinav2.1的系统打开softAP
2017/9/14 17:25
版本:V1.0
1、原始编译:
rootroot@cm-System-Product-Name:~$ cd /home/wwt/
rootroot@cm-System-Product-Name:/home/wwt$ tar zxvf tinaV2.1_wyb_20170302_patch_leo_20161102.tar.gz
rootroot@cm-System-Product-Name:/home/wwt$ mv tinaV2.1 softap_ap6212a0_tinav2.1
rootroot@cm-System-Product-Name:/home/wwt$ cd softap_ap6212a0_tinav2.1/
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ source build/envsetup.sh
including target/allwinner/tulip-d1/vendorsetup.sh
including target/allwinner/octopus-sch/vendorsetup.sh
including target/allwinner/azalea-perf2/vendorsetup.sh
including target/allwinner/azalea-perf3/vendorsetup.sh
including target/allwinner/octopus-dev/vendorsetup.sh
including target/allwinner/astar-evb/vendorsetup.sh
including target/allwinner/generic/vendorsetup.sh
including target/allwinner/azalea-perf1/vendorsetup.sh
including target/allwinner/astar-parrot/vendorsetup.sh
including target/allwinner/astar-spk/vendorsetup.sh
including target/allwinner/azalea-evb/vendorsetup.sh
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. tulip_d1-tina
2. tulip_d1-dragonboard
3. octopus_sch-tina
4. octopus_sch-dragonboard
5. azalea_perf2-tina
6. azalea_perf2-dragonboard
7. azalea_perf3-tina
8. azalea_perf3-dragonboard
9. octopus_dev-tina
10. octopus_dev-dragonboard
11. astar_evb-tina
12. azalea_perf1-tina
13. azalea_perf1-dragonboard
14. astar_parrot-tina
15. astar_parrot-dragonboard
16. astar_spk-tina
17. astar_spk-dragonboard
18. azalea_evb-tina
19. azalea_evb-dragonboard
Which would you like?14
============================================
PLATFORM_VERSION_CODENAME=Neptune
PLATFORM_VERSION=2.0.0
TARGET_PRODUCT=astar_parrot
TARGET_BUILD_VARIANT=tina
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=57513AA3
OUT_DIR=
============================================
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make -j12
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ pack -d
2、
将softap.tar.bz2解压到package/allwinner下。
将dnsmasq.tar.bz2解压并替换package/network/services下的dnsmasq文件夹。
3、配置内核:
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make kernel_menuconfig
[*] Networking support --->
--- Networking support
Networking options --->
(在第二屏)
[ ] Network packet filtering framework (Netfilter) --->
修改为:
[*] Network packet filtering framework (Netfilter) --->
[ ] Advanced netfilter configuration
修改为:
[*] Advanced netfilter configuration
Core Netfilter Configuration --->
< > Netfilter NFACCT over NFNETLINK interface
< > Netfilter NFQUEUE over NFNETLINK interface
< > Netfilter LOG over NFNETLINK interface
< > Netfilter connection tracking support
< > Netfilter Xtables support (required for ip_tables)
修改为:
< > Netfilter NFACCT over NFNETLINK interface
< > Netfilter NFQUEUE over NFNETLINK interface
< > Netfilter LOG over NFNETLINK interface
<*> Netfilter connection tracking support
[*] Connection mark tracking support
[*] Connection tracking security mark support (NEW)
(默认选中)
[*] Supply CT list in procfs (OBSOLETE)
[*] Connection tracking events
[*] Connection tracking timeout (NEW)
[*] Connection tracking timestamping
< > DCCP protocol connection tracking support (EXPERIMENTAL)
< > SCTP protocol connection tracking support (EXPERIMENTAL)
< > UDP-Lite protocol connection tracking support
< > Amanda backup protocol support
< > FTP protocol support
< > H.323 protocol support
< > IRC protocol support
< > NetBIOS name service protocol support
< > SNMP service protocol support
< > PPtP protocol support
< > SANE protocol support (EXPERIMENTAL)
< > SIP protocol support
< > TFTP protocol support
<M> Connection tracking netlink interface
<M> Connection tracking timeout tuning via Netlink
<*> Netfilter Xtables support (required for ip_tables)
*** Xtables combined modules ***
(有很多项,在下面!)
<*> "conntrack" connection tracking match support
<*> "state" match support
< > IP virtual server support --->
修改为:
<*> IP virtual server support --->
[ ] Netfilter connection tracking (NEW)
修改为(在最后面):
[*] Netfilter connection tracking
IP: Netfilter Configuration --->
< > IPv4 connection tracking support (required for NAT)
修改为:
<*> IPv4 connection tracking support (required for NAT)
< > IP tables support (required for filtering/masq/NAT)
修改为:
<*> IP tables support (required for filtering/masq/NAT)
<*> Packet filtering
< > Full NAT
修改为:
<*> Full NAT
<*> MASQUERADE target support
<*> NETMAP target support
<*> REDIRECT target support
<*> Packet mangling
4、配置系统:
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make menuconfig
Base system --->
< > dnsmasq.............................................. DNS and DHCP server
修改为:
<*> dnsmasq.............................................. DNS and DHCP server
Allwinner --->
< > softap............................................... Tina softap manager (NEW) ----
修改为:
<*> softap............................................... Tina softap manager --->
--- softap............................................... Tina softap manager
< > softap-demo......................................... Tina softap app demo (NEW)
修改为:
<*> softap-demo......................................... Tina softap app demo
Network --->
Firewall --->
< > iptables................................. IP firewall administration tool ----
修改为:
(里面不用选中)
<*> iptables................................. IP firewall administration tool --->
Network --->
< > hostapd................................. IEEE 802.1x Authenticator (full)
< > hostapd-common............... hostapd/wpa_supplicant common support files
< > hostapd-common-old
修改为:
<*> hostapd................................. IEEE 802.1x Authenticator (full)
-*- hostapd-common............... hostapd/wpa_supplicant common support files
< > hostapd-common-old
Utilities --->
<*> playdemo................................... music play in 3 kinds of mode
修改为:
< > playdemo................................... music play in 3 kinds of mode
5、配置编译加载选项:
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ find . -name netfilter.mk
./package/kernel/linux/modules/netfilter.mk
./build/netfilter.mk
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
W:\softap_ap6212a0_tinav2.1\build\netfilter.mk
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)xt_LOG))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)nf_log_common))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_V4)nf_log_ipv4))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_TCPMSS, $(P_XT)xt_TCPMSS))
$(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)ipt_REJECT))
$(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)nf_reject_ipv4))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_TIME, $(P_XT)xt_time))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MARK, $(P_XT)xt_mark))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)xt_LOG))
#$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)nf_log_common))
#$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_V4)nf_log_ipv4))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_TCPMSS, $(P_XT)xt_TCPMSS))
$(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)ipt_REJECT))
#$(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)nf_reject_ipv4))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_TIME, $(P_XT)xt_time))
$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MARK, $(P_XT)xt_mark))
不配置这里就会在这里让你选择(选择:N/y都会出错的!)
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make -j12
make -C /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39 HOSTCFLAGS="-O2 -I/home/wwt/softap_ap6212a0_tinav2.1/out/host/include -I/home/wwt/softap_ap6212a0_tinav2.1/out/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" CONFIG_SHELL="bash" V='' CC="arm-openwrt-linux-muslgnueabi-gcc" modules
make[5]: Entering directory `/home/wwt/softap_ap6212a0_tinav2.1/lichee/linux-3.4'
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/bcmdhd/Kconfig:57:warning: defaults for choice values not supported
.config:3733:warning: override: TREE_PREEMPT_RCU changes choice state
*
* Restart config...
*
*
* IP: Netfilter Configuration
*
IPv4 connection tracking support (required for NAT) (NF_CONNTRACK_IPV4) [Y/n/m/?] y
proc/sysctl compatibility with old connection tracking (NF_CONNTRACK_PROC_COMPAT) [N/y/?] n
IP Userspace queueing via NETLINK (OBSOLETE) (IP_NF_QUEUE) [N/m/y/?] n
IP tables support (required for filtering/masq/NAT) (IP_NF_IPTABLES) [Y/n/m/?] y
"ah" match support (IP_NF_MATCH_AH) [N/m/y/?] n
"ecn" match support (IP_NF_MATCH_ECN) [N/m/y/?] n
"rpfilter" reverse path filter match support (IP_NF_MATCH_RPFILTER) [N/m/y/?] n
"ttl" match support (IP_NF_MATCH_TTL) [N/m/y/?] n
Packet filtering (IP_NF_FILTER) [Y/n/m/?] y
REJECT target support (IP_NF_TARGET_REJECT) [M/n/y/?] m
Force socket error when rejecting with icmp* (IP_NF_TARGET_REJECT_SKERR) [N/y/?] (NEW) n
出错:
sh /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/strace-4.10/ipkg-sunxi/strace
rstrip.sh: /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/strace-4.10/ipkg-sunxi/strace/usr/bin/strace: executable
\$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm; )
install -d -m0755 /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/packages/base
unxi/strace /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/packages/base
av2.1/out/astar-parrot/packages/base/strace_4.10-1_sunxi.ipk
rm -rf /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-strace
strace
install -d -m0755 /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-strace/usr/bin
v2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-strace/usr/bin/
me/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/'
rm -rf /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-strace
touch /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/stamp/.strace_installed
/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/strace.default.install
make[3]: Leaving directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/package/devel/strace'
make[2]: Leaving directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1'
make[1]: *** [/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1'
Build failed - please re-run with -j1 to see the real error message
make: *** [world] 错误 1
#### make failed to build some targets (36:27 (mm:ss)) ####
rootroot@cm-System-Product-Name:/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1$ make -j1
rm -rf /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-ap6212-firmware
touch /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/stamp/.ap6212-firmware_installed
; echo "ap6212-firmware" >> /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/linux-firmware.default.install
make[3]: Leaving directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/package/firmware/linux-firmware'
make[3]: Entering directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/package/kernel/linux'
rm -rf /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kernel
kernel
# nothing to do
me/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/'
rm -rf /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kernel
touch /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/stamp/.kernel_installed
diron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/linux.default.install
rm -rf /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kmod-input-core
kmod-input-core
NOTICE: module '/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/drivers/input/input-core.ko' is built-in.
ONTROL/postinst-pkg; chmod 0755 /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kmod-input-core/CONTROL/postinst-pkg; fi
ore/. /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/'
rm -rf /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kmod-input-core
touch /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/stamp/.kmod-input-core_installed
/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/linux.default.install
unxi/kmod-ipt-core/CONTROL /home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo
ERROR: module '/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/net/netfilter/nf_log_common.ko' is missing.
make[3]: *** [/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/packages/kernel/kmod-ipt-core_3.4.39-1_sunxi.ipk] Error 1
make[3]: Leaving directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/package/kernel/linux'
make[2]: *** [package/kernel/linux/compile] Error 2
make[2]: Leaving directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1'
make[1]: *** [/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1'
make: *** [world] 错误 2
#### make failed to build some targets (16 seconds) ####
rootroot@cm-System-Product-Name:/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1$ grep nf_log_common . -R
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/.git/svn: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/host/u-boot-2014.10/arch/sandbox/include/asm/arch: 没有那个文件或目录
grep: ./build/.git/svn: 没有那个文件或目录
./build/netfilter.mk:$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)nf_log_common))
grep: ./package/.git/svn: 没有那个文件或目录
grep: ./target/.git/svn: 没有那个文件或目录
grep: ./.repo/manifests/.git/svn: 没有那个文件或目录
grep: ./tools/.git/svn: 没有那个文件或目录
grep: ./tools/.git/packed-refs: 没有那个文件或目录
grep: ./config/.git/svn: 没有那个文件或目录
grep: ./lichee/linux-3.4/.git/svn: 没有那个文件或目录
grep: ./lichee/brandy/.git/svn: 没有那个文件或目录
grep: ./scripts/.git/svn: 没有那个文件或目录
grep: ./dl/.git/svn: 没有那个文件或目录
grep: ./docs/.git/svn: 没有那个文件或目录
grep: ./prebuilt/.git/svn: 没有那个文件或目录
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib64/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib64/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib64/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib64/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib64/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib64/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib32/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib32/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/arm-openwrt-linux-muslgnueabi/lib/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib64/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib32/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/arm-openwrt-linux/lib/lib: 符号连接的层数过多
grep: ./toolchain/.git/svn: 没有那个文件或目录
rootroot@cm-System-Product-Name:/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/rediron/r16_tinav2.1/softap_ap6212a0_tinav2.1$ make -j12
还会出现的错误:
rm -rf /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-hostapd-common
mkdir -p /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/stamp /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-hostapd-common
install -d -m0755 /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-hostapd-common/lib/netifd
install -m0644 ./files/netifd.sh /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-hostapd-common/lib/netifd/hostapd.sh
SHELL= flock /home/wwt/softap_ap6212a0_tinav2.1/tmp/.root-copy.flock -c 'cp -fpR /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-hostapd-common/. /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/'
rm -rf /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-hostapd-common
touch /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/stamp/.hostapd-common_installed
if [ -f /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/hostapd.supplicant-full.install.clean ]; then rm -f /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/hostapd.supplicant-full.install /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/hostapd.supplicant-full.install.clean; fi; echo "hostapd-common" >> /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/hostapd.supplicant-full.install
make[3]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1/package/network/services/hostapd'
make[2]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1'
make[1]: *** [/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1'
Build failed - please re-run with -j1 to see the real error message
make: *** [world] 错误 1
#### make failed to build some targets (01:19 (mm:ss)) ####
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make -j1
or -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/softap-0.0.1/ipkg-install/usr/include -L/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib -L/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/lib -L/home/wwt/softap_ap6212a0_tinav2.1/prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/usr/lib -L/home/wwt/softap_ap6212a0_tinav2.1/prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib -znow -zrelro -L/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/softap-0.0.1/ipkg-install/usr/lib -lsoftap -lssl
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `ECDSA_sign'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_POINT_copy'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_set_public_key'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_GROUP_free'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_get0_public_key'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_get0_private_key'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_POINT_oct2point'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_up_ref'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_curve_nist2nid'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_generate_key'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_set_private_key'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_GROUP_new_by_curve_name'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_get0_group'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_GROUP_method_of'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_METHOD_get_field_type'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_POINT_point2oct'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_GROUP_get_curve_name'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_get_conv_form'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_free'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_new'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_GROUP_get_degree'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_set_group'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `ECDSA_verify'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EVP_PKEY_set1_EC_KEY'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_POINT_free'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_POINT_new'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `ECDH_compute_key'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_dup'
/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib/libssl.so: undefined reference to `EC_KEY_new_by_curve_name'
collect2: error: ld returned 1 exit status
make[4]: *** [softap_test] Error 1
make[4]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/softap-0.0.1/demo'
make[3]: *** [/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/softap-0.0.1/.built] Error 2
make[3]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1/package/allwinner/softap'
make[2]: *** [package/allwinner/softap/compile] Error 2
make[2]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1'
make[1]: *** [/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1'
make: *** [world] 错误 2
#### make failed to build some targets (17 seconds) ####
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ find . -name libssl.so
./package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/linuxgnueabi/libssl.so
./package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/lgnueabihf/libssl.so
./package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/uclgnueabi/libssl.so
./package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/lgnueabi/libssl.so
./package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/LIBRARY/install/external/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/LIBRARY/install/lib/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/LIBRARY/EXTERNAL/lib32/linuxgnueabi/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/LIBRARY/EXTERNAL/lib32/lgnueabihf/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/LIBRARY/EXTERNAL/lib32/uclgnueabi/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/LIBRARY/EXTERNAL/lib32/lgnueabi/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi/libssl.so
./out/astar-parrot/compile_dir/target/liballwinner/ipkg-install/usr/lib/libssl.so
./out/astar-parrot/compile_dir/target/openssl-1.0.2h/libssl.so
./out/astar-parrot/compile_dir/target/openssl-1.0.2h/ipkg-install/usr/lib/libssl.so
./out/astar-parrot/staging_dir/target/usr/lib/libssl.so
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
根据经验可以知道全志R16平台的tinav2.1系统的SDK里面自带的库:libssl有问题。(直接删除或者改名)
./package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi/libssl.so
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ cd package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi/
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1/package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi$ ll
总用量 5688
drwxrwxr-x 3 rootroot rootroot 4096 11月 2 2016 ./
drwxrwxr-x 7 rootroot rootroot 4096 11月 2 2016 ../
-rwxrwxr-x 1 rootroot rootroot 135064 11月 2 2016 libaw_aacdec.so*
-rwxrwxr-x 1 rootroot rootroot 33844 11月 2 2016 libaw_alacdec.so*
-rwxrwxr-x 1 rootroot rootroot 170664 11月 2 2016 libaw_amrdec.so*
-rwxrwxr-x 1 rootroot rootroot 76748 11月 2 2016 libaw_apedec.so*
-rwxrwxr-x 1 rootroot rootroot 116336 11月 2 2016 libaw_atrcdec.so*
-rwxrwxr-x 1 rootroot rootroot 69756 11月 2 2016 libaw_cookdec.so*
-rwxrwxr-x 1 rootroot rootroot 55152 11月 2 2016 libaw_flacdec.so*
-rwxrwxr-x 1 rootroot rootroot 77500 11月 2 2016 libaw_mp3dec.so*
-rwxrwxr-x 1 rootroot rootroot 130672 11月 2 2016 libaw_oggdec.so*
-rwxrwxr-x 1 rootroot rootroot 8100 11月 2 2016 libaw_plugin.so*
-rwxrwxr-x 1 rootroot rootroot 59284 11月 2 2016 libaw_radec.so*
-rwxrwxr-x 1 rootroot rootroot 68296 11月 2 2016 libaw_siprdec.so*
-rwxrwxr-x 1 rootroot rootroot 70072 11月 2 2016 libaw_wavdec.so*
-rwxrwxr-x 1 rootroot rootroot 87996 11月 2 2016 libcdc_adecoder_debug.so*
-rwxrwxr-x 1 rootroot rootroot 35652 11月 2 2016 libcdc_adecoder.so*
-rwxrwxr-x 1 rootroot rootroot 166808 11月 2 2016 libcdc_aencoder.so*
-rwxrwxr-x 1 rootroot rootroot 1500820 11月 2 2016 libcrypto.so*
drwxrwxr-x 2 rootroot rootroot 4096 11月 2 2016 lib_debug/
-rwxrwxr-x 1 rootroot rootroot 1179664 11月 2 2016 liblive555.so*
-rwxrwxr-x 1 rootroot rootroot 14464 11月 2 2016 libpostprocess.so*
-rwxrwxr-x 1 rootroot rootroot 4672 11月 2 2016 librw_data_api.so*
-rwxrwxr-x 1 rootroot rootroot 341764 11月 2 2016 libssl.so*
-rwxrwxr-x 1 rootroot rootroot 1282208 11月 2 2016 libxml2.so*
-rwxrwxr-x 1 rootroot rootroot 80792 11月 2 2016 libz.so*
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1/package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi$ mv libssl.so libssl.so_bak
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1/package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1/package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1/package/allwinner/liballwinner/LIBRARY/EXTERNAL/lib32/muslgnueabi$ cd -
/home/wwt/softap_ap6212a0_tinav2.1
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make -j1
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ pack -d
6、刷机之后,在串口终端中通过softap_test打开softap出错(查明是全志给的patch的路径的问题!)
[ 16.536954] dhd_prot_ioctl : bus is down. we have nothing to do
[ 16.543761] bcmsdh_oob_intr_unregister: Enter
[ 16.548794] bcmsdh_oob_intr_unregister: irq is not registered
[ 16.555292] dhd_txglom_enable: enable 0
[ 16.559734] dhd_bus_devreset: WLAN OFF DONE
[ 16.564616] wifi_platform_set_power = 0
[ 16.568970] ======== PULL WL_REG_ON LOW! ========
[ 16.574416] [wifi_pm]: wifi power off
[ 16.578581] dhdsdio_probe : the lock is released.
[ 16.584007] dhd_module_init: Exit err=0
[ 16.591551] xt_time: kernel timezone is -0000
[ 17.648758] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing UHS-DDR50 dt B
[ 17.662302] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing UHS-DDR50 dt B
[ 17.678544] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing UHS-DDR50 dt B
[ 17.850121] android_usb: already disabled
[ 17.890241] adb_open
[ 17.892807] adb_bind_config
[ 17.896040] ep_matches, wrn: endpoint already claimed, ep(0xc068721c, 0xd7a980c0, ep1in-bulk)
[ 19.785448] android_usb gadget: high-speed config #1: android
BusyBox v1.24.1 () built-in shell (ash)
_____ _ __ _
|_ _||_| ___ _ _ | | |_| ___ _ _ _ _
| | _ | || | | |__ | || || | ||_'_|
| | | || | || _ | |_____||_||_|_||___||_,_|
|_| |_||_|_||_|_| Tina is Based on OpenWrt!
----------------------------------------------
Tina Linux (Neptune, 57513AA3)
----------------------------------------------
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/# so
softap_down softap_test softap_up sort
root@TinaLinux:/# so
softap_down softap_test softap_up sort
root@TinaLinux:/# cd /bin/
root@TinaLinux:/bin# ll so*
-rwxr-xr-x 1 root root 4095 Sep 14 19:08 softap_down
-rwxr-xr-x 1 root root 4095 Sep 14 19:08 softap_test
-rwxr-xr-x 1 root root 8191 Sep 14 19:08 softap_up
root@TinaLinux:/bin#
root@TinaLinux:/bin#
root@TinaLinux:/bin# softap_test
***************************
Start hostapd test!
***************************
Start to reload firmware!
Enter: wifi_get_fw_path function, fw_type=1,Eneter: wifi_change_fw_path, fwpath = lib/firmware/fw_bcm43438a0_apsta.bin.
Softap fwReload - OkMessage is: OK
Reload firmware finished!
Start to set softap!
Message is: OK
Set softap finished!
[ 75.613141] dhd_open: Enter d720d000
[ 75.617247]
[ 75.617249] Dongle Host Driver, version 1.201.59.3 (r506368)
[ 75.617254] Compiled in drivers/net/wireless/bcmdhd on Sep 14 2017 at 11:02:29
[ 75.633597] wl_android_wifi_on in 1
[ 75.637659] wl_android_wifi_on in 2: g_wifi_on=0
[ 75.642896] wifi_platform_set_power = 1
[ 75.647247] ======== PULL WL_REG_ON HIGH! ========
[ 75.652765] [wifi_pm]: wifi power on
[ 75.960028] sdio_reset_comm():
[ 75.963526] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 75.976104] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 75.987627] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 75.998550] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 76.020809] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 76.028967] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 76.037137] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 76.047072] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 76.165734] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 76.176190] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 76.186815] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 76.197594]
[ 76.197597]
[ 76.197599] dhd_bus_devreset: == WLAN ON ==
[ 76.206013] F1 signature read @0x18000000=0x1540a9a6
[ 76.213284] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x4
[ 76.221292] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 76.228727] dhdsdio_probe_init: set use_rxchain 1 from config.txt
[ 76.235753] dhd_conf_read_config: Ignore config file /lib/firmware/config.txt
[ 76.243796] dhd_conf_set_fw_name_by_chip: firmware_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 76.253368] Final fw_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 76.260041] Final nv_path=/lib/firmware/nvram.txt
[ 76.265358] Final conf_path=/lib/firmware/config.txt
[ 76.271554] dhdsdio_download_code_file: Open firmware file failed lib/firmware/fw_bcm43438a0_apsta.bin
[ 76.282093] _dhdsdio_download_firmware: dongle image file download failed
[ 76.289838] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 76.295753] dhd_prot_ioctl : bus is down. we have nothing to do
[ 76.302529] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 76.308454] wifi_platform_set_power = 0
[ 76.312912] ======== PULL WL_REG_ON LOW! ========
[ 76.318233] [wifi_pm]: wifi power off
[ 76.322408] wl_android_wifi_on: Failed
[ 76.326758] dhd_open : wl_android_wifi_on failed (-35)
[ 76.332573] dhd_stop: Enter d720d000
[ 76.336637] wl_android_wifi_off in 1
[ 76.340800] wl_android_wifi_off in 2: g_wifi_on=0
[ 76.346115] wl_android_wifi_off out
[ 76.350093] dhd_stop: Exit
[ 76.353290] dhd_open: Exit ret=-1
ifconfig: SIOCSIFFLAGS: Operation not permitted
Start to start softap!
Configuration file: /etc/wifi/ho[ 80.454347] dhd_open: Enter d720d000
stapd.conf
[ 80.458611]
[ 80.458613] Dongle Host Driver, version 1.201.59.3 (r506368)
[ 80.458618] Compiled in drivers/net/wireless/bcmdhd on Sep 14 2017 at 11:02:29
[ 80.476003] wl_android_wifi_on in 1
[ 80.479971] wl_android_wifi_on in 2: g_wifi_on=0
[ 80.485214] wifi_platform_set_power = 1
[ 80.489657] ======== PULL WL_REG_ON HIGH! ========
[ 80.495082] [wifi_pm]: wifi power on
SoftAP started successfullyMessage is: OK
Start softap finished!
[ 80.800038] sdio_reset_comm():
[ 80.803641] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 80.816148] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 80.827683] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 80.838604] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 80.860859] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 80.869016] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 80.877280] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 80.887030] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 81.005831] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.016222] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.026711] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.037496]
[ 81.037499]
[ 81.037502] dhd_bus_devreset: == WLAN ON ==
[ 81.045875] F1 signature read @0x18000000=0x1540a9a6
[ 81.053157] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x4
[ 81.061161] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 81.068590] dhdsdio_probe_init: set use_rxchain 1 from config.txt
[ 81.075623] dhd_conf_read_config: Ignore config file /lib/firmware/config.txt
[ 81.083760] dhd_conf_set_fw_name_by_chip: firmware_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 81.093240] Final fw_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 81.099901] Final nv_path=/lib/firmware/nvram.txt
[ 81.105228] Final conf_path=/lib/firmware/config.txt
[ 81.111473] dhdsdio_download_code_file: Open firmware file failed lib/firmware/fw_bcm43438a0_apsta.bin
[ 81.122017] _dhdsdio_download_firmware: dongle image file download failed
[ 81.129672] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 81.135676] dhd_prot_ioctl : bus is down. we have nothing to do
[ 81.142356] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 81.148373] wifi_platform_set_power = 0
[ 81.152740] ======== PULL WL_REG_ON LOW! ========
[ 81.158059] [wifi_pm]: wifi power off
[ 81.162321] wl_android_wifi_on: Failed
[ 81.166579] dhd_open : wl_android_wifi_on failed (-35)
[ 81.172394] dhd_stop: Enter d720d000
[ 81.176548] wl_android_wifi_off in 1
[ 81.180623] wl_android_wifi_off in 2: g_wifi_on=0
[ 81.185942] wl_android_wifi_off out
[ 81.189908] dhd_stop: Exit
[ 81.193026] dhd_open: Exit ret=-1
Could not set interface wlan0 fl[ 81.196943] dhd_inetaddr_notifier_call: bus not ready, exit
ags (UP): Operation not permitte[ 81.206128] dhd_open: Enter d720d000
d
nl80211: Could not set interf[ 81.212702]
ace 'wlan0' UP
nl80211: deinit [ 81.212706] Dongle Host Driver, version 1.201.59.3 (r506368)
ifname=wlan0 disabled_11b_rates=[ 81.212710] Compiled in drivers/net/wireless/bcmdhd on Sep 14 2017 at 11:02:29
0
[ 81.236958] wl_android_wifi_on in 1
[ 81.241176] wl_android_wifi_on in 2: g_wifi_on=0
[ 81.246400] wifi_platform_set_power = 1
[ 81.250760] ======== PULL WL_REG_ON HIGH! ========
[ 81.256266] [wifi_pm]: wifi power on
[ 81.570028] sdio_reset_comm():
[ 81.573521] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.586092] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.597610] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 81.608512] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 81.630743] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 81.638905] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 81.647165] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 81.656911] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 81.775658] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.785943] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.796508] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 81.807280]
[ 81.807283]
[ 81.807285] dhd_bus_devreset: == WLAN ON ==
[ 81.815693] F1 signature read @0x18000000=0x1540a9a6
[ 81.822936] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x4
[ 81.830931] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 81.838356] dhdsdio_probe_init: set use_rxchain 1 from config.txt
[ 81.845386] dhd_conf_read_config: Ignore config file /lib/firmware/config.txt
[ 81.853427] dhd_conf_set_fw_name_by_chip: firmware_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 81.862999] Final fw_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 81.869660] Final nv_path=/lib/firmware/nvram.txt
[ 81.874988] Final conf_path=/lib/firmware/config.txt
[ 81.881223] dhdsdio_download_code_file: Open firmware file failed lib/firmware/fw_bcm43438a0_apsta.bin
[ 81.891670] _dhdsdio_download_firmware: dongle image file download failed
[ 81.899411] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 81.905327] dhd_prot_ioctl : bus is down. we have nothing to do
[ 81.912108] dhd_net_bus_devreset: dhd_bus_devreset: -35
[ 81.918034] wifi_platform_set_power = 0
[ 81.922493] ======== PULL WL_REG_ON LOW! ========
[ 81.927810] [wifi_pm]: wifi power off
[ 81.932073] wl_android_wifi_on: Failed
[ 81.936331] dhd_open : wl_android_wifi_on failed (-35)
[ 81.942144] dhd_stop: Enter d720d000
[ 81.946298] wl_android_wifi_off in 1
[ 81.950371] wl_android_wifi_off in 2: g_wifi_on=0
[ 81.955686] wl_android_wifi_off out
[ 81.959742] dhd_stop: Exit
[ 81.962860] dhd_open: Exit ret=-1
ifconfig: SIOCSIFFLAGS: Operation not permitted
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn't started
***************************
Hostapd test successed!
***************************
root@TinaLinux:/bin#
因为softap_test的绝对路径是:/bin/softap_test。那么lib/firmware/fw_bcm43438a0_apsta.bin的路径就应该是:/bin/lib/firmware/fw_bcm43438a0_apsta.bin。
将目录/lib/firmware/fw_bcm43438a0_apsta.bin中的AP6212的库文件全部拷贝到:/bin/lib/firmware/fw_bcm43438a0_apsta.bin就可以通过softap_test正常打开softap了!
root@TinaLinux:/bin#
root@TinaLinux:/bin# mkdir -p lib/firmware/
root@TinaLinux:/bin# cd lib/firmware/
root@TinaLinux:/bin/lib/firmware# ll
drwxr-xr-x 2 root root 1024 Sep 16 03:16 .
drwxr-xr-x 3 root root 1024 Sep 16 03:16 ..
root@TinaLinux:/bin/lib/firmware# cd /lib/firmware/
root@TinaLinux:/lib/firmware# ll
drwxr-xr-x 2 root root 139 Sep 14 19:08 .
drwxr-xr-x 10 root root 681 Sep 14 19:02 ..
-rw-r--r-- 1 root root 26020 Sep 14 17:31 bcm43438a0.hcd
-rw-r--r-- 1 root root 378595 Sep 14 17:31 fw_bcm43438a0.bin
-rw-r--r-- 1 root root 309352 Sep 14 17:31 fw_bcm43438a0_apsta.bin
-rw-r--r-- 1 root root 336323 Sep 14 17:31 fw_bcm43438a0_p2p.bin
-rw-r--r-- 1 root root 902 Sep 14 17:31 nvram.txt
root@TinaLinux:/lib/firmware# cp * /bin/lib/firmware/
root@TinaLinux:/lib/firmware# cd /bin/lib/firmware/
root@TinaLinux:/bin/lib/firmware# ll
drwxr-xr-x 2 root root 1024 Sep 16 03:17 .
drwxr-xr-x 3 root root 1024 Sep 16 03:16 ..
-rw-r--r-- 1 root root 26020 Sep 16 03:17 bcm43438a0.hcd
-rw-r--r-- 1 root root 378595 Sep 16 03:17 fw_bcm43438a0.bin
-rw-r--r-- 1 root root 309352 Sep 16 03:17 fw_bcm43438a0_apsta.bin
-rw-r--r-- 1 root root 336323 Sep 16 03:17 fw_bcm43438a0_p2p.bin
-rw-r--r-- 1 root root 902 Sep 16 03:17 nvram.txt
root@TinaLinux:/bin/lib/firmware# cd /bin/
root@TinaLinux:/bin#
root@TinaLinux:/bin#
root@TinaLinux:/bin# softap_test
***************************
Start hostapd test!
***************************
Start to reload firmware!
Enter: wifi_get_fw_path function, fw_type=1,Eneter: wifi_change_fw_path, fwpath = lib/firmware/fw_bcm43438a0_apsta.bin.
Softap fwReload - OkMessage is: OK
Reload firmware finished!
Start to set softap!
Message is: OK
Set softap finished!
[ 190.043911] dhd_open: Enter d720d000
[ 190.048003]
[ 190.048006] Dongle Host Driver, version 1.201.59.3 (r506368)
[ 190.048010] Compiled in drivers/net/wireless/bcmdhd on Sep 14 2017 at 11:02:29
[ 190.064444] wl_android_wifi_on in 1
[ 190.068411] wl_android_wifi_on in 2: g_wifi_on=0
[ 190.073643] wifi_platform_set_power = 1
[ 190.078087] ======== PULL WL_REG_ON HIGH! ========
[ 190.083512] [wifi_pm]: wifi power on
[ 190.390029] sdio_reset_comm():
[ 190.393528] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 190.406118] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 190.417559] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 190.428484] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing LEGACY(SDR12) dt B
[ 190.450739] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 190.458990] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 190.467164] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 190.477004] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 190.595621] [mmc]: sdc1 set ios: clk 150000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 190.606060] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 190.616684] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 190.627433]
[ 190.627436]
[ 190.627439] dhd_bus_devreset: == WLAN ON ==
[ 190.635854] F1 signature read @0x18000000=0x1540a9a6
[ 190.643122] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x4
[ 190.651026] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[ 190.658542] dhdsdio_probe_init: set use_rxchain 1 from config.txt
[ 190.665481] dhd_conf_read_config: Ignore config file /lib/firmware/config.txt
[ 190.673620] dhd_conf_set_fw_name_by_chip: firmware_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 190.683192] Final fw_path=lib/firmware/fw_bcm43438a0_apsta.bin
[ 190.689763] Final nv_path=/lib/firmware/nvram.txt
[ 190.695090] Final conf_path=/lib/firmware/config.txt
[ 190.733434] NVRAM version: AP6212_NVRAM_V1.0_20140603
[ 190.742372] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 190.804325] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 190.811066] bcmsdh_oob_intr_register: Enter
[ 190.815806] bcmsdh_oob_intr_register: HW_OOB enabled
[ 190.821429] bcmsdh_oob_intr_register OOB irq=7 flags=414
[ 190.827623] bcmsdh_oob_intr_register: enable_irq_wake
[ 190.833345] bcmsdh_oob_intr_register: enable_irq_wake failed with -6
[ 190.841211] dhd_conf_set_band: Set band 0
[ 190.848224] Firmware up: op_mode=0x0002, MAC=02:1a:11:f9:3d:89
[ 190.854908] dhd_conf_set_country: Set country CN, revision 0
[ 190.924854] Country code: CN (CN/0)
[ 190.929416] dhd_conf_set_roam: Set roam_off 1
[ 190.940302] dhd_arp_offload_enable: failed to enabe ARP offload to 0, retcode = -23
[ 190.949649] dhd_arp_offload_set: failed to set ARP offload mode to 0x0, retcode = -23
[ 190.959035] Firmware version = wl0: Jun 6 2014 14:57:15 version 7.10.226.49 (r) FWID 01-cf4a5122
[ 190.969088] Driver: 1.201.59.3 (r506368)
[ 190.969093] Firmware: wl0: Jun 6 2014 14:57:15 version 7.10.226.49 (r) FWID 01-cf4a5122
[ 190.983566] dhd_txglom_enable: enable 1
[ 190.987919] dhd_conf_set_disable_proptx: set disable_proptx 0
[ 190.996601] dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
[ 191.004833] dhd_wlfc_init(): wlfc_mode=0x0, ret=-23
[ 191.011090] wl_android_wifi_on: Success
[ 191.085709] dhd_open: Exit ret=0
Start to start softap!
Configuration file: /etc/wifi/hostapd.conf
nl80211: Could not re-add multic[ 195.098274] netdev_ifidx(5), chan_type(1) target channel(6)
ast membership for vendor events: -2 (No such file or directory)
[ 195.159332] Disconnect STA : ff:ff:ff:ff:ff:ff scb_val.val 3
Using interface wlan0 with hwaddr 02:1a:11:f9:3d:89 and ssid "Smart-AW-HOSTAPD"
VLAN: vlan_set_name_type: SET_VLAN_NAME_TYPE_CMD name_type=2 failed: No error information
SoftAP started successfullyMessage is: OK
Start softap finished!
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
***************************
Hostapd test successed!
***************************
root@TinaLinux:/bin#
root@TinaLinux:/bin#
7、查找/修改路径lib/firmware/fw_bcm43438a0_apsta.bin的位置,解决问题!
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ grep "lib/firmware/fw_bcm43438a0_apsta.bin" . -R
grep: ./target/.git/svn: 没有那个文件或目录
grep: ./dl/.git/svn: 没有那个文件或目录
grep: ./scripts/.git/svn: 没有那个文件或目录
grep: ./toolchain/.git/svn: 没有那个文件或目录
grep: ./lichee/brandy/.git/svn: 没有那个文件或目录
grep: ./lichee/linux-3.4/.git/svn: 没有那个文件或目录
grep: ./.repo/manifests/.git/svn: 没有那个文件或目录
grep: ./tools/.git/packed-refs: 没有那个文件或目录
grep: ./tools/.git/svn: 没有那个文件或目录
./package/allwinner/softap/src/include/wifi.h:#define WIFI_DRIVER_FW_PATH_AP "lib/firmware/fw_bcm43438a0_apsta.bin"
grep: ./package/.git/svn: 没有那个文件或目录
grep: ./config/.git/svn: 没有那个文件或目录
grep: ./prebuilt/.git/svn: 没有那个文件或目录
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/arm-openwrt-linux-muslgnueabi/lib/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib64/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/arm-openwrt-linux/lib/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib/lib: 符号连接的层数过多
grep: ./prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib32/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib64/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib64/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib64/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib64/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux-musl/lib/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib64/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib64/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/aarch64-openwrt-linux/lib/lib: 符号连接的层数过多
grep: 警告: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib32/lib64: 嵌套目录循环
grep: ./prebuilt/gcc/linux-x86/aarch64/toolchain-sunxi/toolchain/lib32/lib: 符号连接的层数过多
grep: ./docs/.git/svn: 没有那个文件或目录
grep: ./build/.git/svn: 没有那个文件或目录
grep: 警告: ./out/astar-parrot/compile_dir/target/alsa-lib-1.1.0/include/alsa: 嵌套目录循环
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/ccX0DZGY.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/arjGlms3: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/.xrdp/xrdp-Wpph9R: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/.xrdp/xrdp-sesman-j8EDdT: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/ccZVA9SY.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/ccX0uKZX.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/jack-sam: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/cc61XiF1.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/config-err-1dsmuu: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/.X11-unix/X0: 没有那个设备或地址
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/ccsCfxm0.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/rootfs/var/.ICE-unix/1629: 没有那个设备或地址
grep: ./out/astar-parrot/compile_dir/target/rootfs/etc/fstab: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/rootfs/etc/resolv.conf: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/rootfs/etc/localtime: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/rootfs/etc/TZ: 没有那个文件或目录
匹配到二进制文件 ./out/astar-parrot/compile_dir/target/rootfs/lib/libsoftap.so
./out/astar-parrot/compile_dir/target/rootfs/usr/lib/opkg/info/ap6212-firmware.list:/lib/firmware/fw_bcm43438a0_apsta.bin
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/iptables-1.4.21/ipkg-install/usr/bin/iptables-xml: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/.git/svn: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/ccYUdHeN.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/ccwnGT98.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/arjGlms3: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/.xrdp/xrdp-Wpph9R: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/.xrdp/xrdp-sesman-j8EDdT: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/jack-sam: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/config-err-1dsmuu: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/ccKPHt0a.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/.X11-unix/X0: 没有那个设备或地址
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/ccTjmDl9.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/cchl8Q5Z.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/.ICE-unix/1629: 没有那个设备或地址
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/cc8cLhMk.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/var/cchrl5HM.s: 权限不够
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/etc/fstab: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/etc/resolv.conf: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/etc/localtime: 没有那个文件或目录
grep: ./out/astar-parrot/compile_dir/target/linux-astar-parrot/base-files/ipkg-sunxi/base-files/etc/TZ: 没有那个文件或目录
匹配到二进制文件 ./out/astar-parrot/compile_dir/target/softap-0.0.1/src/libsoftap.so
./out/astar-parrot/compile_dir/target/softap-0.0.1/src/include/wifi.h:#define WIFI_DRIVER_FW_PATH_AP "lib/firmware/fw_bcm43438a0_apsta.bin"
匹配到二进制文件 ./out/astar-parrot/compile_dir/target/softap-0.0.1/ipkg-sunxi/softap/lib/libsoftap.so
匹配到二进制文件 ./out/astar-parrot/compile_dir/target/softap-0.0.1/ipkg-install/usr/lib/libsoftap.so
grep: ./out/astar-parrot/compile_dir/host/u-boot-2014.10/arch/sandbox/include/asm/arch: 没有那个文件或目录
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/.xrdp/xrdp-Wpph9R: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/.xrdp/xrdp-sesman-j8EDdT: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/jack-sam: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/ccOJeBXg.s: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/ccx3i6ni.s: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/config-err-1dsmuu: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/ccyysPO4.s: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/ccvMBZVn.s: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/.X11-unix/X0: 没有那个设备或地址
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/cc2RTnRj.s: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/arXGbM2T: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/.ICE-unix/1629: 没有那个设备或地址
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/ccngUTgH.s: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/var/ccbLfznO.s: 权限不够
grep: ./out/astar-parrot/staging_dir/target/rootfs/etc/fstab: 没有那个文件或目录
grep: ./out/astar-parrot/staging_dir/target/rootfs/etc/resolv.conf: 没有那个文件或目录
grep: ./out/astar-parrot/staging_dir/target/rootfs/etc/localtime: 没有那个文件或目录
grep: ./out/astar-parrot/staging_dir/target/rootfs/etc/TZ: 没有那个文件或目录
匹配到二进制文件 ./out/astar-parrot/staging_dir/target/rootfs/lib/libsoftap.so
匹配到二进制文件 ./out/astar-parrot/staging_dir/target/lib/libsoftap.so
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
W:\softap_ap6212a0_tinav2.1\package\allwinner\softap\src\include\wifi.h
#ifndef WIFI_DRIVER_FW_PATH_AP
#define WIFI_DRIVER_FW_PATH_AP "lib/firmware/fw_bcm43438a0_apsta.bin"
#endif
#ifndef WIFI_DRIVER_FW_PATH_P2P
#define WIFI_DRIVER_FW_PATH_P2P "lib/firmware/fw_bcm43438a0_p2p.bin"
#endif
修改为:
#ifndef WIFI_DRIVER_FW_PATH_AP
//#define WIFI_DRIVER_FW_PATH_AP "lib/firmware/fw_bcm43438a0_apsta.bin"
#define WIFI_DRIVER_FW_PATH_AP "/lib/firmware/fw_bcm43438a0_apsta.bin"
#endif
#ifndef WIFI_DRIVER_FW_PATH_P2P
//#define WIFI_DRIVER_FW_PATH_P2P "lib/firmware/fw_bcm43438a0_p2p.bin"
#define WIFI_DRIVER_FW_PATH_P2P "/lib/firmware/fw_bcm43438a0_p2p.bin"
#endif
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make -j12
ONTROL/postinst-pkg; echo "insert_modules $modules" >> /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kmod-net-ap6212/CONTROL/postinst-pkg; chmod 0755 /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kmod-net-ap6212/CONTROL/postinst-pkg; fi
SHELL= flock /home/wwt/softap_ap6212a0_tinav2.1/tmp/.root-copy.flock -c 'cp -fpR /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kmod-net-ap6212/. /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/'
rm -rf /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/tmp-kmod-net-ap6212
touch /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/rootfs/stamp/.kmod-net-ap6212_installed
if [ -f /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/linux.default.install.clean ]; then rm -f /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/linux.default.install /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/linux.default.install.clean; fi; echo "kmod-net-ap6212" >> /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/pkginfo/linux.default.install
make[3]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1/package/kernel/linux'
make[2]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1'
make[1]: *** [/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/wwt/softap_ap6212a0_tinav2.1'
Build failed - please re-run with -j1 to see the real error message
make: *** [world] 错误 1
#### make failed to build some targets (8 seconds) ####
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/softap_ap6212a0_tinav2.1$ make -j1
#softap_test
make -C /home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/softap-0.0.1/demo/ ARCH="arm" AR="arm-openwrt-linux-muslgnueabi-ar" CC="arm-openwrt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=neon -fno-caller-saves -fno-plt -mfloat-abi=hard -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LDFLAGS="-L/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/usr/lib -L/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/staging_dir/target/lib -L/home/wwt/softap_ap6212a0_tinav2.1/prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/usr/lib -L/home/wwt/softap_ap6212a0_tinav2.1/prebuilt/gcc/linux-x86/arm/toolchain-sunxi/toolchain/lib -znow -zrelro" CONFIG_PREFIX="/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/softap-0.0.1/ipkg-install" all
make[4]: Entering directory `/home/wwt/softap_ap6212a0_tinav2.1/out/astar-parrot/compile_dir/target/softap-0.0.1/demo'
arm-openwrt-linux-muslgnueabi-gcc -o softap_test softap_test.c -Os -pipe -march=armv