[uClinux-dev] [PATCH] elf2flt: rename Blackfin relocs

2009-06-04 Thread Mike Frysinger
We renamed all the Blackfin relocs in the toolchain to match other ports
(all caps and a R_BFIN_ prefix), so update elf2flt accordingly.

Signed-off-by: Mike Frysinger vap...@gentoo.org
---
 elf2flt.c |   22 +++---
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/elf2flt.c b/elf2flt.c
index 8bcce1f..0ae3ad1 100644
--- a/elf2flt.c
+++ b/elf2flt.c
@@ -69,7 +69,7 @@
 /* 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
+#if defined(TARGET_bfin)  !defined(R_BFIN_RIMM16)
 #include elf/bfin.h
 #endif
 
@@ -738,15 +738,15 @@ dump_symbols(symbols, number_of_symbols);
default:
goto bad_resolved_reloc;
 #elif defined TARGET_bfin
-   case R_rimm16:
-   case R_luimm16:
-   case R_huimm16:
+   case R_BFIN_RIMM16:
+   case R_BFIN_LUIMM16:
+   case R_BFIN_HUIMM16:
sym_vma = bfd_section_vma(abs_bfd, 
sym_section);
sym_addr += sym_vma + q-addend;
 
if (weak_und_symbol(sym_section-name, 
(*(q-sym_ptr_ptr
continue;
-   if (q-howto-type == R_rimm16  
(0x  sym_addr)) {
+   if (q-howto-type == R_BFIN_RIMM16  
(0x  sym_addr)) {
fprintf (stderr, Relocation overflow 
for rN = %s\n,sym_name);
bad_relocs++;
}
@@ -765,7 +765,7 @@ dump_symbols(symbols, number_of_symbols);
if (bfin_set_reloc (flat_relocs + 
flat_reloc_count,
sym_section-name, 
sym_name,
(*(q-sym_ptr_ptr)),
-   q-howto-type == 
R_huimm16 ? 1 : 0,
+   q-howto-type == 
R_BFIN_HUIMM16 ? 1 : 0,
section_vma + 
q-address))
bad_relocs++;
if (a-flags  SEC_CODE)
@@ -773,7 +773,7 @@ dump_symbols(symbols, number_of_symbols);
flat_reloc_count++;
break;
 
-   case R_byte4_data:
+   case R_BFIN_BYTE4_DATA:
sym_vma = bfd_section_vma(abs_bfd, 
sym_section);
sym_addr += sym_vma + q-addend;
 
@@ -1507,13 +1507,13 @@ DIS29_RELOCATION:
break;
}
 #elif defined TARGET_bfin
-   if ((*p)-howto-type == R_rimm16
-   || (*p)-howto-type == R_huimm16
-   || (*p)-howto-type == R_luimm16)
+   if ((*p)-howto-type == R_BFIN_RIMM16
+   || (*p)-howto-type == R_BFIN_HUIMM16
+   || (*p)-howto-type == R_BFIN_LUIMM16)
{
/* for l and h we set the lower 16 bits 
which is only when it will be used */
bfd_putl16 (sym_addr, sectionp + 
q-address);
-   } else if ((*p)-howto-type == R_byte4_data) {
+   } else if ((*p)-howto-type == 
R_BFIN_BYTE4_DATA) {
bfd_putl32 (sym_addr, sectionp + 
q-address);
}
 #else /* ! TARGET_arm  ! TARGET_e1  ! TARGET_bfin */
-- 
1.6.3.1

___
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] Zeroconf with uClinux?

2009-06-04 Thread Krause Mathias (ST-CO/ENG4.3)
Hi all,

I am named to implement something zeroconf on our embedded linux system 
(uClinux on coldfire, 32bit). Currently I've no idea, where to start. I think, 
what I need is mDNS and IP local.
Is there anybody out there who made a bonjour-compatible device by running 
uClinux? Any hints where to start?

I already tried to cross-compile the apple bonjour, but as I am a bit 
inexpirienced in uClinux I ran into a lot of problems.
I also tried to cross-compile avahi (with most of the features disabled) but I 
also can't get it to compile.

Now, I read in a mailing list, that libavahi is included into uClinux-dist. 
Unfortunately I cannot find anything.
Any hints, starting points or help would be very appreciated.

Thanks,
Mathias

___
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] Zeroconf with uClinux?

2009-06-04 Thread Steve Bennett
We run the apple mdnsresponder on a few devices to advertise a web  
interface.


# ps | grep mDNS
  276 root   612 SmDNSResponderPosix -n myhost -t _http._tcp - 
p 80


Nothing special was required to get it going.

Cheers,
Steve

