Re: [uClinux-dev] small build bugs in uClinux-dist-20071107

2007-11-20 Thread Greg Ungerer
Hi Wolfgang, Wolfgang Wegner wrote: I am just (trying to) build uClinux-dist-20071107 (uClinux-dist-20070130 patched with uClinux-dist-20070130-20071107), and found the following small errors: uClibc/extra/scripts/conf-header.sh user/busybox/scripts/mkconfigs user/busybox/applets/usage_compre

[uClinux-dev] Re: [PATCH] isp1362: skip clock ready check

2007-11-20 Thread Thomas Chou
Hi Greg, Yes, it is. But please apply the depending patch first, [PATCH] isp1362: merge updates in blackfin linux Sorry, I will add number option to git format-patch to avoid such confusion in the future. Best regards, Thomas Greg Ungerer 提到: Hi Thomas, Thomas Chou wrote: The clock check do

Re: [uClinux-dev] [PATCH] busybox: define BB_NOMMU if __uClinux__

2007-11-20 Thread Thomas Chou
Hi Mike, Thank you. I will revert that commit. Shall we add BB_NOMMU to CFLAGS in vendor config.arch ? BTW, the stripping issue which we had addressed before came again. Now the build failed at,   AR  util-linux/lib.a   LINK    busybox_unstripped nios2-linux-uclibc-strip: busybox_unstripp

[uClinux-dev] Re: [PATCH] nios2: relocate linux/usb_isp1362.h to linux/usb/isp1362.h

2007-11-20 Thread Greg Ungerer
Hi Thomas, Thomas Chou wrote: Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> Applied, to uClinux-dist. Regards Greg diff --git a/linux-2.6.x/arch/nios2nommu/kernel/usb.c b/linux-2.6.x/arch/nios2nommu/kernel/usb.c index 65655b6..c9d8f25 100644 --- a/linux-2.6.x/arch/nios2nommu/kernel/usb.

[uClinux-dev] Re: [PATCH] isp1362: skip clock ready check

2007-11-20 Thread Greg Ungerer
Hi Thomas, Thomas Chou wrote: The clock check does not work on DE2. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> The code I have for this already has this applied? Regards Greg diff --git a/linux-2.6.x/drivers/usb/host/isp1362-hcd.c b/linux-2.6.x/drivers/usb/host/isp1362-hcd.c index 67

[uClinux-dev] Re: [PATCH] nios2: update vendor configs

2007-11-20 Thread Greg Ungerer
Hi Thomas, Thomas Chou wrote: Update vendor config files to v2.6.23 for nios2nommu. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> Applied, thanks. Regards Greg diff --git a/vendors/Altera/nios2nommu/config.linux-2.6.x b/vendors/Altera/nios2nommu/config.linux-2.6.x index 363e7f9..5161b1

[uClinux-dev] Re: [PATCH] nios2: hwselect not needed to make headers_install

2007-11-20 Thread Greg Ungerer
Hi Thomas, Thomas Chou wrote: To help creation of kernel header in buildroot. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> Applied to uClinux-dist tree. Regards Greg diff --git a/linux-2.6.x/arch/nios2nommu/Makefile b/linux-2.6.x/arch/nios2nommu/Makefile index 4c94558..ca139b6 100644

Re: [uClinux-dev] small build bugs in uClinux-dist-20071107

2007-11-20 Thread Greg Ungerer
Hi Lance, Lance Spaulding wrote: I was looking at the changes in the 20071107 patch and noticed the following in vendors/config/arm/config.arch: ifneq ($(shell which arm-linux-20070808-gcc),) ifeq ($(UCLINUX_BUILD_BOOT),1) CROSS_COMPILE = arm-linux-20061213- else CROSS_COMPILE = arm-linux-20070

Re: [uClinux-dev] user apps and SourceryG++

2007-11-20 Thread Greg Ungerer
Hi Harry, Harry Gunnarsson wrote: Regarding the second question. I believe David & Greg replied on this in a similar email thread 3 weeks ago. I intended to give my 2 cents since I had some experience on this, but I reply on this instead. I currently do compile both kernel and user-level app

Re: [uClinux-dev] (stupid) question concerning uClinux environment

2007-11-20 Thread Greg Ungerer
Hi Wolfgang, Wolfgang Wegner wrote: after compiling busysbox from uClinux-dist-20071107, I tried running it in my previous uClinux environment/kernel - but with no success. Did you just take the busybox binary itself - not the complete generated user space/root filesystem? The kernel can no

RE: [uClinux-dev] Is there dma support in coldfire m532x?

