本文主要是介绍s5p4418 从tf 启动android5.1,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1、uboot 中的分区相关的配置:
u-boot\include\configs\s5p4418_drone.h
#define CONFIG_BOOTCOMMAND "ext4load mmc 0:1 0x48000000 uImage;ext4load mmc 0:1 0x49000000 root.img.gz;bootm 0x48000000"
#define CONFIG_BOOTARGS "lcd=ts8055pn tp=gt9517 root=/dev/mmcblk1p1"
#define CONFIG_DWMMC
#define CONFIG_NXP_DWMMC
#define CONFIG_MMC_PARTITIONS
#define CONFIG_CMD_MMC_UPDATE
#define CONFIG_SYS_MMC_BOOT_DEV (0) /* BOOT MMC DEVICE NUM */
//注意这里ubootpak 已经打包了2ndboot 和 bootloader,fastboot烧录直接烧录 ubootpak
#define FASTBOOT_PARTS_DEFAULT \
"flash=mmc,0:ubootpak:2nd:0x200,0x78000;" \
"flash=mmc,0:2ndboot:2nd:0x200,0x4000;" \
"flash=mmc,0:bootloader:boot:0x8000,0x70000;" \
"flash=mmc,0:boot:ext4:0x00100000,0x04000000;" \
"flash=mmc,0:system:ext4:0x04100000,0x2F200000;" \
"flash=mmc,0:cache:ext4:0x33300000,0x1AC00000;" \
"flash=mmc,0:misc:emmc:0x4E000000,0x00800000;" \
"flash=mmc,0:recovery:emmc:0x4E900000,0x01600000;" \
"flash=mmc,0:userdata:ext4:0x50000000,0x0;"
#endif
2、安卓系统启动磁盘挂载修改:
device\nexell\s5p4418_drone\fstab.s5p4418_drone
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# 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
/dev/block/platform/dw_mmc.0/mmcblk1p2 /system ext4 rw wait
/dev/block/platform/dw_mmc.0/mmcblk1p3 /cache ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,check
/dev/block/platform/dw_mmc.0/mmcblk1p7 /data ext4 noatime,nosuid,nodev,nomblk_io_submit,errors=panic wait,check
/devices/platform/nxp-ehci/usb1/1-1/1-1.2/1-1.2:1.0 /storage/usbdisk1 vfat defaults voldmanaged=usbdisk1:auto,noemulatedsd
/devices/platform/nxp-ehci/usb1/1-1/1-1.2/1-1.2.1 /storage/usbdisk1 vfat defaults voldmanaged=usbdisk1:auto,noemulatedsd
/devices/platform/nxp-ehci/usb1/1-1/1-1.2/1-1.2.2 /storage/usbdisk2 vfat defaults voldmanaged=usbdisk2:auto,noemulatedsd
/devices/platform/nxp-ehci/usb1/1-1/1-1.2/1-1.2.3 /storage/usbdisk3 vfat defaults voldmanaged=usbdisk3:auto,noemulatedsd
/devices/platform/nxp-ehci/usb1/1-1/1-1.2/1-1.2.4 /storage/usbdisk4 vfat defaults voldmanaged=usbdisk4:auto,noemulatedsd
/devices/platform/dwc_otg/usb2/2-1/2-1:1.0 /storage/usbdisk5 vfat defaults voldmanaged=usbdisk5:auto,noemulatedsd
/devices/platform/dwc_otg/usb2/2-1/2-1.1 /storage/usbdisk5 vfat defaults voldmanaged=usbdisk5:auto,noemulatedsd
/devices/platform/dwc_otg/usb2/2-1/2-1.2 /storage/usbdisk6 vfat defaults voldmanaged=usbdisk6:auto,noemulatedsd
/devices/platform/dwc_otg/usb2/2-1/2-1.3 /storage/usbdisk7 vfat defaults voldmanaged=usbdisk7:auto,noemulatedsd
/devices/platform/dwc_otg/usb2/2-1/2-1.4 /storage/usbdisk8 vfat defaults voldmanaged=usbdisk8:auto,noemulatedsd
#/devices/platform/dw_mmc.0/mmc_host/mmc1/mmc1 /storage/sdcard1 vfat defaults voldmanaged=sdcard1:auto
#/devices/platform/dw_mmc.1/mmc_host/mmc2/mmc2 /storage/sdcard2 vfat defaults voldmanaged=sdcard2:auto
完成修改后重新编译
插卡,卡上的所有分区清空,做空卡
刷入ubootpak.bin : sudo ./s5p4418-sdmmc.sh /dev/sdb ubootpak.bin
插到机器上启动,进串口fastboot
然后就直接使用fastboot 烧录系统即可。
这篇关于s5p4418 从tf 启动android5.1的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!