我已经从git下载了OpenWRT源代码并构建了它。我在package/helloworld目录中创建了一个带有所需Makefile的简单helloworld包,并构建了它。但它似乎什么也没做。以下是日志:
sonal@sonal-ThinkPad:~/openwrt$ make V=99 package/helloworld/compile
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!
make[1]: Entering directory
我无法使用openwrt工具链构建静态二进制文件。
# staging_dir/toolchain-i386_i686_gcc-4.8-linaro_glibc-2.21/bin/i486-openwrt-linux-gnu-gcc -o /tmp/main /tmp/main.c -static
/tmp/main.c: In function 'main':
/tmp/main.c:3:2: warning: incompatible implicit declaration of built-in function 'printf' [enabled by
使用UCI,我们可以使用以下命令检索整个列表:
$ uci get system.ntp.server
这将读取以下类型的配置:
config system
option hostname 'OpenWrt'
option timezone 'UTC'
config timeserver 'ntp'
list server '0.openwrt.pool.ntp.org'
list server '1.openwrt.pool.ntp.org'
list server
我试着创建一个包,比如luci-app-adblock,但是卡在里面了。
所以我做了:
cd ~/openwrt
./scripts/feeds update -a
./scripts/feeds install -ap luci
make oldconfig
make -j$1 tools/install
make -j$1 toolchain/install
make V=s ~/openwrt/package/feeds/luci/luci-app-adblock/compile
最后一个命令给我错误:
make[1]: Entering directory '/h
我在使用"make V=99“编译Openwrt SDK时得到了这样的结果:
Making all in examples
make[6]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/examples'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt
我成功地在OpenWRT上安装了OpenWRT,没有任何错误--参见下面,但是我在登录时遇到了问题--它告诉我访问被拒绝了。但是根据我在互联网上发现的一切,默认的用户名是root,没有密码,所以我必须是一个特例。
请看下面:
root@OpenWrt:~# mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql
在运行opkg install bmon之后,我得到了以下错误:
root@OpenWrt:~# opkg install bmon
Installing bmon (4.0-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/bmon_4.0-1_ar71xx.ipk.
Multiple packages (libpthread and libpthread) providing same name marked HOLD or PREF
我试图从源代码交叉编译libnetfilter_queue-1.0.2,构建环境变量指向正确的跨工具链和依赖库路径。
不过,在./configure上仍然会出现以下错误
checking for LIBNFNETLINK... no
configure: error: Package requirements (libnfnetlink >= 0.0.41) were not met:
No package 'libnfnetlink' found
Consider adjusting the PKG_CONFIG_PATH environment variable