Git Product home page Git Product logo

lede's Introduction

欢迎来到 Lean 的 LEDE 源码仓库

为国产龙芯 LOONGSON SoC loongarch64 / 飞腾 Phytium 腾锐2000 系列架构添加支持

I18N: English | 简体中文 | 日本語

官方讨论群

如有技术问题需要讨论或者交流,欢迎加入以下群:

  1. QQ 讨论群: Op固件技术研究群 ,号码 891659613 ,加群链接:点击加入
  2. TG 讨论群: OP 编译官方大群 ,加群链接:点击加入

软路由介绍

硬酷R2 - N95/N300迷你四网HomeLab服务器

商品介绍页面 - 硬酷科技(支持花呗)

r1

注意

  1. 不要用 root 用户进行编译
  2. 国内用户编译前最好准备好梯子
  3. 默认登陆IP 192.168.1.1 密码 password

编译命令

  1. 首先装好 Linux 系统,推荐 Debian 11 或 Ubuntu LTS

  2. 安装编译依赖

    sudo apt update -y
    sudo apt full-upgrade -y
    sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
    bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
    git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
    libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \
    libssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 \
    python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
    uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
  3. 下载源代码,更新 feeds 并选择配置

    git clone https://github.com/coolsnowwolf/lede
    cd lede
    ./scripts/feeds update -a
    ./scripts/feeds install -a
    make menuconfig
  4. 下载 dl 库,编译固件 (-j 后面是线程数,第一次编译推荐用单线程)

    make download -j8
    make V=s -j1

本套代码保证肯定可以编译成功。里面包括了 R23 所有源代码,包括 IPK 的。

你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作!

二次编译:

cd lede
git pull
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make download -j8
make V=s -j$(nproc)

如果需要重新配置:

rm -rf .config
make menuconfig
make V=s -j$(nproc)

编译完成后输出路径:bin/targets

使用 WSL/WSL2 进行编译

由于 WSL 的 PATH 中包含带有空格的 Windows 路径,有可能会导致编译失败,请在 make 前面加上:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

由于默认情况下,装载到 WSL 发行版的 NTFS 格式的驱动器将不区分大小写,因此大概率在 WSL/WSL2 的编译检查中会返回以下错误:

Build dependency: OpenWrt can only be built on a case-sensitive filesystem

一个比较简洁的解决方法是,在 git clone 前先创建 Repository 目录,并为其启用大小写敏感:

# 以管理员身份打开终端
PS > fsutil.exe file setCaseSensitiveInfo <your_local_lede_path> enable
# 将本项目 git clone 到开启了大小写敏感的目录 <your_local_lede_path> 中
PS > git clone git@github.com:coolsnowwolf/lede.git <your_local_lede_path>

对已经 git clone 完成的项目目录执行 fsutil.exe 命令无法生效,大小写敏感只对新增的文件变更有效。

macOS 原生系统进行编译

  1. 在 AppStore 中安装 Xcode

  2. 安装 Homebrew:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. 使用 Homebrew 安装工具链、依赖与基础软件包:

    brew unlink awk
    brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep make ncurses pkg-config wget quilt xz
    brew install gcc@11
  4. 然后输入以下命令,添加到系统环境变量中:

    echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
    echo 'export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"' >> ~/.bashrc
    echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bashrc
    echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bashrc
    echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> ~/.bashrc
    echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
    echo 'export PATH="/usr/local/opt/make/libexec/gnubin:$PATH"' >> ~/.bashrc
  5. 重新加载一下 shell 启动文件 source ~/.bashrc,然后输入 bash 进入 bash shell,就可以和 Linux 一样正常编译了

特别提示

  1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件, SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的;

  2. 想学习 OpenWrt 开发,但是摸不着门道?自学没毅力?基础太差?怕太难学不会?跟着佐大学 OpenWrt 开发入门培训班助你能学有所成 报名地址:点击报名

  3. QCA IPQ60xx 开源仓库地址:https://github.com/coolsnowwolf/openwrt-gl-ax1800

  4. 存档版本仓库地址:https://github.com/coolsnowwolf/openwrt

捐贈

如果你觉得此项目对你有帮助,可以捐助我们,以鼓励项目能持续发展,更加完善

star

lede's People

Contributors

1715173329 avatar aakkll avatar aiamadeus avatar ansuel avatar aooom avatar asushugo avatar beginner-go avatar benihi avatar blocktrron avatar boos4721 avatar breakings avatar coolsnowwolf avatar cotequeiroz avatar dangowrt avatar dhdaxcw avatar dpy013 avatar graysky2 avatar hauke avatar imbrolla avatar kfermercer avatar mattraks avatar misaka36 avatar nbd168 avatar neheb avatar ntlf9t avatar polynomialdivision avatar ricksuzade-maker avatar sharermax avatar tossp avatar ynezz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lede's Issues

编译错误,貌似pdnsd-1.2.9a-par,但没找到dl文件夹......

pdnsd-1.2.9a-par; '
Checking out files from the git repository...
Cloning into 'pdnsd-1.2.9a-par'...
fatal: unable to connect to gitorious.org:
gitorious.org[0: 64.13.172.37]: errno=Connection refused

Makefile:55: recipe for target '/home/zh/lede/dl/pdnsd-1.2.9a-par-a8e46ccba7b0fa2230d6c42ab6dcd92926f6c21d.tar.gz' failed
make[3]: *** [/home/zh/lede/dl/pdnsd-1.2.9a-par-a8e46ccba7b0fa2230d6c42ab6dcd92926f6c21d.tar.gz] Error 128
make[3]: Leaving directory '/home/zh/lede/package/lean/pdnsd-alt'
package/Makefile:109: recipe for target 'package/lean/pdnsd-alt/compile' failed
make[2]: *** [package/lean/pdnsd-alt/compile] Error 2
make[2]: Leaving directory '/home/zh/lede'
package/Makefile:105: recipe for target '/home/zh/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/zh/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/zh/lede'
/home/zh/lede/include/toplevel.mk:207: recipe for target 'world' failed
make: *** [world] Error 2

编译失败

ipset-lists 要选上,否则依赖解决不了,,,,这个要怎么选择呢?从哪里选择?

单独编译ipk失败,求指点

make menuconfig 选择M luci-app-adbyby-plus后
运行make package/lean/luci-adbyby-plus/compile V=99
出错,google半天不得其解,请大神指点
出错信息

make[1]: Entering directory '/home/daker/lede'
make[2]: Entering directory '/home/daker/lede/feeds/luci/modules/luci-base'
make[2]: Leaving directory '/home/daker/lede/feeds/luci/modules/luci-base'
make[2]: Entering directory '/home/daker/lede/package/libs/toolchain'
rm -rf /home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc.installed /home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc
mkdir -p /home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc
install -d -m0755 /home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc/lib /home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc/usr/bin
cp -fpR /home/daker/lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/lib/ld-musl-.so /home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc/lib/
cp: cannot stat '/home/daker/lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl/lib/ld-musl-.so': No such file or directory
Makefile:618: recipe for target '/home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc.installed' failed
make[2]: *** [/home/daker/lede/build_dir/target-mips_24kc_musl/toolchain/.pkgdir/libc.installed] Error 1
make[2]: Leaving directory '/home/daker/lede/package/libs/toolchain'
package/Makefile:109: recipe for target 'package/libs/toolchain/compile' failed
make[1]: *** [package/libs/toolchain/compile] Error 2
make[1]: Leaving directory '/home/daker/lede'
/home/daker/lede/include/toplevel.mk:207: recipe for target 'package/lean/luci-app-adbyby-plus/compile' failed
make: *** [package/lean/luci-app-adbyby-plus/compile] Error 2

编译错误,求解决

checking for mempcpy... (cached) yes
checking for memrchr... yes
checking whether mkdir handles trailing slash... yes
checking whether mkdir handles trailing dot... yes
checking for mkdtemp... yes
checking whether mkfifo rejects trailing slashes... yes
checking whether mknod can create fifo without root privileges... configure: error: in /root/lede/build_dir/host/tar-1.29': configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) See config.log' for more details
Makefile:30: recipe for target '/root/lede/build_dir/host/tar-1.29/.configured' failed
make[3]: *** [/root/lede/build_dir/host/tar-1.29/.configured] Error 1
make[3]: Leaving directory '/root/lede/tools/tar'
tools/Makefile:148: recipe for target 'tools/tar/compile' failed
make[2]: *** [tools/tar/compile] Error 2
make[2]: Leaving directory '/root/lede'
tools/Makefile:146: recipe for target '/root/lede/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnyyyyyyyyyyyyyyyyyyyynyynynyyyynny' failed
make[1]: *** [/root/lede/staging_dir/target-mips_24kc_musl/stamp/.tools_compile_yynyyyyynyyyyynyynnyyyyyyyyyyyyyyyyyyyynyynynyyyynny] Error 2
make[1]: Leaving directory '/root/lede'
/root/lede/include/toplevel.mk:207: recipe for target 'world' failed
make: *** [world] Error 2

