Samsung / TizenRT

TizenRT is a lightweight RTOS-based platform to support low-end IoT devices
Apache License 2.0
566 stars 571 forks source link

External flash #6220

Closed Tirtha-Samsung closed 3 months ago

edwakuwaku commented 4 months ago

Could you please add commit description?

sunghan-chang commented 3 months ago

@Tirtha-Samsung This should be merged later. Please make this official commit. And add test result in the commit description.

Tirtha-Samsung commented 3 months ago
 Port ttyUSB1 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyUSB1.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :           bl1      reserved           ftl            ss        kernel          app1          app2        kernel          app1          app2     bootparam
SIZE(in KB):            60            40            12           400          1844          5404           684          1844          5404           684             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x8794000     0x883F000     0x8A0C000     0x8F53000     0x8FFE000
=================================================================================================

==========================
Checking flash size(PASS)
==========================
Starting Download...

==========================
Downloading bl1 binary
==========================

Number of Images: 1

Download km4_boot_all.bin to: 0x08000000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading kernel binary
==========================

Number of Images: 1

Download kernel_rtl8730e_200204.trpk to: 0x08080000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading app1 binary
==========================

Number of Images: 1

Download app1_rtl8730e_190412.trpk to: 0x0824D000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading app2 binary
==========================

Number of Images: 1

Download app2_rtl8730e_190412.trpk to: 0x08794000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading bootparam binary
==========================

Number of Images: 1

Download bootparam.bin to: 0x08FFE000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

Download COMPLETE!

 Port ttyUSB1 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyUSB1.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :       rtk_ext      resource      resource        userfs      reserved
SIZE(in KB):           128         14656         14656          2048          1280
Addr       :     0x9000000     0x9020000     0x9E70000     0xACC0000     0xAEC0000
=================================================================================================

Starting Download...

==========================
Downloading rtk_ext binary
==========================
Realtek need to provide script

Number of Images: 1

Download rtk_ext_flash_data.bin to: 0x09000000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading resource binary
==========================
Realtek need to provide script

Number of Images: 1

Download resource_rtl8730e_240421.trpk to: 0x09020000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading userfs binary
==========================
rtl8730e_smartfs.bin not present

Download COMPLETE!
Tirtha-Samsung commented 3 months ago
sonarqube@ws2030076986:~/usb/TizenRT-1$ sudo ./os/dbuild.sh download port=ttyACM0 all
Check Docker Image
Docker Image Version : tizenrt/tizenrt:2.0.0

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :           bl1      reserved           ftl            ss        kernel          app1          app2        kernel          app1          app2     bootparam
SIZE(in KB):            60            40            12           400          1844          5404           684          1844          5404           684             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x8794000     0x883F000     0x8A0C000     0x8F53000     0x8FFE000
=================================================================================================

==========================
Checking flash size(PASS)
==========================
Starting Download...

==========================
Downloading bl1 binary
==========================
Save info to setting.txt

==========================
Downloading kernel binary
==========================
Save info to setting.txt

==========================
Downloading app1 binary
==========================
Save info to setting.txt

==========================
Downloading app2 binary
==========================
Save info to setting.txt

==========================
Downloading bootparam binary
==========================
Save info to setting.txt

==========================
Start USB download
Wed Jul 3 12:12:39 UTC 2024
==========================
Number of images: 5
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x8000000
Flash protection         ......    OK
km4_boot_all.bin download to 0x8000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
kernel_rtl8730e_200204.trpk download to 0x8080000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
app1_rtl8730e_190412.trpk download to 0x824d000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
app2_rtl8730e_190412.trpk download to 0x8794000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
bootparam.bin download to 0x8ffe000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Wed Jul 3 12:12:53 UTC 2024

Download COMPLETE!

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :       rtk_ext      resource      resource        userfs      reserved
SIZE(in KB):           128         14656         14656          2048          1280
Addr       :     0x9000000     0x9020000     0x9E70000     0xACC0000     0xAEC0000
=================================================================================================

Starting Download...

==========================
Downloading rtk_ext binary
==========================
Save info to setting.txt

==========================
Downloading resource binary
==========================
Save info to setting.txt

==========================
Start USB download
Wed Jul 3 12:12:53 UTC 2024
==========================
Number of images: 2
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x9000000
Flash protection         ......    SKIP
rtk_ext_flash_data.bin download to 0x9000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
resource_rtl8730e_240421.trpk download to 0x9020000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Wed Jul 3 12:12:57 UTC 2024

