penwrt Diveinedu$ ./scripts/feedsupdateHackintosh
penwrt Diveinedu$ ./scripts/feeds install
-a上述命令成功执行完成后,我们就已经准备好了OpenWrt的源码并部署了所有的软件包以供我们后面的编译配置步骤去选择了.
penwrt Diveinedu$ make
menuconfig这条命令会在终端显示一个基于ncurses的文本图形菜单,我们在菜单里作如下选择:
penwrt Diveinedu$ make V=s由于是第一次编译,这一条命令的时间足够让我们睡一个午觉,如果不想睡觉,那就喝几杯咖啡吧.
penwrt Diveinedu$ ls -lh bin/ramips/total 62344-rw-r--r-- 1 Diveinedu staff
812B 9 8 20:45 md5sums-rw-r--r-- 1 Diveinedu staff
3.5M 9 8 20:45 openwrt-ramips-mt7620n-mlw221-squashfs-sysupgrade.bin-rw-r--r-- 1 Diveinedu staff
2.5M 9 8 20:45 openwrt-ramips-mt7620n-root.squashfs-rw-r--r-- 1 Diveinedu staff
3.5M 9 820:45 openwrt-ramips-mt7620n-rt-n14u-squashfs-sysupgrade.bin-rw-r--r-- 1 Diveinedu staff
1.0M 9 8 20:45 openwrt-ramips-mt7620n-uImage.bin-rwxr-xr-x 1 Diveinedu staff
2.9M 9 8 20:45 openwrt-ramips-mt7620n-vmlinux.bin-rwxr-xr-x 1 Diveinedu staff
3.0M 9 8 20:45 openwrt-ramips-mt7620n-vmlinux.elf-rw-r--r-- 1 Diveinedu staff
3.5M 9 820:45 openwrt-ramips-mt7620n-wmr-300-squashfs-sysupgrade.bin-rw-r--r-- 1 Diveinedu staff
3.5M 9 8 20:45 openwrt-ramips-mt7620n-wr8305rt-squashfs-sysupgrade.bin-rw-r--r-- 1 Diveinedu staff
3.5M 9 8 20:45 openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin-rw-r--r-- 1 Diveinedu staff
3.5M 9 8 20:45 openwrt-ramips-mt7620n-zbt-wa05-squashfs-sysupgrade.bindrwxr-xr-x 4 Diveinedu staff
136B 9 8 20:20 packagesHackintosh
penwrt Diveinedu$选择我们板子对应的固件,比如我们罗老湿的 WRTNode ,那就选择bin/ramips/openwrt-ramips-mt7620n-wrtnode-squashfs-sysupgrade.bin,
然后scp上传到路由器里或者通过TTL+TFTP的方式进行刷机测试.
penwrt Diveinedu$ brew
install minicom安装完成之后运行minicom,设置正确的设备文件和正确的波特率:
penwrt Diveinedu$ minicom
-s公司笔记本使用USB转串口的适配器在MacOSX里的设备文件的话,一般是/dev/tty.USBxxx这样的文件,像我现在家里所使用的台式机黑苹果的画,主板上的串口对应的设备文件是/dev/tty.serial1.具体看芯片的驱动是怎么样命名.原文地址:http://blog.csdn.net/diveinedu/article/details/44173393