|
0x7_leb_gingerbread
Release Note: 0x7-LEB-Gingerbread for Beagleboard-xM and Pandaboard0xLab is glad to announce the availability of new 0xdroid release - version 0x7. This release is built upon the efforts of Linaro Evaluation Build (LEB) for Android. Linaro is a NFP (Not For Profit) organization that aims to make embedded open source development easier and faster. Linaro distributes LEB which is tested, optimized and benchmarked. In this release, 0xLab made an attempt to merge our effort to LEB, which provides both improvements by 0xLab and Linaro. Release Details
Where to DownloadIn this release, we use Linaro Image Tool to install image to Sd Card. And this release supports two boards.
Intall Prebuilt ImageFirst, please insert your Sd Card and use dmesg to see its device file. It might be /dev/sdb, /dev/sdc or /dev/mmcblk0. Depends on your machine. $ dmesg |tail To install prebuilt image to Sd Card, we use linaro-image-tool (see #Moreover to install needed modules. Or see #Install_Image_Manually if you don't want to use the tool) $ mkdir /tmp/image $ cd /tmp/image $ wget http://launchpad.net/linaro-image-tools/trunk/0.4.5/+download/linaro-image-tools-0.4.5.tar.gz $ tar zxvf linaro-image-tools-0.4.5.tar.gz $ cd linaro-image-tools-0.4.5
$ wget http://downloads.0xlab.org/release/0x7-leb-gingerbread-beaglexm/boot.tar.bz2
$ wget http://downloads.0xlab.org/release/0x7-leb-gingerbread-beaglexm/system.tar.bz2
$ wget http://downloads.0xlab.org/release/0x7-leb-gingerbread-beaglexm/userdata.tar.bz2
$ sudo ./linaro-android-media-create \
--boot boot.tar.bz2 \
--system system.tar.bz2 \
--userdata userdata.tar.bz2 \
--dev beagle --mmc /dev/mmcblk0 $ wget http://downloads.0xlab.org/release/0x7-leb-gingerbread-pandaboard/boot.tar.bz2
$ wget http://downloads.0xlab.org/release/0x7-leb-gingerbread-pandaboard/system.tar.bz2
$ wget http://downloads.0xlab.org/release/0x7-leb-gingerbread-pandaboard/userdata.tar.bz2
$ sudo ./linaro-android-media-create \
--boot boot.tar.bz2 \
--system system.tar.bz2 \
--userdata userdata.tar.bz2 \
--dev panda --mmc /dev/mmcblk0Note: The parameter of --mmc refer to device file of the Sd Card. Once the installation complete, insert the Sd Card to Beagleboard-xM/Pandaboard then power on, there you go. Build from scratchAssume All your works are under $HOME/0xdroid/. To build image from source code, just needs to finish these steps.
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo repo init -u git://gitorious.org/0xdroid/manifest.git \ --reference=/path/to/aosp/ -b leb-0xdroid -m LEB-beaglexm.xml repo init -u git://gitorious.org/0xdroid/manifest.git -b leb-0xdroid -m LEB-beaglexm.xml $ echo "TARGET_PRODUCT=beagleboard" > buildspec.mk $ echo "TARGET_TOOLS=$HOME/0xdroid/prebuilt/linux-x86/toolchain/arm-eabi-4.5.4/bin/arm-eabi-">> buildspec.mk $ echo "TARGET_TOOLS_PREFIX=$HOME/0xdroid/prebuilt/linux-x86/toolchain/arm-eabi-4.5.4/bin/arm-eabi-" >> buildspec.mk $ echo "TARGET_SHELL=mksh" >> buildspec.mk $ make boottarball systemtarball userdatatarball $ mkdir $HOME/0xdroid/lamc $ cd $HOME/0xdroid/lamc $ wget http://launchpad.net/linaro-image-tools/trunk/0.4.5/+download/linaro-image-tools-0.4.5.tar.gz $ tar zxvf linaro-image-tools-0.4.5.tar.gz $ cd $HOME/0xdroid/out/target/product/beagleboard
$ sudo $HOME/0xdroid/lamc/linaro-image-tools-0.4.5/linaro-android-media-create \
--boot boot.tar.bz2 \
--system system.tar.bz2 \
--userdata userdata.tar.bz2 \
--dev beagle --mmc /dev/mmcblk0
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo $ chmod a+x ~/bin/repo repo init -u git://gitorious.org/0xdroid/manifest.git \ --reference=/path/to/aosp/ -b leb-0xdroid -m LEB-panda.xml repo init -u git://gitorious.org/0xdroid/manifest.git -b leb-0xdroid -m LEB-panda.xml $ echo "TARGET_PRODUCT=pandaboard" > buildspec.mk $ echo "TARGET_TOOLS=$HOME/0xdroid/prebuilt/linux-x86/toolchain/arm-eabi-4.5.4/bin/arm-eabi-">> buildspec.mk $ echo "TARGET_TOOLS_PREFIX=$HOME/0xdroid/prebuilt/linux-x86/toolchain/arm-eabi-4.5.4/bin/arm-eabi-" >> buildspec.mk $ echo "TARGET_SHELL=mksh" >> buildspec.mk $ make boottarball systemtarball userdatatarball $ mkdir $HOME/0xdroid/lamc $ cd $HOME/0xdroid/lamc $ wget http://launchpad.net/linaro-image-tools/trunk/0.4.5/+download/linaro-image-tools-0.4.5.tar.gz $ tar zxvf linaro-image-tools-0.4.5.tar.gz $ cd $HOME/0xdroid/out/target/product/pandaboard
$ sudo $HOME/0xdroid/lamc/linaro-image-tools-0.4.5/linaro-android-media-create \
--boot boot.tar.bz2 \
--system system.tar.bz2 \
--userdata userdata.tar.bz2 \
--dev panda --mmc /dev/mmcblk0Install Image ManuallyOf course you can install image to Sd Card manually without Linaro Image Tool. Assume there are boot.tar.bz2, system.tar.bz2 and userdata.tar.bz2 under /tmp/image. And the device file of your Sd Card is /dev/mmcblk0
echo -e "63,270272,0x0C,* \n270336,524288,L \n794624,524288,L \n1318912,-,E \n1318944,1048544,L \n2367520,-,L\ " | sudo sfdisk --force -D -uS -H 128 -S 32 /dev/mmcblk0 sudo mkfs.vfat -F 32 /dev/mmcblk0p1 -n boot sudo mkfs.ext4 /dev/mmcblk0p2 -L system sudo mkfs.ext4 /dev/mmcblk0p3 -L cache sudo mkfs.ext4 /dev/mmcblk0p5 -L userdata sudo mkfs.vfat -F 32 /dev/mmcblk0p6 -n sdcard sudo mount /dev/mmcblk0p1 /tmp/image/boot sudo mount /dev/mmcblk0p2 /tmp/image/system sudo mount /dev/mmcblk0p5 /tmp/image/data sudo tar xvf boot.tar.bz2 -C /tmp/image sudo tar xvf system.tar.bz2 -C /tmp/image sudo tar xvf userdata.tar.bz2 -C /tmp/image sync echo "setenv bootcmd 'fatload mmc 0:1 0x80200000 uImage; fatload mmc 0:1 \ 0x81600000 uInitrd; bootm 0x80200000 0x81600000'" > boot.txt echo "setenv bootargs 'console=tty0 console=ttyO2,115200n8 rootwait ro earlyprintk \ fixrtc nocompcache vram=32M omapfb.vram=0:8M mem=456M@0x80000000 \ mem=512M@0xA0000000 init=/init androidboot.console=ttyO2 omapdss.def_disp=dvi \ omapfb.mode=dvi:1280x720MR-24@60 consoleblank=0'" >> boot.txt echo "boot" >> boot.txt sudo cp boot.txt /tmp/image/boot/ sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'boot script' -d /tmp/image/boot/boot.txt /tmp/image/boot/boot.scr sync sudo umount /tmp/image/boot/ /tmp/image/system/ /tmp/image/data/ Moreover
$ sudo aptitude install python-argparse python-parted | |||||||||||||||