Other Parts Discussed in Thread: AM62P
I'm using a SK-AM62P-LP working with Android and and we are following Processor SDK Android for AM62Px 09_01_00
We have installed snagboot tool
and we we're following this instructions
-
Change the boot mode DIP switches to DFU mode:
Boot mode DIP Switch: SW1: 11001010 SW2: 00000000
-
Open a terminal debugger to view console output from the device:
sudo picocom -b 115200 -r -l /dev/ttyUSB0
picocom v3.1 port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 115200 parity is : none databits are : 8 stopbits are : 1 escape is : C-a local echo is : no noinit is : no noreset is : yes hangup is : no nolock is : yes send_cmd is : sz -vv receive_cmd is : rz -vv -E imap is : omap is : emap is : crcrlf,delbs, logfile is : none initstring : none exit_after is : not set exit is : no Type [C-a] [C-h] to see available commands Terminal ready
-
run
snagrecover
for host
# If you are using binaries built locally cd out/target/product/am62psnagrecover -s am625 -f ./am62px-sk-evm-hsfs.yamlsnagrecover -s am625 -f ./am62px-sk-evm-hsfs.yaml Starting recovery of am625 board Installing firmware tiboot3 Searching for partition id... Downloading file... Could not read status after end of manifest phase Done Done installing firmware tiboot3 Installing firmware tispl Searching for partition id... Downloading file... Done Done installing firmware tispl Installing firmware u-boot Searching for partition id... Downloading file... Done Sending detach command... Done installing firmware u-boot USB retry 0/5 USB retry 1/5 USB retry 2/5 USB retry 3/5 USB retry 4/5 USB retry 5/5
- Setup default U-Boot environment
Type
Ctrl-C
in the serial console to continue to U-Boot. From there, we should ensure the default U-Boot environment is configured with:=> env default -f -a; saveenv;
- Enable fastboot mode on the device through the terminal debugger by executing below command. Before running this command make sure USB-C cable is connected from the host PC to the EVM:
=> fastboot 0
- From the host PC run the
flashall.sh
script to start flashing the binaries to eMMC:cd out/target/product/am62p ./flashall.sh --board am62px-sk
Picocom Log:U-Boot SPL 2023.04 (Dec 07 2023 - 14:31:30 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)') SPL initial stack usage: 17056 bytes Trying to boot from DFU #######################################################DOWNLOAD ... OK Ctrl+C to exit ... #############################################################DOWNLOAD ... OK Ctrl+C to exit ... Authentication passed Authentication passed Authentication passed init_env from device 10 not supported! Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.9(release):v2.9.0-614-gd7a7135d32a8 NOTICE: BL31: Built : 14:31:24, Dec 7 2023 U-Boot SPL 2023.04 (Dec 07 2023 - 14:31:55 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)') Trying to boot from DFU #####DOWNLOAD ... OK Ctrl+C to exit ... Authentication passed Authentication passed U-Boot 2023.04 (Dec 07 2023 - 14:31:55 +0100) SoC: AM62PX SR1.0 HS-FS Model: Texas Instruments AM62P5 SK DRAM: 2 GiB (effective 8 GiB) Core: 80 devices, 30 uclasses, devicetree: separate MMC: mmc@fa10000: 0, mmc@fa00000: 1 Loading Environment from MMC... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Net: Warning: ethernet@8000000port@1 (eth0) using random MAC address - c6:27:50:72:db:83 eth0: ethernet@8000000port@1 Warning: ethernet@8000000port@2 (eth1) using random MAC address - 9e:a2:dc:e9:3e:63 , eth1: ethernet@8000000port@2 Hit any key to stop autoboot: 0 Verify GPT: success! Loading Android boot partition... switch to partitions #0, OK mmc0(part 0) is current device misc partition number:0x3 ANDROID: Attempting slot a, tries remaining 5 ANDROID: Booting slot: a A/B cmdline addition: androidboot.slot_suffix=_a Running without AVB... MMC read: dev # 0, block # 28672, count 81920 ... 81920 blocks read: OK MMC read: dev # 0, block # 192512, count 65536 ... 65536 blocks read: OK Preparing FDT... Reading DTB for am62px... Incorrect boot image header cp - memory copy Usage: cp [.b, .w, .l, .q] source target count libfdt fdt_check_header(): FDT_ERR_BADMAGIC MMC read: dev # 0, block # 356352, count 16384 ... 16384 blocks read: OK Applying DTBOs... Running Android... Wrong Image Format for bootm command ERROR: can't get kernel image! Failed to boot Android... resetting ... U-Boot SPL 2023.04 (Dec 07 2023 - 14:31:30 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)') SPL initial stack usage: 17056 bytes Trying to boot from DFU #######################################################DOWNLOAD ... OK Ctrl+C to exit ... #############################################################DOWNLOAD ... OK Ctrl+C to exit ... Authentication passed Authentication passed Authentication passed init_env from device 10 not supported! Authentication passed Authentication passed Starting ATF on ARM64 core... NOTICE: BL31: v2.9(release):v2.9.0-614-gd7a7135d32a8 NOTICE: BL31: Built : 14:31:24, Dec 7 2023 U-Boot SPL 2023.04 (Dec 07 2023 - 14:31:55 +0100) SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.8--v09.01.08 (Kool Koala)') Trying to boot from DFU Authentication passed Authentication passed U-Boot 2023.04 (Dec 07 2023 - 14:31:55 +0100) SoC: AM62PX SR1.0 HS-FS Model: Texas Instruments AM62P5 SK DRAM: 2 GiB (effective 8 GiB) Core: 80 devices, 30 uclasses, devicetree: separate MMC: mmc@fa10000: 0, mmc@fa00000: 1 Loading Environment from MMC... OK In: serial@2800000 Out: serial@2800000 Err: serial@2800000 Net: Warning: ethernet@8000000port@1 (eth0) using random MAC address - 9a:93:1f:ea:63:7e eth0: ethernet@8000000port@1 Warning: ethernet@8000000port@2 (eth1) using random MAC address - 9a:51:f8:2c:fe:5e , eth1: ethernet@8000000port@2 Hit any key to stop autoboot: 0 => env default -f -a; saveenv; ## Resetting to default environment Saving Environment to MMC... Writing to MMC(0)... OK => fastboot 0 Writing GPT: success! dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk ** Bad device specification mmc tiboot3_a ** ** Bad device specification mmc tiboot3_a ** Couldn't find partition mmc tiboot3_a dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk Starting download of 312214 bytes dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk .. downloading of 312214 bytes finished dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk Flashing Raw Image ........ wrote 312320 bytes to 'tiboot3' dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk ** Bad device specification mmc bootloader_a ** ** Bad device specification mmc bootloader_a ** Couldn't find partition mmc bootloader_a dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk Starting download of 8388608 bytes dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk ................................................................ downloading of 8388608 bytes finished dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk Flashing Raw Image ........ wrote 8388608 bytes to 'bootloader' dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk ** Bad device specification mmc super_a ** ** Bad device specification mmc super_a ** Couldn't find partition mmc super_a dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulk dwc3-generic-peripheral usb@31000000: request 00000000f7ec8240 was not queued to ep1in-bulkout/target/product/am62p Log:./flashall.sh --board am62px-sk board: am62px-sk 8+0 records in 8+0 records out 8388608 bytes (8,4 MB, 8,0 MiB) copied, 4,58152 s, 1,8 MB/s mkfs.fat 4.2 (2021-01-31) Fastboot: /usr/bin/fastboot Image location: ./ Fastboot - device detected: userdata.img Create GPT partition table OKAY [ 0.019s] Finished. Total time: 0.019s Flashing tiboot3..... tiboot3bin: ./tiboot3-am62px-sk-hsfs.bin Sending 'tiboot3' (304 KB) OKAY [ 0.034s] Writing 'tiboot3' OKAY [ 0.018s] Finished. Total time: 0.120s bootloader: ./bootloader-am62px-sk.img Sending 'bootloader' (8192 KB) OKAY [ 0.321s] Writing 'bootloader' OKAY [ 0.091s] Finished. Total time: 0.478s Flash android partitions terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::compare: __pos (which is 917688) > this->size() (which is 0) ./flashall.sh, linha 15: 1042830 Abortado (imagem do núcleo gravada)${FASTBOOT} flash super ${superimg}
Does anyone knows how to solve this errors?