On 04/06/2009, at 8:30 PM, Krause Mathias (ST-CO/ENG4.3) wrote:


Hi all,

I am named to implement something zeroconf on our embedded linux  
system (uClinux on coldfire, 32bit). Currently I've no idea, where  
to start. I think, what I need is mDNS and IP local.
Is there anybody out there who made a bonjour-compatible device by  
running uClinux? Any hints where to start?


I already tried to cross-compile the apple bonjour, but as I am a  
bit inexpirienced in uClinux I ran into a lot of problems.
I also tried to cross-compile avahi (with most of the features  
disabled) but I also can't get it to compile.


Now, I read in a mailing list, that libavahi is included into  
uClinux-dist. Unfortunately I cannot find anything.

Any hints, starting points or help would be very appreciated.

Thanks,
Mathias

___
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



--
WorkWare Systems Pty Ltd
W: www.workware.net.au  P: 0434 921 300
E: ste...@workware.net.au   F: 07 3102 9221



___
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] Zeroconf with uClinux?

2009-06-04 Thread Krause Mathias (ST-CO/ENG4.3)
Hi,

Thanks for that answer. In the meantime I got just exatly the same 
mDNSResponder running.
Now I want to use local IP so that 2 devices can reach each other just by 
connecting them to a switch and without setting up an ip adress before that. I 
think I need zeroconf therefore?

Regards,
Mathias

-Original Message-
From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] 
On Behalf Of Steve Bennett
Sent: Thursday, June 04, 2009 4:23 PM
To: uClinux development list
Subject: Re: [uClinux-dev] Zeroconf with uClinux?

We run the apple mdnsresponder on a few devices to advertise a web
interface.

# ps | grep mDNS
   276 root   612 SmDNSResponderPosix -n myhost -t _http._tcp -
p 80

Nothing special was required to get it going.

Cheers,
Steve

On 04/06/2009, at 8:30 PM, Krause Mathias (ST-CO/ENG4.3) wrote:

 Hi all,

 I am named to implement something zeroconf on our embedded linux
 system (uClinux on coldfire, 32bit). Currently I've no idea, where
 to start. I think, what I need is mDNS and IP local.
 Is there anybody out there who made a bonjour-compatible device by
 running uClinux? Any hints where to start?

 I already tried to cross-compile the apple bonjour, but as I am a
 bit inexpirienced in uClinux I ran into a lot of problems.
 I also tried to cross-compile avahi (with most of the features
 disabled) but I also can't get it to compile.

 Now, I read in a mailing list, that libavahi is included into
 uClinux-dist. Unfortunately I cannot find anything.
 Any hints, starting points or help would be very appreciated.

 Thanks,
 Mathias

 ___
 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


--
WorkWare Systems Pty Ltd
W: www.workware.net.au  P: 0434 921 300
E: ste...@workware.net.au   F: 07 3102 9221



___
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] for information : tutorial about uCllinux installation (MCF5329 Fire Engine module - Ubuntu 9.04)

2009-06-04 Thread Valentin Rouquette
Hello,

I made a tutorial (in French ... :-/ ) about the uCllinux installation
(with LTIB). It is an installation on the Freescale MCF5329 Fire
Engine module, and the development computer is under Ubuntu 9.04. It's
a summary of my experience.
I will translate this tutorial soon (I hope it will be done before this summer).

http://doc.ubuntu-fr.org/tutoriel/freescale_coldfire

Best Regards.

Val
___
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] building gcc 3.4.4

2009-06-04 Thread Jeff Bacon
Ok, so I've figured out that it has to point to my specific headers to
compile, and I've made it through almost all of the steps EXCEPT for
one of the last ones, step 8(repeated here):


8. gcc-3.4.4 (c++, etc)

   tar xvzf gcc-3.4.4.tar.gz
   cd gcc-3.4.4

   cp $(ATTACHED t-linux file) gcc/config/arm/
   vi gcc/config/arm/t-linux
  - remove all -Dinhibit_libc occruances
   vi gcc/config/arm/linux-elf.h
 -- remove line that defines LIBGCC_SPEC
   perl -pi -e 's/int namelen/unsigned int namelen/'
libjava/java/net/natInetAddressPosix.cc

   mkdir arm-linux
   cd arm-linux
   ../configure --target=arm-linux --disable-shared \
--prefix=/usr/local --with-headers=linux-2.4.x/include \
--with-gnu-as --with-gnu-ld --enable-multilib
   make
   make install


The compilation makes it almost all the way through until it hits the
section where it's working on libstdc++-v3, where it dies with this
error:

snip
checking for float.h... (cached) yes
checking for stdint.h... (cached) yes
checking for main in -lm... configure: error: Link tests are not
allowed after GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1
[r...@localhost arm-linux]#


