Re: [uClinux-dev] Determine toolchain version

2007-09-05 Thread Daniel Alomar

m68k-elf-gcc -v

En/na Chris Doré ha escrit:

I have a few uClinux development machines around and I'd like to know what
release of the m68k toolchain is installed on each of them.  Is there an
easy way to do this?


Thanks, Chris

___
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



--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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


Re: [uClinux-dev] [PATCH] sl811 reset delay

2007-07-25 Thread Daniel Alomar

Hi Daniele,

I suppose this fix is also applicable to the sl811.c, isn't it? I'll 
generate a patch to the sl811.c (and also add support for a 5282 board)


Regards,

Daniel

En/na Daniele Ziglioli ha escrit:

Daniele Ziglioli ha scritto:

a long awaited (for us) usb patch ...

 - 20 - 50 ms reset delay (some deviced was not correctly detected 
otherwise)

 From the Cypress manual (just the last version!):
 When a device is detected, the first thing that to do is to send 
it a USB Reset to force it into
its default address of zero. The USB 2.0 specification states that 
for a root hub a device

must be reset for a minimum of 50 mS.
 - driver version info added

PS:
the solution should be correct for sl811.c also driver, but I've  no 
way to test it.



oops, the patch is here .




___
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



--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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


Re: [uClinux-dev] mount nfs

2007-07-24 Thread Daniel Alomar

hi,

First of all, these are Linux questions, and maybe this is not the best 
place to ask about GNU/Linux configuration. Google is your friend. :-)


You can access to your root account through sudo -s. Also, you can 
enable the root account under *ubuntu with sudo passwd root


http://www.neowin.net/forum/index.php?showtopic=524651

Which Kubuntu version did you have? Remember to show the releases of the 
software you're using if you're asking for help.


Try to use this flags on the /etc/exports
/home/tecnico   *(rw,sync)

Regards,

Daniel Alomar


En/na Stefano Marini ha escrit:
Good morning, I am working on MCF5272C3 and I would load my user-program 
in the board using minicom.
I use Kubuntu and the only one way to change the user to root is 
utilizing command sudo. I have my user-program into /home/tecnico, and 
also I have the link at this directory into /mount. Also I have the file 
exports in /etc  that is /home/tecnico/ *(rw,no_subtree_check,sync)

But I have a problem when I try to mount:
mount -t nfs -o nolock 192.168.11.55:/home/tecnico /mnt/nfs
Answer of problem:
mount: RPC: Timed out
mount: nfsmount failed: Bad file descriptor
NFS: mount program didn't pass remote address!
mount: Mounting 192.168.11.55:/home/tecnico on /mnt/nfs failed: Invalid 
argument

pid 23: failed 256

Do I use command sudo? But ther isn't this command in uCLinux.
Any idea for my problem? Do I install some packets for nfs (actually I 
have nfs.common and nfs-kernel-server)?


please help me, thank you so much
--
Stefano Marini
Send to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] or [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

Tel: (+39)3335221956
Skype contact: teto8484




___
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



--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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] kernel size problems?

2007-07-09 Thread Daniel Alomar

Hi,

I have some problems when uClinux is booting. The /proc folder were
not mounted:
mount: Mounting proc on /proc failed: No such file or directory

It seems is a size problem, because this is happen when I add the usb
modules to the kernel.

I read it could be a size problem, as Davidm wrote some time ago:

http://mailman.uclinux.org/pipermail/uclinux-dev/2005-April/031884.html

My kernel image is 1.5 Mb (I have samba inside...) and I don't know
where is specified the kernel size limit.

If I remove Samba, the size decrease until 0.9 Mb and then is no problem 
 to mount /proc ...


Any clue?

Regards,

--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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


Re: [uClinux-dev] make dep on 20061214 toolchain fails, succeeds with 3.4.0 toolchain

2007-07-09 Thread Daniel Alomar

Hi,

Have you tried to compile removing the -I../include flag?

Regards,

Daniel

En/na Jate Sujjavanich ha escrit:
I've just installed the m68k-uclinux-tools-20061214.sh. When attempting 
to make dep uClinux-dist with linux-2.4.31-uc0, I get the following error.