==========================
Downloading userfs binary
==========================
rtl8730e_smartfs.bin not present

Download COMPLETE!
Tirtha-Samsung commented 3 months ago

sometimes it is working, sometimes external script unable to access /dev/ttyACM0

sunghan-chang commented 3 months ago
sonarqube@ws2030076986:~/usb/TizenRT-1$ sudo ./os/dbuild.sh download port=ttyACM0 all
Check Docker Image
Docker Image Version : tizenrt/tizenrt:2.0.0

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :           bl1      reserved           ftl            ss        kernel          app1          app2        kernel          app1          app2     bootparam
SIZE(in KB):            60            40            12           400          1844          5404           684          1844          5404           684             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x8794000     0x883F000     0x8A0C000     0x8F53000     0x8FFE000
=================================================================================================

==========================
Checking flash size(PASS)
==========================
Starting Download...

==========================
Downloading bl1 binary
==========================
Save info to setting.txt

==========================
Downloading kernel binary
==========================
Save info to setting.txt

==========================
Downloading app1 binary
==========================
Save info to setting.txt

==========================
Downloading app2 binary
==========================
Save info to setting.txt

==========================
Downloading bootparam binary
==========================
Save info to setting.txt

==========================
Start USB download
Wed Jul 3 12:12:39 UTC 2024
==========================
Number of images: 5
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x8000000
Flash protection         ......    OK
km4_boot_all.bin download to 0x8000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
kernel_rtl8730e_200204.trpk download to 0x8080000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
app1_rtl8730e_190412.trpk download to 0x824d000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
app2_rtl8730e_190412.trpk download to 0x8794000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
bootparam.bin download to 0x8ffe000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Wed Jul 3 12:12:53 UTC 2024

Download COMPLETE!

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :       rtk_ext      resource      resource        userfs      reserved
SIZE(in KB):           128         14656         14656          2048          1280
Addr       :     0x9000000     0x9020000     0x9E70000     0xACC0000     0xAEC0000
=================================================================================================

Starting Download...

==========================
Downloading rtk_ext binary
==========================
Save info to setting.txt

==========================
Downloading resource binary
==========================
Save info to setting.txt

==========================
Start USB download
Wed Jul 3 12:12:53 UTC 2024
==========================
Number of images: 2
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x9000000
Flash protection         ......    SKIP
rtk_ext_flash_data.bin download to 0x9000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
resource_rtl8730e_240421.trpk download to 0x9020000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Wed Jul 3 12:12:57 UTC 2024

==========================
Downloading userfs binary
==========================
rtl8730e_smartfs.bin not present

Download COMPLETE!
  1. It looks strange. It looks it does repeat even though it's different downloading. Let's print "internal", "external" or "primary", "secondary".
  2. It says Downloading xxxx binary, but it does Save info to setting.txt. They are mismatched.
  3. Because internal / external scripts open usb port separately, it could get a timing issue I guess. I think we should close the port after all done.
Tirtha-Samsung commented 3 months ago

This is working now, I will cleanup and create official commit

Tirtha-Samsung commented 3 months ago
sonarqube@ws2030076986:~/Desktop/TizenRT$ time sudo ./os/dbuild.sh download port=ttyUSB1 ALL
Check Docker Image
Docker Image Version : tizenrt/tizenrt:2.0.0

 Port ttyUSB1 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyUSB1.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :           bl1      reserved           ftl            ss        kernel          app1        common        kernel          app1        common     bootparam
SIZE(in KB):            60            40            12           400          1844          5404           684          1844          5404           684             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x8794000     0x883F000     0x8A0C000     0x8F53000     0x8FFE000
=================================================================================================

==========================
Checking flash size(PASS)
==========================
Starting Download...

==========================
Downloading bl1 binary
==========================

Number of Images: 1

Download km4_boot_all.bin to: 0x08000000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading kernel binary
==========================

Number of Images: 1

Download kernel_rtl8730e_200204.trpk to: 0x08080000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading app1 binary
==========================

Number of Images: 1

Download app1_rtl8730e_190412.trpk to: 0x0824D000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading common binary
==========================

Number of Images: 1

Download common_rtl8730e_200204.trpk to: 0x08794000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading bootparam binary
==========================

Number of Images: 1

Download bootparam.bin to: 0x08FFE000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

