如何对 eMMC 进行分区? [英] How to I partition eMMC ?

查看:170
本文介绍了如何对 eMMC 进行分区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个已经运行 Yocto 系统的开发板.并且我们希望它运行android系统,我们已经用Yocto内核编译了android映像,其中包含android的一些补丁.

We have an development board that has been run Yocto system. and we want it to run android system, we already has compiled android image with Yocto kernel that has android's some patch.

由于Yocto系统分区与android系统不同,我们不知道如何将android镜像(如system.img boot.img和recovery.img等)刷入开发板.

We don't know how to flash the android image (such as system.img boot.img and recovery.img and so on) to the development board because of the Yocto system partition different with android system.

我们可以使用fastboot工具将Yocto系统刷入EVB.我们想知道:

we can use fastboot tool to flash Yocto system to EVB.and we want to know:

  1. 如何对eMMC进行分区,我们可以使用fastboot工具刷入android系统.我们需要修改小内核代码吗?以及如何在 Yocto 系统中修改它.

  1. How to partition eMMC that we can use fastboot tool to flash android system. Do we need to modify Little Kernel code ? and how to modify it in Yocto system.

我们如何启动安卓系统?

How to we boot the android system up?

如果您提供任何有用的信息,我们将不胜感激.

It would be appreciated if you offer any useful information.

谢谢

推荐答案

如何对eMMC进行分区,我们可以使用fastboot工具刷机.

How to partition eMMC that we can use fastboot tool to flash android system.

您需要一个可以对 eMMC 进行分区的工具.考虑到您正在使用 yocto,您最好的选择是 gptfdisk 包.gptfdisk 配方位于路径 poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.0.bb.gptfdisk 提供以下文本模式分区工具

You'll need a tool that can partition the eMMC. Considering you are using yocto your best bet is gptfdisk package. gptfdisk recipe is at path poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.0.bb. gptfdisk provides following text-mode partitioning tools

  • gdisk,
  • cgdisk,
  • sgdisk,
  • 修复部分

您可以使用其中一种工具在分区表中重新创建分区.

You can use one of these tools to recreate the partitions in the partition table.

以及如何在 Yocto 系统中修改它.

and how to modify it in Yocto system.

在 conf 文件中做 IMAGE_INSTALL_append = " gptfdisk " 使这个包的工具成为你镜像的一部分.

Do IMAGE_INSTALL_append = " gptfdisk " in conf file to make the tools of this package part of your image.

我们如何启动安卓系统?

How to we boot the android system up?

你需要 3 个分区

  • system.img - 进入名为 system 的分区
  • boot.img - 进入名为 boot 的系统
  • 和 recovery.img - 进入名为 recovery 的系统

每个工具在 Linux 上都有一个手册页.您可以使用man sgdiskman gdiskman cgdiskman fixparts 阅读手册.sgdisk

Each tool has a man page on Linux. You can read the manuals using man sgdisk, man gdisk, man cgdisk and man fixparts. Some example usages of sgdisk

  • sgdisk -p - 打印磁盘上的所有分区
  • sgdisk --delete=partnum - 删除一个分区.此操作从分区表中删除条目

这篇关于如何对 eMMC 进行分区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