Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to build a bootable SD Card image with partitions from win32: (1 Item)
   
How to build a bootable SD Card image with partitions from win32  
Hello, I am trying to make a SD Card image without using a neutrino environment where I have fdisk / mount, etc.

I would like to create the same image with some sequence where dd creates the image file (say 64 meg) and then 
initializes it in a similar manner as below.

My SDCard image script does the following with a SD card mounted in a USB reader/writer for the card.

umount /fs/usb0
umount /fs/usb1
umount /fs/usb2
umount /fs/usb3

fdisk /dev/umass0 delete
fdisk /dev/umass0 add
echo removing partitions
fdisk /dev/umass0 delete -a

echo creating partions
fdisk /dev/umass0 add -c 0,15 -s 1 -t 79
fdisk /dev/umass0 add -c 16,31 -s 2 -t 77

mount -e /dev/umass0
fdisk /dev/umass0 show

echo initializing the boot partition
dinit -q -h -f $ifsSrc  /dev/umass0t79
dinit -q -h /dev/umass0t77

echo mounting partitions
mount -tqnx4 /dev/umass0t77 /var/tmp/opt
mount -tqnx4 /dev/umass0t79 /var/tmp/root


Mark Clark
Embedded Software Engineer
Embedded Software, Cedar Park, TX

Attachment: HTML sf-attachment-mime32711 4.37 KB