[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[do not merge]build/tools/amebasmart/image_tool: Support USB download and external … #6260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jiangxiaoyunjoy
Copy link
Contributor

…flash download

  1. Tested with rtl8730e->loadable_ext configuration To test USB download feature, use command "sudo ./os/dbuild.sh download port=ttyACM0 ALL"
  2. common_download.sh, board_metadata.txt, defconfig are modified to test external flash download feature, and it is for test only. Scripts for external flash will be provided by Samsung.
  3. Download time is about 14s on Linux, while it is 12s on Windows for loadable_ext configuration.
  4. Redundant log will be removed in the final version.

@sunghan-chang
Copy link
Contributor

@r-prabu could you verify this and let us know result?

Copy link
Contributor
@jylee9613 jylee9613 Jun 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any specific reason about changing flashloader name?
If there is no change except name of floader binary, would you please use floader_rtl8730e.bin name?
If the name is different, we need to change the signing script in the server.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, as the base version of this download tool has upgraded its floader name, so I synced it in the SDA customized version. We can keep the name as floader_rtl8730e.bin for your convenience.
The name in the latest commit has been changed back to floader_rtl8730e.bin, please test and verify again.

@jiangxiaoyunjoy jiangxiaoyunjoy force-pushed the SDAIOT30E-223-USB_download_and_external_flash_download branch from 7eaa654 to 34be977 Compare June 28, 2024 11:16
@jiangxiaoyunjoy jiangxiaoyunjoy changed the title build/tools/amebasmart/image_tool: Support USB download and external … [do not merge]build/tools/amebasmart/image_tool: Support USB download and external … Jul 1, 2024
@jiangxiaoyunjoy jiangxiaoyunjoy force-pushed the SDAIOT30E-223-USB_download_and_external_flash_download branch from 34be977 to 4cd059b Compare July 1, 2024 10:40
@Tirtha-Samsung
Copy link
Contributor

Hi @jiangxiaoyunjoy , We are trying to download using USB, but it is failing. Could you please explain what are the things needed to download?

@Tirtha-Samsung
Copy link
Contributor
test@Jammy:~/TizenRT/flash/TizenRT/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        userfs      reserved      external     bootparam
SIZE(in KB):            60            40            12           400          1844          4808           384          1844          4808           384           512          1160           120             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x86FF000     0x875F000     0x892C000     0x8DDE000     0x8E3E000     0x8EBE000     0x8FE0000     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 userfs binary
==========================
rtl8730e_smartfs.bin not present

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

==========================
Start USB download
Tue Jul 2 06:28:53 UTC 2024
==========================
Number of images: 5
Found ACM device         ......    OK
Open serial port         ......    OK

USB download...
Close serial port        ......    OK
Open serial port         ......    OK
error: fault during download.
Uburn DownloadFloader    ......    Fail
USB Prepare              ......    Fail
Complete USB download
Tue Jul 2 06:28:54 UTC 2024

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

Download COMPLETE!

… and external flash download

1. Fix chip erase function in the floader and remove manifest
2. Tested with rtl8730e->loadable_ext configuration
   To test USB download feature, use command "sudo ./os/dbuild.sh download port=ttyACM0 ALL"
3. common_download.sh, board_metadata.txt, defconfig are modified to test external flash download feature, and it is for test only.
   Scripts for external flash will be provided by Samsung.
4. Download time is about 14s on Linux, while it is 12s on Windows for loadable_ext configuration.
5. Redundant log will be removed in the final version.
@jiangxiaoyunjoy jiangxiaoyunjoy force-pushed the SDAIOT30E-223-USB_download_and_external_flash_download branch from 4cd059b to 29af669 Compare July 2, 2024 08:55
@jiangxiaoyunjoy
Copy link
Contributor Author

hi @Tirtha-Samsung,

Pls try the test flow as below:
Clean build and re-configure current configuration -> select rtl8730e ->select loadable_ext configuration -> build with current configuration -> exit when the build is completed
enter "sudo ./os/dbuild.sh download port=ttyACM0 ALL" to download images via USB port

It seems the transmission of the flash loader was failed, could you try more times and let me know the reproduce rate?

Thank you~

@jiangxiaoyunjoy
Copy link
Contributor Author
jiangxiaoyunjoy commented Jul 2, 2024
$ sudo ./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        userfs      reserved     bootparam      external
SIZE(in KB):            60            40            12           400          1844          4808           384          1844          4808           384           512          1280             8           120
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x86FF000     0x875F000     0x892C000     0x8DDE000     0x8E3E000     0x8EBE000     0x8FFE000     0x9000000
=================================================================================================


==========================
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 userfs binary
==========================
rtl8730e_smartfs.bin not present

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

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

==========================
Start USB download
Tue Jul 2 09:32:55 UTC 2024
==========================
Number of images: 6
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
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 0x86ff000
===================================================
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
EVB reset                ......    OK
Close serial port        ......    OK
Complete USB download
Tue Jul 2 09:33:09 UTC 2024

Download COMPLETE!

@r-prabu
Copy link
r-prabu commented Jul 2, 2024

hi @Tirtha-Samsung,

Pls try the test flow as below: Clean build and re-configure current configuration -> select rtl8730e ->select loadable_ext configuration -> build with current configuration -> exit when the build is completed enter "sudo ./os/dbuild.sh download port=ttyACM0 ALL" to download images via USB port

It seems the transmission of the flash loader was failed, could you try more times and let me know the reproduce rate?

Thank you~

@jiangxiaoyunjoy we are also following the same above steps, but we are facing the issue always. Not able to download even once.

@gSahitya-samsung
Copy link
Contributor

Verified! But need to check build issue with latest public code.

tizenrt@tizenrt ~/projects/TizenRT ((HEAD detached at 29af6694b)) $ 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        userfs      reserved      external     bootparam
SIZE(in KB):            60            40            12           400          1844          4808           384          1844          4808           384           512          1160           120             8
Addr       :     0x8000000     0x800F000     0x8019000     0x801C000     0x8080000     0x824D000     0x86FF000     0x875F000     0x892C000     0x8DDE000     0x8E3E000     0x8EBE000     0x8FE0000     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 userfs binary
==========================
rtl8730e_smartfs.bin not present

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

==========================
Start USB download
Wed Jul 3 06:47:16 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
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 0x86ff000
===================================================
USB erase                ......    OK
USB download             ......    OK
USB checksum             ......    OK
Image download           ......    OK
===================================================
rtk_ext_flash_data.bin download to 0x8fe0000
===================================================
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 06:47:31 UTC 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants