[U-Boot-Users] BDI2000 Debug

uboot at sundmangroup.com uboot at sundmangroup.com
Wed Feb 11 16:34:01 CET 2004


Hi again,
I noticed that in the config.mk file OPTFLAGS is set to -Os.
When I change it to -O0 i.e. no optimization and do,

make clean
make all

I get undefined references in libcramfs.a and libcommon.a.

Why is that? I want to try debugging without optimization.

Thanks // Matias



> Hello,
>>>Can you prove this with a log of the exact steps you performed?
>
> I am doing the following steps:
>
> 1. Rebuild U-boot 1.0.1 :: OK
> 2. Flash U-boot 1.0.1 to a Motorola PQ2FADS-VR board :: OK
> 3. Test U-boot 1.0.1 through the PQ2FADS-VR board serial interface :: OK
> ------------------------------------------------------------------------
> BDI2000 Debug attempt 1
> ------------------------------------------------------------------------
> 1. ppc_82xx-gdb u-boot
> 2. target remote bdi2000:2001
>
> _start ()
>      at start.S:163
> 163   li r21, BOOTFLAG_COLD /* ...
> (gdb) b cpu_init_f
> Breakpoint 1 at 0xfff03bac: file cpu_init.c, line 106
> (gdb) c
> Continuing.
>
> < Here the debug session hangs or continues forever.... >
>
>
> ------------------------------------------------------------------------
> BDI2000 Debug attempt 2
> ------------------------------------------------------------------------
> 1. ppc_82xx-gdb u-boot
> 2. target remote bdi2000:2001
>
> _start ()
>      at start.S:163
> 163   li r21, BOOTFLAG_COLD /* ...
> (gdb) s
> 164   nop
> (gdb) s
> 165   b boot_cold
> (gdb) s
> do_bootm_linux ( cmdtp=0xffffdfff, flag=1, argc=-257, argv=0x7ffffffff,
> addr=4294966271, len_ptr=0xfff2c094, verify=-1) at cmd_bootm.c:583
> 583   if ( argc >= 3 ) {
>
> < After a few more steps the debug session hangs >
>
> ------------------------------------------------------------------------
>
> Regards // Matias
>
>
>> In message <1538.81.227.175.195.1076440809.squirrel at webmail.unisite.se>
>> you wrote:
>>>
>>> I built u-boot 1.0.1 with the new MontaVista Professional Edition 3.1,
>>> Dev
>>> Rocket Environment. It went well and I succeeded to flash the code to a
>>> Motorola Evaluation board ( PQ2FADS-VR ). However, when I tried to
>>> debug
>>> the code I started in start.S but after the the first jump bl in
>>> start.S
>>> I
>>> ended up in a C file that is handling U-boot CLI commands...
>>
>> Can you prove this with a log of the exact steps you performed?
>>
>>> I think that the GDB in BDI2000 is a 5.x version and GDB in the
>>> MontaVista
>>> Professional Edition 3.1 is a 6.0 version ( Gcc 3.3.2 ).
>>
>> There is no "GDB in  BDI2000".  The  BDI2000  implements  GDB  remote
>> protocol   over   TCP/IP.   This  protocol  is  pretty  much  version
>> independent.
>>
>>> Do you think that this could be a possible issue or is it only me doing
>>> some configuration faults?
>>
>> I guess the later is the case.
>>
>> Best regards,
>>
>> Wolfgang Denk
>>
>> --
>> See us @ Embedded World, Nuremberg, Feb 17 - 19,  Hall 12.0 Booth 440
>> Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
>> What is mind?  No matter.  What is matter?  Never mind.
>>                                       -- Thomas Hewitt Key, 1799-1875
>>
>>
>> -------------------------------------------------------
>> The SF.Net email is sponsored by EclipseCon 2004
>> Premiere Conference on Open Tools Development and Integration
>> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
>> http://www.eclipsecon.org/osdn
>> _______________________________________________
>> U-Boot-Users mailing list
>> U-Boot-Users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>





More information about the U-Boot mailing list