在 makefile 中引用其他 makefile
确认 Linux 内核支持 wifi 型号列表
Linux 内核版本为 4.9.22,需要在此添加型号为 Bus 002 Device 040: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter 支持
Linux 内核配置项解析
Linux 支持 NTFS 文件系统
Linux 4.9 内核不支持 ntfs,需要移植 ntfs-3g 来支持相关硬盘挂载
信号 SIGPIPE 忽略的原因
系统遇到 SIGPIPE 相关问题导致死机,记录原因及解决方法
嵌入式 Linux 下的 ldd
pc 环境下可以很方便使用 ldd 来查看动态库依赖,嵌入式平台下可以使用 readelf 来完成相同的功能
嵌入式 Linux 支持 PPPoE
配置 Linux 内核 已支持 PPPoE
嵌入式 Linux 系统支持 GSM/3G
编译 Linux Kernel 支持 GSM/3G/4G
静态编译使用 getaddrinfo 出现警告及动态静态混合使用
使用 -static 编译出现以下警告
libcurl.a(netrc.c.o): In function `Curl_parsenetrc':
netrc.c:(.text.Curl_parsenetrc+0x23e): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libplayer.a(stream_wfd.c.o): In function `wfd_stream_open':
stream_wfd.c:(.text.wfd_stream_open+0x5fe): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linkingglibc uses libnss to support a number of different providers for address resolution services. Unfortunately, you cannot statically link libnss, as exactly what providers it loads depends on the local system’s configuration.
相关功能不能正常工作,需要使用 动态编译 解决此问题或者更换编译工具链为 uclibc、 musl-gcc
嵌入式 ARM 板子 Busybox 域名解析失败
嵌入式 ARM 平台 busybox 可以 ping ip,但是不能 ping domain name
本篇主要涉及
- gcc v4.9
- libnss 动态链接库
- busybox 动态与静态编译
- busybox 动态编译下使用域名解析
- busybox 静态编译下使用域名解析
Linux 内核配置支持 MT7601U
内核版本 4.9.22 支持 MT7601U,设备发现之后不能扫描 AP,需要 cfg80211 wireless extensions compatibility 支持
内核描述如下
Enable this option if you need old userspace for wireless extensions with cfg80211-based drivers.
无线管理工具
Busybox udhcpc 不能正常工作
udhcpc client 不能正常工作,需要内核打开 packet socket 支持
Linux Ioctl Number 使用不规范导致的问题
Linux Modules 编写不规范导致出现奇怪现象,部分 ioctl 不能正常调用
编译 Linux 模块出错
开发 Linux Modules 时编译出错,某些头文件找不到