Intel Galileo gen2 主板实验(一)

Intel Galileo gen2 主板实验(一)

Intel Galileo gen2 主板规格

Intel Galileo gen2 主板规格

SD卡启动盘制作

  1. 用到的软件: Win32DiskImager(用于写入sd卡镜像)Galileo Linux 的SD卡镜像 (一个集成好的基于Yocto项目的Linux,Galileo_Poky_SW_image_20160606.zip);
  2. 在PC机上解压Galileo_Poky_SW_image_20160606.zip生成iot-devkit-prof-dev-image-galileo-20160606.direct文件;
  3. 用读卡器把SD卡插入电脑;
  4. 安装运行Win32DiskImager,进入到解压的文件夹,选择文件类型为*.*,选择解压出来的 .direct文件,点击写入;
  5. 此时SD卡启动盘制作成功,把SD卡插入到Galileo板上的卡槽后,接通电源默认将会从SD卡引导系统

扩展Linux根目录空间

  1. 查看磁盘
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. 将未分配的磁盘空间划分为新分区
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. 输入P可看到新分区/dev/mmcblk3已经产生
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. 输入命令w保存设置并退出
Command (m for help): w
  1. 重启操作系统以重新加载分区表
root@galileo:~# init 6
  1. 对新分区进行格式化操作
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. 成功
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

猜你喜欢

转载自blog.csdn.net/qq_35259742/article/details/82954014