s5p4418 从tf 启动android5.1

2024-04-03 23:32
文章标签 启动 tf android5.1 s5p4418

本文主要是介绍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的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/874260

相关文章

SpringBoot启动报错的11个高频问题排查与解决终极指南

《SpringBoot启动报错的11个高频问题排查与解决终极指南》这篇文章主要为大家详细介绍了SpringBoot启动报错的11个高频问题的排查与解决,文中的示例代码讲解详细,感兴趣的小伙伴可以了解一... 目录1. 依赖冲突:NoSuchMethodError 的终极解法2. Bean注入失败:No qu

一文带你了解SpringBoot中启动参数的各种用法

《一文带你了解SpringBoot中启动参数的各种用法》在使用SpringBoot开发应用时,我们通常需要根据不同的环境或特定需求调整启动参数,那么,SpringBoot提供了哪些方式来配置这些启动参... 目录一、启动参数的常见传递方式二、通过命令行参数传递启动参数三、使用 application.pro

SpringBoot项目启动报错"找不到或无法加载主类"的解决方法

《SpringBoot项目启动报错找不到或无法加载主类的解决方法》在使用IntelliJIDEA开发基于SpringBoot框架的Java程序时,可能会出现找不到或无法加载主类com.example.... 目录一、问题描述二、排查过程三、解决方案一、问题描述在使用 IntelliJ IDEA 开发基于

SpringBoot项目启动错误:找不到或无法加载主类的几种解决方法

《SpringBoot项目启动错误:找不到或无法加载主类的几种解决方法》本文主要介绍了SpringBoot项目启动错误:找不到或无法加载主类的几种解决方法,具有一定的参考价值,感兴趣的可以了解一下... 目录方法1:更改IDE配置方法2:在Eclipse中清理项目方法3:使用Maven命令行在开发Sprin

Nginx启动失败:端口80被占用问题的解决方案

《Nginx启动失败:端口80被占用问题的解决方案》在Linux服务器上部署Nginx时,可能会遇到Nginx启动失败的情况,尤其是错误提示bind()to0.0.0.0:80failed,这种问题通... 目录引言问题描述问题分析解决方案1. 检查占用端口 80 的进程使用 netstat 命令使用 ss

Android里面的Service种类以及启动方式

《Android里面的Service种类以及启动方式》Android中的Service分为前台服务和后台服务,前台服务需要亮身份牌并显示通知,后台服务则有启动方式选择,包括startService和b... 目录一句话总结:一、Service 的两种类型:1. 前台服务(必须亮身份牌)2. 后台服务(偷偷干

Windows设置nginx启动端口的方法

《Windows设置nginx启动端口的方法》在服务器配置与开发过程中,nginx作为一款高效的HTTP和反向代理服务器,被广泛应用,而在Windows系统中,合理设置nginx的启动端口,是确保其正... 目录一、为什么要设置 nginx 启动端口二、设置步骤三、常见问题及解决一、为什么要设置 nginx

springboot启动流程过程

《springboot启动流程过程》SpringBoot简化了Spring框架的使用,通过创建`SpringApplication`对象,判断应用类型并设置初始化器和监听器,在`run`方法中,读取配... 目录springboot启动流程springboot程序启动入口1.创建SpringApplicat

树莓派启动python的实现方法

《树莓派启动python的实现方法》本文主要介绍了树莓派启动python的实现方法,文中通过图文介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧... 目录一、RASPBerry系统设置二、使用sandroidsh连接上开发板Raspberry Pi三、运

SpringBoot项目启动后自动加载系统配置的多种实现方式

《SpringBoot项目启动后自动加载系统配置的多种实现方式》:本文主要介绍SpringBoot项目启动后自动加载系统配置的多种实现方式,并通过代码示例讲解的非常详细,对大家的学习或工作有一定的... 目录1. 使用 CommandLineRunner实现方式:2. 使用 ApplicationRunne