I'm so close I can taste it, can anyone (Greg??) help me out here? I'm
following Greg's instructions EXACTLY, so if anyone else has then they
would have had to have seen this error I would think. I'm building it
on the recommended Fedora Core 3 machine by the way...


-JB



On Wed, Jun 3, 2009 at 3:14 PM, Jeff Bacon jbac.uc@gmail.com wrote:
 Well, if I look at the build directions for the gcc 4.2.1 toolchain on
 the snapgear website they essentially have the same steps but are
 using  --with-headers=linux-2.6.x/include instead or 2.4.x. I'm just
 wondering if I need to make the same modification for the 3.4.4 build
 steps, or if that was just something specific to gcc 4.2.1).

 -JB

___
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: rename Blackfin relocs

2009-06-04 Thread David McCullough

Jivin Mike Frysinger lays it down ...
 We renamed all the Blackfin relocs in the toolchain to match other ports
 (all caps and a R_BFIN_ prefix), so update elf2flt accordingly.
 
 Signed-off-by: Mike Frysinger vap...@gentoo.org

Applied,

Thanks,
Davidm

  elf2flt.c |   22 +++---
  1 files changed, 11 insertions(+), 11 deletions(-)
 
 diff --git a/elf2flt.c b/elf2flt.c
 index 8bcce1f..0ae3ad1 100644
 --- a/elf2flt.c
 +++ b/elf2flt.c
 @@ -69,7 +69,7 @@
  /* 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
 +#if defined(TARGET_bfin)  !defined(R_BFIN_RIMM16)
  #include elf/bfin.h
  #endif
  
 @@ -738,15 +738,15 @@ dump_symbols(symbols, number_of_symbols);
   default:
   goto bad_resolved_reloc;
  #elif defined TARGET_bfin
 - case R_rimm16:
 - case R_luimm16:
 - case R_huimm16:
 + case R_BFIN_RIMM16:
 + case R_BFIN_LUIMM16:
 + case R_BFIN_HUIMM16:
   sym_vma = bfd_section_vma(abs_bfd, 
 sym_section);
   sym_addr += sym_vma + q-addend;
  
   if (weak_und_symbol(sym_section-name, 
 (*(q-sym_ptr_ptr
   continue;
 - if (q-howto-type == R_rimm16  
 (0x  sym_addr)) {
 + if (q-howto-type == R_BFIN_RIMM16  
 (0x  sym_addr)) {
   fprintf (stderr, Relocation overflow 
 for rN = %s\n,sym_name);
   bad_relocs++;
   }
 @@ -765,7 +765,7 @@ dump_symbols(symbols, number_of_symbols);
   if (bfin_set_reloc (flat_relocs + 
 flat_reloc_count,
   sym_section-name, 
 sym_name,
   (*(q-sym_ptr_ptr)),
 - q-howto-type == 
 R_huimm16 ? 1 : 0,
 + q-howto-type == 
 R_BFIN_HUIMM16 ? 1 : 0,
   section_vma + 
 q-address))
   bad_relocs++;
   if (a-flags  SEC_CODE)
 @@ -773,7 +773,7 @@ dump_symbols(symbols, number_of_symbols);
   flat_reloc_count++;
   break;
  
 - case R_byte4_data:
 + case R_BFIN_BYTE4_DATA:
   sym_vma = bfd_section_vma(abs_bfd, 
 sym_section);
   sym_addr += sym_vma + q-addend;
  
 @@ -1507,13 +1507,13 @@ DIS29_RELOCATION:
   break;
   }
  #elif defined TARGET_bfin
 - if ((*p)-howto-type == R_rimm16
 - || (*p)-howto-type == R_huimm16
 - || (*p)-howto-type == R_luimm16)
 + if ((*p)-howto-type == R_BFIN_RIMM16
 + || (*p)-howto-type == R_BFIN_HUIMM16
 + || (*p)-howto-type == R_BFIN_LUIMM16)
   {
   /* for l and h we set the lower 16 bits 
 which is only when it will be used */
   bfd_putl16 (sym_addr, sectionp + 
 q-address);
 - } else if ((*p)-howto-type == R_byte4_data) {
 + } else if ((*p)-howto-type == 
 R_BFIN_BYTE4_DATA) {
   bfd_putl32 (sym_addr, sectionp + 
 q-address);
   }
  #else /* ! TARGET_arm  ! TARGET_e1  ! TARGET_bfin */
 -- 
 1.6.3.1
 
 ___
 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
 

-- 
David McCullough,  david_mccullo...@securecomputing.com,  Ph:+61 734352815
McAfee - SnapGear  http://www.snapgear.comhttp://www.uCdot.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