1、下载Android_User_Guide.pdf:
\i.MX6Quad\Run-time Software (25)\Operating System Software-Board Support Packages (12)
imx-android-13.4.1.tar.gz
解压缩imx-android-13.4.1.tar.gz在doc文件夹内获得:Android_User_Guide.pdf
2、修改默认的eMMC启动为SD卡启动
5.5.2 Build Android image for SD card
The default configuration in the source code package takes internal eMMC as the boot storage.
The default setting can be changed to make the SD card in SD Slot 3 be the boot storage as shown below:
Change the init.rc configure files in device/fsl.git by using the following patch to make sure that the partitions are mounted for SD:
cd ~/myandroid/out/target/product/sabresd_6dq/root/
gedit init.freescale.rc
编辑init.freescale.rc,将最后面的:
on fs
# mount ext4 partitions
mount ext4 /dev/block/mmcblk0p5 /system
mount ext4 /dev/block/mmcblk0p5 /system ro remount
mount ext4 /dev/block/mmcblk0p7 /data nosuid nodev nodiratime noatime errors=panic,discard,nomblk_io_submit,noauto_da_alloc
mount ext4 /dev/block/mmcblk0p6 /cache nosuid nodev
mount ext4 /dev/block/mmcblk0p8 /device ro nosuid nodev
修改为:
on fs
# mount ext4 partitions
mount ext4 /dev/block/mmcblk1p5 /system
mount ext4 /dev/block/mmcblk1p5 /system ro remount
mount ext4 /dev/block/mmcblk1p7 /data nosuid nodev nodiratime noatime errors=panic,discard,nomblk_io_submit,noauto_da_alloc
mount ext4 /dev/block/mmcblk1p6 /cache nosuid nodev
mount ext4 /dev/block/mmcblk1p8 /device ro nosuid nodev
3、分区:
6.1.1 Storage Partitions
The layout of the MMC/SD/TF card for Android system is shown below:
[Partition type/index] is which defined in the MBR.
[Name] is only meaningful in Android. You can ignore it when creating these partitions.
[Start Offset] shows where partition is started, unit in MB.
The SYSTEM partition is used to put the built out Android system image. The DATA is used to put applications' unpacked
codes/data, system configuration database, etc. In normal boot mode, the root file system is mounted from uramdisk. In
recovery mode, the root file system is mounted from the RECOVERY partition.
root@ubuntu:~/myandroid# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 71215496 30534328 37063632 46% /
none 1194056 660 1193396 1% /dev
none 1201792 24 1201768 1% /dev/shm
none 1201792 316 1201476 1% /var/run
none 1201792 0 1201792 0% /var/lock
/dev/sdb1 7630848 570112 7060736 8% /media/2B89-C290
root@ubuntu:~/myandroid#
给SD卡分区
6.1.1 Storage Partitions
cd ~/myandroid/
chmod +x ./prebuilt/linux-x86/fsl/fsl-sdcard-partition.sh
df
【以实际为准】
umount /media/2B89-C290/
df
./prebuilt/linux-x86/fsl/fsl-sdcard-partition.sh /dev/sdb
4、用dd命令下载系统到SD卡
6.1.3 Download Images with dd Utility
The linux utility "dd" on Linux PC can be used to download the images into the MMC/SD/TF card.
Before downloading, make sure your MMC/SD/TF card partitions are created as described in Storage Partitions.
All partitions can be recognized by the Linux PC. To download all images into the card, please use the commands below:
Download the U-Boot image:
# sudo dd if=u-boot.bin of=/dev/sdx bs=1K skip=1 seek=1; sync
Or If you're using no padding uboot image:
# sudo dd if=u-boot-no-padding.bin of=/dev/sdx bs=1K seek=1; sync
Download the boot image:
# sudo dd if=boot.img of=/dev/sdx1; sync
Download the android system root image:
# sudo dd if=system.img of=/dev/sdx5; sync
Download the android recovery image:
# sudo dd if=recovery.img of=/dev/sdx2; sync
NOTE
Xis supposed to be changed depending on the letter assigned to the SD by Linux.
给各分区写入相应的文件系统。
cd ~/myandroid/bootable/bootloader/uboot-imx/
dd if=u-boot.bin of=/dev/sdb bs=1K skip=1 seek=1; sync
cd ~/myandroid/out/target/product/sabresd_6dq/
dd if=u-boot-6q.bin of=/dev/sdb bs=1K skip=1 seek=1; sync
dd if=boot.img of=/dev/sdb1; sync
dd if=system.img of=/dev/sdb5; sync
dd if=recovery.img of=/dev/sdb2; sync
5、设置为从SD卡启动:
以HDMI方式输出到LCD/投影仪:
3.3.2 Boot with HDMI Display Single Display (6Dual/6Quad)
setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60 video=mxcfb1:off video=mxcfb2:off fbmem=28M
setenv bootcmd booti mmc2
saveenv
阅读(3043) | 评论(0) | 转发(0) |