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 https://github.com/pepe2k/u-boot_mod.git wget -O OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2 https://www.dropbox.com/s/koew9qrc59s1qeq/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2?dl=0 tar -vxjf OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2 cd u-boot_mod/
nano Makefile export PATH:=/home/sonnyyu/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin:$(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