make[3]: Entering directory 
`/mnt/reiser/jate/experimental/uClinux-dist/linux-2.4.x/arch/m68knommu/kernel' 

/mnt/reiser/jate/experimental/uClinux-dist/linux-2.4.x/scripts/mkdep 
-fno-builtin -nostdinc -D__KERNEL__ 
-I/mnt/reiser/jate/experimental/uClinux-dist/linux-2.4.x/include  -Wall 
-Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing 
-fno-common -I../include -pipe -DNO_MM -DNO_FPU -m5307 -Wa,-S -Wa,-m5307 
-D__ELF__ -DMAGIC_ROM_PTR -DUTS_SYSNAME=\uClinux\ -D__linux__ -O1  
-nostdinc -iwithprefix include -- bios32.c console.c m68k_defs.c 
m68k_ksyms.c process.c ptrace.c semaphore.c setup.c sys_m68k.c time.c 
traps.c  .depend


realpath(../include) failed, No such file or directory
make[3]: *** [fastdep] Error 1
make[3]: Leaving directory 
`/mnt/reiser/jate/experimental/uClinux-dist/linux-2.4.x/arch/m68knommu/kernel' 




However, when I revert to my old toolchain (3.4.0), make dep works. I 
believe it was Bernardo Innocenti's gcc 3 toolchain. Any hints?



- Jate S.




___
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



--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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] UTS_SYSNAME another time

2007-07-06 Thread Daniel Alomar

Hi folks,

I am adding usb support to our 5282 based board (the sl811 from 
cypress). And when I am compiling the hcd.c file, the compiler complains 
about the UTS_SYSNAME definition.


Some time ago it was discussed on the list the problem lies on the lack 
of the backslash on the compiler:


http://mailman.uclinux.org/pipermail/uclinux-dev/2005-May/032711.html

and

http://mailman.uclinux.org/pipermail/uclinux-dev/2005-April/032221.html

UTS_SYSNAME is defined inside the linux/uts.h

#ifndef UTS_SYSNAME
#ifdef CONFIG_UCLINUX
#define UTS_SYSNAME uClinux
#else
#define UTS_SYSNAME Linux
#endif
#endif

but at compilation time appears:
m68k-elf-gcc -fno-builtin -nostdinc -D__KERNEL__
-I/home2/darryl/MCF5282/uClinux-dist/linux-2.4.x/include  -Wall
-Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing
-fno-common -I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/./include -pipe
-DNO_MM -DNO_FPU -m5307 -Wa,-S -Wa,-m5307 -D__ELF__ -DMAGIC_ROM_PTR
-DUTS_SYSNAME=uClinux -D__linux__ -O1   -nostdinc -iwithprefix include
-DKBUILD_BASENAME=hcd  -c -o hcd.o hcd.c

and the error looks like this:

hcd.c: In function `rh_string':
hcd.c:312: `uClinux' undeclared (first use in this function)
hcd.c:312: (Each undeclared identifier is reported only once
hcd.c:312: for each function it appears in.)

The only way to get a successful compilation is add the following line 
inside the hcd.c


#define UTS_SYSNAME uClinux

The following files seems ok:

linux-2.4.x/arch/m68knommu/ (UTS_SYSNAME = -DUTS_SYSNAME=\uClinux\)

linux-2.4.x/arch/m68knommu/platform/5282/Rules.make 
-DUTS_SYSNAME=\uClinux\


linux-2.4.x/arch/m68knommu/platform/5307/Rules.make 
-DUTS_SYSNAME=\uClinux\



Regards,

--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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


Re: [uClinux-dev] Why arm-uclinux-gcc ask for the crt0.o?

2007-07-04 Thread Daniel Alomar

Hi,

you need to compile the uClinux-dist at last one time, then the crt0.o 
vill be generate. Maybe you made a make clean on your uClinux root.


Regards,

En/na [EMAIL PROTECTED] ha escrit:

Hi guys

Arm-uclinux-gcc -Wl,-elf2flt -g -o hello.o hello.c
-
/root/bin/arm-uclinux-tool/lib/gcc/arm-uclinux/3.4.0/../../../../arm-uclinux/bin/ld.real: 
crt0.o: No such file: No such file or directory


collect2: ld returned 1 exit status

