...
- Determine the SD card device name
The SD card device name is of the form /dev/sd[b|c|d|e]. Run the following without and with the SD card connected:
Code Block language bash ls /dev/sd*
The device that appeared on the call to ls with the SD card but not the call without is the SD card device.
Unmount all partitions of the SD card, using the SD card device name from Step 1:
Code Block language bash umount /dev/sd[b|c|d|e]*
Load the SD card image onto the SD card from the linux command line. This will format the appropriate partitions, as well as add U-Boot, the kernel image, and the root filesystem to the card.
From the directory that contains the '.sdcard' file, execute the following command:
Code Block language bash sudo dd if=fsl-image-gui-<MACHINE_NAME>.sdcard of=/dev/sd[b|c|d|e] bs=1MB && sync
...
If modifying the kernel, remove the existing zImage and device tree binary files:
Code Block language bash rm /media/<user>/Boot\ imx7-p/zImage rm /media/<user>/Boot\ imx7-p/<MACHINE NAME>.dtb
Load the new Linux kernel and device tree binary to the SD Card:
Code Block language bash cp zImage /media/<user>/Boot\ imx7-p/; sync cp zImage-<MACHINE NAME>.dtb /media/<user>/Boot\ imx7-p/<MACHINE NAME>.dtb; sync
...
If modifying the root filesystem, remove the existing:
Code Block language bash sudo rm -rf /media/<user>/<rootfs partition>/*
Load the new filesystem to the SD Card:
Code Block language bash sudo tar -jxf fsl-image-gui-<MACHINE NAME>.tar.bz2 -C /media/<user>/<rootfs partition>/; sync
...
Flash u-boot to the SD card:
Code Block language bash sudo dd if=u-boot.imx of=/dev/sd[b|c|d|e] bs=512 seek=2 conv=fsync