[uClinux-dev] [PATCH] elf2flt: always include elf/bfin.h

2009-05-15 Thread Mike Frysinger
The header logic for pulling in ELF defines mixes common ELF headers and
target specific headers.  In the Blackfin case, we always want to pull in
the bfin.h since most of the time, the common ELF headers do not have our
relocation defines.  This fixes building for mingw targets.

Signed-off-by: Mike Frysinger 
---
 elf2flt.c |9 +++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/elf2flt.c b/elf2flt.c
index 9b1ea37..a120cc9 100644
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -62,12 +62,17 @@
 #include "cygwin-elf.h"/* Cygwin uses a local copy */
 #elif defined(TARGET_microblaze)
 #include /* TARGET_* ELF support for the BFD library */
-#elif defined(TARGET_bfin)
-#include "elf/bfin.h"
 #else
 #include   /* TARGET_* ELF support for the BFD library*/
 #endif
 
+/* Always include Blackfin-specific defines in addition to common ELF stuff
+ * above as the common elf headers often do not have our relocs.
+ */
+#ifdef TARGET_bfin
+#include "elf/bfin.h"
+#endif
+
 #if defined(__MINGW32__)
 #include 
 #endif
-- 
1.6.3

___
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] [PATCH] elf2flt: always include elf/bfin.h

2009-05-15 Thread Sujit Karataparambil
Do we use autoconf tools in uClinux. Though there are
distributions like in the case of linux. But supported by mainly
in NetBSD Project or that BSD Project which support ELF.
Has this been achieved.

On Fri, May 15, 2009 at 3:26 PM, Mike Frysinger  wrote:
> The header logic for pulling in ELF defines mixes common ELF headers and
> target specific headers.  In the Blackfin case, we always want to pull in
> the bfin.h since most of the time, the common ELF headers do not have our
> relocation defines.  This fixes building for mingw targets.
>
> Signed-off-by: Mike Frysinger 
> ---
>  elf2flt.c |    9 +++--
>  1 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/elf2flt.c b/elf2flt.c
> index 9b1ea37..a120cc9 100644
> --- a/elf2flt.c
> +++ b/elf2flt.c
> @@ -62,12 +62,17 @@
>  #include "cygwin-elf.h"        /* Cygwin uses a local copy */
>  #elif defined(TARGET_microblaze)
>  #include     /* TARGET_* ELF support for the BFD library */
> -#elif defined(TARGET_bfin)
> -#include "elf/bfin.h"
>  #else
>  #include       /* TARGET_* ELF support for the BFD library            
> */
>  #endif
>
> +/* Always include Blackfin-specific defines in addition to common ELF stuff
> + * above as the common elf headers often do not have our relocs.
> + */
> +#ifdef TARGET_bfin
> +#include "elf/bfin.h"
> +#endif
> +
>  #if defined(__MINGW32__)
>  #include 
>  #endif
> --
> 1.6.3
>
> ___
> 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
>



-- 
-- Sujit K M
___
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] [PATCH] elf2flt: always include elf/bfin.h

2009-05-15 Thread Mike Frysinger
On Friday 15 May 2009 06:19:00 Sujit Karataparambil wrote:
> Do we use autoconf tools in uClinux. Though there are
> distributions like in the case of linux. But supported by mainly
> in NetBSD Project or that BSD Project which support ELF.
> Has this been achieved.

i dont really understand what you're asking, nor what it has to do with my 
proposed changes.
-mike


signature.asc
Description: This is a digitally signed message part.
___
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] Moving to new kernel distro

2009-05-15 Thread Roger Thornblad
Thanks for the input Greg.

I'm just in the middle of bringing up a new dev server so I can try all of this 
on.  Should be going in next few days.

I'll try all your suggestions and update when I know something more.

Regards,

-Roger

-Original Message-
From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] 
On Behalf Of Greg Ungerer
Sent: Monday, May 11, 2009 12:23 AM
To: uClinux development list
Subject: Re: [uClinux-dev] Moving to new kernel distro

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] Moving to new kernel distro

2009-05-15 Thread Roger Thornblad
Hi Michael,

Thanks for the reponse.  This all sounds very promising.  I'm going ahead with 
the eval board acquisition and will update when I know more.

Regards,

-Roger

-Original Message-
From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] 
On Behalf Of Michael Durrant
Sent: Thursday, May 14, 2009 2:44 PM
To: uClinux development list
Subject: Re: [uClinux-dev] Moving to new kernel distro

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
___
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] uClinux mailserver, webserver, etc down for a few hours tomorrow.

2009-05-15 Thread Michael Durrant
All,

The uClinux servers will all be unable for several hours from 1AM EDT
until 10AM EDT as 13.8KV feed to the transformer servicing our building
will be disconnected for severals hours for an emergency repair.

Sorry for the sort notice .. the emergency notice just arrived.  We had
wicked wind gusts a few weeks ago that mechanically damaged two of the
(3 phase) feed lines.

Michael Durrant
mdurr...@uclinux.org


___
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] [PATCH] elf2flt: always include elf/bfin.h

2009-05-15 Thread Sujit Karataparambil
Sorry got confused.

On Fri, May 15, 2009 at 11:03 PM, Mike Frysinger  wrote:
> On Friday 15 May 2009 06:19:00 Sujit Karataparambil wrote:
>> Do we use autoconf tools in uClinux. Though there are
>> distributions like in the case of linux. But supported by mainly
>> in NetBSD Project or that BSD Project which support ELF.
>> Has this been achieved.
>
> i dont really understand what you're asking, nor what it has to do with my
> proposed changes.
> -mike
>



-- 
-- Sujit K M
___
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