Patch to change the Android boot storage from eMMC to SD on SABRE-SD board.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Patch to change the Android boot storage from eMMC to SD on SABRE-SD board.

ソリューションへジャンプ
3,725件の閲覧回数
AlanSouza
Contributor III

The diff provided in the Android User Guide is not working to me. I'm trying to apply the patch but i keeps returning that **** Only garbage was found in the patch input. Where can I find the patch file?

ラベル(3)
1 解決策
2,248件の閲覧回数
AlanSouza
Contributor III

Well, seems like I was missing something applying the patch so I've modified the file /android_source_folder/device/fsl/sabresd_6dq/fstab.freescale manually and after compiling I could boot from SDCARD sucessfully.

Sorry for late reply. I just had the chance to test it.

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,248件の閲覧回数
SergioSolis
NXP Employee
NXP Employee

Hello Alan,

Can you please tell me which Android are you building? and what are the steps listed to change the boot storage from eMMC to SD?

2,249件の閲覧回数
AlanSouza
Contributor III

Well, seems like I was missing something applying the patch so I've modified the file /android_source_folder/device/fsl/sabresd_6dq/fstab.freescale manually and after compiling I could boot from SDCARD sucessfully.

Sorry for late reply. I just had the chance to test it.

0 件の賞賛
返信
2,248件の閲覧回数
AlanSouza
Contributor III

I'm building the Android 4.4.2 kit kat. The steps are pretty simple. I just need to modify the file /android_source_folder/device/fsl/sabresd_6dq/fstab.freescale according to the diff provided in the Android User Guide. The diff looks like the lines below:

diff git a/sabresd_6dq/fstab.freescale b/sabresd_6dq/fstab.freescale

index c2b737a..d2e59a3 100644

--- a/sabresd_6dq/fstab.freescale

+++ b/sabresd_6dq/fstab.freescale

@@ 3,12 +3,12 @@

# The filesystem that contains the filesystem checker binary (typically /system) cannot

# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

-/devices/platform/sdhciesdhcimx.2/mmc_host/mmc1 /mnt/media_rw/extsd vfat defaults voldmanaged=extsd:auto

+/devices/platform/sdhciesdhcimx.1/mmc_host/mmc2 /mnt/media_rw/extsd vfat defaults voldmanaged=extsd:auto /devices/platform/fslehci/mnt/udisk vfat defaults voldmanaged=sdcard:auto voldmanaged=extsd:auto

-/dev/block/mmcblk0p5    /system      ext4    ro                                        wait

-/dev/block/mmcblk0p4    /data        ext4    nosuid,nodev,nodiratime,noatime,nomblk_io_submit,noauto_da_alloc,errors=panic wait,encryptable=footer

-/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/mmcblk1p5    /system      ext4    ro                                        wait

+/dev/block/mmcblk1p4    /data        ext4    nosuid,nodev,nodiratime,noatime,nomblk_io_submit,noauto_da_alloc,errors=panic    wait,encryptable=footer

+/dev/block/mmcblk1p6    /cache          ext4    nosuid,nodev,nomblk_io_submit                            wait

+/dev/block/mmcblk1p7    /device      ext4    ro,nosuid,nodev                                    wait

+/dev/block/mmcblk1p1    /boot          emmc    defaults                                        defaults

+/dev/block/mmcblk1p2    /recovery    emmc    defaults                                        defaults

+/dev/block/mmcblk1p8    /misc        emmc    defaults                                        defaults

I've created a file file.patch with this code and applied the patch from the folder /android_source_folder/device/fsl/ using #patch -p1 < /wherever_the_patch_file_is/file.patch. Looks like I'm missing something when trying to apply the patch.

0 件の賞賛
返信