Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
software:linux:yocto:x86-rt [2023-07-07 14:53] Urs Grafsoftware:linux:yocto:x86-rt [2023-07-07 15:21] Urs Graf
Zeile 19: Zeile 19:
   * image.wic file (prebuilt or custom)   * image.wic file (prebuilt or custom)
   * x86 based PC with the ability to boot from USB (any reasonably modern PC should be able to do this)   * x86 based PC with the ability to boot from USB (any reasonably modern PC should be able to do this)
- 
-==== Identifying the USB Stick ==== 
- 
-Plug in the USB Stick and identify the corresponding block device (''/dev/sdX'') using lsblk. 
- 
-Example output for ''lsblk'': 
-<code> 
-$ lsblk 
-NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT 
-sda           8:   0   2.7T  0 disk  
-└─sda1        8:1    0   2.7T  0 part /mnt/hdd 
-sdb           8:16     3.8G  0 disk  
-├─sdb1        8:17     681M  0 part  
-└─sdb2        8:18      56M  0 part  
-sdf           8:80     500G  0 disk  
-sdg           8:96     100G  0 disk  
-├─sdg1        8:97     100M  0 part  
-└─sdg2        8:98    99.9G  0 part  
-nvme1n1     259:   0 465.8G  0 disk  
-├─nvme1n1p1 259:2    0   512M  0 part  
-├─nvme1n1p2 259:3    0 457.3G  0 part  
-└─nvme1n1p3 259:4    0     8G  0 part  
-nvme0n1     259:   0 931.5G  0 disk  
-├─nvme0n1p1 259:5    0   300M  0 part /efi 
-└─nvme0n1p2 259:6    0 931.2G  0 part / 
-</code> 
- 
-A quick guide to reading the output: 
-''lsblk'' uses a tree to show devices and their partitions. For example ''sda1'' is the first partition on ''sda'' and ''nvme1n1p1'' is the first partition of ''nvme1n1''. 
- 
-''sdX'' where ''X'' is a small letter starting from ''a'' usually represents a SATA or USB drive, names starting with ''nvme'' represent NVME SSDs and SD cards usually start with ''mmcblk''. 
-These names represent the device as found in ''/dev'', so ''sda'' is found under ''/dev/sda''. 
- 
- 
- 
-The easiest way to identify the right block device is usually it's size. 
-In the example output above, we are looking for a 4GB USB Stick. 
-We can infer that the USB Stick is ''/dev/sdb'', since it is the only device with roughly the right size (3.8GB). Note that the size shown in ''lsblk'' may differ slightly from the nominal size of the USB Stick due to partitioning. 
- 
-If there are multiple devices of the same size as the USB stick it may be necessary to run ''lsblk'' before and after plugging in the USB stick and checking which device only appears in the second output. 
  
 ==== Writing the image to the USB stick ==== ==== Writing the image to the USB stick ====