Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Copy to a textfile and save

unit: sectors

/dev/sdb1 : start= 2048, size= 204800, Id= c /dev/sdb2 : start= 206848, size= 4096000, Id=83 /dev/sdb3 : start= 4302848, size= 4096, Id=a2 /dev/sdb4 : start= 0, size= 0, Id= 0




unmount

run fsdisk



Data of each partition

Command (m for help): p

Device Boot Start End Blocks Id System
/dev/sdc1 2048 4096 1024+ 83 Linux

Disk /dev/sdc: 7740 MB, 7740588032 bytes
6 heads, 1 sectors/track, 2519722 cylinders, total 15118336 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbc81f5dd

Device Boot Start End Blocks Id System

Wenn partitionen bestehen, alle löschen:

...


sudo mkfs -t vfat /dev/sdX-nummer

sudo mkfs.ext3 /dev/sdX-nummer



vFat zimage and dtb


a2, nur sd card angeben, keine partition, wird selbsttätig gesucht
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 tar -xvf ~/Desktop/arrow-sockit/arrow-sockit-console-image-minimal-arrow-sockit-20191121221211.rootfs.tar.gz -C /mnt/card/

Neue partitionen anlegen;
de-10@de10-VirtualBox:~$ sudo fdisk /dev/sdc

Command (m for help): n -> New partition
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15118335, default 2048): 2048 -> Just "Enter" for automode
Last sector, +sectors or +size{K,M,G} (2048-15118335, default 15118335): +2048
-> +sectors, with 512 byte sector, 1 M byte partion created

Command (m for help): p

Device Boot Start End Blocks Id System
/dev/sdc1 2048 4096 1024+ 83 Linux
Partition-Typ in a2 umbenennen, damit diese Partition beim booten vom
Cyclone 5 gefunden werden kann. In dieser Partition wird später der
First-Stage- / Pre- Bootloader gespeichert.
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): a2
Changed system type of partition 1 to a2 (Unknown)





2 Weitere Partitionene erstellen:
Fat32 / VFat ~ 29152 Sectoren / 24576 Blocks groß
- Command (m for help): n, p, 3, "Enter", +29576
- Command (m for help): t=table, c (W95 FAT32 (LBA))
- Command (m for help): a=active, 3

Ext4 ~ 2097152 Sectoren / 1048576 Blocks
- ....
- Nicht nötig, per default als "83" / Linux markiert

Im Ergrbnis erhält man diese Partitionstabelle:
Command (m for help): p
Device Boot Start End Blocks Id System
/dev/sdc1 * 8 42605 21299 c W95 FAT32 (LBA)
/dev/sdc2 42608 44655 1024 a2 Unknown
/dev/sdc3 44656 3454691 1705018 83 Linux
SPEICHERN der Tabelle mittels:
Command (m for help): w

...