Re: [uClinux-dev] Moving to new kernel distro

2009-05-14 Thread Michael Durrant
Roger,


The MCF5328, MCF53281, MCF5329 processors are all supported in kernels
greater than 2.6.21.  Freescale's LTIB Kernel release is not in sync
with the public kernel.  I understand that Freescale has both an OTG and
host USB driver written but their released patched for the OTG and the
patches for the host mode USB were not accepted by the Kernel USB
maintainers.  The uClinux-dist kernel release based on 2.6.21 we have
used at Arcturus Networks for our uC532x modules does support USB thumb
drives.  The patches we have tested from Freescale for USB in the newer
kernel versions extended support for mice, keyboards and other misc bits.


--
Michael Durrant
Arcturus Networks Inc.


Greg Ungerer wrote:
> Hi Roger,
> 
> Roger Thornblad wrote:
>> We have been working with a 2.0.x series kernel on a MCF5307 processor
>> for a very long time now.
>>  
>> We are looking at new platforms (MCF5329, 54xx versions among others)
>> to get onboard USB and LCD controller support.
>>  
>> I'm assuming we need to move to the 2.4 or 2.6 kernel to get support
>> for the new processors and I'm trying to get a feel for how much work
>> we will have in moving to a new kernel distribution.
> 
> Generally yes. And for the newest processors you will need to move
> to 2.6. I haven't pushed new processor support into 2.4 kernels for
> a few years now either. (So for 5329 support you will need to use
> a 2.6 series kernel for example).
> 
> 
>> I've downloaded a distro and tried to get it running on a 5407 eval
>> board but have had no luck. 
> 
> Have you tried the very latest dist with the very latest patch:
> 
> http://www.uclinux.org/pub/uClinux/dist/patches/uClinux-dist-20080808-20090423.patch.gz
> 
> 
> I recall a few console fixups recently that you may need
> in this patch.
> 
> 
>> I was trying to use the 2.6 kernel and it appears the 5407EVB is not
>> supported.
> 
> I take it you mean the 5407C3 eval board?
> As far as I know that is the only eval board the for the 5407
> that Motorola/Freescale have ever produced?
> 
> Its in the dist as the "Freescale/M5407C3" target.
> 
> 
>> I believe it's a config issue.  Has anybody tried this?
> 
> Unfortunately my 5407C3 board no longer works, so it is not
> a board that I can regularly test anymore.
> 
> But I would suggest trying out the patch above if you haven't
> already. Another thing to try would be hard configuring
> the RAM size in the kernel configs (incase the auto size
> detection is not working properly).
> 
> 
>> Is there anywhere I can find an example of a workng configuration for
>> the 5407EVB.
>>  
>> If not, we are looking at getting a 5329 Eval board in house to look
>> at.  
>> I've seen some comments about USB problems with 5329.  Does anyone
>> have any input on how well it supports LCD and USB operations and if
>> the USB issues are still present?
> 
> I coulnd't say, I don't have one of those either... :-)
> 
> Regards
> Greg
> 
> 
> 
> Greg Ungerer  --  Principal EngineerEMAIL: g...@snapgear.com
> SnapGear Group, McAfee  PHONE:   +61 7 3435 2888
> 825 Stanley St, FAX: +61 7 3891 3630
> Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
> ___
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 
> 
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] atomic_set_mask/atomic_clear_mask

2009-05-14 Thread Bernd Büttner

Hi Greg,

toolchain is m68k-uclinux-tools-20061214.sh
Below a piece of code.

#define R_FLAGS_INIT0x0004
atomic_clear_mask(R_FLAGS_INIT,&dev->flags);

This results in an error from assembler:

Error: operand mismatch -- statement 'andl #-5,(%a1)' ignored

Alexander told me to compare this with the assembler code that produces no 
error,
but I don't know how to generate this. He told me to have a look at the ELF 
file.
But there is no.


Regards
Bernd

Greg Ungerer schrieb:

Hi Bernd,

Bernd Büttner wrote:

my platform: m68knommu
ditribution 20070130 and 20080808

Using atomic_set_mask and atomic_clear_mask I ran into an assembler 
error.


What was the error?
What binutils version?

Regards
Greg




Doing the following patch helped me out:

Index: linux-2.6.x/include/asm-m68knommu/atomic.h
===
--- linux-2.6.x/include/asm-m68knommu/atomic.h(Revision 5)
+++ linux-2.6.x/include/asm-m68knommu/atomic.h(Arbeitskopie)
@@ -86,12 +86,12 @@

 static __inline__ void atomic_clear_mask(unsigned long mask, unsigned 
long *v)

 {
-__asm__ __volatile__("andl %1,%0" : "+m" (*v) : "id" (~(mask)));
+__asm__ __volatile__("andl %1,%0" : "+m" (*v) : "d" (~(mask)));
 }

 static __inline__ void atomic_set_mask(unsigned long mask, unsigned 
long *v)

 {
-__asm__ __volatile__("orl %1,%0" : "+m" (*v) : "id" (mask));
+__asm__ __volatile__("orl %1,%0" : "+m" (*v) : "d" (mask));
 }

 /* Atomic operations are already serializing */

I'm not familiar with __asm__ directives, so could please someone tell 
me if I'm correct.


Bernd

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev






___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev