Skip to content

Commit

Permalink
build/tools/amebasmart/imagetool: Add configuration for package type2…
Browse files Browse the repository at this point in the history
… - DDR

    1. print package type before download/erase operation
       package type will be printed in the download log as below:
       Internal flash size: 16 MB + External flash size: 32 MB
       --> Package 1.
       Internal flash size: 32 MB + External flash size: 64 MB
       --> Package 2:DDR.
   
    2. skip flash checking when addr > 0x0A000000
       flash checking is ignored if only download images to external flash.
       This is the request from SDA when implementing external flash feature. More details please refer to #6220
   
    3. If the image size exceed module flash size, report error and stop download.
       error log will be printed if end addr > 0x0C000000 for package 1 and 0x0E000000 for package 2 DDR
       Calculation formula: package 1 has a flash size of 16+32MB, the max addr can be assigned is (0x0A000000+32 * 1024 * 1024) = 0x0C000000.
                            package 2 has a flash size of 32+64MB, the max addr can be assigned is (0x0A000000+64 * 1024 * 1024) = 0x0E000000.

    4. package 1 is not able to download image to address between 0x09000000 to 0x0A000000 due to invalid flash mapping.
       package 2 can download between 0x09000000 to 0x0A000000, because the package 2 has 32MB internal flash: 0x08000000+32 * 1024 * 1024 = 0x0A000000,
       while package 1 only has 16MB internal flash: 0x08000000+16 * 1024 * 1024 = 0x09000000.
   
Test ok on package 1/package 2/EVB
  • Loading branch information
jiangyun authored and sunghan-chang committed Aug 16, 2024
1 parent 9ffdbd9 commit d4d63dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 0 deletions.
Binary file modified build/tools/amebasmart/image_tool/floader_rtl8730e.bin
Binary file not shown.
Binary file modified build/tools/amebasmart/image_tool/upload_image_tool_linux
Binary file not shown.

0 comments on commit d4d63dd

Please sign in to comment.