美文网首页scut_padavan
Padavan固件简易编译办法

Padavan固件简易编译办法

作者: libgcc | 来源:发表于2018-02-10 23:12 被阅读171次

推荐环境: Ubuntu trusty / Ubuntu xenial / Debian 8


安装依赖包
sudo apt-get update
sudo apt-get install unzip libtool curl cmake gperf gawk flex bison nano \
git python-docutils gettext automake autopoint texinfo build-essential \
pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev
克隆源码
git clone --depth=1 https://gitee.com/hanwckf/rt-n56u.git /opt/rt-n56u
#git clone --depth=1 https://github.com/hanwckf/rt-n56u.git /opt/rt-n56u
编译工具链
cd /opt/rt-n56u/toolchain-mipsel
./clean_sources
./build_toolchain_3.4.x
(可选)修改机型配置文件
nano /opt/rt-n56u/trunk/configs/templates/PSG1218.config
清理代码树并开始编译
cd /opt/rt-n56u/trunk
sudo ./clear_tree
sudo ./build_firmware_modify PSG1218
#脚本第一个参数为路由型号,在trunk/configs/templates/中
#编译好的固件在trunk/images里

相关文章

网友评论

  • 黑小马_:CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
    Missing variable is:
    CMAKE_1.4.0_COMPILER
    CMake Error: Could not find cmake module file: /opt/rt-n56u/trunk/user/ttyd/ttyd-1.4.0/CMakeFiles/2.8.12.2/CMake1.4.0Compiler.cmake
    CMake Error: Could not find cmake module file: CMakeVERSIONInformation.cmake
    CMake Error: Could not find cmake module file: CMake1.4.0Information.cmake
    CMake Error: CMAKE_VERSION_COMPILER not set, after EnableLanguage
    CMake Error: CMAKE_1.4.0_COMPILER not set, after EnableLanguage

    你好我也编译了下,报了一个模块问题,求大佬,看下,怎么解决
    libgcc:@黑小马_ 感觉是cmake版本问题,当前cmake版本多少?
  • 黑小马_:好文章,正在学习
  • Reborn_L:楼主,打扰了,不知道我在给hc5661a编译固件build-firewarm,出现以下编译错误信息,上网找不到相应解决方案😓,望指教!
    make[2]: Entering directory '/opt/rt-n56u/trunk/libc/uClibc-0.9.33.2'
    .config:1: *** missing separator.  Stop.
    make[2]: Leaving directory '/opt/rt-n56u/trunk/libc/uClibc-0.9.33.2'
    Makefile:19: recipe for target 'all' failed
    make[1]: *** [all] Error 2
    make[1]: Leaving directory '/opt/rt-n56u/trunk/libc'
    Makefile:185: recipe for target 'libc_only' failed
    make: *** [libc_only] Error 2
    Reborn_L:@libgcc 楼主 我是不是步骤不对啊 我直接在GitHub上找hc5661a的配置文件然后放到相应文件夹编译,这样对吗?
    Reborn_L:@libgcc 行 我试一下重新clone源码
    libgcc:@Reborn_L 报makefile语法错误,理应不应该出现这个,重新clone源码再试一次?

本文标题:Padavan固件简易编译办法

本文链接:https://www.haomeiwen.com/subject/kdghtftx.html