Page History
...
- Create a vFAT filesystem on partition 1 via sudo mkfs -t vfat /dev/sdXXX1, whereby XXX symbols the above detected SD card identifier.
- Create a an ext3 filesystem on partition 2 via sudo mkfs.ext3 /dev/sdXXX1, whereby XXX symbols the above detected SD card identifier.
- No extra filesystem for partition 3 is needed.
...
- Copy the linux root filesystem to the ext3 partition 2 and decompress it if it is compressed.
- For Linux this can be done using the following steps:
- Mount the ext3-partition (in this case 2) to an available folder (e.g. /mnt/mountpoint) via sudo mount /dev/<correct partition of the SD card> /mnt/mountpoint
- Extract the <root filesystem>.tar.gz via sudo tar -xvf <path to compressed root filesystem>.tar.gz -C /mnt/mountpoint/
- Synchronise the buffers via sudo sync
- For Linux this can be done using the following steps:
0xA2 Partition 3:
- Insert the SD card to a Windows OS.
- Start the SoC EDS Shell as administrator. To do that navigate to C:...\intelFPGA\18.1\embedded\ , right click on the file "Embedded_Command_Shell.bat", and select "Run as administrator". Click Yes in the window "User Account Control".
- Identify one of the SD card letter(s).
- Copy the preloader to the 0xA2 partition 3 via alt-boot-disk-util -p <path to the preloader image>preloader-mkpimage.bin -a write -d <SD card letter>
...
mount/umount muss noch beachtet werden!!!!!
Requirements
Was soll das folgende heißen?
Unknown - partition for u-boot config script and how to setup (uboot.scr)
The main u-boot environment can be saved with saveenv
vfat-partition: optional - Linux-Config-Script / main u-boot instead a2-partition
Data of each partition
Before writing data to the partitions, unmount the device
sudo umount /dev/sdX*
and plage the SD card in and out of the card reader.
W95 Fat32 partition
The W95 Fat32 partition needs to be formated.
sudo umount /dev/sdX*
sudo mkfs -t vfat /dev/sdXp (p=partition number, needs to be 1)
...
u-boot.img muss auf diese Partition!!!!
ext(2/3/4) partition
The ext(2/3/4) partition is formated via:
sudo mkfs.ext3 /dev/sdXp (p=partition number, should be 2)
After the operation finishes, use a data browser to copy the Linux root file system / rootfs to it.
An other approach is needed for a compressed root file system. Befor decompressing a ... .tar.gz file to the SD card, it needs to be mounted to a mounting point. This requires an existing folder to write to. Usually these folder is placed inside the mnt folder, for example: sudo mkdir /mnt/card (create mounting point folder)
Mount it:
sudo mount /dev/sdXp /mnt/card (p=partition number, should be 2)
...
//////////////////////// SOC EDA Installation für Linux !!!!!!!!!!!!!!
a2 partition
This partition needs no formatting, the data needs to be copied with the tool
alt-boot-disk-util .
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, change to the directory:
cd pathToAlt-boot-disk-util (cd=change directory)
and run:
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 ( 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)