Download COMPLETE!

 Port ttyUSB1 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyUSB1.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :       rtk_ext      resource      resource        userfs      reserved
SIZE(in KB):           128         14656         14656          2048          1280
Addr       :     0x9000000     0x9020000     0x9E70000     0xACC0000     0xAEC0000
=================================================================================================

Starting Download...

==========================
Downloading rtk_ext binary
==========================

Number of Images: 1

Download rtk_ext_flash_data.bin to: 0x09000000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading resource binary
==========================

Number of Images: 1

Download resource_rtl8730e_240421.trpk to: 0x09020000

Open serial port         ......    OK

UART download...
Check download mode      ......    OK
Download flashloader     ......    OK
Flash protection         ......    OK
Erase flash              ......    OK
Download image           ......    OK
Check checksum           ......    OK
Close serial port        ......    OK

==========================
Downloading userfs binary
==========================
rtl8730e_smartfs.bin not present

Download COMPLETE!

real    0m59.851s
user    0m0.090s
sys 0m0.040s
Tirtha-Samsung commented 3 months ago
sonarqube@ws2030076986:~/Desktop/TizenRT$ time sudo ./os/dbuild.sh download port=ttyACM0 ALL
Check Docker Image
Docker Image Version : tizenrt/tizenrt:2.0.0

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :           bl1      reserved           ftl            ss        kernel          app1        common        kernel          app1        common     bootparam
SIZE(in KB):            60            40            12           400          1844          5404           684          1844          5404           684             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x8794000     0x883F000     0x8A0C000     0x8F53000     0x8FFE000
=================================================================================================

==========================
Checking flash size(PASS)
==========================
Starting Download...

==========================
Downloading bl1 binary
==========================
Save info to setting.txt

==========================
Downloading kernel binary
==========================
Save info to setting.txt

==========================
Downloading app1 binary
==========================
Save info to setting.txt

==========================
Downloading common binary
==========================
Save info to setting.txt

==========================
Downloading bootparam binary
==========================
Save info to setting.txt

==========================
Start USB download
Fri Jul 5 07:59:26 UTC 2024
==========================
Number of images: 5
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x8000000
Flash protection         ......    OK
km4_boot_all.bin download to 0x8000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
kernel_rtl8730e_200204.trpk download to 0x8080000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
app1_rtl8730e_190412.trpk download to 0x824d000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
common_rtl8730e_200204.trpk download to 0x8794000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
bootparam.bin download to 0x8ffe000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Fri Jul 5 07:59:40 UTC 2024

Download COMPLETE!

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :       rtk_ext      resource      resource        userfs      reserved
SIZE(in KB):           128         14656         14656          2048          1280
Addr       :     0x9000000     0x9020000     0x9E70000     0xACC0000     0xAEC0000
=================================================================================================

Starting Download...

==========================
Downloading rtk_ext binary
==========================
Save info to setting.txt

==========================
Downloading resource binary
==========================
Save info to setting.txt

==========================
Start USB download
Fri Jul 5 07:59:40 UTC 2024
==========================
Number of images: 2
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x9000000
Flash protection         ......    SKIP
rtk_ext_flash_data.bin download to 0x9000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
resource_rtl8730e_240421.trpk download to 0x9020000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Fri Jul 5 07:59:43 UTC 2024

==========================
Downloading userfs binary
==========================
rtl8730e_smartfs.bin not present

Download COMPLETE!

real    0m18.360s
user    0m0.074s
sys 0m0.060s
sunghan-chang commented 3 months ago

@Tirtha-Samsung When I compare common_download.sh and external_download.sh, over 90% are the same. It will cause unnecessary duplicated maintenance. We should keep only one file for duplication.

sunghan-chang commented 3 months ago

@Tirtha-Samsung

real    0m59.851s
user    0m0.090s
sys 0m0.040s

Could you explain real, user and sys?

Tirtha-Samsung commented 3 months ago

@Tirtha-Samsung

real  0m59.851s
user  0m0.090s
sys   0m0.040s

Could you explain real, user and sys?

Actual time is the real, Real time: The actual elapsed wall clock time. User time: The CPU time spent in user-mode. Sys time: The CPU time spent in kernel-mode

