U-Boot Debug using CodeWarrior for QorIQ LS series – ARM V7 ISA

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U-Boot Debug using CodeWarrior for QorIQ LS series – ARM V7 ISA

U-Boot Debug using CodeWarrior for QorIQ LS series – ARM V7 ISA

U-Boot Debug using CodeWarrior for QorIQ LS series – ARM V7 ISA

Labels (1)
Attachments
Comments

Hi,


I have a problem on loading u-boot into our bareboard.

I have a customized LS1021A bareboard, how could I load u-boot into this board?

I compiled a u-boot and tried to attach it by a CodeWarrior TAP, but I always got some JTAG configuration failure.

     Error launching LS1021AQDS_Debug_LS1021AQDS_Attach

     CCSProtocolPlugin : Failed to correctly configure the JTAG chain


Is an on-board programmed u-boot necessary? Or I should change the target initialization file too?

Thanks

Usually the " Failed to correctly configure the JTAG chain" is generated by the missing of RCW or the wrong configuration of the switches .

Adrian

Thanks,

I have another question, I try to boot from the QSPI flash, I should use ls1021aqds_spi to compile my u-boot, right? Should I also need to build a SPL?

Indeed, to boot from qspi you should used ls1021aqds_spi to compile u-boot.

Hi Adrian,

I have another question: Can I debug the u-boot that boots up from NAND by this way?

Thanks

I didn't try to debug uboot from NAND, but should be the same. Let me know if doesn't work and I can take a look.

Adrian

Hi Adrian,

I tried it on a bare board, it doesn't work. Maybe the reason is no u-boot in the NAND flash.

I have programmed a RCW file into the NAND flash, so I can gain the JTAG control.

Thanks.

Yes, this is the reason. You have to flash a u-boot with spd-pbl image into the NAND to have all is necessary (rcw, pbi, uboot) for NAND boot.

Adrian

Hi Adrian,

I still have troubles in debuging the NAND boot u-boot.

The NAND boot file "u-boot" is different from the NOR boot file "u-boot", there is another "SPL" part.

How could I debug the NAND boot file?

Thanks

Do you use LS1021AQDS board? If yes, could you provide your switches settings? Also, did you use u-boot-with-spl-pbl-ls1021aqds_nand.bin?

Adrian

Hi Adrian,

I'm working on a custom board now. I have made a working u-boot for my board.

But still I cannot debug the file "u-boot" normally,

While I reset it(Figure 10), what I get is different from Figure 11, there is no place to set the source code location.

Here is the message:

No source available for "0x00001EC0 (0x00001EC0)() "

I just try on my QDS board and after reset without init, CW will prompt for source location. Could you please file on u-boot elf and provide the results.

My u-boot elf for nand boot looks like below:

$ file u-boot

u-boot: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

Hi Adrian,

My file information is the same, but while I reset without any init file, here is what's inside the debug window:

100 of_read_number() fdt_support.c:1397 0x00000000

99 of_read_number() fdt_support.c:1397 0x00000000

98 of_read_number() fdt_support.c:1397 0x00000000

...

3 of_read_number() fdt_support.c:1397 0x00000000

2 of_read_number() fdt_support.c:1397 0x00000000

1 of_read_number() fdt_support.c:1397 0x00000000

If I press "Step Over"/ "Step Into", it will prompt

No source available for "0x00001EC0 (0x00001EC0)() "

If I choose Resume/Step Return, it won't prompt anything and I can only Pause or Terminate it.

Besides, I have tried to debug linux kernel and it didn't prompt for source location either.

I delete the whole workspace and redo those steps, but it doesn't work.

Did you still have this issue? What CW version you are using?

