DB820c boot problems

Hi,

I have a db820c that I’m having a hard time bringing up. So I thought I should go through the recovery process. I flashed a recovery image, but when I boot I get the following:

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.XF.1.0-72413
S - IMAGE_VARIANT_STRING=M8996LAB
S - OEM_IMAGE_VERSION_STRING=crm-ubuntu44
S - Boot Interface: Unknown
S - Secure Boot: Off
S - Boot Config @ 0x00076044 = 0x000001c3
S - JTAG ID @ 0x000760f4 = 0x100640e1
S - OEM ID @ 0x000760f8 = 0x00000000
S - Serial Number @ 0x00074138 = 0x1b68921a
S - OEM Config Row 0 @ 0x00074188 = 0x0000000000000000
S - OEM Config Row 1 @ 0x00074190 = 0x0000000000000000
S - Feature Config Row 0 @ 0x000741a0 = 0x0050000010000100
S - Feature Config Row 1 @ 0x000741a8 = 0x00fff00001ffffff
S - Core 0 Frequency, 1228 MHz
B -         0 - PBL, Start
B -     10412 - bootable_media_detect_entry, Start
B -    168814 - bootable_media_detect_success, Start
B -    168817 - elf_loader_entry, Start
B -    170580 - auth_hash_seg_entry, Start
B -    170684 - auth_hash_seg_exit, Start
B -    219850 - elf_segs_hash_verify_entry, Start
B -    222363 - PBL, End
B -    224297 - SBL1, Start
B -    320646 - usb: hs_phy_nondrive_start
B -    320982 - usb: PLL lock success - 0x3
B -    323971 - usb: hs_phy_nondrive_finish
B -    328119 - boot_flash_init, Start
D -     95373 - boot_flash_init, Delta
B -    427396 - sbl1_ddr_set_default_params, Start
D -         0 - sbl1_ddr_set_default_params, Delta
B -    434167 - boot_config_data_table_init, Start
D -     27602 - boot_config_data_table_init, Delta - (60 Bytes)
B -    466284 - CDT Version:3,Platform ID:24,Major ID:1,Minor ID:0,Subtype:0
B -    470981 - Image Load, Start
D -     25925 - PMIC Image Loaded, Delta - (37272 Bytes)
B -    496906 - pm_device_init, Start
B -    502670 - PON REASON:PM0:0x60 PM1:0x20 
B -    538904 - PM_SET_VAL:Skip
D -     39863 - pm_device_init, Delta
B -    540826 - pm_driver_init, Start
D -      2897 - pm_driver_init, Delta
B -    547444 - pm_sbl_chg_init, Start
D -        61 - pm_sbl_chg_init, Delta
B -    554185 - vsense_init, Start
D -         0 - vsense_init, Delta
B -    564921 - Pre_DDR_clock_init, Start
D -       396 - Pre_DDR_clock_init, Delta
B -    567818 - ddr_initialize_device, Start
B -    571509 - 8996 Pro v1.x detected, Max frequency = 1.8 GHz
B -    581147 - ddr_initialize_device, Delta
B -    581269 - DDR ID, Rank 0, Rank 1, 0xff, 0x400, 0x400
B -    585356 - Basic DDR tests done
B -    590541 - do_ddr_training, Start
B -    597190 - Image Load, Start
D -     26382 - DDR Training Image Loaded, Delta - (60729 Bytes)
B -   1242570 - 

B -   1242600 -     Abort RD coarse due to minimum eye size violation

B -   1243149 -     Channel         = 0

B -   1249280 -     Rank            = 1

B -   1253092 -     Byte            = 0

B -   1256722 -     VREF Center     = 255

B -   1260382 -     VREF violation  = 255

B -   1264011 -     Width violation = 0

I’ve tried all of the sdcard images here: http://snapshots.linaro.org/96boards/dragonboard820c/linaro/rescue/
but I get the same result

I tried doing the USB recovery outlined here:

But the command:

sudo <PATH to qdl>/qdl prog_ufs_firehose_8996_ddr.elf rawprogram.xml patch.xml

won’t execute because there is no rawprogram.xml, only rawprogram[0-5]

