openwrt (一)入手

简介:
前期通过该平台熟悉openwrt的开发过程,仅记录一些学习笔记。

代码下载:

ssh-keygen生成key后提交marverll,获取代码下载权限。
下载代码部分针对marvell的openwrt平台记录,开源或者每家硬件平台的代码下载方式略有不同

1、修改.ssh/config

Host x.x.x.x
HostName xxxx
Port 443
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_marvell
User xxx

2、下载代码

$ ./ugit.sh clone
$ cd openwrt
$ ./ugit.sh pull

3、编译

$sudo apt-get install build-essential bison flex zlib1g-dev libncurses5-dev subversion \
      quilt intltool ruby fastjar zip unzip gawk git-core
$./scripts/feeds update -a
$./scripts/feeds  install -a
$make defconfig_pxa1826
$make -j24 V=s

4、clean

清理bin目录
$make clean
清理编译期间生成的目录
$make dirclean
清理编译期间生成的目录,images除外
$make preclean
清理所有非原始代码的部分,包括down,feed,config等
$make distclean

5、模块编译

$ make package/obm-mmp/clean V=s
$ make package/obm-mmp/compile V=s
$ make package/obm-mmp/install V=s
or
$ make package/obm-mmp/{clean,compile,install} V=s
-----------------------
$ make package/feeds/packages/nginx/{clean, compile, install} V=s
$ make tools/automake/compile
$ make toolchain/{clean, compile, install}

重编kernel:
$ make target/linux/compile
$ make target/linux/install
or
$ make target/linux/{clean, compile, install}
  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值