Page History
...
To create the partition table run:
sudo umount /dev/sdX* (umounts unmounts device)
sudo sfdisk /dev/sdX < PathToTextFile
(To read the partition table from a storage device :
- sudo sfdisk -d /dev/sdX > PathToTextFile)
Data of each partition
Before writing data to the partitions, umount unmount the device
sudo umount /dev/sdX*
and plage the SD card in and out of the card reader.
...
The tool should be in the folder:
\intelFPGA\18.1\embedded\host_tools\altera\diskutils
Copy the SPL u-boot.bin and the Main u-boot.img to it and run:
sudo ~/intelFPGA/19.1/embedded/host_tools/altera/diskutils/alt-boot-disk-util -p preloader-mkpimage.bin -b u-boot.img -a write /dev/sdb
sudo pathToAlt-boot-disk-util -p preloaderImage.bin -b mainU-boot.img -a write /dev/sdX (the tool finds the a2 partition)
Lastly, unmount the Sd card card ( sudo umount /dev/sdX* ) and test it.
(The tool dd can also be used to write the preloader - sudo dd if=pathToSplUboot of=/dev/sdXp seek=0 bs=64k conv=fsync)
...