Fixed
Created: May 22, 2018
Updated: Jul 24, 2018
Resolved Date: May 25, 2018
Previous ID: LIN9-6891
Found In Version: 10.17.41.7
Fix Version: 10.17.41.8
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: BSP
The layers/nxp-imx6/bootloader/create-sdcard.sh script uses the sfdisk command with deprecated arguments and fails to prepare the SD card.
Manually create 2 partitions (FAT32 and EXT3) on the SD card
On Ubuntu 16.04:
layers/nxp-imx6/bootloader$ sudo ./create-sdcard.sh /dev/sdc
################################################################################
This script will create a bootable SD card for wrlinux bsp fsl-imx6
The script must be run with root permissions
Example:
$ sudo ./create-sdcard.sh /dev/sde
################################################################################
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdc 8:32 1 7,4G 0 disk
+-sdc2 8:34 1 7,3G 0 part /media/nmarguet/root
+-sdc1 8:33 1 33M 0 part /media/nmarguet/BOOT
Would you like to re-partition the drive anyways for /dev/sdc [y/n] : y
Are you sure for formating /dev/sdc [y/n] : y
Now partitioning ...
Unmounting the /dev/sdc drives
umount /dev/sdc2
umount /dev/sdc1
1024+0 records in
1024+0 records out
1048576 bytes (1,0 MB, 1,0 MiB) copied, 0,238792 s, 4,4 MB/s
DISK SIZE - 7906263040 bytes
sfdisk: invalid option -- 'D'