Difference between revisions of "Boot from sd"
(draft of boot from sd wiki page) |
|||
Line 1: | Line 1: | ||
− | == | + | == Introduction == |
* Here's tutorial to copy the root file system to SD card, and booting from the SD card.<br> | * Here's tutorial to copy the root file system to SD card, and booting from the SD card.<br> | ||
* If the root file system will be on an SD card, execute the below script to flash the device - mentioned at [http://developer2.download.nvidia.com/embedded/L4T/r28_Release_v1.0/Docs/Jetson_TX1_and_TX2_Developer_Kits_User_Guide.pdf?1UNK2sf8XQbR2DAlcDPEVGiPtbo492VFKsSGUfhiZK-QBWz1QAI_QfnpGfmfC9rVClEoGUhYF14_luGn-TDjRZxzR-C9-pMO-UrmTTNO_pxc2NA9LL3FXPuk6umzhHAfD5VA1JA-dYIgtwahOL4ZNned3MGdW0FXepg6-jHIUAx4oMRQt4_3Y2DfhKSlSS8TFPQ Jetson TX1 and TX2 developer kits user guide] | * If the root file system will be on an SD card, execute the below script to flash the device - mentioned at [http://developer2.download.nvidia.com/embedded/L4T/r28_Release_v1.0/Docs/Jetson_TX1_and_TX2_Developer_Kits_User_Guide.pdf?1UNK2sf8XQbR2DAlcDPEVGiPtbo492VFKsSGUfhiZK-QBWz1QAI_QfnpGfmfC9rVClEoGUhYF14_luGn-TDjRZxzR-C9-pMO-UrmTTNO_pxc2NA9LL3FXPuk6umzhHAfD5VA1JA-dYIgtwahOL4ZNned3MGdW0FXepg6-jHIUAx4oMRQt4_3Y2DfhKSlSS8TFPQ Jetson TX1 and TX2 developer kits user guide] |
Latest revision as of 20:40, 31 July 2017
Introduction
- Here's tutorial to copy the root file system to SD card, and booting from the SD card.
- If the root file system will be on an SD card, execute the below script to flash the device - mentioned at Jetson TX1 and TX2 developer kits user guide
sudo ./flash.sh <platform name> mmcblk1p1
Pick a device to place your rootfs
- Use these procedures to copy the file system to the Tegra device.
- If you are using the internal EMMC, skip ahead to Flashing the Bootloader and Kernel.
- If you prefer to use an external storage device for the root filesystem, use the following procedure to copy the file system to an external storage device.
- Plug your rootfs device into the host system, If your device is not formatted as Ext4, enter the following command to format it with an Ext4 file system:
$ sudo mkfs.ext4 /dev/sd<port><device_number> Where: <port> is the port to which your device is mounted. <device_number> is the device number of the device attached to the port. You can use the dmesg command to determine the port.
- If needed, mount your device with the following command:
sudo mount /dev/sdX1 <mntpoint> Where <mntpoint> is the mount point on the host system for your rootfs device.
- Copy the file system. If LDK_ROOTFS_DIR is set, execute these commands:
$ cd ${LDK_ROOTFS_DIR} $ sudo cp -a * <mntpoint> && sync
- If it is not set, copy the rootfs directory that is included in the release by executing the following commands:
$ cd <your_L4T_root>/Linux_for_Tegra/rootfs $ sudo cp -a * <mntpoint> && sync
- After copying the content to the external disk or device, unmount the disk and connect it to the target Tegra device.
- unplug SD card and plug-in SD card in TX2
- modify exlinux.conf in sdcard and boot up the device
change /dev/mmcblk0p1 to /dev/mmcblk1p1 (/boot/extlinux/extlinux.conf)
- Device is booting using /dev/mmcblk1p1