At one point I was able to get into fastboot, but I can’t any longer. Now what I get is:

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.XF.1.0-00301
S - IMAGE_VARIANT_STRING=M8996LAB
S - OEM_IMAGE_VERSION_STRING=crm-ubuntu68
S - Boot Interface: UFS
S - Secure Boot: Off
S - Boot Config @ 0x00076044 = 0x000001c9
S - JTAG ID @ 0x000760f4 = 0x100640e1
S - OEM ID @ 0x000760f8 = 0x00000000
S - Serial Number @ 0x00074138 = 0x1b68921a
S - OEM Config Row 0 @ 0x00074188 = 0x0000000000000000
S - OEM Config Row 1 @ 0x00074190 = 0x0000000000000000
S - Feature Config Row 0 @ 0x000741a0 = 0x0050000010000100
S - Feature Config Row 1 @ 0x000741a8 = 0x00fff00001ffffff
S - Core 0 Frequency, 1228 MHz
B -         0 - PBL, Start
B -     10411 - bootable_media_detect_entry, Start
B -     52984 - bootable_media_detect_success, Start
B -     52984 - elf_loader_entry, Start
B -     54158 - auth_hash_seg_entry, Start
B -     54261 - auth_hash_seg_exit, Start
B -     86763 - elf_segs_hash_verify_entry, Start
B -     89264 - PBL, End
B -     91286 - SBL1, Start
B -    187270 - usb: hs_phy_nondrive_start
B -    187636 - usb: PLL lock success - 0x3
B -    190625 - usb: hs_phy_nondrive_finish
B -    194742 - boot_flash_init, Start
D -        30 - boot_flash_init, Delta
B -    201849 - sbl1_ddr_set_default_params, Start
D -        30 - sbl1_ddr_set_default_params, Delta
B -    209840 - boot_config_data_table_init, Start
D -     97264 - boot_config_data_table_init, Delta - (60 Bytes)
B -    311618 - CDT Version:3,Platform ID:24,Major ID:1,Minor ID:0,Subtype:0
B -    316315 - Image Load, Start
D -     24492 - PMIC Image Loaded, Delta - (37272 Bytes)
B -    340837 - pm_device_init, Start
B -    346602 - PON REASON:PM0:0x60 PM1:0x20 
B -    383019 - PM_SET_VAL:Skip
D -     40046 - pm_device_init, Delta
B -    384940 - pm_driver_init, Start
D -      2928 - pm_driver_init, Delta
B -    391528 - pm_sbl_chg_init, Start
D -        91 - pm_sbl_chg_init, Delta
B -    398299 - vsense_init, Start
D -         0 - vsense_init, Delta
B -    411384 - Pre_DDR_clock_init, Start
D -       366 - Pre_DDR_clock_init, Delta
B -    414068 - ddr_initialize_device, Start
B -    417758 - 8996 Pro v1.x detected, Max frequency = 1.8 GHz
B -    427396 - ddr_initialize_device, Delta
B -    427518 - DDR ID, Rank 0, Rank 1, 0xff, 0x400, 0x400
B -    431605 - Basic DDR tests done
B -    500383 - clock_init, Start
D -       244 - clock_init, Delta
B -    506940 - Image Load, Start
B -    509594 - Error code 8 at boot_config_process_entry Line 244
B -    509655 - Image Load, Start

Is there something obvious that I’m doing incorrectly?

Could you please try the following (while board configured in EDL mode):

sudo <PATH to qdl>/ prog_ufs_firehose_8996_ddr.elf rawprogram*.xml patch*.xml

hmm, I seem to have borked something. In EDL mode it should show up as a fastboot devices, correct? I don’t see anything on the serial console when in EDL mode and not fastboot devices show up.

I set the switch as per the documentation for EDL mode:

Set switch S1 to ON,OFF,OFF,ON

I ran the command, it executes and quits almost immediately without any error.

AFAIR, in EDL mode it should show up as a serial device (either ttyUSBx or ttyACMx). Check your system log when you boot in edl.

You are correct, it shows up as /dev/ttyUSB1/ for me.

[765863.590121] usb 1-2: new high-speed USB device number 50 using xhci_hcd
[765863.742522] usb 1-2: New USB device found, idVendor=05c6, idProduct=9008, bcdDevice= 0.00
[765863.742530] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[765863.742536] usb 1-2: Product: QUSB__BULK
[765863.742540] usb 1-2: Manufacturer: Qualcomm CDMA Technologies MSM
[765863.744833] qcserial 1-2:1.0: Qualcomm USB modem converter detected
[765863.745226] usb 1-2: Qualcomm USB modem converter now attached to ttyUSB1

But then when I run qdl it disconnects:

[765876.950293] qcserial ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-2)
[765876.950298] qcserial ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-2)
[765876.950411] qcserial ttyUSB1: Qualcomm USB modem converter now disconnected from ttyUSB1
[765876.950419] qcserial 1-2:1.0: device disconnected

And I don’t get any response