2007-11-20 Thread Xin Xie
Hi Greg, Here is the console dump. It happens when I use the telnetd, but actually it can happens when any programming running on uClinux (like PID 0 swapper process). Is there any other information I can provide about this crash? *** ILLEGAL INSTRUCTION *** FORMAT=4 Current process id is 42

Re: [uClinux-dev] Is there dma support in coldfire m532x?

2007-11-20 Thread Greg Ungerer
Hi Xin, Xin Xie wrote: I am new to the Coldfire uClinux platform. Currently I have a m5329evb board, and using the 2.6.23-uc0 kernel and 4.1.1 m68-elf-gcc. I did some stress test on the board. One interesting finding is under the ping flood (ping –f board), the kernel went to crash. I also te

Re: [uClinux-dev] [PATCH] busybox: define BB_NOMMU if __uClinux__

2007-11-20 Thread Mike Frysinger
On Tuesday 20 November 2007, Thomas Chou wrote: > Need this flag to compile busybox when we don't have vaild uClibc flags. __uClinux__ was removed from busybox on purpose as it is not a proper/valid define -mike signature.asc Description: This is a digitally signed message part. ___

[uClinux-dev] [PATCH] nios2: new fb.h for framebuffer device

2007-11-20 Thread Thomas Chou
Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/linux-2.6.x/include/asm-nios2nommu/fb.h b/linux-2.6.x/include/asm-nios2nommu/fb.h new file mode 100644 index 000..c7df380 --- /dev/null +++ b/linux-2.6.x/include/asm-nios2nommu/fb.h @@ -0,0 +1,12 @@ +#ifndef _ASM_FB_H_ +#define _ASM

[uClinux-dev] [PATCH] netflash: need SUSv3 legacy macros

2007-11-20 Thread Thomas Chou
FIXME: tftp uses legacy bcopy,bzero Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/user/netflash/tftpmain.c b/user/netflash/tftpmain.c index 14e6a92..ee13029 100644 --- a/user/netflash/tftpmain.c +++ b/user/netflash/tftpmain.c @@ -41,6 +41,7 @@ static char sccsid[] = "@(#)main.c5

[uClinux-dev] [PATCH] nios2: save the "make romfs" step

2007-11-20 Thread Thomas Chou
As suggested by David McCullough, make vendor_hwselect create the romfs dir. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/vendors/Altera/nios2nommu/Makefile b/vendors/Altera/nios2nommu/Makefile index 40064ce..cce4d76 100644 --- a/vendors/Altera/nios2nommu/Makefile +++ b/vendors/Al

[uClinux-dev] [PATCH] lib: add symlink for static libs

