網路城邦
上一篇 回創作列表 下一篇   字體:
E9 SD boot (天嵌 embedsky Freescale imx6 )
2014/05/29 17:05:44瀏覽754|回應0|推薦0

##########

#BSB modify

#change string of mmcblk0 to string of mmcblk1
gedit device/fsl/imx6/etc/fstab.freescale
gedit device/fsl/sabresd_6dq/recovery.fstab
#mask below and it no use any more
gedit device/fsl/sabresd_6dq/vold.fstab
#dev_mount extsd /mnt/extsd auto /devices/platform/sdhci-esdhc-imx.1/mmc_host/mmc1

##########
#Making a bootalbe SD card for embedsky E9 by writting SD directly

sudo dd if=/dev/zero of=/dev/sdb bs=1024 count=1000
sudo dd if=u-boot.bin of=/dev/sdb bs=1024
#write 9 partition design to MBR
sudo ./mksdcard-android.sh /dev/sdb
sudo eject /dev/sdb

#remove SD and plug in again. system detect 9 partition
mkfs.ext4 /dev/sdb4
mkfs.ext4 /dev/sdb6
mkfs.ext4 /dev/sdb7
sudo dd if=boot.img of=/dev/sdb1 bs=1024 ;sync
sudo dd if=recovery.img of=/dev/sdb2 bs=1024 ; sync
sudo dd if=system.img of=/dev/sdb5 bs=1024 ; sync

#first boot, uboot setting
setenv bootcmd_mmc_android 'run bootargs_base_andorid; booti mmc1'
setenv displayArgs 'video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=48M'
#Making a bootalbe SD card for embedsky E9 by fastboot
sudo dd if=u-boot.bin of=/dev/sdb bs=1024 ; sync
#write 9 partition design to MBR
sudo ./mksdcard-android.sh  /dev/sdb
sudo eject /dev/sdb

##########
#remove SD and plug to E9 demo board, boot and run fastboot
#target-e9
setenv fastboot_dev 'mmc3'
#host-pc
sudo fastboot flash bootloader u-boot.bin
sudo fastboot flash boot boot.img
sudo fastboot flash system system.img
sudo fastboot flash recovery recovery.img
( 心情隨筆心情日記 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=13727980