[imx6q][android]學習筆記-修改android程式碼裡的分割槽資訊

fulinux發表於2016-09-27

出現這個錯誤:fs_mgr: Error opening block device (No such file or directory)fs_mgr: Failed to get ext4 fs size on /dev/block/mmcblk3p5.fs_mgr: Could not set up verified partition, skipping!

應該是imx6q-sabresd板子預設的sd槽是sd3,而我的是sd1, 所以需要將myandroid/device/fsl/imx6/sabresd_6dq.mk檔案中

PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/mmcblk3p5

改為,

PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/mmcblk0p5


還有這個myandroid/device/fsl/sabresd_6dq/fstab.freescale檔案中

/devices/soc0/soc/2100000.aips-bus/2198000.usdhc/mmc_host* auto auto defaults voldmanaged=sdcard:auto,encryptable=userdata
/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0*  auto auto defaults voldmanaged=usb:auto

/dev/block/mmcblk3p5    /system      ext4    ro,    
barrier=1                                                                               wait,verify
/dev/block/mmcblk3p4    /data        ext4    nosuid,nodev,nodiratime,noatime,nomblk_io_submit,noauto_da_alloc,errors=panic    wait,
encryptable=/dev/block/mmcblk3p9
/dev/block/mmcblk3p6    /cache       ext4    nosuid,nodev,nomblk_io_submit                                                    wait
/dev/block/mmcblk3p7    /device      ext4    ro,nosuid,nodev                                                                  wait
/dev/block/mmcblk3p1    /boot        emmc    defaults           
defaults
/dev/block/mmcblk3p2    /recovery    emmc    defaults    
defaults
/dev/block/mmcblk3p8    /misc        emmc    defaults    
defaults
/dev/block/mmcblk3boot0 /bootloader  emmc    defaults    
defaults

改為,

/devices/soc0/soc/2100000.aips-bus/2190000.usdhc/mmc_host* auto auto defaults voldmanaged=sdcard:auto,encryptable=userdata
/devices/soc0/soc/2100000.aips-bus/2184000.usb/ci_hdrc.0*  auto auto defaults voldmanaged=usb:auto

/dev/block/mmcblk0p5    /system      ext4    ro,    
barrier=1                                                                               wait,verify
/dev/block/mmcblk0p4    /data        ext4    nosuid,nodev,nodiratime,noatime,nomblk_io_submit,noauto_da_alloc,errors=panic    wait,
encryptable=/dev/block/mmcblk3p9
/dev/block/mmcblk0p6    /cache       ext4    nosuid,nodev,nomblk_io_submit                                                    wait
/dev/block/mmcblk0p7    /device      ext4    ro,nosuid,nodev                                                                  wait
/dev/block/mmcblk0p1    /boot        emmc    defaults           
defaults
/dev/block/mmcblk0p2    /recovery    emmc    defaults    
defaults
/dev/block/mmcblk0p8    /misc        emmc    defaults    
defaults
/dev/block/mmcblk0boot0 /bootloader  emmc    defaults    
defaults


相關文章