PHYTEC
Page 12
1.
host$ sudo fdisk -l /dev/sdc
You will receive:
Disk /dev/sdc: 4025 MB, 4025483264 bytes
4 heads, 32 sectors/track, 61424 cylinders, total 7862272 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
Disk identifier: 0x26edf128
Device Boot Start End Blocks Id System
/dev/sdc1 8192 24575 8192 c W95 FAT32 (LBA)
/dev/sdc2 24576 655359 315392 83 Linux
Remove and reinsert the card. Otherwise,
will not recognize the new partitions created in the previous step.
Linux
Create a file system on the partitions with (replace
with your device):
sde
host$ sudo mkfs.vfat /dev/sde1
host$ sudo mkfs.ext4 -L "rootfs" /dev/sde2
Now, the images need to be copied to the SD card.
Write the bootloader in front of the first partition (replace
with your device):
sde
host$ dd if=imx-boot-phyboard-pollux-imx8mp-1-sd.bin-flash_evk of=/dev/sde bs=1k seek=32 conv=fsync
Mount the first partition (
) and copy the
and
file to it:
vfat
Image
oftree
host$ sudo mount /dev/sd<X>1 /mnt
In case you want to boot the whole
from the SD card, also mount the
partition.
Linux
ext4
Then untar
image to it:
<IMAGENAME>-<MACHINE>.tar.gz rootfs
host$ sudo mount /dev/sd<X>2 /media
host$ sudo tar xfz <IMAGENAME>-<MACHINE>.tar.gz -C /media/
Do not forget to properly unmount the SD card with:
host$ sudo umount /media
Booting the Kernel from Network
Booting from the network means loading the kernel over TFTP and the root filesystem over NFS. The bootloader itself must already be loaded from
another boot device that is available.
Development Host Preparations
On the development host, a TFTP server must be installed and configured. The following tool will be needed to boot the kernel from Ethernet:
A TFTP server
For
install:
Ubuntu
Warning
Make sure that the images are named
as previously mentioned as the bootloader expects them to be named as such.
exactly