找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4268|回复: 3

新3小白通过Win10 WSL编译L大的OpenWrt之路

[复制链接]
本帖最后由 fhn100 于 2019-11-13 17:28 编辑

1.通过git下载源代码到D盘lede目录,国内真心出奇的慢,需要特殊处理,具体可参考以下通过乳酸菌饮料设置git代理的帖子
https://upupming.site/2019/05/09/git-ssh-socks-proxy/

2.WSL中执行以下命令打开lede目录
  1. cd /mnt/d/lede
复制代码

3.按照L大github中的文档执行命令./scripts/feeds update -a 此处遇到一个错误,具体错误如下
  1. Build dependency: OpenWrt can only be built on a case-sensitive filesystem

  2. /mnt/e/Downloads/OpenWrt/lede/include/prereq.mk:12: recipe for target 'prereq' failed
  3. Prerequisite check failed. Use FORCE=1 to override.
  4. /mnt/e/Downloads/OpenWrt/lede/include/toplevel.mk:167: recipe for target 'staging_dir/host/.prereq-build' faile
  5. d
  6. make: *** [staging_dir/host/.prereq-build] Error 1
  7. Collecting package info: doneing...ing/visrouterd2criptsy-openwrt
  8. Collecting target info: doneing...
复制代码
原因是因为编译OpenWrt需要文件名称大小写敏感,但是Windows中是大小写不敏感的,需要通过win+x打开管理员powershell到D盘然后执行以下命令开启lede(从git下载下来的源代码我放在这个目录)大小写敏感
  1. fsutil.exe file setCaseSensitiveInfo lede enable
复制代码



4.执行L大文档中的以下命令
  1. ./scripts/feeds install -a
复制代码


5.执行L大文档中的以下命令
  1. make menuconfig
复制代码
这时候就需要选择对应的路由路相关信息了,具体如下:

6.编译遇到以下错误
  1. mv: cannot move 'bin/aclocal.tmp2' to 'bin/aclocal.tmp': Permission denied
  2. Makefile:51: recipe for target '/mnt/d/lede/build_dir/host/automake-1.15.1/.configured' failed
  3. make[3]: *** [/mnt/d/lede/build_dir/host/automake-1.15.1/.configured] Error 1
  4. make[3]: Leaving directory '/mnt/d/lede/tools/automake'
  5. time: tools/automake/compile#0.15#3.15#3.68
  6. tools/Makefile:155: recipe for target 'tools/automake/compile' failed
  7. make[2]: *** [tools/automake/compile] Error 2
复制代码
经查是因为WSL操作windows中的目录权限存在问题,通过以下命令将lede目录移动到home目录
  1. mv /mnt/d/lede ~
复制代码


本帖子中包含更多资源

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

×

评分

参与人数 1恩山币 +1 收起 理由
shik*** + 1 感谢你的分享,无论怎样,你都是最无私的人!来,说说,你E盘上还有啥一起给我吧!

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

感谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

参考一下。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 00:34

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表