Re: gdb on M54455EVB Linux

Kurt Mahan <[email protected]> Fri, 25 Jul 2008 17:04:14 -0600
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
The 2.6.25 patch out on www.bitshrine.org applies cleanly to the 2.6.23
M5445x kernel.

The name of the patch is: linux-2.6.25-mcfv4e-except-vector-fix.patch

Let me know.

--Kurt

Douglas, Jim (Jim) wrote:
> Thanks.  
> Out of curiosity: what was the problem?
> --jim
>
>   
>> -----Original Message-----
>> From: [email protected]
>>     
> [mailto:[email protected]]
>   
>> On Behalf Of Kurt Mahan
>> Sent: 10 July 2008 06:18
>> To: Douglas, Jim (Jim)
>> Subject: Re: [ColdFire] gdb on M54455EVB Linux
>>
>> Hi Jim,
>>
>> I've fixed this and it will be released in the upcoming M547x/M548x
>>     
> and
>   
>> M5445x BSPs.
>>
>> --Kurt
>>
>> Douglas, Jim (Jim) wrote:
>>     
>>> Thanks for your offer.  This is what I have done:
>>>
>>> I am using the Freescale M54455EVB eval system, and the
>>> m54455_20071214-ltib-final.iso BSP.
>>>
>>> I am running from an NFS image.  I have added gdb to the image
>>>       
> (native
>   
>>> gdb and cross gdb and gdbserver).
>>>
>>> Then I try to run gdb.  For example,
>>>
>>> / # gdb /bin/sleep
>>> GNU gdb 6.3.50.20051117
>>> ....
>>> (gdb) run 1
>>> Starting program: /bin/sleep 1
>>>
>>> Program received signal SIGILL, Illegal instruction.
>>> 0x800980b2 in ?? ()
>>> (gdb) x/i $pc
>>> 0x800140b2:		orib #94, %d0
>>> (gdb) x/4i $pc-4
>>> 0x800140ae: 	bras 0x80014060
>>> 0x800140b0:		linkw %fp, #0
>>> 0x80040b4:		unlk %fp
>>> 0x800140b6:		rts
>>>
>>> ... In other words, it almost looks like the program counter has got
>>>       
> out
>   
>>> of line by 2 bytes!
>>> ... I get the same problem with my own executables, (compiled with
>>>       
> and
>   
>>> without debug symbols).
>>>
>>> --jim
>>>
>>>
>>>       
>>>> -----Original Message-----
>>>> From: [email protected]
>>>>
>>>>         
>>> [mailto:[email protected]]
>>>
>>>       
>>>> On Behalf Of Kurt Mahan
>>>> Sent: 26 June 2008 17:26
>>>> To: Douglas, Jim (Jim)
>>>> Subject: Re: [ColdFire] gdb on M54455EVB Linux
>>>>
>>>> Hi Jim,
>>>>
>>>> Could you describe the setup you are using? I'll look into this but
>>>>
>>>>         
>>> I'd
>>>
>>>       
>>>> like to make sure I'm following the same steps as you.
>>>>
>>>> --Kurt
>>>>
>>>> Douglas, Jim (Jim) wrote:
>>>>
>>>>         
>>>>> Has anyone had any success running gdb using the Freescale Linux
>>>>>           
> BSP
>   
>>>>> for the M54455EVB eval board?
>>>>>
>>>>> I just get 'illegal instruction' when I try to run anything inside
>>>>>
>>>>>           
>>> the
>>>
>>>       
>>>>> debugger.
>>>>>
>>>>> --jim douglas
>>>>>
>>>>> [email protected] Send a post to the list.
>>>>> [email protected] Join the list.
>>>>>
>>>>>           
>>> [email protected]
>>>
>>>       
>>>>> Join the list in digest mode. [email protected] Leave
>>>>>           
> the
>   
>>>> list.
>>>>
>>>> ---
>>>> [email protected]              Send a post to the list.
>>>> [email protected]        Join the list.
>>>> [email protected]    Join the list in digest mode.
>>>> [email protected]     Leave the list.
>>>>
>>>>         
>>> ---
>>> [email protected]              Send a post to the list.
>>> [email protected]        Join the list.
>>> [email protected]    Join the list in digest mode.
>>> [email protected]     Leave the list.
>>>
>>>
>>>       
>> ---
>> [email protected]              Send a post to the list.
>> [email protected]        Join the list.
>> [email protected]    Join the list in digest mode.
>> [email protected]     Leave the list.
>>     
>
> ---
> [email protected]              Send a post to the list.
> [email protected]        Join the list.
> [email protected]    Join the list in digest mode.
> [email protected]     Leave the list.
>
>   

---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.