2007-11-20 Thread Thomas Chou
Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/lib/Makefile b/lib/Makefile index 2c99955..1f43181 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -166,6 +166,7 @@ LINKLIBS=\ $(ROOTDIR)/lib/libatm/src/lib/.libs/*.a \ $(ROOTDIR)/lib/libdes/*.a \ $(ROOTDIR)/lib/l

[uClinux-dev] malloc 101 in uClinux

2007-11-20 Thread Tiberiu Motoc
Hi, I have some questions about memory allocation in uClinux for the ARM architecture. I found out that there are 2 memory allocation functions: malloc and malloc-simple. I think the article was on Blackfin, but I think same applies to ARM. Anyway, I also read that malloc-simple doesn't exist any

[uClinux-dev] [PATCH] nios2: relocate linux/usb_isp1362.h to linux/usb/isp1362.h

2007-11-20 Thread Thomas Chou
Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/linux-2.6.x/arch/nios2nommu/kernel/usb.c b/linux-2.6.x/arch/nios2nommu/kernel/usb.c index 65655b6..c9d8f25 100644 --- a/linux-2.6.x/arch/nios2nommu/kernel/usb.c +++ b/linux-2.6.x/arch/nios2nommu/kernel/usb.c @@ -271,7 +271,7 @@ subsys_i

[uClinux-dev] [PATCH] nios2: CONFIG_UCLINUX is needed to make some user apps

2007-11-20 Thread Thomas Chou
New CONFIG_UCLINUX def for Kconfig and Makefile. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/vendors/Altera/nios2nommu/config.arch b/vendors/Altera/nios2nommu/config.arch index c939476..76a0535 100644 --- a/vendors/Altera/nios2nommu/config.arch +++ b/vendors/Altera/nios2nommu/con

[uClinux-dev] [PATCH] isp1362: skip clock ready check

2007-11-20 Thread Thomas Chou
The clock check does not work on DE2. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/linux-2.6.x/drivers/usb/host/isp1362-hcd.c b/linux-2.6.x/drivers/usb/host/isp1362-hcd.c index 676dab1..f08955e 100644 --- a/linux-2.6.x/drivers/usb/host/isp1362-hcd.c +++ b/linux-2.6.x/drivers/usb/h

[uClinux-dev] [PATCH] isp1362: merge updates in blackfin linux

2007-11-20 Thread Thomas Chou
relocate linux/usb_isp1362.h to linux/usb/isp1362.h remove bandwidth related code from isp1362 driver for upstream API change Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/linux-2.6.x/drivers/usb/host/isp1362-hcd.c b/linux-2.6.x/drivers/usb/host/isp1362-hcd.c index e672a99..676dab1

[uClinux-dev] [PATCH] nios2: update vendor configs

2007-11-20 Thread Thomas Chou
Update vendor config files to v2.6.23 for nios2nommu. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/vendors/Altera/nios2nommu/config.linux-2.6.x b/vendors/Altera/nios2nommu/config.linux-2.6.x index 363e7f9..5161b1c 100644 --- a/vendors/Altera/nios2nommu/config.linux-2.6.x +++ b/ven

[uClinux-dev] [PATCH] busybox: define BB_NOMMU if __uClinux__

2007-11-20 Thread Thomas Chou
Need this flag to compile busybox when we don't have vaild uClibc flags. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/user/busybox/include/platform.h b/user/busybox/include/platform.h index 69d031d..4695892 100644 --- a/user/busybox/include/platform.h +++ b/user/busybox/include/pla

[uClinux-dev] [PATCH] nios2: linux/blk.h is obsolete

2007-11-20 Thread Thomas Chou
Header file linux/blk.h is obsolete, and is replaced by linux/blkdev.h . Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/linux-2.6.x/arch/nios2nommu/kernel/setup.c b/linux-2.6.x/arch/nios2nommu/kernel/setup.c index 1f1627b..d82acd0 100644 --- a/linux-2.6.x/arch/nios2nommu/kernel/setu

[uClinux-dev] [PATCH] nios2: hwselect not needed to make headers_install

2007-11-20 Thread Thomas Chou
To help creation of kernel header in buildroot. Signed-off-by: Thomas Chou <[EMAIL PROTECTED]> diff --git a/linux-2.6.x/arch/nios2nommu/Makefile b/linux-2.6.x/arch/nios2nommu/Makefile index 4c94558..ca139b6 100644 --- a/linux-2.6.x/arch/nios2nommu/Makefile +++ b/linux-2.6.x/arch/nios2nommu/Makef

[uClinux-dev] Is there dma support in coldfire m532x?

2007-11-20 Thread Xin Xie
Hi, I am new to the Coldfire uClinux platform. Currently I have a m5329evb board, and using the 2.6.23-uc0 kernel and 4.1.1 m68-elf-gcc. I did some stress test on the board. One interesting finding is under the ping flood (ping -f board), the kernel went to crash. I also tested the 2.6.17

Re: [uClinux-dev] 20071107: errors on altera target

2007-11-20 Thread Thomas Chou
We are maintaining patches on a git server at git://sopc.et.ntust.edu.tw/git/uClinux-dist.git . These patches will be submitted to this list after more tests. Please refer to the thread on Nios forum, http://forum.niosforum.com/forum/index.php?showtopic=7811 , and the Nios wiki, http://nioswiki

Re: [uClinux-dev] how to compile a static library and link to it in uClinux

2007-11-20 Thread Tiberiu Motoc
Hi Gavin, This is the command line (I added CRs here for visibility): arm-elf-gcc -Os -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/motoct/dev2/cmpe295/uClinux-dist/lib/libc/include -I/home/motoct/dev2/cmpe295/uClinux-dist/lib/libm -I/home/motoct/dev2/cmpe295/uClinux-dist -fno-builtin

Re: [uClinux-dev] user apps and SourceryG++

2007-11-20 Thread David McCullough
Jivin Gavin Lambert lays it down ... > Quoth Harry Gunnarsson: > > 1) For you vendor, edit vendor///config.arch and change > > to this > >   CROSS_COMPILE=m68k-uclinux- > > 2) For your vendor, edit vendor///Makefile and change > > all explicit references to m68k-elf- to > > m68k-uclinux- > > I

RE: [uClinux-dev] how to compile a static library and link to it in uClinux

2007-11-20 Thread Gavin Lambert
Quoth Tiberiu Motoc: > test_program: test_program.o httpslib.o > $(CC) $(CFLAGS) $(LDFLAGS) -o $@ test_program.o httpslib.o > /home/motoct/uClinux-dist/lib/libcurl/compiled/lib/libcurl.a $(LDLIBS) > > The linker error that I'm getting is: > /home/motoct/uClinux-dist/lib/libc/./libc.a(errno

RE: [uClinux-dev] user apps and SourceryG++

2007-11-20 Thread Gavin Lambert
Quoth Harry Gunnarsson: > 1) For you vendor, edit vendor///config.arch and change > to this >   CROSS_COMPILE=m68k-uclinux- > 2) For your vendor, edit vendor///Makefile and change > all explicit references to m68k-elf- to > m68k-uclinux- If you're changing those anyway, surely it'd be better to

[uClinux-dev] romfs_readpage problem - 2.6.23

2007-11-20 Thread Matt Waddel
Hi, I've been working on the m68knommu port of the 2.6.23 kernel and have found a problem that wasn't in the 2.6.22 release. When I copy a 0 length file from a read-only filesystem I get the following warning: # cp exports /tmp cp: Read error: Input/output error This is really only a warning b

Re: [uClinux-dev] 20071107: errors on altera target

2007-11-20 Thread Atle Nissestad
DMcLeod wrote: > Using the new uClinux-dist release 20071107, the following error occurs: > ... > make[1]: Entering directory `/home/dmcleod/git/uClinux-dist/linux-2.6.x' > CHK include/nios2_system.h > perl > -I/home/dmcleod/git/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts > /home/dmcleod

[uClinux-dev] how to compile a static library and link to it in uClinux

2007-11-20 Thread Tiberiu Motoc
Hi everybody, I'm trying to do a simple thing: compile a library statically and link to it in uClinux. The library is libcurl and I managed to get it compiled as a static library using the defaults (didn't modify the configured Makefile). In my test program, I try to link to it using the following

Re: [uClinux-dev] small build bugs in uClinux-dist-20071107

2007-11-20 Thread Lance Spaulding
I was looking at the changes in the 20071107 patch and noticed the following in vendors/config/arm/config.arch: ifneq ($(shell which arm-linux-20070808-gcc),) ifeq ($(UCLINUX_BUILD_BOOT),1) CROSS_COMPILE = arm-linux-20061213- else CROSS_COMPILE = arm-linux-20070808- endif else CROSS_COMPILE = arm-

[uClinux-dev] UC Linux: Migration Recommendation

2007-11-20 Thread Paul Romero
Hi Greg: As you know, I am using version 2.4.27 of UC Linux whose distribution suffix and date are 20041215. Are there known or dangerous problems in the serial driver or JFFS2 file system parts of the generic release ? Also, my hardware environment is an M5249C3 Dev. board-- Coldfire 5249 witho

[uClinux-dev] (stupid) question concerning uClinux environment

2007-11-20 Thread Wolfgang Wegner
Hi again, after compiling busysbox from uClinux-dist-20071107, I tried running it in my previous uClinux environment/kernel - but with no success. The kernel can not execute the executable: Freeing unused kernel memory: 400k freed (0x4019b000 - 0x401fe000) Unable to mmap process text, errno 12 Fa

[uClinux-dev] 20071107: errors on altera target

2007-11-20 Thread DMcLeod
Using the new uClinux-dist release 20071107, the following error occurs: ... make[1]: Entering directory `/home/dmcleod/git/uClinux-dist/linux-2.6.x' CHK include/nios2_system.h perl -I/home/dmcleod/git/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts /home/dmcleod/git/uClinux-dist/linux-2.6

Re: [uClinux-dev] user apps and SourceryG++

2007-11-20 Thread Harry Gunnarsson
Regarding the second question. I believe David & Greg replied on this in a similar email thread 3 weeks ago. I intended to give my 2 cents since I had some experience on this, but I reply on this instead. I currently do compile both kernel and user-level applications using CodeSourcery's latest fo

[uClinux-dev] small build bugs in uClinux-dist-20071107

2007-11-20 Thread Wolfgang Wegner
Hi, I am just (trying to) build uClinux-dist-20071107 (uClinux-dist-20070130 patched with uClinux-dist-20070130-20071107), and found the following small errors: uClibc/extra/scripts/conf-header.sh user/busybox/scripts/mkconfigs user/busybox/applets/usage_compressed do not have execute permiss

[uClinux-dev] Usage of mmap command

2007-11-20 Thread kaka
Hi Denis, Thanks for the reply. I am writing gfxdriver for directFB library for broadcom chip. I have also written a frambuffer driver for broadcom chip. In directFB code, static volatile void * system_map_mmio( unsigned intoffset, int length ) { void *addr;