Difference between revisions of "DMS-SJ15"
From ESS-WIKI
| Line 16: | Line 16: | ||
Collect all files for thumb drive. It will generate a <span style="color:#0000FF">'''thumbdrive'''</span> folder | Collect all files for thumb drive. It will generate a <span style="color:#0000FF">'''thumbdrive'''</span> folder | ||
<pre>$ ./prepare_usb.sh | <pre>$ ./prepare_usb.sh | ||
| + | </pre> | ||
| + | |||
| + | thumbdrive | ||
| + | <pre>thumbdrive/ | ||
| + | ├── dms-sj15 | ||
| + | ├── entry_recovery | ||
| + | └── flash | ||
</pre> | </pre> | ||
== Flash Image == | == Flash Image == | ||
| + | Get the partition sector value from a pre-generated SD cared image. | ||
| + | <pre> | ||
| + | $ sudo fdisk DMS-SJ15-TX2_SD_Installer_20210205.img -l | ||
| + | Disk DMS-SJ15-TX2_SD_Installer_20210205.img: 14.1 GiB, 15099494400 bytes, 29491200 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: 0x7693670d | ||
| + | |||
| + | Device Boot Start End Sectors Size Id Type | ||
| + | DMS-SJ15-TX2_SD_Installer_20210205.img1 2048 4196352 4194305 2G 83 Linux | ||
| + | DMS-SJ15-TX2_SD_Installer_20210205.img2 <span style="color:#FF0000">'''4198400'''</span> 29462527 25264128 12G 83 Linux | ||
| + | </pre> | ||
| + | |||
| + | Mount 2 partition, where 2149580800 = 4198400*512 | ||
| + | <pre> | ||
| + | $ sudo mount -o loop,offset=2149580800 DMS-SJ15-TX2_SD_Installer_20210205.img /mnt | ||
| + | </pre> | ||
| + | Copy (Replace) All all of files from <span style="color:#0000FF">'''thumbdrive'''</span> folder to /mnt | ||
| + | And unmount | ||
| + | <pre> | ||
| + | $ sudo umount /mnt | ||
| + | </pre> | ||
| + | Cle | ||
== Reference == | == Reference == | ||
Revision as of 08:11, 8 September 2022
Contents
Linux BSP Version
Ubuntu 18.04
Kernel4.9.140
L4T R32.4.2
Jetpack 4.4
Getting Linux Source Code
$ git clone http://172.22.31.139:30000/ted/tx2_8717.git
Build Image - AIR-020 / EPC-R7200
Build Image
$ ./create_codebase.sh
Collect all files for thumb drive. It will generate a thumbdrive folder
$ ./prepare_usb.sh
thumbdrive
thumbdrive/ ├── dms-sj15 ├── entry_recovery └── flash
Flash Image
Get the partition sector value from a pre-generated SD cared image.
$ sudo fdisk DMS-SJ15-TX2_SD_Installer_20210205.img -l Disk DMS-SJ15-TX2_SD_Installer_20210205.img: 14.1 GiB, 15099494400 bytes, 29491200 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: 0x7693670d Device Boot Start End Sectors Size Id Type DMS-SJ15-TX2_SD_Installer_20210205.img1 2048 4196352 4194305 2G 83 Linux DMS-SJ15-TX2_SD_Installer_20210205.img2 <span style="color:#FF0000">'''4198400'''</span> 29462527 25264128 12G 83 Linux
Mount 2 partition, where 2149580800 = 4198400*512
$ sudo mount -o loop,offset=2149580800 DMS-SJ15-TX2_SD_Installer_20210205.img /mnt
Copy (Replace) All all of files from thumbdrive folder to /mnt And unmount
$ sudo umount /mnt
Cle