$ sudo apt-get update
$ sudo apt-get install g++ libghc-zlib-dev liblzma-dev ncurses-dev git
$ sudo apt-get install libstdc++5:i386 libgtk2.0-0:i386 libpangoxft-1.0:i386 libpangox-1.0-0:i386 gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 dos2unix
Entering u-boot source tree.
$ sudo mv toolchain/buildroot-gcc342 /opt/
$ cd toolchain
$ tar -zxvf lzma-4.32.7.tar.gz
$ cd lzma-4.32.7/
$ ./configure
$ make
$ sudo make install
$ cd ../../
For mt300n-v2:
$ make menuconfig
Chip Type ---> ASIC
Chip ID ---> MT7628
DRAM Type ---> DDR2
DDR Component ---> 1024Mb
Ram/Rom version ---> ROM
For mt300a:
(ASIC) Chip Type
(MT7620) Chip ID
(None) Port 5 Connect to
(None) Port 4 Connect to
(SPI) Flash Type
(DDR2) DRAM Type
(1024Mb) DDR Component
(16bits) DDR Width
(ROM) Ram/Rom version
[ ] Dual Image
[*] Partition LAN/WAN
(W/LLLL) LAN/WAN Board Layout
For mt300n:
Checkout to mt300n branch and see the README.md for details.
$ make
It will generate uboot.bin image on current directory.