While arm-elf-gcc has no this error:

arm-elf-gcc -Wl,-elf2flt -g -o hello2.o hello.c

And there is  a /usr/local/arm-elf/lib/crt0.o but no this file in 
/root/bin/arm-uclinux-tool/lib/gcc/arm-uclinux/3.4.0


Only

crtbegin.o   crtendS.o  fpic   libgcc.a  msoft-float
crtbeginS.o  crti.o includelibgcov.a specs
crtend.o crtn.o install-tools  msingle-pic-base


Thanks
Rui




___
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



--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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] Makefiles

2007-06-26 Thread Daniel Alomar

Hi,

I'm using the new toolchain gcc-4.1.1 with the last uClinux 
distribution. I compile it without problem.


One of my application fails when I try to compile (see the rror at the 
end of the msg) and another app. (a module) seems that didn't work fine 
at all.


I wonder if someone could send me the flags that uses to compile 
applications and modules. I'm not sure at all if mine flags are correct 
at all. The app. and module works ok with toolchain 2.95.3 but with the 
4.1.1 the didn't work fine


I look at the Makefiles from the user folder, but they flags are 
hiding by variables.


Someone have a guide for all the most commons flags to use?

Regards,

Daniel

P.D. The gcc-4.1.1 compile error:

mfc3loader.c: In function ?void PantallaDibuja()?:
mfc3loader.c:388: error: could not find a spill register
(insn 423 422 424 35 (set (subreg:SI (reg/v:QI 55 [ blkf ]) 0)
(plus:SI (plus:SI (reg:SI 3 %d3 [238])
(subreg:SI (reg/v:QI 4 %d4 [orig:57 len ] [57]) 0))
(const_int -1 [0x]))) 366 {*m68k.md:6330} (nil)
(expr_list:REG_DEAD (reg/v:QI 4 %d4 [orig:57 len ] [57])
(nil)))
mfc3loader.c:388: internal compiler error: in failed_reload, at 
reload1.c:5103

Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
make: *** [mfc3loader.o] Error




___
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] New board (mfc3000)

2007-06-26 Thread Daniel Alomar

En/na Greg Ungerer ha escrit:


Applied. Some of the patches though didn't put there resulting
files in the correct places. For example ram.ld ended up at the
top of the linux-2.4.x directory, instead of down under
linux-2.4.x/arch/m68knommu/platform/5282/SERRA.



Yes, there was another little bug I notice now Here you have fixed 
if you didn't fix it.


The patch #8 is partial in binary mode because I added some images to 
the webserver


I have only one question, on the patch #10 I have to modified the 
telnetd Makefile form the user application to be able to start/stop 
telnetd service. Now the inetd.conf is on flash, and we can modify. Is 
this the correct way to start/stop telnetd?


I would do this in your vendor specific Makefile.


I'll try it


Regards
Greg



Regards,

--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.com
diff -Naur 
/home/dani/uClinux/OuClinux-dist/linux-2.4.x/arch/m68knommu/platform/5282/SERRA/crt0_ram.S
 SERRA/crt0_ram.S
