Git Product home page Git Product logo

u-boot-mt7628's Introduction

说明:这个是GL-MT300A的uboot,请使用32位虚拟机编译

1 编译前的准备

1.1 安装必须的软件包

  $ sudo apt-get update
  $ sudo apt-get install g++ libghc-zlib-dev liblzma-dev ncurses-dev git

1.2 同步代码

  $ git clone [email protected]:GL-MT300A/GL-MT300A-uboot.git

1.3 安装SDK提供软件包

  $ sudo tar -xjvf toolchain/buildroot-gcc463_32bits.tar.bz2 -C /opt/
  $ sudo tar -jxvf toolchain/buildroot-gcc342.tar.bz2 -C /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 ../
Install mksquashfs utility(压缩rootfs文件系统)
  $ tar -xjvf squashfs4.2.tar.bz2
  $ cd squashfs4.2/squashfs-tools/
  $ make
  $ sudo cp mksquashfs /opt/buildroot-gcc463/usr/bin/mksquashfs_lzma-4.2		
  $ cd ../../../

1.4 MT7628官方文档说明

在doc目录下有具体的MT7628文档,有兴趣的可以参考!

2 编译uboot

2.1 配置uboot

  $ make menuconfig
     Chip Type ---> ASIC
     Chip ID ---> MT7628
     DRAM Type ---> DDR2
     DDR Component ---> 1024Mb
     Ram/Rom version ---> ROM
  配置完毕,保存退出!

2.2 编译uboot

  $ make
  编译OK会在根目录下生成boot.bin镜像

3 开发流程

3.1 每天开发的时候,先pull一下最新代码

  $ git pull

3.2 每天开发结束的时候,要push一下代码

修改代码后,将修改文件信息添加到索引库中(注意:编译过的工程不能使用-A参数,要指定详细文件)
  $ git add xxx
为修改记录添加修改注释

注释参考(注释因人而异,本注释仅供参考,在保证可读性的同时,择优而用)

  修改的:[MOD] 1.xxx
               2.xxx
  添加的:[ADD] 1.xxx
               2.xxx
  删除的:[DEL] 1.xxx
               2.xxx
  有BUG:[BUG]  1.xxx
               2.xxx
  $ git commit -m "xxxx"
  或者使用
  $ git commit -m '
  >[XXX] 1.xxx
  >      2.xxx
  >'
将修改推送到服务器
  $ git push

u-boot-mt7628's People

Contributors

kysonlok avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.