[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] uclinux build fails because





Hi john,


 No..I am not using that combination..I am using xmdstub only..not even mdm...i am not using FSL also..
actually I have scaled down..i mean..this problem is happening for the past 2-3 days...so right now I am back to
some very basic kernel configuration..image size around 1MB...

after downloading the image..when i give a "con start-address" command...it either says USERSTOP at some location or says nothing...but both cases..the execution (probably) halts and nothing shows up on the hyperterm...
one more point is some older images run without any problems
..i mean..the execution is smooth(with full networking)..only for the past few days we are facing this problem...the build environment is still the same..

the location where i generally get this message(USERSTOP) is 0x80000004 or 0x80000008(mostly 04)..here is the image.dump :

-----------------------start------------------------------
image.elf:     file format elf32-microblaze

Disassembly of section .text:

80000000 <start>:
80000000:       94208001        mfs     r1, rmsr
80000004:       a421fffd        andi    r1, r1, -3
80000008:       9401c001        mts     rmsr, r1
8000000c:       b0008009        imm     -32759
80000010:       21a0a020        addi    r13, r0, -24544
80000014:       b0008009        imm     -32759
80000018:       20402c04        addi    r2, r0, 11268
8000001c:       b0008009        imm     -32759
80000020:       20209ffc        addi    r1, r0, -24580
80000024:       b0008009        imm     -32759
80000028:       20c0db08        addi    r6, r0, -9464
8000002c:       bc06000c        beqi    r6, 12          // 80000038
80000030:       99fc3000        brald   r15, r6
80000034:       80000000        or      r0, r0, r0
80000038:       b0008009        imm     -32759
8000003c:       f820a000        swi     r1, r0, -24576
80000040:       22600001        addi    r19, r0, 1
80000044:       b0008009        imm     -32759
80000048:       fa60a004        swi     r19, r0, -24572
8000004c:       a561e000        andi    r11, r1, -8192
80000050:       b000800a        imm     -32758
80000054:       f96054a8        swi     r11, r0, 21672
80000058:       b0008000        imm     -32768
8000005c:       21e0abf8        addi    r15, r0, -21512
80000060:       b0008009        imm     -32759
80000064:       b808b4ac        brai    -19284

80000068 <check_bugs>:
 */

.....
.....
---------------------------end-------------------------------



Warm Regards

V.Anand
(www.tenet.res.in)






Hi Anand,
>
>anand_12 wrote:
>
>> I have one more doubt...though I have not explicitly placed any breakpoints in my kernel image..when I download it on to SDRAM using xmd and then try to execute it using the con "start addr" command....the execution halts after giving this message on the xmd console
>
>Are you using the xmd/mdm/fsl combination as described on the website?
>
>http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux/Documentation/debugging_kernel.html
>
>> XMD% USERSTOP AT
>> ..some address in SDRAM: opcode...and the instruction
>> 
>> when I do a bpl(breakpoint listing),nothing shows up
>> 
>> XMD% bpl
>> XMD%
>> 
>> whenever this happens,I do a 'rrd' in the XMD console 
>> and find that register r16(of microblaze) holds the same address as the PC and according to the microblaze software reference manual..this happens whenever a hardware break occurs(register r16 gets the address of the instruction that was to be executed when the break occured...)
>
>Here's a useful technique for debugging this kind of problem:
>
>$ cd uClinux-dist/images
>$ mb-objdump -S image.elf > image.dump
>
>then open image.dump, and look at the code at/around the address of 
>interest.  Let us know what you find.
>
>Regards,
>
>John
>
>
>___________________________
>microblaze-uclinux mailing list
>microblaze-uclinux@itee.uq.edu.au
>Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
****************************************

-----
  Trouble with windows? Re boot.... 
  Trouble with Linux? Be root....
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/