Table of Contents

Next: , Up: (dir)   [Contents]


This manual is for program, version version.

Next: , Previous: , Up: Top   [Contents]

1 Prepare

CH341A programmer view
CH341A back view
CH341A software view
CPU: MIPS (AR9330)
DDR: Zentel
Flash: 8 MB Winbond W25Q64 (original 2M)

Previous: , Up: Top   [Contents]

2 Build and Run

git clone u-boot_mod1
export PATH=$PATH:~/sdb/tmp/u-boot_mod1/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-
export MAKECMD=make ARCH=mips CROSS_COMPILE=mips-openwrt-linux-
make clean_all
make tp-link_tl-wr740n_v4 IMG_LZMA=1 IMG_SIZE=128
Reference: view
Using CH341A programmer to flash the uboot bin
use open-wrt pre-build image for test
mv openwrt-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin a.bin

modify PC ip addr
sudo ifconfig  eth0

install tftp server

flash openwrt binary under uboot mode
tftpboot 0x80000000 a.bin
erase 0x9f020000 +0x340004 # 0x340004: size of the a.bin
cp.b 0x80000000 0x9f020000 0x340004 # 0x340004: size of the a.bin
log fragment
Booting image from 0x9F040000...

   Vendor/image name:    OpenWrt 50013
   Hardware ID:          0x7410001
   Whole image size:     3.8 MB (3932160 bytes)
   Kernel size:          1.3 MB (1405180 bytes)
   Rootfs size:          1.9 MB (1990374 bytes)
   Kernel load address:  0x80060000
   Kernel entry point:   0x80060000

   Header CRC...  skipped
   Data CRC...    skipped