/uboot-source-for_mtk

U-boot for GL MT300A GL MT300N-V2 and so on, which are based on MediaTek SoC.

Primary LanguageCOtherNOASSERTION

1 Prepare

1.1 Installing Dependency Packages

  $ 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

1.2 Preparing Toolchain

Entering u-boot source tree.

  $ sudo mv toolchain/buildroot-gcc342 /opt/
Install LZMA Utility
  $ cd toolchain
  $ tar -zxvf lzma-4.32.7.tar.gz
  $ cd lzma-4.32.7/
  $ ./configure
  $ make
  $ sudo make install
  $ cd ../../

2 Build

2.1 U-boot Configuration

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.

2.2 build uboot

  $ make

It will generate uboot.bin image on current directory.