Generate eMMC partitions prior to first boot in Yocto

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

Generate eMMC partitions prior to first boot in Yocto

1,924件の閲覧回数
brendanta
Contributor II

I am using Yocto to generate the required files to get my iMX6 VAR SOM Solo up and running.  I have no issues with generating these files or anything but I am wondering what I need to do to format and partition the eMMC prior to loading the files onto my board.  

I have a bash script which does this by sfdisk and mkfs.ext4 commands however this script is run after the system has initialised.

mkdir -p /tmp/emmc_ro
mkdir -p /tmp/emmc_rw

if [ ! -e /dev/mmcblk0p1 ]; then
    sfdisk /dev/mmcblk0 << EOF
    , 1G
    , +
    write
    EOF
        mkfs.ext4 /dev/mmcblk0p1
        mkfs.ext4 /dev/mmcblk0p2
fi

Any help would be greatly appreciated. 

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

1,497件の閲覧回数
art
NXP Employee
NXP Employee

Please refer to the attached document, especially, to the Section 4.3 "Preparing an SD/MMC card to boot".


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信