系统迁移步骤:
格式化SD卡
复制系统到SD卡
修改系统文件
(1)在原系统盘内
cd /boot/extlinux
sudo vim extlinux.conf
该文件初始内容如下:
TIMEOUT 30
DEFAULT primary
MENU TITLE L4T boot options
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} quiet
修改为:
TIMEOUT 30
DEFAULT sdcard
MENU TITLE L4T boot options
LABEL sdcard
MENU LABEL primary sd card
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} quiet root=/dev/mmcblk2p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 isolcpus=
LABEL emmc
MENU LABEL internal eMMC
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 isolcpus=
(2)在要迁入系统的SD卡内,进行同样的操作
首先查看SD卡目前的挂载位置:
jetsontx21@ubuntu:~$ df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/mmcblk2p1 117G 6.2G 105G 6% /
none 3.5G 0 3.5G 0% /dev
tmpfs 3.9G 207M 3.7G 6% /dev/shm
tmpfs 3.9G 38M 3.8G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 786M 12K 786M 1% /run/user/120
tmpfs 786M 136K 785M 1% /run/user/1000
/dev/mmcblk0p1 28G 5.3G 21G 21% /media/jetsontx21/900067ab-c368-424d-8be2-0e680932c9e0 #此处为SD卡目前的挂载位置
/dev/loop0 16M 130K 16M 1% /media/jetsontx21/L4T-README
接下来进行如上述(1)中相同的操作:
cd /media/XXX/XXX #此处请进入SD卡目前的挂载位置
sudo vim extlinux.conf
该文件初始内容如下:
TIMEOUT 30
DEFAULT primary
MENU TITLE L4T boot options
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} quiet
修改为:
TIMEOUT 30
DEFAULT sdcard
MENU TITLE L4T boot options
LABEL sdcard
MENU LABEL primary sd card
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} quiet root=/dev/mmcblk2p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 isolcpus=
LABEL emmc
MENU LABEL internal eMMC
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 sdhci_tegra.en_boot_part_access=1 isolcpus=
4. 重启
reboot
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)