youku-yk1 网口无法使用

今天编译优酷路由宝youku-yk1 黑色版,32M flash。发现无法网口无法使用,System log如下:

Thu Sep 14 22:56:51 2017 daemon.err uhttpd[1807]: Failed to connect to the switch. Use the "list" command to see which switches are available.
Thu Sep 14 22:56:56 2017 daemon.err uhttpd[1807]: Failed to connect to the switch. Use the "list" command to see which switches are available.
Thu Sep 14 22:57:01 2017 daemon.err uhttpd[1807]: Failed to connect to the switch. Use the "list" command to see which switches are available.
Thu Sep 14 23:00:17 2017 daemon.err uhttpd[1807]: Failed to connect to the switch. Use the "list" command to see which switches are available.
Thu Sep 14 23:00:22 2017 daemon.err uhttpd[1807]: Failed to connect to the switch. Use the "list" command to see which switches are available.
Thu Sep 14 23:00:27 2017 daemon.err uhttpd[1807]: Failed to connect to the switch. Use the "list" command to see which switches are available.

luci aria2 tr 菜单不显示

default-settings里面是把aria2 tr之类的单独放到一个名为 nas 的菜单下,这个菜单默认是没有的,所以导致aria2 tr 之类的菜单不能显示出来

编译X86虚拟机用固件报错

/home/make/lede/build_dir/target-i386_pentium4_musl/luasocket-3.0-rc1-20130909/src/options.c:301: undefined reference to __stack_chk_fail_local' options.o:/home/make/lede/build_dir/target-i386_pentium4_musl/luasocket-3.0-rc1-20130909/src/options.c:61: more undefined references to __stack_chk_fail_local' follow
make[6]: *** [socket.so.3.0-rc1] Error 1

make[6]: Leaving directory `/home/make/lede/build_dir/target-i386_pentium4_musl/luasocket-3.0-rc1-20130909/src'

make[5]: *** [linux] Error 2

make[5]: Leaving directory `/home/make/lede/build_dir/target-i386_pentium4_musl/luasocket-3.0-rc1-20130909/src'

make[4]: *** [linux] Error 2

make[4]: Leaving directory `/home/make/lede/build_dir/target-i386_pentium4_musl/luasocket-3.0-rc1-20130909'
make[3]: *** [/home/make/lede/build_dir/target-i386_pentium4_musl/luasocket-3.0-rc1-20130909/.built] Error 2

make[3]: Leaving directory `/home/make/lede/feeds/packages/lang/luasocket'

make[2]: *** [package/feeds/packages/luasocket/compile] Error 2

