Start with Debian 6/7 32 bits machine.

adduser sonnyyu

apt-get update -y
apt-get upgrade -y

for Debian 6:

apt-get install -y bc  nano openjdk-6-jre git-core build-essential

for Debian 7:

apt-get install  tzdata=2014j-0wheezy1 
apt-get install -y bc  nano openjdk-7-jre git-core build-essential
nano /etc/sudoers
sonnyyu ALL=(ALL:ALL) ALL

su sonnyyu
cd ~
git clone
wget -O OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-
tar -vxjf OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-
cd u-boot_mod/
nano Makefile

export PATH:=/home/sonnyyu/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-$(PATH)
export MAKECMD=make --silent --no-print-directory ARCH=mips CROSS_COMPILE=mips-openwrt-linux-uclibc-
make dragino_v2_ms14

> Preparing U-Boot image "u-boot.img"...
    Image Name: U-Boot 1.1.4 for ap121 board
       Created: Mon Aug 31 09:32:54 2015
    Image Type: MIPS Linux Firmware (uncompressed)
     Data Size: 165740 Bytes = 161.86 kB = 0.16 MB
  Load Address: 0x9F000000
   Entry Point: 0x00000000
> Preparing 192KB file filled with 0xFF...
> Copying U-Boot image...
> U-Boot image ready, size: 196608 bytes



Comments powered by CComment