--- linux-2.4.x/arch/m68knommu/platform/5282/SERRA/crt0_ram.S   1970-01-01 
01:00:00.0 +0100
+++ linux-2.4.x/arch/m68knommu/platform/5282/SERRA/crt0_ram.S   2007-06-13 
13:23:32.0 +0200
@@ -0,0 +1,224 @@
+/*/
+
+/*
+ * crt0_ram.S -- startup code for MCF5282 ColdFire based MOTOROLA boards.
+ *
+ * (C) Copyright 1999-2003, Greg Ungerer ([EMAIL PROTECTED]).
+ */
+
+/*/
+
+#include linux/autoconf.h
+#include asm/coldfire.h
+#include asm/mcfsim.h
+
+/*/
+
+/*
+ * Motorola M5282C3 ColdFire eval board, chip select and memory setup.
+ */
+
+#defineMEM_BASE0x  /* Memory base at address 0 */
+#defineVBR_BASEMEM_BASE/* Vector address */
+
+#if defined(CONFIG_RAM4MB)
+#defineMEM_SIZE0x0040  /* Memory size 4Mb */
+#elif defined(CONFIG_RAM16MB)
+#defineMEM_SIZE0x0100  /* Memory size 16Mb */
+#else
+#defineMEM_SIZE0x0080  /* Memory size 8Mb */
+#endif
+
+/*/
+
+.global_start
+.global _rambase
+.global _ramvec
+.global_ramstart
+.global_ramend
+
+/*/
+
+.data
+
+/*
+ * Set up the usable of RAM stuff. Size of RAM is determined then
+ * an initial stack set up at the end.
+ */
+_rambase:
+.long  0
+_ramvec:
+.long  0
+_ramstart:
+.long  0
+_ramend:
+.long  0
+
+#if CONFIG_BLK_DEV_INITRD
+/*
+ * Setup initial RAM disk limits of using INITRD.
+ */
+.externinitrd_start
+.extern initrd_end
+#endif
+
+/*/
+
+.text
+
+/*
+ * This is the codes first entry point. This is where it all
+ * begins...
+ */
+
+_start:
+   nop /* Filler */
+   move.w  #0x2700, %sr/* No interrupts */
+
+   /*
+* Setup VBR here, otherwise buserror remap will not work.
+* if dBug was active before (on my SBC with dBug 1.1 of Dec 16 1996)
+*
+* [EMAIL PROTECTED] 19990306
+*
+* Note: this is because dBUG points VBR to ROM, making vectors read
+* only, so the bus trap can't be changed. (RS)
+*/
+   move.l  #VBR_BASE, %a7  /* Note VBR can't be read */
+   movec   %a7, %VBR
+   move.l  %a7, _ramvec/* Set up vector addr */
+   move.l  %a7, _rambase   /* Set up base RAM addr */
+
+   /*
+*  Set memory size.
+*/
+   move.l  #MEM_SIZE, %a0
+
+   move.l  %a0, %d0/* Mem end addr is in a0 */
+   move.l  %d0, %sp/* Set up initial stack ptr */
+   move.l  %d0, _ramend/* Set end ram addr */
+
+#if 0
+   /*
+*  Enable CPU internal cache.
+*/
+   move.l  #0x0100, %d0
+   movec   %d0, %CACR  /* Invalidate cache */
+   nop
+
+   move.l  #0xc000, %d0/* Set SDRAM cached only */
+   movec   %d0, %ACR0
+   move.l  #0x, %d0/* No other regions cached */
+   movec   %d0, %ACR1
+
+   move.l  #0x80400100, %d0/* Instruction cache bits */
+   movec   %d0, %CACR  /* Enable cache */
+   nop
+#endif
+
+   /*
+*  Move ROM filesystem above bss :-)
+*/
+   lea.l   _sbss, %a0  /* Get start of bss */
+   lea.l   _ebss, %a1  /* Set up

Re: [uClinux-dev] toolchain and uCilnux

2007-06-20 Thread Daniel Alomar

To solve this question I'm using a samba from two versions before.

If I disable the ldl flag, then I get a lot of R_68K_GOT160 errors:

...
/uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: 
relocation truncated to fit: R_68K_GOT16O DEBUGLEVEL_CLASS_ISSET
/uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: 
relocation truncated to fit: R_68K_GOT16O LC44
/uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: 
relocation truncated to fit: R_68K_GOT16O LC4
/uClinux/uClinux-dist/user/samba/source/build/../passdb/secrets.c:825: 
relocation truncated to fit: R_68K_GOT16O dbghdr

...
/uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:62: 
relocation truncated to fit: R_68K_GOT16O MD5Init
/uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:63: 
relocation truncated to fit: R_68K_GOT16O MD5Update

bin/smbd.elf2flt: In function `hmac_md5_init_limK_to_64':
/uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:81: 
relocation truncated to fit: R_68K_GOT16O memset
/uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:83: 
relocation truncated to fit: R_68K_GOT16O memcpy
/uClinux/uClinux-dist/user/samba/source/build/../lib/hmacmd5.c:92: 
relocation truncated to fit: R_68K_GOT16O MD5Init

...
bin/smbd.elf2flt: In function `__floatdidf':
/home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x14c596): 
relocation truncated to fit: R_68K_GOT16O _fpCCR
/home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x14c5a0): 
relocation truncated to fit: R_68K_GOT16O _fpCCR
/home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/../../gcc-2.95.3/gcc/libgcc2.c(.text+0x14c5f8): 
relocation truncated to fit: R_68K_GOT16O _fpCCR

bin/smbd.elf2flt: In function `__extenddfxf2':
/home/davidm/work/uclinux-elf-tools/m68k-elf-gcc/gcc/xfgnulib.c(.text+0x14c93c): 
relocation truncated to fit: R_68K_GOT16O LC0

collect2: ld returned 1 exit status
make[5]: *** [bin/smbd] Error 1
make[5]: Leaving directory `/uClinux/uClinux-dist/user/samba/source/build'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/uClinux/uClinux-dist/user/samba/source'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/uClinux/uClinux-dist/user/samba'
make[2]: *** [samba] Error 2
make[2]: Leaving directory `/uClinux/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/uClinux/uClinux-dist/user'
make: *** [subdirs] Error

Regards,


En/na Greg Ungerer ha escrit:

Hi Daniel,

Daniel Alomar wrote:

Nothing concerning the board. Only about Samba and the ldl library:

Compiling passdb/login_cache.c with
Compiling passdb/pdb_smbpasswd.c with
Compiling passdb/pdb_tdb.c with
Compiling passdb/pdb_guest.c with
Compiling passdb/pdb_sql.c with
Compiling lib/system_smbd.c with
mkdir groupdb
Compiling groupdb/mapping.c with
Compiling passdb/secrets.c with
../passdb/secrets.c: In function `secrets_get_trusted_domains':
../passdb/secrets.c:618: warning: implicit declaration of function 
`strndup'
../passdb/secrets.c:618: warning: assignment makes pointer from 
integer without a cast

Compiling passdb/machine_sid.c with
Linking libsmbclient non-shared library bin/libsmbclient.a
Linking bin/smbd
/usr/local/m68k-elf/bin/ld.real: cannot find -ldl
collect2: ld returned 1 exit status
make[5]: *** [bin/smbd] Error 1
make[5]: Leaving directory 
`/uClinux/uClinux-dist/user/samba/source/build'

make[4]: *** [all] Error 2
make[4]: Leaving directory `/uClinux/uClinux-dist/user/samba/source'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/uClinux/uClinux-dist/user/samba'
make[2]: *** [samba] Error 2
make[2]: Leaving directory `/uClinux/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/uClinux/uClinux-dist/user'
make: *** [subdirs] Error 1


A new version of samba was imported before that release.
Looks like it has issues. If you don't need it disable it.
Otherwise it will take some fixing.

Regards
Greg




En/na Greg Ungerer ha escrit:

Hi Daniel,

Daniel Alomar wrote:
Is the 2.95.3 toolchain compatible with the linux-2.4.x kernel from 
the latest Clinux distribution (20070130)?


It should work. But I use a newer gcc-3.4.4 based tool chain
for non-mmu ARM now (both 2.4 and 2.6 kernels).



I'm trying to compile my custom board and I have some weird errors


What are the errors?

Regards
Greg




Greg Ungerer  --  Chief Software Dude   EMAIL: [EMAIL PROTECTED]
Secure Computing CorporationPHONE:   +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

Re: [uClinux-dev] toolchain and uCilnux

2007-06-19 Thread Daniel Alomar

Hi,

Where did you download the gcc-3.4.4 toolchain? Is this available for 
the m68knommu architecture?


Regards,


En/na Greg Ungerer ha escrit:

Hi Daniel,

Daniel Alomar wrote:
Is the 2.95.3 toolchain compatible with the linux-2.4.x kernel from 
the latest Clinux distribution (20070130)?


It should work. But I use a newer gcc-3.4.4 based tool chain
for non-mmu ARM now (both 2.4 and 2.6 kernels).



I'm trying to compile my custom board and I have some weird errors


What are the errors?

Regards
Greg




Greg Ungerer  --  Chief Software Dude   EMAIL: [EMAIL PROTECTED]
Secure Computing CorporationPHONE:   +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



--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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] toolchain and uCilnux

2007-06-18 Thread Daniel Alomar

Hi,

Is the 2.95.3 toolchain compatible with the linux-2.4.x kernel from the 
latest Clinux distribution (20070130)?


I'm trying to compile my custom board and I have some weird errors

Regards,

--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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


Re: [uClinux-dev] toolchain and uCilnux

2007-06-18 Thread Daniel Alomar

Hi Greg,

Nothing concerning the board. Only about Samba and the ldl library:

Compiling passdb/login_cache.c with
Compiling passdb/pdb_smbpasswd.c with
Compiling passdb/pdb_tdb.c with
Compiling passdb/pdb_guest.c with
Compiling passdb/pdb_sql.c with
Compiling lib/system_smbd.c with
mkdir groupdb
Compiling groupdb/mapping.c with
Compiling passdb/secrets.c with
../passdb/secrets.c: In function `secrets_get_trusted_domains':
../passdb/secrets.c:618: warning: implicit declaration of function `strndup'
../passdb/secrets.c:618: warning: assignment makes pointer from integer 
without a cast

Compiling passdb/machine_sid.c with
Linking libsmbclient non-shared library bin/libsmbclient.a
Linking bin/smbd
/usr/local/m68k-elf/bin/ld.real: cannot find -ldl
collect2: ld returned 1 exit status
make[5]: *** [bin/smbd] Error 1
make[5]: Leaving directory `/uClinux/uClinux-dist/user/samba/source/build'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/uClinux/uClinux-dist/user/samba/source'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/uClinux/uClinux-dist/user/samba'
make[2]: *** [samba] Error 2
make[2]: Leaving directory `/uClinux/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/uClinux/uClinux-dist/user'
make: *** [subdirs] Error 1

Regards,

Daniel Alomar



En/na Greg Ungerer ha escrit:

Hi Daniel,

Daniel Alomar wrote:
Is the 2.95.3 toolchain compatible with the linux-2.4.x kernel from 
the latest Clinux distribution (20070130)?


It should work. But I use a newer gcc-3.4.4 based tool chain
for non-mmu ARM now (both 2.4 and 2.6 kernels).



I'm trying to compile my custom board and I have some weird errors


What are the errors?

Regards
Greg




Greg Ungerer  --  Chief Software Dude   EMAIL: [EMAIL PROTECTED]
Secure Computing CorporationPHONE:   +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



--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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] troubles implementing a new board

2007-06-15 Thread Daniel Alomar

Hi,

I'm trying to implement our custom board inside uClinux (latest
distribution) and I have this error when I do a make:

(and I don't know how I have to handle...)

...
netsyms.c:573: warning: `used' attribute directive ignored
netsyms.c:574: warning: `used' attribute directive ignored
netsyms.c:574: warning: `used' attribute directive ignored
netsyms.c:575: warning: `used' attribute directive ignored
netsyms.c:575: warning: `used' attribute directive ignored
netsyms.c:626: warning: `used' attribute directive ignored
netsyms.c:626: warning: `used' attribute directive ignored
netsyms.c:628: warning: `used' attribute directive ignored
netsyms.c:628: warning: `used' attribute directive ignored
rm -f network.o
m68k-elf-ld   -r -o network.o socket.o core/core.o ethernet/ethernet.o
802/802.o sched/sched.o netlink/netlink.o ipv4/ipv4.o unix/unix.o
packet/packet.o sunrpc/sunrpc.o netsyms.o
m68k-elf-gcc -fno-builtin -nostdinc -D__KERNEL__
-I/uClinux/uClinux-dist/linux-2.4.x/include  -Wall -Wstrict-prototypes
-Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -I
/usr/local/lib/gcc-lib/m68k-elf/2.95.3//include -pipe -DNO_MM -DNO_FPU
-m5307 -Wa,-S -Wa,-m5307 -D__ELF__ -DMAGIC_ROM_PTR
-DUTS_SYSNAME=uClinux -D__linux__ -O1   -nostdinc -iwithprefix include
-DKBUILD_BASENAME=binfmt_script  -c -o binfmt_script.o binfmt_script.c
m68k-elf-gcc -fno-builtin -nostdinc -D__KERNEL__
-I/uClinux/uClinux-dist/linux-2.4.x/include  -Wall -Wstrict-prototypes
-Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -I
/usr/local/lib/gcc-lib/m68k-elf/2.95.3//include -pipe -DNO_MM -DNO_FPU
-m5307 -Wa,-S -Wa,-m5307 -D__ELF__ -DMAGIC_ROM_PTR
-DUTS_SYSNAME=uClinux -D__linux__ -O1   -nostdinc -iwithprefix include
-DKBUILD_BASENAME=binfmt_flat  -c -o binfmt_flat.o binfmt_flat.c
namespace.c: In function `mnt_init':
namespace.c:1061: warning: long int format, int arg (arg 4)
binfmt_flat.c: In function `calc_v5_reloc':
binfmt_flat.c:385: warning: unused variable `opcode'
binfmt_flat.c:385: warning: unused variable `offset'
binfmt_flat.c:384: warning: unused variable `usptr'
make[3]: Leaving directory `/uClinux/uClinux-dist/linux-2.4.x/net'
make[2]: Leaving directory `/uClinux/uClinux-dist/linux-2.4.x/net'
rm -f fs.o
m68k-elf-ld   -r -o fs.o open.o read_write.o devices.o file_table.o
buffer.o super.o block_dev.o char_dev.o stat.o exec.o pipe.o namei.o
fcntl.o ioctl.o readdir.o select.o fifo.o locks.o dcache.o inode.o
attr.o bad_inode.o file.o iobuf.o dnotify.o filesystems.o namespace.o
seq_file.o xattr.o quota.o binfmt_script.o binfmt_flat.o proc/proc.o
partitions/partitions.o ext2/ext2.o ramfs/ramfs.o fat/fat.o
msdos/msdos.o vfat/vfat.o nfs/nfs.o lockd/lockd.o nls/nls.o romfs/romfs.o
make[3]: Leaving directory `/uClinux/uClinux-dist/linux-2.4.x/fs'
make[2]: Leaving directory `/uClinux/uClinux-dist/linux-2.4.x/fs'
make[1]: Leaving directory `/uClinux/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1


--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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] asm-m68knommu link

2007-06-15 Thread Daniel Alomar

hi folks,

another issue on my way...

How I have to do to make uClinux create the asm-asm-m68knommu link? 
With my custom board I have this failure at make dep:
find: /uClinux/uClinux-dist/linux-2.4.x/include/asm: No such file or 
directory


and the solution is to create manually the link while the board from I 
am doing the customizing didn't have this error, obviously


Regards,

--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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


Re: [uClinux-dev] usb device

2007-05-20 Thread Daniel Alomar

En/na xavier.montagne ha escrit:

Hi,

Does anyone rebuild a usb device driver (pdisubd12 for instance ) for 
uClinux 2.4 ?


Xavier


Hi,

I'm using a Cypress SL811HS with a Coldfire 5282 and the kernel 2.4.31. 
The driver is external and I've some issues when I write some large 
amount of data.


Regards,


--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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


Re: [uClinux-dev] Problem linking pthread... undefined reference to `pthread_create'

2007-05-14 Thread Daniel Alomar

Hi Claudia,

Have you already enable pthreads inside uClibc?

Regards,

Daniel Alomar

En/na Claudia De Bartolomeis ha escrit:

Hi everybody,
I'm developing an application under uclinux  uclibc 0.9.26 for Coldfire  
m532x,

but I'm having troubles linking pthread
 
Thanks in advance for any help

Claudia
 
This is the compilation log:
 
[EMAIL PROTECTED]:~/ltib-m532xevb-20061117 
mailto:[EMAIL PROTECTED]:~/ltib-m532xevb-20061117 ./ltib -m scbuild  
-p microwindows.spec
 
Processing: microwindows

==
rpmbuild --dbpath /home/claudia/ltib-m532xevb-20061117/rpmdb --define 
'_unpackaged_files_terminate_build 0' --define '_target_cpu m68knommu' 
--define '__strip strip' --define '_topdir 
/home/claudia/ltib-m532xevb-20061117/rpm' --define '_prefix /usr' 
--define '_tmppath /home/claudia/ltib-m532xevb-20061117/tmp' --define 
'_mandir /usr/share/man' --define '_sysconfdir /etc' --define 
'_localstatedir /var' -bc --short-circuit  
/home/claudia/ltib-m532xevb-20061117/dist/lfs-5.1/microwindows/microwindows.spec
Executing(%build): /bin/sh -e 
/home/claudia/ltib-m532xevb-20061117/tmp/rpm-tmp.19156

+ umask 022
+ cd /home/claudia/ltib-m532xevb-20061117/rpm/BUILD
+ cd microwindows-0.90
+ cd src
+ make -j1 'HOSTCC=/usr/bin/gcc -B/usr/bin//'
make -C drivers
make[1]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers'
make[1]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/drivers'

make -C mwin
make[1]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin'

make -C bmp
make[2]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp'
make[2]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/bmp'

make -C mwobjects
make[2]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects'
make[2]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/mwobjects'

make -C winlib
make[2]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib'
make[2]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin/winlib'
make[1]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/mwin'

make -C engine
make[1]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine'
make[1]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/engine'

make -C fonts
make[1]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts'
make[1]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/fonts'

make -C nanox
make[1]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/nanox'
make[1]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/nanox'

make -C demos
make[1]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos'

make -C mwin
make[2]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwin'
make[2]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwin'

make -C mwobjects
make[2]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwobjects'
make[2]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/mwobjects'

make -C nanowm
make[2]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanowm'
make[2]: Leaving directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanowm'

make -C nanox
make[2]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanox'

make -C icoone
make[3]: Entering directory 
`/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/demos/nanox/icoone'
Linking 
/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/bin/main 
...
gcc   -I. 
-I/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/include 
-Wall -Wpointer-arith  -lpthread  
-L/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/lib   
main.o menu_engine.o buttons.o -o 
/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/bin/main 
/home/claudia/ltib-m532xevb-20061117/rpm/BUILD/microwindows-0.90/src/lib/libnano-X.a

menu_engine.o: In function `prova':
menu_engine.c:(.text+0x50): undefined reference to `pthread_create'
menu_engine.c:(.text+0x72): undefined reference to `pthread_create'
menu_engine.c:(.text+0x88): undefined reference to `pthread_join'
menu_engine.c:(.text+0x98

Re: [uClinux-dev] CGI scripts on uClinux.

2007-04-11 Thread Daniel Alomar

Hi,

Have you already check the CGi-examples from uClinux?

En/na Leonid ha escrit:

Hi:

I want to run some CGI scripts on the target. Does somebody have any
HOWTO for that?

I basically look for simplest way to execute commands on target via WEB.
I thought CGI is simplest, but may be it's wrong for microblaze?

I also tried to enable perl in Petalinux configuration, but compilation
fails:

x-v0.10-rc1/software/petalinux-dist -Dlinux -D__linux__ -Dunix
-D__uClinux__ -O2
sv.c: In function `Perl_sv_2pv':
sv.c:2098: warning: implicit declaration of function `gcvt'
sv.c: In function `Perl_sv_utf8_decode':
sv.c:2489: warning: unused variable `has_utf'
sv.c: In function `Perl_sv_setpvn':
sv.c:2959: warning: unused variable `iv'
sv.c: In function `Perl_sv_magic':
sv.c:3345: warning: suggest explicit braces to avoid ambiguous `else'
sv.c: In function `Perl_sv_unmagic':
sv.c:3491: warning: suggest explicit braces to avoid ambiguous `else'
sv.c: In function `Perl_sv_gets':
sv.c:4419: error: structure has no member named `_IO_read_end'
sv.c:4419: error: structure has no member named `_IO_read_ptr'
sv.c:4435: error: structure has no member named `_IO_read_ptr'
sv.c:4473: error: structure has no member named `_IO_read_ptr'
sv.c:4486: error: structure has no member named `_IO_read_end'
sv.c:4486: error: structure has no member named `_IO_read_ptr'
sv.c:4487: error: structure has no member named `_IO_read_ptr'
sv.c:4514: error: structure has no member named `_IO_read_ptr'
make[2]: *** [sv.o] Error 1
make[2]: Leaving directory
`/home/leonid/lm125/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/
user/perl'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/leonid/lm125/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/
user'
make: *** [subdirs] Error 1

What else shall I enable?

Thanks,

Leonid.
___
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


--
Daniel Alomar i Claramonte
Research  Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.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