Jetson TX2 将系统迁移到SD卡,系统文件修改方式

系统迁移步骤:

  1. 格式化SD卡
  1. 复制系统到SD卡
  1. 修改系统文件
(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
  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值