[uClinux-dev] Problem with uclinux-dist-20030305

David McCullough davidm at snapgear.com
Tue Mar 18 18:39:28 EST 2003


Jivin Jay Vaughan lays it down ...
> Out of the box, the uclinux-dist-20030305, configured plain vanilla 
> for MCF5272 (Motorola Eval board), produces this error when compiling 
> the threaddemos:
...
> Working POSIX threads on 5272 has *always* been a pain in the ass for 
> me, as far as uClinux is concerned.  One of these days, the -dist 
> releases will *just work* for libpthreads/m5272, but until then I'm 
> compelled to be stupid about it and just ask you guys, since there 
> always seem to be hidden gotchas.
> 
> Maybe I've just not configured something properly with this release, 
> but what I did was a) download the tarball, b) make menuconfig to set 
> things up exactly as I had them in my older (-20030226) uClinux 
> system, c) 'make dep ; make' ...
> 
> Seems to me one of the big reasons for this release was to make 
> libpthread available for 5272 users wanting to take advantage of the 
> XIP fixes also done as part of the m68k-elf-tools-20030314.sh 
> release, but alas ... threads are *still* broken, config-wise, with 
> this -dist.
> 
> It would appear, anyway.  Please correct me if I'm completely missing 
> something ...

Every thing in the tree is working for pthreads,  but not all platforms
have had it enabled (ie., we haven't tested it specifically).

The reason pthreads isn't working for you is that it isn't enabled in the
uClibc config.

Here is a patch for the dist the fixes the Mot configs and also a small
problem with the top level Makefile which is needed when you are
switching platforms a lot ;-)

make clean,  make config and force defaults, make dep, make and you
should have a full pthreads 5272.  Then you can be the first to test it ;-)

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security
-------------- next part --------------
Index: uClinux-dist/Makefile
===================================================================
RCS file: /cvs/sw/new-wave/Makefile,v
retrieving revision 1.77
retrieving revision 1.80
diff -u -r1.77 -r1.80
--- uClinux-dist/Makefile	22 Jan 2003 07:04:30 -0000	1.77
+++ uClinux-dist/Makefile	18 Mar 2003 05:09:35 -0000	1.80
@@ -163,6 +163,7 @@
 	@$(MAKE) oldconfig_linux
 	@$(MAKE) oldconfig_modules
 	@$(MAKE) oldconfig_config
+	@$(MAKE) oldconfig_uClibc
 	@config/setconfig final
 
 .PHONY: modules
@@ -207,6 +208,8 @@
 	[ ! -d modules ] || $(MAKEARCH) -C modules oldconfig
 oldconfig_linux:
 	$(MAKEARCH_KERNEL) -C $(LINUXDIR) oldconfig
+oldconfig_uClibc:
+	[ -z "$(findstring uClibc,$(LIBCDIR))" ] || $(MAKEARCH) -C $(LIBCDIR) oldconfig
 
 ############################################################################
 #
@@ -271,12 +274,14 @@
 real_clean mrproper: clean
 	-$(MAKEARCH_KERNEL) -C $(LINUXDIR) mrproper
 	-$(MAKEARCH) -C config clean
+	-$(MAKEARCH) -C uClibc distclean
 	rm -rf romfs config.in config.arch config.tk images
 	rm -f modules/config.tk
 	rm -rf .config .config.old .oldconfig autoconf.h
 
 distclean: mrproper
 	-$(MAKEARCH_KERNEL) -C $(LINUXDIR) distclean
+	-rm -f user/tinylogin/applet_source_list user/tinylogin/config.h
 
 %_only:
 	[ ! -d "$(@:_only=)" ] || $(MAKEARCH) -C $(@:_only=)
Index: uClinux-dist/vendors/Motorola/M5249C3/config.uClibc
===================================================================
RCS file: /cvs/sw/new-wave/vendors/Motorola/M5249C3/config.uClibc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- uClinux-dist/vendors/Motorola/M5249C3/config.uClibc	25 Feb 2003 01:21:55 -0000	1.4
+++ uClinux-dist/vendors/Motorola/M5249C3/config.uClibc	18 Mar 2003 23:01:48 -0000	1.5
@@ -23,7 +23,7 @@
 #
 # DOPIC is not set
 UCLIBC_CTOR_DTOR=y
-# UCLIBC_HAS_THREADS is not set
+UCLIBC_HAS_THREADS=y
 UCLIBC_HAS_LFS=y
 MALLOC=y
 # MALLOC_930716 is not set
Index: uClinux-dist/vendors/Motorola/M5272C3/config.uClibc
===================================================================
RCS file: /cvs/sw/new-wave/vendors/Motorola/M5272C3/config.uClibc,v
retrieving revision 1.4
retrieving revision 1.6
diff -u -r1.4 -r1.6
--- uClinux-dist/vendors/Motorola/M5272C3/config.uClibc	25 Feb 2003 01:21:55 -0000	1.4
+++ uClinux-dist/vendors/Motorola/M5272C3/config.uClibc	18 Mar 2003 23:01:48 -0000	1.6
@@ -23,7 +23,7 @@
 #
 # DOPIC is not set
 UCLIBC_CTOR_DTOR=y
-# UCLIBC_HAS_THREADS is not set
+UCLIBC_HAS_THREADS=y
 UCLIBC_HAS_LFS=y
 MALLOC=y
 # MALLOC_930716 is not set
@@ -59,3 +59,4 @@
 # DODEBUG is not set
 # DOASSERTS is not set
 # UCLIBC_MALLOC_DEBUGGING is not set
+


More information about the uClinux-dev mailing list