Intel Galileo gen2 motherboard experiment (1)

Keywords: Linux yocto Fragment

Intel Galileo gen2 motherboard experiment (1)

Intel Galileo gen2 motherboard specifications

Intel Galileo gen2 motherboard specifications

SD card startup disk making

  1. Software used: Win32DiskImager (for writing sd card image)SD card image of Galileo Linux (an integrated Yocto based Linux, Galileo poky SW image 20160606. Zip);
  2. Extract Galileo ﹣ poky ﹣ SW ﹣ image ﹣ 20160606.zip on PC to generate iot-devkit-prof-dev-image-galileo-20160606.direct file;
  3. Insert SD card into computer with card reader;
  4. Install and run Win32DiskImager, enter the unzipped folder, select the file type as *. *, select the unzipped. direct file, and click write;
  5. At this time, the SD card boot disk is made successfully. After the SD card is inserted into the card slot on the Galileo board, power on will boot the system from the SD card by default

Expanding Linux root space

  1. View disk
root@galileo:~# fdisk -l

Disk /dev/mmcblk0: 14.9 GiB, 16022241280 bytes, 31293440 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
Disklabel type: dos
Disk identifier: 0x55f2787e

Device         Boot     Start       End  Blocks  Id System
/dev/mmcblk0p1 *         2048    106495   52224  83 Linux
/dev/mmcblk0p2         106496   3553279 1723392  83 Linux

  1. Divide unallocated disk space into new partitions
root@galileo:~# fdisk /dev/mmcblk0

Welcome to fdisk (util-linux 2.24.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): n

Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): p
Partition number (3,4, default 3): 3
First sector (3553280-31293439, default 3553280): 3553280
Last sector, +sectors or +size{K,M,G,T,P} (3553280-31293439, default 31293439): 31293439

Created a new partition 3 of type 'Linux' and of size 13.2 GiB.

  1. Enter P to see that the new partition / dev/mmcblk3 has been generated
Command (m for help): p
Disk /dev/mmcblk0: 14.9 GiB, 16022241280 bytes, 31293440 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
Disklabel type: dos
Disk identifier: 0x55f2787e

Device         Boot     Start       End   Blocks  Id System
/dev/mmcblk0p1 *         2048    106495    52224  83 Linux
/dev/mmcblk0p2         106496   3553279  1723392  83 Linux
/dev/mmcblk0p3        3553280  31293439 13870080  83 Linux

  1. Enter the command w to save the settings and exit
Command (m for help): w
  1. Restart the operating system to reload the partition table
root@galileo:~# init 6
  1. Format the new partition
root@galileo:~# mkfs -t ext3 /dev/mmcblk0p3
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
868352 inodes, 3467520 blocks
173376 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3552575488
106 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done   

  1. Success
root@galileo:~# df -lh
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.6G  1.3G  218M  86% /
devtmpfs        116M     0  116M   0% /dev
tmpfs           116M     0  116M   0% /dev/shm
tmpfs           116M  8.4M  108M   8% /run
tmpfs           116M     0  116M   0% /sys/fs/cgroup
tmpfs           116M     0  116M   0% /tmp
tmpfs           116M   12K  116M   1% /var/volatile
/dev/mmcblk0p1   50M  2.3M   47M   5% /media/card

Posted by nicandre on Thu, 19 Dec 2019 08:48:36 -0800