1、首先安装Vmware,安装Ubuntu 15.04 (安装时记住用户名和密码)
2、终端命令Ctrl+Alt+T
3、进行准备工作
安装工具
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential u-boot-tools uboot-mkimage binutils-arm-linux-gnueabihf gcc-4.7-arm-linux-gnueabihf-base g++-4.7-arm-linux-gnueabihf gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev libncurses5-de
提示一下错误:
Package uboot-mkimage is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, oris only available from another sourceHowever the following packages replace it: u-boot-tools:i386 u-boot-tools
E: Package 'uboot-mkimage' has no installation candidate
原因:在Debian(wheezy)/ Ubuntu的13.10(saucy)起,UBOOT-MKIMAGE包已经移除;该MKIMAGE命令包含在U-Boot的 - 工具包。在Ubuntu12.04,有变动
也需要gcc-4.7-arm-linux-gnueabihf-base and g++-4.7-arm-linux-gnueabihf to gcc-4.6-arm-linux-gnueabihf-base and g++-4.6-arm-linux-gnueabih.等待安装,我的网速比较慢,速度100 Kb/s 左右 ,下完用了差不多三个小时
4、下载BSP包
git clone https://github.com/LeMaker/lemaker-bsp.git
5、编辑U-Boot、内核、固件等