Skip to content

U-Boot 1.1.4 modification for routers

Notifications You must be signed in to change notification settings

servalproject/u-boot_mod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Compile uboot

This is uboot fork from https://github.com/pepe2k/u-boot_mod.

It works for GL-Domino Pi, Domino Qi and AR150.

Download openwrt sdk

To compile the source, first you need to have a Linux machine and download openwrt/lede toolchain.

For example, you can download LEDE toolchain lede-sdk-ar71xx-generic_gcc-....bz2 from https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/, or download from openwrt https://downloads.openwrt.org/chaos_calmer/15.05.1/

You need to read how to use the SDK here: https://wiki.openwrt.org/doc/howto/obtain.firmware.sdk

Extract the bz2 file into one folder, e.g. /mytool/

Compile

clone the uboot source code

git clone https://github.com/domino-team/uboot-domino.git uboot
cd uboot/u-boot-domino-2015

Now, edit Makefile

change the following line (4th line)

export TOOLPATH=$(BUILD_TOPDIR)/../../openwrt1407/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/

to

export TOOLPATH=$/mytool/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/

Be sure to use our absolute path. If you download a different sdk, the path name may be different. Now type

make

After the compile finished, you should have your uboot binary in bin/uboot_for_domino.bin

Flash it to your router

The general process of changing uboot is:

  1. connect to router using USB uart adapter
  2. enter uboot console
  3. setup a tftp server
  4. run command run lu

Please refer to http://www.gl-inet.com/docs/diy/uboot/ for more details.

Using the uboot

First, get a USB->UARt adapter

During the uboot boot, you need to type gl to stop uboot booting.

About

U-Boot 1.1.4 modification for routers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 78.5%
  • C++ 13.0%
  • Assembly 4.1%
  • Makefile 4.0%
  • Shell 0.4%