PHYTEC
Page 16
Updating eMMC via SD Card
Even if there is no network available, you can update the eMMC. For that, you only need a ready-to-use image file (
) located on the SD card.
*.sdcard
Because the image file is quite large, you have to enlarge your SD card to use its full space (if it was not enlarged before). To enlarge your SD card, see
Updating SD Card in u-boot on Target
Configuring SD Card for Flash
First, we create a new partition on the SD card to store the image in it.
On your host, insert the SD card and see in
, which one it is:
dmesg
host$ dmesg | tail
...
[30436.175412] sd 4:0:0:0: [sdb] 62453760 512-byte logical blocks: (32.0 GB/29.8 GiB)
[30436.179846] sdb: sdb1 sdb2
...
Create a new partition with
:
sudo fdisk /dev/sd<x>
host$ sudo fdisk /dev/sdb
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 29,8 GiB, 31976325120 bytes, 62453760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd28c31b9
Device Boot Start End Sectors Size Id Type
/dev/sdb1 16384 81919 65536 32M c W95 FAT32 (LBA)
/dev/sdb2 81920 3375103 3293184 1,6G 83 Linux
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (3,4, default 3): 3
First sector (2048-62453759, default 2048): 3440640
Last sector, +sectors or +size{K,M,G,T,P} (3440640-62453759, default 62453759):
Created a new partition 3 of type 'Linux' and of size 28,1 GiB.
Command (m for help): t
Partition number (1-3, default 3): 3
Partition type (type L to list all types): c
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Give the new partition a name and mount it: