Difference between revisions of "DMS-SJ15"

From ESS-WIKI
Jump to: navigation, search
Line 26: Line 26:
  
 
== Flash Image ==
 
== Flash Image ==
 +
 
Get the partition sector value from a pre-generated SD cared image.
 
Get the partition sector value from a pre-generated SD cared image.
<pre>
+
<pre>$ sudo fdisk DMS-SJ15-TX2_SD_Installer_20210205.img -l
$ 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
 
Disk DMS-SJ15-TX2_SD_Installer_20210205.img: 14.1 GiB, 15099494400 bytes, 29491200 sectors
 
Units: sectors of 1 * 512 = 512 bytes
 
Units: sectors of 1 * 512 = 512 bytes
Line 38: Line 38:
 
Device                                  Boot  Start      End  Sectors Size Id Type
 
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.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
+
DMS-SJ15-TX2_SD_Installer_20210205.img2      4198400 29462527 25264128  12G 83 Linux
 
</pre>
 
</pre>
  
Mount 2 partition, where 2149580800 = 4198400*512
+
Mount 2 partition, where 2149580800 = <span style="color:#0000FF">'''4198400'''</span>*512
<pre>
+
<pre>$ sudo mount -o loop,offset=2149580800 DMS-SJ15-TX2_SD_Installer_20210205.img /mnt
$ sudo mount -o loop,offset=2149580800 DMS-SJ15-TX2_SD_Installer_20210205.img /mnt
 
 
</pre>
 
</pre>
Copy (Replace) All all of files from <span style="color:#0000FF">'''thumbdrive'''</span> folder to /mnt
+
 
And unmount
+
Copy (Replace) All all of files from <span style="color:#0000FF">'''thumbdrive'''</span> folder to /mnt And unmount
<pre>
+
<pre>$ sudo umount /mnt
$ sudo umount /mnt
+
 
 
</pre>
 
</pre>
Cle
 
  
 
== Reference ==
 
== Reference ==
 +
<div id="gtx-trans" style="position: absolute; left: 618px; top: 852.869px;"><div class="gtx-trans-icon">&nbsp;</div> </div>

Revision as of 09:13, 8 September 2022

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      4198400 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

Reference