%3CLINGO-SUB%20id%3D%22lingo-sub-1103323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EU-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EU-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1103323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EU-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1103323%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDid%20you%20still%20have%20this%20issue%3F%20What%20CW%20version%20you%20are%20using%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Adrian%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EMy%20file%20information%20is%20the%20same%2C%20but%20while%20I%20reset%20without%20any%20init%20file%2C%20here%20is%20what's%20inside%20the%20debug%20window%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%0A%3CP%3E100%20of_read_number()%20fdt_support.c%3A1397%200x00000000%3C%2FP%3E%0A%3CP%3E99%20of_read_number()%20fdt_support.c%3A1397%200x00000000%3C%2FP%3E%0A%3CP%3E98%20of_read_number()%20fdt_support.c%3A1397%200x00000000%3C%2FP%3E%0A%0A%0A%0A...%20%3CBR%20%2F%3E%0A%3CP%3E3%20of_read_number()%20fdt_support.c%3A1397%200x00000000%3C%2FP%3E%0A%3CP%3E2%20of_read_number()%20fdt_support.c%3A1397%200x00000000%3C%2FP%3E%0A%3CP%3E1%20of_read_number()%20fdt_support.c%3A1397%200x00000000%3C%2FP%3E%0A%0A%0A%0A%0A%3C%2FBLOCKQUOTE%3E%3CP%3EIf%20I%20press%20%22Step%20Over%22%2F%20%22Step%20Into%22%2C%20it%20will%20prompt%3C%2FP%3E%3CBLOCKQUOTE%3E%0A%3CP%3ENo%20source%20available%20for%20%220x00001EC0%20(0x00001EC0)()%20%22%3C%2FP%3E%0A%0A%0A%0A%0A%3C%2FBLOCKQUOTE%3E%3CP%3EIf%20I%20choose%20Resume%2FStep%20Return%2C%20it%20won't%20prompt%20anything%20and%20I%20can%20only%20Pause%20or%20Terminate%20it.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBesides%2C%20I%20have%20tried%20to%20debug%20linux%20kernel%20and%20it%20didn't%20prompt%20for%20source%20location%20either.%3C%2FP%3E%3CP%3EI%20delete%20the%20whole%20workspace%20and%20redo%20those%20steps%2C%20but%20it%20doesn't%20work.%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20just%20try%20on%20my%20QDS%20board%20and%20after%20reset%20without%20init%2C%20CW%20will%20prompt%20for%20source%20location.%20Could%20you%20please%20file%20on%20u-boot%20elf%20and%20provide%20the%20results.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EMy%20u-boot%20elf%20for%20nand%20boot%20looks%20like%20below%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%24%20file%20u-boot%3C%2FP%3E%3CP%3Eu-boot%3A%20ELF%2032-bit%20LSB%20shared%20object%2C%20ARM%2C%20version%201%20(SYSV)%2C%20dynamically%20linked%20(uses%20shared%20libs)%2C%20not%20stripped%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Adrian%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI'm%20working%20on%20a%20custom%20board%20now.%20I%20have%20made%20a%20working%20u-boot%20for%20my%20board.%3C%2FP%3E%3CP%3EBut%20still%20I%20cannot%20debug%20the%20file%20%22u-boot%22%20normally%2C%3C%2FP%3E%3CP%3EWhile%20I%20reset%20it(Figure%2010)%2C%20what%20I%20get%20is%20different%20from%20Figure%2011%2C%20there%20is%20no%20place%20to%20set%20the%20source%20code%20location.%3C%2FP%3E%3CP%3EHere%20is%20the%20message%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%0A%3CP%3ENo%20source%20available%20for%20%220x00001EC0%20(0x00001EC0)()%20%22%20%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103333%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103333%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDo%20you%20use%20LS1021AQDS%20board%3F%20If%20yes%2C%20could%20you%20provide%20your%20switches%20settings%3F%20Also%2C%20did%20you%20use%20u-boot-with-spl-pbl-ls1021aqds_nand.bin%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAdrian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103332%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103332%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Adrian%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20still%20have%20troubles%20in%20debuging%20the%20NAND%20boot%20u-boot.%3C%2FP%3E%3CP%3EThe%20NAND%20boot%20file%20%22u-boot%22%20is%20different%20from%20the%20NOR%20boot%20file%20%22u-boot%22%2C%20there%20is%20another%20%22SPL%22%20part.%3C%2FP%3E%3CP%3EHow%20could%20I%20debug%20the%20NAND%20boot%20file%3F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103331%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103331%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%2C%20this%20is%20the%20reason.%20You%20have%20to%20flash%20a%20u-boot%20with%20spd-pbl%20image%20into%20the%20NAND%20to%20have%20all%20is%20necessary%20(rcw%2C%20pbi%2C%20uboot)%20for%20NAND%20boot.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAdrian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Adrian%2C%3C%2FP%3E%3CP%3EI%20tried%20it%20on%20a%20bare%20board%2C%20it%20doesn't%20work.%20Maybe%20the%20reason%20is%20no%20u-boot%20in%20the%20NAND%20flash.%3C%2FP%3E%3CP%3EI%20have%20programmed%20a%20RCW%20file%20into%20the%20NAND%20flash%2C%20so%20I%20can%20gain%20the%20JTAG%20control.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103329%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20didn't%20try%20to%20debug%20uboot%20from%20NAND%2C%20but%20should%20be%20the%20same.%20Let%20me%20know%20if%20doesn't%20work%20and%20I%20can%20take%20a%20look.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAdrian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103328%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Adrian%2C%3C%2FP%3E%3CP%3EI%20have%20another%20question%3A%20Can%20I%20debug%20the%20u-boot%20that%20boots%20up%20from%20NAND%20by%20this%20way%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103327%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103327%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIndeed%2C%20to%20boot%20from%20qspi%20you%20should%20used%20ls1021aqds_spi%20to%20compile%20u-boot.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103326%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103326%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EI%20have%20another%20question%2C%20I%20try%20to%20boot%20from%20the%20QSPI%20flash%2C%20I%20should%20use%20ls1021aqds_spi%20to%20compile%20my%20u-boot%2C%20right%3F%20Should%20I%20also%20need%20to%20build%20a%20SPL%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103325%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUsually%20the%20%22%3CSPAN%20style%3D%22color%3A%20%233d3d3d%3B%20font-family%3A%20'Helvetica%20Neue'%2C%20Helvetica%2C%20Arial%2C%20'Lucida%20Grande'%2C%20sans-serif%3B%22%3E%20Failed%20to%20correctly%20configure%20the%20JTAG%20chain%3C%2FSPAN%3E%22%20is%20generated%20by%20the%20missing%20of%20RCW%20or%20the%20wrong%20configuration%20of%20the%20switches%20.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EAdrian%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1103324%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20U-Boot%20Debug%20using%20CodeWarrior%20for%20QorIQ%20LS%20series%20%E2%80%93%20ARM%20V7%20ISA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103324%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22n%20fn%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22n%20fn%22%3EI%20have%20a%20problem%20on%20loading%20u-boot%20into%20our%20bareboard.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22n%20fn%22%3EI%20have%20a%20customized%20LS1021A%20bareboard%2C%20how%20could%20I%20load%20u-boot%20into%20this%20board%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22n%20fn%22%3EI%20compiled%20a%20u-boot%20and%20tried%20to%20attach%20it%20by%20a%20CodeWarrior%20TAP%2C%20but%20I%20always%20got%20some%20JTAG%20configuration%20failure.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Error%20launching%20LS1021AQDS_Debug_LS1021AQDS_Attach%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20CCSProtocolPlugin%20%3A%20Failed%20to%20correctly%20configure%20the%20JTAG%20chain%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22n%20fn%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22n%20fn%22%3E%20Is%20an%20on-board%20programmed%20u-boot%20necessary%3F%20Or%20I%20should%20change%20the%20target%20initialization%20file%20too%3F%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CH5%20class%3D%22simple%22%20id%3D%22toc-hId-1782706453%22%20id%3D%22toc-hId--1595205392%22%3E%3C%2FH5%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎06-11-2014 01:31 AM
Updated by: