CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 11396|回复: 7

cb4 debian-server 配置无线ap开启热点

[复制链接]
发表于 2015-3-3 20:56:49 | 显示全部楼层 |阅读模式
本帖最后由 sunbeyond 于 2015-3-4 10:20 编辑

       cb4-debian-server v0.1 默认内核配置热点功能没有开启,需使用附件中kernel_defconfig编译内核驱动来开启热点。详细请参考下面:   (为了方便:此处以 $ 表示在PC系统端, # 表示在板子系统端)
1 下载附件 ap.tar.gz ,解压
$sudo tar -zxpf ap.tar.gz


2 编译内核和驱动
$ git clone https://github.com/cubieboard/CC-A80-kernel-source
拷贝附件kernel_defconfig到内核
$ cp kernel_defconfig  CC-A80-kernel-source/.config
$ cd CC-A80-kernel-source
编译内核驱动
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
安装驱动模块到output
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-  INSTALL_MOD_PATH=output modules_install

3 拷贝内核uImage 和 驱动模块.到板子系统上(通过网络,u盘,读卡器等)
CC-A80-kernel-source/arch/arm/boot/uImage      
CC-A80-kernel-source/out/lib/modules/3.4.39   

4 假设此处为card启动系统
CC-A80-kernel-source/arch/arm/boot/uImage      ---》  拷贝板子系统第一分区
CC-A80-kernel-source/out/lib/modules/3.4.39     ---》  拷贝板子系统 /lib/modules/目录下
# mount /dev/mmcblk1p1 /mnt/
# cp uImage /mnt
# sync
# umount /mnt
# cp -rf 3.4.39 /lib/modules
#sync
重启系统

3 参照附件: 安装hostapd配置hostpad开启热点.pdf

本帖子中包含更多资源

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

x
回复

使用道具 举报

发表于 2015-3-3 22:30:21 | 显示全部楼层
十分感谢,版主还专门开了一贴
回复 支持 反对

使用道具 举报

发表于 2015-3-4 10:08:05 | 显示全部楼层
不错的教程
回复 支持 反对

使用道具 举报

发表于 2015-3-14 17:09:48 | 显示全部楼层
不错,重新编译中
回复 支持 反对

使用道具 举报

发表于 2015-9-10 21:36:02 | 显示全部楼层
版主,我是lubuntu desktop1.0。按照这个方法不行呢。编译貌似省了,主要是按照pdf里操作不行。
sudo hostapd /etc/hostapd/hostapd.conf -d
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=0 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
Could not read interface wlan0  flags: No such device
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=0 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
Could not read interface wlan0  flags: No such device
nl80211: Set mode ifindex 0 iftype 2 (STATION)
nl80211: Failed to set interface 0 to mode 2: -19 (No such device)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x693e8)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x693e8)
hostapd_bss_deinit: deinit bss wlan0
hostapd_cleanup(hapd=0x69f18 (wlan0 ))
hostapd_free_hapd_data: Interface wlan0  wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x693e8)
hostapd_interface_free: free hapd 0x69f18
hostapd_cleanup_iface(0x693e8)
hostapd_cleanup_iface_partial(0x693e8)
hostapd_cleanup_iface: free iface=0x693e8
回复 支持 反对

使用道具 举报

发表于 2015-9-10 21:36:43 | 显示全部楼层
iwconfig wlan0
wlan0     IEEE 802.11  Access Point: Not-Associated   
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  invalid crypt:0  invalid misc:0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-9-11 09:24:38 | 显示全部楼层
nabice 发表于 2015-9-10 21:36
iwconfig wlan0
wlan0     IEEE 802.11  Access Point: Not-Associated   
          Link Quality:0  Sign ...

lubuntu 的hostapd 可以直接通过apt-get install的。 试试看apt-get 的。 我是验证过该功能在lubunu 1.0
回复 支持 反对

使用道具 举报

发表于 2015-9-11 18:58:09 | 显示全部楼层
sunbeyond 发表于 2015-9-11 09:24
lubuntu 的hostapd 可以直接通过apt-get install的。 试试看apt-get 的。 我是验证过该功能在lubunu 1.0 ...

谢谢。 我看看
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-3-28 22:48 , Processed in 0.023501 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部