make[2]: Leaving directory `/home/make/lede'

make[1]: *** [/home/make/lede/staging_dir/target-i386_pentium4_musl/stamp/.package_compile] Error 2

make[1]: Leaving directo

准备编译成VMHD文件在虚拟机下使用

7.3.2版本断网

7.3.2版本光猫已改192.168.2.1,但是路由器192.168.1.1重启后WAN口有IP无MAC地址,但是有线无线均断网

请教一个编译技巧的问题

经过几天的折腾,终于能编译几种架构的固件了,再次感谢大神的源码!!
现在请教一个问题:
比如我在x86_64 下, make menuconfig 选好自己要的软件和包,生成了.config,我想把生成的.config设成x86_64下的默认配置,当我从其他架构转回x86_64编译,会自动用回自己的配置。要如何做到呢?
我不知如何表达,大概就是这个意思。谢谢!

如下错误有啥影响?

cp -fpR /root/lede/build_dir/target-arm_cortex-a9_musl_eabi/root-bcm53xx /root/lede/build_dir/target-arm_cortex-a9_musl_eabi/root.orig-bcm53xx
/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/root-bcm53xx/etc/init.d/arpbind: line 5: /lib/functions.sh: No such file or directory
/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/root-bcm53xx/etc/init.d/arpbind: line 6: /lib/functions/network.sh: No such file or directory
/etc/init.d/arpbind does not have a START or STOP value
/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/root-bcm53xx/etc/init.d/ssrpro: line 22: network_get_subnet: command not found
/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/root-bcm53xx/etc/init.d/ssrpro: line 23: network_get_ipaddr: command not found
Create '/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/root-bcm53xx/etc/filesystems'.
Add 'ntfs-3g' to known filesystems.
./etc/init.d/arpbind: line 5: /lib/functions.sh: No such file or directory
./etc/init.d/arpbind: line 6: /lib/functions/network.sh: No such file or directory
/etc/init.d/arpbind does not have a START or STOP value
./etc/init.d/ssrpro: line 22: network_get_subnet: command not found
./etc/init.d/ssrpro: line 23: network_get_ipaddr: command not found

amule编译报错

不管装libwxbase2.8-dev libwxgtk2.8-dev还是libwxbase2.8-dbg libwxgtk2.8-dbg都不行
checking for File::Copy... ok
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... no
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.12 (--debug=no --unicode=yes)... no
configure: error:
The requested wxWidgets build couldn't be found.

The configuration you asked for aMule requires a wxWidgets
build with the following settings:
    --debug=no --unicode=yes
but such build is not available.

To see the wxWidgets builds available on this system, please use
'wx-config --list' command. To use the default build, returned by
'wx-config --selected-config', use the options with their 'auto'
default values.

If you still get this error, then check that 'wx-config' is
in path, the directory where wxWidgets libraries are installed
(returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
or equivalent variable and wxWidgets version is 2.8.12 or above.

make[3]: *** [/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/aMule-2.3.2/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[3]: Leaving directory /root/lede/package/lean/amule' make[2]: *** [package/lean/amule/compile] Error 2 make[2]: Leaving directory /root/lede'
make[1]: *** [/root/lede/staging_dir/target-arm_cortex-a9_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory `/root/lede'
make: *** [world] Error 2

R7.4 版本引导问题

编译的squashfs映像,第一次启动过程中,提示rootdisk overlay filesystem has not been formatted yet,然后卡住,需要按回车20次左右才能继续。

使用finalspeed无速度

您好,我使用finalspeed连接ss速度几乎没有,lede 版本R7.3.2 。不使用finalspeed直接连接正常,不经过路由器直接拨号也正常。请问应该怎么设置lede

ext4格式硬盘自动挂载后权限问题导致smb匿名用户没有权限访问,以下sdb1为目标盘

root@LEDE:/mnt# df -h -T
Filesystem Type Size Used Available Use% Mounted on
/dev/root squashfs 13.0M 13.0M 0 100% /rom
tmpfs tmpfs 250.3M 2.6M 247.7M 1% /tmp
/dev/ubi0_1 ubifs 14.0M 276.0K 13.0M 2% /overlay
overlayfs:/overlay overlay 14.0M 276.0K 13.0M 2% /
ubi1:syscfg ubifs 29.6M 276.0K 27.8M 1% /tmp/syscfg
tmpfs tmpfs 512.0K 0 512.0K 0% /dev
/dev/ubi1_0 ubifs 29.6M 276.0K 27.8M 1% /mnt/ubi1_0
tmpfs tmpfs 250.3M 2.6M 247.7M 1% /usr/share/adbyby/data
/dev/sda1 fuseblk 465.8G 156.5G 309.3G 34% /mnt/sda1
/dev/sdb1 ext4 14.1G 592.4M 12.7G 4% /mnt/sdb1
root@LEDE:/mnt# ls -al
drwxr-xr-x 1 root root 352 Sep 10 09:33 .
drwxr-xr-x 1 root root 544 Jun 9 05:02 ..
drwxrwxrwx 1 root root 12288 Sep 10 09:54 sda1
drwx------ 5 1000 1000 4096 Sep 9 22:35 sdb1
drwxr-xr-x 9 root root 848 Sep 7 16:40 ubi1_0
root@LEDE:/mnt#
smb设置里文件夹的权限已经是0777了,访问smb服务器,打开sdb1文件夹会提示没有权限访问,而sda1为NTFS系统,则正常读写。
作者的设计思路在插入硬盘后自动设置smb匿名共享,但是现在ext4文件系统挂载目录权限导致不能全自动了

一直编译出,小白一个也不知道是哪出了问题

