Difference between revisions of "INNOSTICK6-DEBIAN/zh"
m |
m (add steps for tarball extract) |
||
Line 35: | Line 35: | ||
*一台Linux主机 | *一台Linux主机 | ||
*一根USB转串口电缆 [[USB2SERIAL | USB to Serial TTL Converter]] | *一根USB转串口电缆 [[USB2SERIAL | USB to Serial TTL Converter]] | ||
+ | *编译好的U-Boot映像,Linux内核映像,Linux内核模块和DTB文件 | ||
*Linaro stretch-armhf-rootfs: https://releases.linaro.org/debian/images/developer-armhf/17.08/linaro-stretch-developer-20170706-43.tar.gz | *Linaro stretch-armhf-rootfs: https://releases.linaro.org/debian/images/developer-armhf/17.08/linaro-stretch-developer-20170706-43.tar.gz | ||
===操作步骤=== | ===操作步骤=== | ||
Line 69: | Line 70: | ||
└─sda1 8:1 0 49G 0 part / | └─sda1 8:1 0 49G 0 part / | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | <br> | |
+ | 6. 格式化Linux EXT4分区,这个例子中是“/dev/sdb2”设备<br/> | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | esky-sh@ubuntu:~$ sudo mkfs.ext4 -F -E nodiscard /dev/sdb2 | ||
+ | mke2fs 1.42.13 (17-May-2015) | ||
+ | /dev/sdb2 contains a ext4 file system | ||
+ | last mounted on /mnt/udisk on Fri Aug 24 21:46:26 2018 | ||
+ | Creating filesystem with 3663360 4k blocks and 917504 inodes | ||
+ | Filesystem UUID: 2e70e95e-f14b-41e0-b756-a85ee8ef051d | ||
+ | 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 | ||
+ | </syntaxhighlight> | ||
+ | <br> | ||
+ | 7. 将Linux EXT4分区安装到本机<br> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
esky-sh@ubuntu:~$ sudo mount -t ext4 /dev/sdb2 /mnt/udisk</syntaxhighlight> | esky-sh@ubuntu:~$ sudo mount -t ext4 /dev/sdb2 /mnt/udisk</syntaxhighlight> | ||
− | + | <br> | |
+ | 8. 将Rootfs tarball中的文件解压到Linux EXT4分区<br> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | esky-sh@ubuntu:~$ sudo tar - | + | esky-sh@ubuntu:~$ cd /mnt/udisk |
− | + | esky-sh@ubuntu:~$ sudo tar -zxvf /mnt/hgfs/sharefd/linaro-stretch-developer-20170706-43.tar.gz --strip-components 1 -C /mnt/udisk/ binary/ | |
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | <br> | ||
+ | 9. 将FAT分区安装到本机<br> | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | esky-sh@ubuntu:~$ sudo mount -t vfat /dev/sdb1 /mnt/vfat</syntaxhighlight> | ||
+ | <br> | ||
+ | 10. 将U-Boot映像,Linux内核映像和DTB文件复制到FAT分区根目录<br> | ||
+ | 11. 将内核模块复制到Linux EXT4分区的/lib/modules目录<br> | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | esky-sh@ubuntu:~$ sudo mkdir /mnt/udisk/lib/modules | ||
+ | esky-sh@ubuntu:~$ sudo cp -R /mnt/vfat/4.9.88-ge8dbe4d/ /mnt/udisk/lib/modules/ | ||
+ | esky-sh@ubuntu:~$ sync | ||
+ | esky-sh@ubuntu:~$ sudo umount /mnt/udisk/ | ||
+ | esky-sh@ubuntu:~$ sudo umount /mnt/vfat/ | ||
+ | </syntaxhighlight> | ||
+ | <br> | ||
+ | |||
+ | 11. 将Linux EXT4 Partition安装到本机<br> | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | esky-sh@ubuntu:~$ sudo mount -t ext4 /dev/sdb2 /mnt/udisk</syntaxhighlight> | ||
<br> | <br> | ||
− | + | 9. 将USB转串口电缆插入Windows主机<br/> | |
此时Windows会自动识别出该串口设备,并安排端口号。<br> | 此时Windows会自动识别出该串口设备,并安排端口号。<br> | ||
− | + | 10. 启动Putty并设置通讯参数<br/> | |
注意这个例子中的COM7是Windows主机为USB转串口电缆安排的端口号 | 注意这个例子中的COM7是Windows主机为USB转串口电缆安排的端口号 | ||
[[File:Pu1_remark.png|600px]]<br/> | [[File:Pu1_remark.png|600px]]<br/> | ||
<br> | <br> | ||
− | + | 11. 点击Open连接到串口控制台<br> | |
− | + | 12. 按下主板上的复位按钮,此时Innostick 6重新启动,并且启动信息都显示在Putty窗口<br> | |
[[File:Putwo.png|600px]]<br/> | [[File:Putwo.png|600px]]<br/> | ||
<br> | <br> |
Revision as of 03:08, 25 August 2018
远程桌面VNC登陆
Innostick 6上预装的Debian都提供了VNC Server支持。用户可以通过VNC Viewer和它建立连接,远程登陆到Debian桌面。
准备工作
- 一块预装Debian Stretch的Innostick 6主板
- 一台Windows主机
- UltraVnc Viewer v1.2.1.6 from www.uvnc.com : http://www.uvnc.com/downloads/ultravnc.html
操作步骤
1. 在Windows主机上安装UltraVnc Viewer
2. 安装J1跳针帽(Micro-USB供电)
3. J2跳针置空(“Normal Boot”模式)
4. 用Micro-USB电缆连接Windows主机和Innostick 6 P1口
此时Innostick 6上电启动,LED1开始闪烁。
5. 等待RNDIS Gadget设备被Windows识别
6. 右击USB Ethernet网卡
7. 设置TCP/IPv4属性
8. 启动UltraVnc Viewer
9. 设置IP地址和端口号,点击Connect登陆
10. 输入用户名和密码root/root
11. 设置WiFi和Blue tooth
手动安装Debian Stretch最小文件系统
这一节我们从头开始,安装一个全新的Debian Stretch最小文件系统。
准备工作
- 一块Innostick 6主板
- 一台Linux主机
- 一根USB转串口电缆 USB to Serial TTL Converter
- 编译好的U-Boot映像,Linux内核映像,Linux内核模块和DTB文件
- Linaro stretch-armhf-rootfs: https://releases.linaro.org/debian/images/developer-armhf/17.08/linaro-stretch-developer-20170706-43.tar.gz
操作步骤
1. 将USB转串口电缆的杜邦头和Innostick 6 UART1相连
具体连接方式如下:
杜邦头颜色 | Innostick 6扩展口 |
绿(RX) | P5-4(Tx) |
蓝(TX) | P5-6(Rx) |
黑(GND) | P5-8(GND) |
2. 安装J1跳针帽(Micro-USB供电)
3. 安装J2跳针帽(J2-1和J2-2)(U盘模式)
4. 用Micro-USB电缆连接Linux主机和Innostick 6 P1口
此时Innostick 6上电启动,主板上的LED1开始闪烁。
5. 等待U盘设备被Linux主机识别
esky-sh@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 14.6G 0 disk
├─sdb2 8:18 1 14G 0 part
└─sdb1 8:17 1 500M 0 part
sr0 11:0 1 1024M 0 rom
fd0 2:0 1 4K 0 disk
sda 8:0 0 50G 0 disk
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 1021M 0 part [SWAP]
└─sda1 8:1 0 49G 0 part /
6. 格式化Linux EXT4分区,这个例子中是“/dev/sdb2”设备
esky-sh@ubuntu:~$ sudo mkfs.ext4 -F -E nodiscard /dev/sdb2
mke2fs 1.42.13 (17-May-2015)
/dev/sdb2 contains a ext4 file system
last mounted on /mnt/udisk on Fri Aug 24 21:46:26 2018
Creating filesystem with 3663360 4k blocks and 917504 inodes
Filesystem UUID: 2e70e95e-f14b-41e0-b756-a85ee8ef051d
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
7. 将Linux EXT4分区安装到本机
esky-sh@ubuntu:~$ sudo mount -t ext4 /dev/sdb2 /mnt/udisk
8. 将Rootfs tarball中的文件解压到Linux EXT4分区
esky-sh@ubuntu:~$ cd /mnt/udisk
esky-sh@ubuntu:~$ sudo tar -zxvf /mnt/hgfs/sharefd/linaro-stretch-developer-20170706-43.tar.gz --strip-components 1 -C /mnt/udisk/ binary/
9. 将FAT分区安装到本机
esky-sh@ubuntu:~$ sudo mount -t vfat /dev/sdb1 /mnt/vfat
10. 将U-Boot映像,Linux内核映像和DTB文件复制到FAT分区根目录
11. 将内核模块复制到Linux EXT4分区的/lib/modules目录
esky-sh@ubuntu:~$ sudo mkdir /mnt/udisk/lib/modules
esky-sh@ubuntu:~$ sudo cp -R /mnt/vfat/4.9.88-ge8dbe4d/ /mnt/udisk/lib/modules/
esky-sh@ubuntu:~$ sync
esky-sh@ubuntu:~$ sudo umount /mnt/udisk/
esky-sh@ubuntu:~$ sudo umount /mnt/vfat/
11. 将Linux EXT4 Partition安装到本机
esky-sh@ubuntu:~$ sudo mount -t ext4 /dev/sdb2 /mnt/udisk
9. 将USB转串口电缆插入Windows主机
此时Windows会自动识别出该串口设备,并安排端口号。
10. 启动Putty并设置通讯参数
注意这个例子中的COM7是Windows主机为USB转串口电缆安排的端口号
11. 点击Open连接到串口控制台
12. 按下主板上的复位按钮,此时Innostick 6重新启动,并且启动信息都显示在Putty窗口