[table=98%]
[tr][td]以下操作均在运行ubuntu 14.04的PC上面进行。
- 下载u-boot
$ git clone git://git.denx.de/u-boot.git
$ cd u-boot
$ export ARCH=arm
$ export CROSS_COMPILE=arm-linux-gnueabi- (如果没有:sudo apt-get install gcc-arm-linux-gnueabi)
$ make Bananapi_defconfig
$ make
如果一切顺利,在u-boot目录下面会生成u-boot-sunxi-with-spl.bin, 将这个文件用下面命令写入到SD卡上面
$ sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
然后,将SD卡插入BananaPi,启动得到下面信息:
----华丽分割线----
U-Boot SPL 2015.01-rc3-00089-ga5a5882 (Dec 15 2014 - 22:09:57)
DRAM: 1024 MiB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
U-Boot 2015.01-rc3-00089-ga5a5882 (Dec 15 2014 - 22:09:57) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
I2C: ready
DRAM: 1016 MiB
MMC: SUNXI SD/MMC: 0
Reserved 8192kB of RAM for Framebuffer.
In: serial
Out: serial
Err: serial
SCSI: SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net: dwmac.1c50000
Hit any key to stop autoboot: 0
-------------
转自:http://www.52pi.net/forum.php?mod=viewthread&tid=1239&extra=page%3D1
[/td][/tr]
[/table]