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

Can not burn img in secure mode #6

Open
bonbon2106 opened this issue Apr 24, 2019 · 0 comments
Open

Can not burn img in secure mode #6

bonbon2106 opened this issue Apr 24, 2019 · 0 comments

Comments

@bonbon2106
Copy link

Hi Stane,
I using your tool to burn my img (aml_upgrade_package.img) to s805 platform in secure mode. I'm facing a problem while buring the img. It can not create partition table. always get error: ERR: AmlUsbBulkCmd failed!
You can check the following log. Can you help me to solve it, pls?

Thank you very much.

========================
Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null identify 7

  • Results ---------------------------------------------------
    AmlUsbIdentifyHost
    This firmware version is 1-0-0-0-109-0-108

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null identify 7

  • Results ---------------------------------------------------
    AmlUsbIdentifyHost
    This firmware version is 1-0-0-0-109-0-108

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null bulkcmd " echo 12345"

  • Results ---------------------------------------------------
    AmlUsbBulkCmd[ echo 12345]
    [AmlUsbRom]Err:return len=0 < strLenBusy 11
    [AmlUsbRom]Err:bulkInReply=[]
    ERR: AmlUsbBulkCmd failed!

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null identify 7

  • Results ---------------------------------------------------
    AmlUsbIdentifyHost
    This firmware version is 1-0-0-0-32-101-99

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null rreg 4 0xd9018048

  • Results ---------------------------------------------------
    [update]Total tansfer size 0x4

D9018048: 010015c3

0xd9018048 = 0x010015c3
Secure boot bit = 128
Board is in secure mode
Unpacking image
[Msg]Image package version 0x1
[Msg]Unpack item [USB , DDR] to (/tmp/aml-flash-tool-lOMN/DDR.USB) size:15124 bytes
[Msg]Unpack item [USB , UBOOT_COMP] to (/tmp/aml-flash-tool-lOMN/UBOOT_COMP.USB) size:341264 bytes
[Msg]Unpack item [conf , platform] to (/tmp/aml-flash-tool-lOMN/platform.conf) size:191 bytes
[Msg]Unpack item [USB , DDR_ENC] to (/tmp/aml-flash-tool-lOMN/DDR_ENC.USB) size:15124 bytes
[Msg]Unpack item [USB , UBOOT_ENC] to (/tmp/aml-flash-tool-lOMN/UBOOT_ENC.USB) size:375888 bytes
[Msg]Unpack item [dtd , meson8b_m201_2G] to (/tmp/aml-flash-tool-lOMN/meson8b_m201_2G.dtd) size:68048 bytes
[Msg]Unpack item [dtd , meson8b_m201_1G] to (/tmp/aml-flash-tool-lOMN/meson8b_m201_1G.dtd) size:67834 bytes
[Msg]Unpack item [ini , aml_sdc_burn] to (/tmp/aml-flash-tool-lOMN/aml_sdc_burn.ini) size:624 bytes
[Msg]Unpack item [dtb , meson] to (/tmp/aml-flash-tool-lOMN/meson.dtb) size:47104 bytes
[Msg]Unpack item [PARTITION , logo] to (/tmp/aml-flash-tool-lOMN/logo.PARTITION) size:6221056 bytes
[Msg]Unpack item [PARTITION , boot] to (/tmp/aml-flash-tool-lOMN/boot.PARTITION) size:8070525 bytes
[Msg]Unpack item [PARTITION , system] to (/tmp/aml-flash-tool-lOMN/system.PARTITION) size:465803736 bytes
[Msg]Unpack item [PARTITION , recovery] to (/tmp/aml-flash-tool-lOMN/recovery.PARTITION) size:8104172 bytes
[Msg]Unpack item [PARTITION , bootloader] to (/tmp/aml-flash-tool-lOMN/bootloader.PARTITION) size:701200 bytes
[Msg]Write config file "/tmp/aml-flash-tool-lOMN/image.cfg" OK!
Image unpack OK!
[OK]

Parsing image configuration files

platform_conf_name = platform.conf
ddr_filename = DDR.USB
uboot_filename =
uboot_comp_filename = UBOOT_COMP.USB
dtb_meson_filename = meson.dtb
dtb_meson1_filename =
dtb_meson1_enc_filename =
ddr_enc_filename = DDR_ENC.USB
uboot_enc_filename = UBOOT_ENC.USB
keys_filename =
platform = 0x0802
bin_params = 0xd9010000
ddr_load = 0xd9000000
ddr_run = 0xd9000000
uboot_down = 0x200000
uboot_decomp = 0xd9000030
uboot_enc_down = 0x0fff8000
uboot_enc_run = 0x0fff8000
uboot_load =
uboot_run =
bl2_params =
nb_partitions = 5

Partition list

0 logo.PARTITION logo normal
1 boot.PARTITION boot normal
2 system.PARTITION system sparse
3 recovery.PARTITION recovery normal
4 bootloader.PARTITION bootloader normal

Bootloader/DTB files

bootloader_file = /tmp/aml-flash-tool-lOMN/bootloader.PARTITION
dtb_file = /tmp/aml-flash-tool-lOMN/meson.dtb

Initializing ddr ......
Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null cwr /tmp/aml-flash-tool-lOMN/DDR_ENC.USB 0xd9000000

  • Results ---------------------------------------------------
    ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
    Transfer Complete! total size is 15124 Bytes

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null run 0xd9000000

  • Results ---------------------------------------------------
    [update]Run at Addr d9000000
    AmlUsbRunBinCode:ram_addr=d9000000

........[OK]
Running u-boot
Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null write /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/decompressPara_4M.dump 0xd9010000

  • Results ---------------------------------------------------
    ..
    Transfer Complete! total size is 32 Bytes

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null write /tmp/aml-flash-tool-lOMN/UBOOT_ENC.USB 0x0fff8000

  • Results ---------------------------------------------------
    ............
    Transfer Complete! total size is 375888 Bytes

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null run 0x0fff8000

  • Results ---------------------------------------------------
    [update]Run at Addr fff8000
    AmlUsbRunBinCode:ram_addr=0fff8000

................[OK] 123
Creating partitions 12 => run_update
Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null bulkcmd " disk_initial 3"

  • Results ---------------------------------------------------
    AmlUsbBulkCmd[ disk_initial 3]
    AM_REQ_BULK_CMD_Handler ret=-110,blkcmd= disk_initial 3 error_msg=error sending control message: Connection timed out
    [AmlUsbRom]Err:rettemp = 0 buffer = [ disk_initial 3]
    ERR: AmlUsbBulkCmd failed!

Command -> /media/DATA/1.Projects/7.Amlogic/Tools/aml-linux-usb-burn-master/tools/update 2>/dev/null bulkcmd " disk_initial 2"

  • Results ---------------------------------------------------
    AmlUsbBulkCmd[ disk_initial 2]
    AM_REQ_BULK_CMD_Handler ret=-110,blkcmd= disk_initial 2 error_msg=error sending control message: Connection timed out
    [AmlUsbRom]Err:rettemp = 0 buffer = [ disk_initial 2]
    ERR: AmlUsbBulkCmd failed!

[KO]

Cleanup

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

No branches or pull requests

1 participant