一直严格按教程,二天都没编译成一个,换了好几个硬件环境也都同样,提示错误1,也在谷歌上找了资料,说是网络的问题,但是网格一直都是好的,也启动了SS服务,哪位老司机知道,麻烦引导。谢谢(用make V=99 2>&1 | tee build.log | grep -i error命令查出的红色字体不知道是什么提示)
2017-09-08 7 02 12

内存为何不自动释放

使用场景1:
硬件:k3,软件版本r6.1
通过samba读写文件时内存剩余13%左右。停止读写一段时间后,内存剩余回复到80%-90%
使用场景2:
硬件:k3,软件版本r7.3.3
通过samba读写文件时内存剩余13%左右。停止读写一段时间后,内存剩余还是13%左右。不释放。
是编译的时候有什么技巧?或者那里有问题呢?虽然不影响使用……

wifi 2.4G无法搜索

编译昨天晚上最新 今天下午无法搜索2.4G wifi,无线界面无法显示传输速率
重启路由后正常

wrt1900ac v2 ,install -a的时候出现的。

WARNING: No feed for package 'libsqlite2' found, maybe it's already part of the standard packages?
WARNING: No feed for package 'flite' found, maybe it's already part of the stand ard packages?
WARNING: No feed for package 'libyuv' found, maybe it's already part of the stan dard packages?
WARNING: No feed for package 'libilbc' found, maybe it's already part of the sta ndard packages?
WARNING: No feed for package 'libmemcached' found, maybe it's already part of th e standard packages?
WARNING: No feed for package 'libsilk' found, maybe it's already part of the sta ndard packages?
WARNING: No feed for package 'libg7221' found, maybe it's already part of the st andard packages?
WARNING: No feed for package 'freeradius-client' found, maybe it's already part of the standard packages?
Installing package 'freeswitch-

SSR似乎不工作

服务器是auth_aes128_md5+aes-192-ctr, 无法连上,无论是刷了固件的X86路由,还是WRT路由器,都一样。

用C#客户端,手机apk,都没问题。之前用的路由器固件,比如K2P的潘多拉,都没问题。

尝试切换到其它协议,也一样

大神,編譯X86,保存掛載點出錯

首先感謝大神的無私貢獻,用您的源碼編譯X86_64,當保存掛載點就會出現下面的信息:
/usr/lib/lua/luci/util.lua:623: Unable to establish ubus connection stack traceback: [C]: in function 'assert' /usr/lib/lua/luci/util.lua:623: in function 'ubus' /usr/lib/lua/luci/dispatcher.lua:172: in function 'session_retrieve' /usr/lib/lua/luci/dispatcher.lua:382: in function 'dispatch' /usr/lib/lua/luci/dispatcher.lua:121: in function

官方的也一樣

openvpn貌似不能自启

因为和两个依赖包冲突,删掉你的easy部分和openvpn-openssl中的config,然后不能自启

编译后ssr 守护日志提示错误

[2017-09-09 14:15:00] ShadowsocksR No Problem.
udhcpc: no lease, failing
udhcpc: sending discover
udhcpc: started, v1.27.2
/etc/rc.common: line 144: /usr/bin/ip: not found
/etc/rc.common: line 144: /usr/bin/ip: not found
2017-09-09 14:00:09 INFO: obfs_param
2017-09-09 14:00:09 INFO: obfs plain
2017-09-09 14:00:09 INFO: method chacha20-ietf
2017-09-09 14:00:09 INFO: protocol_param
2017-09-09 14:00:09 INFO: protocol origin
/etc/rc.common: line 144: /usr/bin/ip: not found
/etc/rc.common: line 144: /usr/bin/ip: not found
udhcpc: no lease, failing
udhcpc: sending discover
udhcpc: started, v1.27.2
[2017-09-09 14:00:00] Problem decteted, restarting ShadowsocksR...

EA8500编译失败,请告知原因

Build failed - please re-run with -j1 to see the real error message

怎么回事啊
@ub里已经挂蓝灯下载源码编译

