pandaboard ES学习之旅——1 制作烧写SD卡
1 制作烧写SD卡
Chipsee提供的说明
准备一张4G及以上的SD卡,速度CLASS4及以上,推荐Sandisk品牌;
Android 4.0:
http://releases.linaro.org/12.05/android/leb-panda/
兼容OMAP4430与OMAP4460
Ubuntu 12.04:
http://cdimage.ubuntu.com/releases/12.04/release/
注意下载: TexasInstruments OMAP4 (Hard-Float) preinstalled desktop image
该页面有详细的制作SD卡说明:https://wiki.ubuntu.com/ARM/OmapDesktopInstall
兼容OMAP4430与OMAP4460
实际过程如下:
1.1 选择linaro提供的方法Buildinga Custom Image
参考网址:http://releases.linaro.org/12.05/android/leb-panda/
1.2 Linux服务器采用64位Ubuntu 10.041.3 制作过程与说明
# Get artifacts获取映像
$wgethttp://releases.linaro.org/12.05/android/images/panda-ics-gcc47-tilt-tracking-blob/boot.tar.bz2http://releases.linaro.org/12.05/android/images/panda-ics-gcc47-tilt-tracking-blob/system.tar.bz2http://releases.linaro.org/12.05/android/images/panda-ics-gcc47-tilt-tracking-blob/userdata.tar.bz2
//Richard:实际是在本机用迅雷直接下载linaro的12.10最新版本的boot.tar.bz2 system.tar.bz2userdata.tar.bz2然后通过samba放到Linux服务器的,假如在Linux服务器采用wget下载,速度很慢很慢。本人的网络环境下,window7下用迅雷大概30分钟下载完成,而Linux服务器用wget需要半天时间。http://releases.linaro.org/12.10/android/leb-panda/
#Get linaro image tools获取linaro image tools
#method 1: using binary package for Ubuntu (PPA)
$sudo add-apt-repository ppa:linaro-maintainers/tools
$sudo apt-get update
$sudo apt-get install linaro-image-tools
//Richard:采用是方法1获取linaro image tools。
#Insert SD card and note the assigned '/dev/sdX' or '/dev/mmcblk0'
$dmesg
//Richard:为了得到SD卡插入Linux后被分配到的设备名称,在此是sdb,打印显示的是“[336076.977916] sdb: sdb1 sdb2 sdb3”。
#Create media
$sudo linaro-android-media-create --mmc /dev/sdX --dev panda --systemsystem.tar.bz2 --boot boot.tar.bz2 --userdata userdata.tar.bz2
#Get binaries
$wgethttp://releases.linaro.org/12.05/android/images/panda-ics-gcc47-tilt-tracking-blob/install-binaries.sh
$chmod a+x install-binaries.sh
$./install-binaries.sh /dev/sdX2 "device node of system partition"
//Richard:实际用的是
wgethttp://people.linaro.org/~vishalbhoj/install-binaries-4.0.4.sh
chmod a+xinstall-binaries-4.0.4.sh
bash ./install-binaries-4.0.4.sh/dev/sdb2 "device node of system partition"
特别注意:直接在Ubuntu上运行./install-binaries-4.0.4.sh命令会出现错误,必须前面加bash。
root@fwtdev2:/data/smbshare/richard/linaro_bin_12.10#./install-binaries-4.0.4.sh
trap: 22: ERR: bad trap