Tirtha-Samsung commented 3 months ago
sonarqube@ws2030076986:~/Desktop/TizenRT$ sudo ./os/dbuild.sh download port=ttyACM0 ALL
Check Docker Image
Docker Image Version : tizenrt/tizenrt:2.0.0

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Primary Flash Partition Information > ================================
NAME       :           bl1      reserved           ftl            ss        kernel          app1        common        kernel          app1        common     bootparam
SIZE(in KB):            60            40            12           400          1844          5404           684          1844          5404           684             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x8794000     0x883F000     0x8A0C000     0x8F53000     0x8FFE000
=================================================================================================

Starting Download...

===================================
Start USB download in Primary Flash
Mon Jul 8 06:16:49 UTC 2024
===================================
Number of images: 5
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x8000000
Flash protection         ......    OK
km4_boot_all.bin download to 0x8000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
kernel_rtl8730e_200204.trpk download to 0x8080000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
app1_rtl8730e_190412.trpk download to 0x824d000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
common_rtl8730e_200204.trpk download to 0x8794000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
bootparam.bin download to 0x8ffe000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Mon Jul 8 06:17:03 UTC 2024

Download COMPLETE!

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Secondary Flash Partition Information > ================================
NAME       :       rtk_ext      resource      resource        userfs      reserved
SIZE(in KB):           128         14656         14656          2048          1280
Addr       :     0x9000000     0x9020000     0x9E70000     0xACC0000     0xAEC0000
=================================================================================================

Starting Download...

=====================================
Start USB download in Secondary Flash
Mon Jul 8 06:17:03 UTC 2024
=====================================
Number of images: 2
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x9000000
Flash protection         ......    SKIP
rtk_ext_flash_data.bin download to 0x9000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
resource_rtl8730e_240421.trpk download to 0x9020000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Mon Jul 8 06:17:06 UTC 2024
rtl8730e_smartfs.bin not present

Download COMPLETE!
sonarqube@ws2030076986:~/Desktop/TizenRT$ 
Tirtha-Samsung commented 3 months ago
sonarqube@ws2030076986:~/Desktop/TizenRT$ sudo ./os/dbuild.sh download port=ttyACM0 ALL
Check Docker Image
Docker Image Version : tizenrt/tizenrt:2.0.0

 Port ttyACM0 is selected

 ############################################
 WARNINGS:
 1. Make sure the board is in DOWNLOAD MODE.
 2. Make sure NO other application like putty,
 is occupying ttyACM0.
 ############################################

================================ < Flash Partition Information > ================================
NAME       :           bl1      reserved           ftl            ss        kernel          app1        common        kernel          app1        common     bootparam       rtk_ext      resource      resource        userfs      reserved
SIZE(in KB):            60            40            12           400          1844          5404           684          1844          5404           684             8           128         14656         14656          2048          1280
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x8794000     0x883F000     0x8A0C000     0x8F53000     0x8FFE000     0x9000000     0x9020000     0x9E70000     0xACC0000     0xAEC0000
=================================================================================================

Starting Download...

===================================
Start USB download in Flash
Mon Jul 8 07:00:33 UTC 2024
===================================
Number of images: 7
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
Close serial port        ......    OK
Open serial port         ......    OK
USB Prepare              ......    OK
Min address to download 0x8000000
Flash protection         ......    OK
km4_boot_all.bin download to 0x8000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
kernel_rtl8730e_200204.trpk download to 0x8080000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
app1_rtl8730e_190412.trpk download to 0x824d000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
common_rtl8730e_200204.trpk download to 0x8794000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
bootparam.bin download to 0x8ffe000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
rtk_ext_flash_data.bin download to 0x9000000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
resource_rtl8730e_240421.trpk download to 0x9020000
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Mon Jul 8 07:00:48 UTC 2024
rtl8730e_smartfs.bin not present

Download COMPLETE!
sonarqube@ws2030076986:~/Desktop/TizenRT$ 

The final Ouput after merging script

Tirtha-Samsung commented 3 months ago

UART: real 0m59.823s user 0m0.073s sys 0m0.056s

USB: real 0m15.794s user 0m0.064s sys 0m0.069s

sunghan-chang commented 3 months ago

@Tirtha-Samsung Let's leave the results for uart and usb in the commit description.

sunghan-chang commented 3 months ago

@Tirtha-Samsung last comment. Please check 2nd commit title.

build/configs/external_download.sh, build/configs/rtl8730e/rtl8730e_external_download.sh: New external download script

There is no external_download.sh and rtl8730e_external_download.sh.

sunghan-chang commented 3 months ago

@r-prabu @kishore-sn Could you check and merge?