/bin/mkdir -p '/home/lede/lede/staging_dir/host/bin'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/lib'
/usr/bin/install -c src/yacc '/home/lede/lede/staging_dir/host/bin'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/aclocal'
/usr/bin/install -c -m 644 lib/liby.a '/home/lede/lede/staging_dir/host/lib'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/doc/bison/examples/calc++'
/usr/bin/install -c -m 644 m4/bison-i18n.m4 '/home/lede/lede/staging_dir/host/share/aclocal'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/doc/bison'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/bison/m4sugar'
( cd '/home/lede/lede/staging_dir/host/lib' && ranlib liby.a )
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/bison'
/usr/bin/install -c -m 644 data/m4sugar/foreach.m4 data/m4sugar/m4sugar.m4 '/home/lede/lede/staging_dir/host/share/bison/m4sugar'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/bison/xslt'
/usr/bin/install -c -m 644 data/README data/bison.m4 data/c++-skel.m4 data/c++.m4 data/c-like.m4 data/c-skel.m4 data/c.m4 data/glr.c data/glr.cc data/java-skel.m4 data/java.m4 data/lalr1.cc data/lalr1.java data/location.cc data/stack.hh data/variant.hh data/yacc.c '/home/lede/lede/staging_dir/host/share/bison'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/doc/bison/examples/mfcalc'
/usr/bin/install -c -m 644 data/xslt/bison.xsl data/xslt/xml2dot.xsl data/xslt/xml2text.xsl data/xslt/xml2xhtml.xsl '/home/lede/lede/staging_dir/host/share/bison/xslt'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/doc/bison/examples/rpcalc'
/usr/bin/install -c -m 644 AUTHORS COPYING NEWS README THANKS TODO '/home/lede/lede/staging_dir/host/share/doc/bison'
/usr/bin/install -c -m 644 examples/calc++/calc++-driver.cc examples/calc++/calc++-driver.hh examples/calc++/calc++-scanner.ll examples/calc++/calc++.cc examples/calc++/calc++-parser.yy '/home/lede/lede/staging_dir/host/share/doc/bison/examples/calc++'
/usr/bin/install -c -m 644 examples/mfcalc/calc.h examples/mfcalc/mfcalc.y '/home/lede/lede/staging_dir/host/share/doc/bison/examples/mfcalc'
/usr/bin/install -c -m 644 examples/rpcalc/rpcalc.y '/home/lede/lede/staging_dir/host/share/doc/bison/examples/rpcalc'
src/bison --version >doc/bison.help.tmp
/bin/mkdir -p '/home/lede/lede/staging_dir/host/bin'
src/bison --help >>doc/bison.help.tmp
./build-aux/move-if-change doc/bison.help.tmp doc/bison.help
/usr/bin/install -c src/bison '/home/lede/lede/staging_dir/host/bin'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/man/man1'
/bin/mkdir -p '/home/lede/lede/staging_dir/host/share/info'
/usr/bin/install -c -m 644 ./doc/bison.info '/home/lede/lede/staging_dir/host/share/info'
/usr/bin/install -c -m 644 ./doc/bison.1 doc/yacc.1 '/home/lede/lede/staging_dir/host/share/man/man1'
install-info --info-dir='/home/lede/lede/staging_dir/host/share/info' '/home/lede/lede/staging_dir/host/share/info/bison.info'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
make[7]: Leaving directory /home/lede/lede/build_dir/host/bison-3.0.4' make[6]: Leaving directory /home/lede/lede/build_dir/host/bison-3.0.4'
make[5]: Leaving directory /home/lede/lede/build_dir/host/bison-3.0.4' make[4]: Leaving directory /home/lede/lede/build_dir/host/bison-3.0.4'
install -m0755 ./scripts/yacc /home/lede/lede/staging_dir/host/bin/yacc
mkdir -p /home/lede/lede/staging_dir/host/stamp
touch /home/lede/lede/build_dir/host/bison-3.0.4/.built
touch /home/lede/lede/staging_dir/host/stamp/.bison_installed
make[3]: Leaving directory /home/lede/lede/tools/bison' make[2]: Leaving directory /home/lede/lede'
make[1]: *** [/home/lede/lede/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/stamp/.tools_compile_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynny] Error 2
make[1]: Leaving directory `/home/lede/lede'

使用k3c的SDK编译错误

x86_64-linux-gnu-gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o tree-mudflap.o glibc-c.o
cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lstdc++ -L/root/k3c/UGW-7.1.1/staging_dir/host/lib -L/root/k3c/UGW-7.1.1/staging_dir/host/lib -L/root/k3c/UGW-7.1.1/staging_dir/host/lib -lmpc -lmpfr -lgmp -rdynamic -ldl -lstdc++ -L../zlib -lz
main.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make[5]: *** [cc1] Error 1
make[5]: Leaving directory /root/k3c/UGW-7.1.1/build_dir/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-initial/gcc' make[4]: *** [all-gcc] Error 2 make[4]: Leaving directory /root/k3c/UGW-7.1.1/build_dir/toolchain-mips_mips32_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04-initial'

不知道什么地方编译错误啦。

CMakeFiles/blobmsg_json-static.dir/build.make:62: recipe for target 'CMakeFiles/blobmsg_json-static.dir/blobmsg_json.c.o' failed
make[6]: *** [CMakeFiles/blobmsg_json-static.dir/blobmsg_json.c.o] Error 1
make[6]: Leaving directory '/home/caiyy/桌面/lede/build_dir/target-arm_cortex-a9_musl_eabi/libubox-2017-06-17-fd57eea9'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/blobmsg_json-static.dir/all' failed
make[5]: *** [CMakeFiles/blobmsg_json-static.dir/all] Error 2
make[5]: Leaving directory '/home/caiyy/桌面/lede/build_dir/target-arm_cortex-a9_musl_eabi/libubox-2017-06-17-fd57eea9'
Makefile:129: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/caiyy/桌面/lede/build_dir/target-arm_cortex-a9_musl_eabi/libubox-2017-06-17-fd57eea9'
Makefile:99: recipe for target '/home/caiyy/桌面/lede/build_dir/target-arm_cortex-a9_musl_eabi/libubox-2017-06-17-fd57eea9/.built' failed
make[3]: *** [/home/caiyy/桌面/lede/build_dir/target-arm_cortex-a9_musl_eabi/libubox-2017-06-17-fd57eea9/.built] Error 2
make[3]: Leaving directory '/home/caiyy/桌面/lede/package/libs/libubox'
package/Makefile:109: recipe for target 'package/libs/libubox/compile' failed
make[2]: *** [package/libs/libubox/compile] Error 2
make[2]: Leaving directory '/home/caiyy/桌面/lede'
package/Makefile:105: recipe for target '/home/caiyy/桌面/lede/staging_dir/target-arm_cortex-a9_musl_eabi/stamp/.package_compile' failed
make[1]: *** [/home/caiyy/桌面/lede/staging_dir/target-arm_cortex-a9_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/caiyy/桌面/lede'
/home/caiyy/桌面/lede/include/toplevel.mk:207: recipe for target 'world' failed
make: *** [world] Error 2

为何选了K3但是编译把同架构都编译了

顺便问下BCM53xx这几个机型怎么改固件大小

/root/lede/staging_dir/host/bin/tplink-safeloader -B ARCHERC9 -k /root/lede/build_dir/target-arm_cortex-a9_musl_eabi/linux-bcm53xx/tmp/lede-bcm53xx-tplink-archer-c9-v1-squashfs.bin.trx -r /root/lede/build_dir/target-arm_cortex-a9_musl_eabi/linux-bcm53xx/tmp/lede-bcm53xx-tplink-archer-c9-v1-squashfs.bin -j -o /root/lede/build_dir/target-arm_cortex-a9_musl_eabi/linux-bcm53xx/tmp/lede-bcm53xx-tplink-archer-c9-v1-squashfs.bin.new
file-system partition too big (more than 12582912 bytes): Success
make[5]: *** [/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/linux-bcm53xx/tmp/lede-bcm53xx-tplink-archer-c9-v1-squashfs.bin] Error 1
make[5]: *** Waiting for unfinished jobs....
file-system partition too big (more than 12582912 bytes): Success
make[5]: *** [/root/lede/build_dir/target-arm_cortex-a9_musl_eabi/linux-bcm53xx/tmp/lede-bcm53xx-tplink-archer-c5-v2-squashfs.bin] Error 1
make[5]: Leaving directory /root/lede/target/linux/bcm53xx/image' make[4]: *** [install] Error 2 make[4]: Leaving directory /root/lede/target/linux/bcm53xx'

newifi-D1问题汇总

1、刷机后重启起不来,要断电后才行;
2、没有刷中文,但是菜单里中英文混杂;
3、自带的tf卡无法挂载,已经安装了komd-mmc;

mvebu平台编译问题

你好,

到了最后阶段,出现以下错误:

Image Name:
Created: Thu Sep 7 15:02:20 2017
Image Type: ARM Linux Script (uncompressed)
Data Size: 848 Bytes = 0.83 kB = 0.00 MB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 840 Bytes = 0.82 kB = 0.00 MB
rm -f /home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/tmp/lede-mvebu-armada-388-clearfog-pro-sdcard.img.gz.boot
mkfs.fat -C /home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/tmp/lede-mvebu-armada-388-clearfog-pro-sdcard.img.gz.boot 16384
mkfs.fat 4.1 (2017-01-24)
mcopy -i /home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/tmp/lede-mvebu-armada-388-clearfog-pro-sdcard.img.gz.boot /home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/linux-4.4.85/arch/arm/boot/dts/armada-388-clearfog-pro.dtb ::armada-388-clearfog-pro.dtb; mcopy -i /home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/tmp/lede-mvebu-armada-388-clearfog-pro-sdcard.img.gz.boot /home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/linux-4.4.85/arch/arm/boot/dts/armada-388-clearfog-base.dtb ::armada-388-clearfog-base.dtb;
/home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/linux-4.4.85/arch/arm/boot/dts/armada-388-clearfog-pro.dtb: No such file or directory
/home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/linux-4.4.85/arch/arm/boot/dts/armada-388-clearfog-base.dtb: No such file or directory
make[5]: *** [/home/test/lede/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/linux-mvebu/tmp/lede-mvebu-armada-388-clearfog-pro-sdcard.img.gz] Error 1
make[5]: Leaving directory /home/test/lede/target/linux/mvebu/image' make[4]: *** [install] Error 2 make[4]: Leaving directory /home/test/lede/target/linux/mvebu'
make[3]: *** [install] Error 2
make[3]: Leaving directory /home/test/lede/target/linux' make[2]: *** [target/linux/install] Error 2 make[2]: Leaving directory /home/test/lede'
make[1]: *** [/home/test/lede/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/test/lede'
make: *** [world] Error 2

请问应该怎么解决?

另外发现到了这步,/lede/bin/targets/mvebu/generic/下已经有固件生成,但是刷机后路由器无法启动,网卡获取不了IP地址,是因为前面的错误造成的吗?

谢谢!

借用您的软件源码用在lede17.01.2,打了高通fast path补丁,编译卡壳

用了您的软件源码,package/lean, 自己克隆了lede17.01.2,也打了高通fast path补丁,下面是打补丁过程:
wget https://github.com/lede-project/source/commit/b87b4734c6e56fa45ec612350e2aa480ed2d8dd6.patch
patch -p1 < b87b4734c6e56fa45ec612350e2aa480ed2d8dd6.patch
(略过了4.9内核)
mv target/linux/generic/hack-4.4 patches-4.4
Kernel modules > Network Support >kmod-fast-classifier,kmod-shortcut-fe,kmod-shortcut-fe-cm选中
然后编译的过程报错如下:
make[3]: Entering directory /home/mltao/lede17.01.2/source/package/kernel/shortcut-fe' make -C "/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/linux-4.4.86" ARCH="arm" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" SUBDIRS="/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe" EXTRA_CFLAGS="" modules make[4]: Entering directory /home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/linux-4.4.86'
CC [M] /home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe/sfe_ipv4.o
/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe/sfe_ipv4.c: In function 'sfe_ipv4_recv_udp':
/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe/sfe_ipv4.c:1366:5: error: 'struct sk_buff' has no member named 'fast_forwarded'
skb->fast_forwarded = 1;
^
/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe/sfe_ipv4.c: In function 'sfe_ipv4_recv_tcp':
/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe/sfe_ipv4.c:1909:5: error: 'struct sk_buff' has no member named 'fast_forwarded'
skb->fast_forwarded = 1;
^
make[5]: *** [/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe/sfe_ipv4.o] Error 1
make[4]: *** [module/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe] Error 2
make[4]: Leaving directory /home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/linux-4.4.86' make[3]: *** [/home/mltao/lede17.01.2/source/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/linux-mvebu/shortcut-fe/.built] Error 2 make[3]: Leaving directory /home/mltao/lede17.01.2/source/package/kernel/shortcut-fe'
make[2]: *** [package/kernel/shortcut-fe/compile] Error 2
make[2]: Leaving directory /home/mltao/lede17.01.2/source' make[1]: *** [/home/mltao/lede17.01.2/source/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.16_eabi/stamp/.package_compile] Error 2 make[1]: Leaving directory /home/mltao/lede17.01.2/source'
make: *** [world] 错误 2
请问怎么解决?谢谢!
来自石像鬼群:排排

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.