Skip to content

This source code builds openwrt for Rockchip Soc from upstream source code https://github.com/coolsnowwolf/lede

License

Notifications You must be signed in to change notification settings

littoy/lede-rockchip

 
 

Repository files navigation

The source code is suitable for Rockchip OpenWrt SDK

Only supported devices:

embedfire_doornet1
embedfire_doornet2
embedfire_lubancat1
embedfire_lubancat1n
embedfire_lubancat2
embedfire_lubancat2n
friendlyarm_nanopi-r2c
friendlyarm_nanopi-r2s
friendlyarm_nanopi-r4s
friendlyarm_nanopi-r4se
friendlyarm_nanopi-r5s
friendlyarm_nanopi-r5c
hinlink_opc-h66k
hinlink_opc-h68k
hinlink_opc-h69k

Next plan to add equipment:


How to compile the OpenWrt firmware you need

Notice:

  1. NOT compile with root user! ! !

  2. Domestic users had better prepare a ladder before compiling

  3. Default login IP 192.168.1.1 password password

  4. If you need wireless, please use the 5.4 kernel, and the 5.15 kernel opens the wireless conference card kernel. It is recommended not to enable wireless when compiling 5.15

  5. Switch 5.15 to compile rk33xx

  6. Switch 6.1 kernel to compile rk356x method

  7. Install compilation dependencies

    sudo apt update -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 libglib2.0-dev libgmp3-dev libltdl-dev vpnc \
    libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libreadline-dev libssl-dev libtool lrzsz aria2 lib32gcc-s1 \
    mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 python3-pip libpython3-dev qemu-utils \
    rsync scons squashfs-tools subversion swig texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev libfuse-dev
  8. Download source code, update feeds and choose configuration

    git clone https://github.com/DHDAXCW/lede-rockchip
    cd lede-rockchip
    ./scripts/feeds update -a
    ./scripts/feeds install -a
    make menuconfig
  9. make -j8 download V=s download dl library

  10. Enter make -j10 V=s (-j1 is followed by the number of threads. It is recommended to use single thread for the first compilation) to start compiling the firmware you want.

This set of code is guaranteed to compile successfully. It includes all source codes of R21, including IPK.

Second compilation:

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

If reconfiguration is required:

rm -rf ./tmp && rm -rf .config
make menuconfig
make -j$(($(nproc) + 1)) V=s

About

This source code builds openwrt for Rockchip Soc from upstream source code https://github.com/coolsnowwolf/lede

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 92.0%
  • Makefile 3.7%
  • Shell 1.4%
  • Roff 1.4%
  • Perl 0.5%
  • Assembly 0.3%
  • Other 0.7%