Re: [uClinux-dev] Cobra5272, FLASH, SDRAM, Codewarrir

2014-11-16 Thread Gavin Lambert
These are not really questions about uClinux, they’re questions about your development board. So you should ask the vendor of that development board. But the debug monitor has to be in FLASH. You can’t persistently save things in SRAM. From: uclinux-dev-boun...@uclinux.org

Re: [uClinux-dev] g++, strange behavior issues

2014-02-12 Thread Gavin Lambert
Quoth Larry Baker: Yes, this is indeed what can happen on a system like uClinux that does not have an MMU (memory management unit).  The tiny controller chips that uClinux targets do not protect any part of the memory from being accidentally corrupted.  As long as the memory being accessed

Re: [uClinux-dev] ucLinux and XIP memory savings

2013-07-04 Thread Gavin Lambert
Quoth Anna Fischer: I was wondering if anyone had any experiences they can share about using XIP on ucLinux? As far as I can see it is supported for the bootloader, the kernel and also for applications, if the toolchain supports this. My question though is if anyone has done any studies on how

Re: [uClinux-dev] m68k: trying accessing fb memory

2012-12-13 Thread Gavin Lambert
Quoth angelo: Seems that for my case (m68k-nommu) it is not defined, so none of the get_unmapped_area will be called, in any place. It doesn't need to be defined. fbmem.c implements get_unmapped_area regardless (just slightly differently in each case). If you had actually tried just setting

Re: [uClinux-dev] m68k: trying accessing fb memory

2012-12-13 Thread Gavin Lambert
Quoth Daniel Glöckner: Are we talking about the same kernel tree? Mainline had in 2.6.36.2 and to date still has No, I was looking at my local kernel tree for an old project, which is considerably older. But looking at the official tree now, it looks like I might have patched the

Re: [uClinux-dev] m68k: trying accessing fb memory

2012-12-12 Thread Gavin Lambert
Quoth angelo: thanks, well, i implemented the handler: static int amcorefb_mmap(struct fb_info *info, struct vm_area_struct *vma) { No, that's not the right one. You don't need to implement that. Seems i miss the get_unmapped_area/BDI_CAP_MAP_DIRECT) capability. fbmem.c implements the

Re: [uClinux-dev] How to enable USB_ARCH_HAS_HCD for embedded target?

2012-10-02 Thread Gavin Lambert
Quoth Steve deRosier: Can anyone tell me the proper or accepted way to enable CONFIG_USB_ARCH_HAS_HCD for my embedded uClinux project? [...] Obviously this is a board-specific thing, not a generic linux thing, so what's the better way of doing this? You should have a board-specific

Re: [uClinux-dev] Avahi AutoIp for No-MMU systems with ucLinux

2012-08-29 Thread Gavin Lambert
Quoth Muthuselvan Sivam: We're having a function call fork_dispatcher inside a function loop() in the avahi-autoip main.c file, which will create a child process. This child will create a pipe to read the IPv4LL address from the parent, which writes the address, interface name etc, into

Re: [uClinux-dev] 68K GNU Compiler

2012-08-07 Thread Gavin Lambert
Quoth Lennart Sorensen: I wonder where you could get cycle counts for each instruction. I remember seeing them years ago for 8085 and such, but no idea of freescale provides them. I still have something that uses the 68332 (the original CPU32, I believe); for that there are detailed

RE: [uClinux-dev] Re: [PATCH v3 5/6] m68k: remove duplicate memcpy() implementation

2011-05-26 Thread Gavin Lambert
Quoth Greg Ungerer: On 24/05/11 18:06, Andreas Schwab wrote: Geert Uytterhoevenge...@linux-m68k.org writes: What exactly do you mean by does not support anything less? It seems it does restrict instruction generation to 68000 if you ask for it. The point is that Linux/m68k

RE: [uClinux-dev] [PATCH] m68k: Merge mmu and non-mmu versions of sys_call_table

2011-04-06 Thread Gavin Lambert
Quoth Greg Ungerer: Impact for m68knommu: - The table is now stored in .data instead of .text, Do you mean .rodata ? [...] Yes, I suspect that was the original thinking. It has been that way for a very long time (it is in .text in the 2.4 kernel patches for this too). I will test

RE: [uClinux-dev] [PATCH] m68k: Merge mmu and non-mmu versions of sys_call_table

2011-04-06 Thread Gavin Lambert
Quoth Greg Ungerer: Doesn't that have XIP consequences? .text (and presumably .rodata) can be stored and executed from ROM, since they can't be changed at runtime. .data has to be in RAM, since it can be. Yes, but even in the kernel XIP case the very early startup code moves the kernels

RE: [uClinux-dev] Re: [Asterisk] File not processed

2011-02-08 Thread Gavin Lambert
Quoth Gilles Ganault: Thanks Ulisses. I'm not much of a developer so don't have enough technical knowledge to tell, but others documents also say that Asterisk checks a specific directory several times per second, hence the need to use mv instead of cp, since mv is atomic. This is true

RE: [uClinux-dev] Wrong exception handling on m68knommu Coldfire 5208?

2010-10-07 Thread Gavin Lambert
Quoth Jate Sujjavanich: Should the bit fields in ptrace.h? So then it would be #ifdef CONFIG_COLDFIRE unsigned format : 4; /* frame format specifier */ + unsigned fault_status_H : 2; - unsigned vector : 8; /* vector offset */ + unsigned vector : 12; /* vector offset */ + unsigned

[uClinux-dev] signal/c++ exception issue

2010-10-05 Thread Gavin Lambert
Quoth Jerry: This is precisely why I am asking the question :). given that the application has a single main thread i do not see why this expectation is unreasonable or irrational! If you look at the documentation for signal handlers, you'll see that they get called asynchronous to normal

RE: [uClinux-dev] porting uCLinux application

2010-09-23 Thread Gavin Lambert
Quoth John Master: I don’t think he is referring to an application that runs on both platforms, but code that can be compiled with different compilers. The short answer is yes, you can. However, there may be slight changes in memory management code. Also in anything that accesses

RE: [uClinux-dev] [PATCH] NOMMU: Stub out vm_get_page_prot() if there's no MMU

2010-08-24 Thread Gavin Lambert
Quoth David Howells: Stub out vm_get_page_prot() if there's no MMU. [...] in the fbmem video driver, but the function doesn't exist on NOMMU, resulting in an undefined symbol at link time. [...] +#ifdef CONFIG_MMU pgprot_t vm_get_page_prot(unsigned long vm_flags); +#else +static inline

RE: [uClinux-dev] Does any of you made an rs485 driver starting from uart?

2010-04-05 Thread Gavin Lambert
Quoth Andrew Kohlsmith: I would hate to try and do it from software with an interrupt. Yuck. It's not that bad. :-) IRQ on transmit holding or shift register empty (ideally the latter). If you have only a THRE type interrupt then you have to set a timer for 1 word time (usually 9 bits)

RE: [uClinux-dev] Does uClinux support some kind of architecture with MMU?

2009-08-17 Thread Gavin Lambert
Quoth 李 軍: Does uClinux support some kind of architecture with MMU? I mean are there some boards with mmu, if we disable the mmu option (or undef CONFIG_MMU), the uClinux can run on it. At this stage, uClinux is mostly just the embedded build environment, and isn't really tied to MMU/!MMU.

RE: [uClinux-dev] Increasing flash memory

2009-07-28 Thread Gavin Lambert
Quoth Slava Apter: Yes. I am using Coldfire arch 5271. So may I assume, that redefinition of Flash Memory Size should be done in Bootloader? Sorry, I think I misinterpreted your question. The chipselect is used to determine the size of the RAM, not Flash. (Normally, uClinux neither knows nor

RE: [uClinux-dev] Increasing flash memory

2009-07-27 Thread Gavin Lambert
Quoth Slava Apter: I am working with 4MB flash memory. But at this stage it is not enough. Where do I have to insert changes in uclinux-dist in order to redefine Flash memory? Or maybe I have to change Bootloader??? It depends on the arch, but AFAIK the startup code for the Coldfires at

RE: [uClinux-dev] [PATCH] elf2flt: convert to C

2009-07-05 Thread Gavin Lambert
Quoth Erwin Authried: you are right, if you call ld directly, -elf2flt can't be used. I don't think that this is really a problem, because you'll hardly link a BFLT application with ld directly. I haven't ever seen that since I got one of the first uCsimms. If you still want to do that, you

RE: [uClinux-dev] emulate fork

2009-06-09 Thread Gavin Lambert
Quoth Niklas Molin: Problem is that the code is using fork and each child process is running simultaneously (plus the parent process needs to be in charge of handle all information each child processes are sending/receiving). If I understood vfork() right, it will halt the parent process

RE: [uClinux-dev] memory free

2009-04-29 Thread Gavin Lambert
Quoth Prasad: I am running uclinux 2.4.31 in microblaze. Whenever an application gets killed (by running killall or kill -9), does all the dynamic memory (allocated through malloc by that application) gets freed ? Is there any limitation to that. I am chasing a possible memory leak in some of

RE: [uClinux-dev] Re: uCLinux and RTAI

2009-03-16 Thread Gavin Lambert
Quoth Jamie Lokier: Some arches have a page which is per-thread, called the vsyscall/vdso kernel page. User-space calls routines in that page. In that page, a pointer to the TLS area might be stored, swapped on context switch by the kernel, and retrieved by calling a routine at a fixed

RE: [uClinux-dev] error while uclinux is booting

2009-03-16 Thread Gavin Lambert
Quoth Courousse, Damien: The following lines (see the complete init log below) look strange to me because I did not setup ROMfs : uclinux[mtd]: RAM probe address=0x18c90c size=0xdf000 Creating 1 MTD partitions on RAM: 0x-0x000df000 : ROMfs uclinux[mtd]: set ROMfs to be root

RE: [uClinux-dev] trouble with getty and stty

2009-03-15 Thread Gavin Lambert
Quoth Bob Furber: Currently defined functions: [, basename, busybox, cat, chgrp, chmod, chown, chroot, clear, cmp, cp, date, dd, df, dirname, du, echo, env, expr, false, find, free, ftpget, ftpput, getopt, grep, halt, head, hostname, hwclock, id, ifconfig,

RE: [uClinux-dev] gdb / linux-2.6.x kernel with uClinux on m68knommu

2009-03-13 Thread Gavin Lambert
Quoth Courousse, Damien: My problem is that I cannot get a full gdb setup working or even compiling from the uClinux source tree. Please could you indicate me what are the options that would lead me to get a fully working setup, including gdb / gdbserver? While I haven't done it myself

RE: [uClinux-dev] Threading and synchronization questions

2009-03-05 Thread Gavin Lambert
Quoth Michael Schnell: I did not know about this wording. With exec*() the process stays the same (same pid), and it's still a child of the same parent. It just gets new memory and some initialization is done (man execve=). Right, but it's the new memory that does the trick. After calling

RE: [uClinux-dev] mcfcache patch

2009-03-03 Thread Gavin Lambert
Quoth David Wu: CACHE_ENABLE is defined to nop if CONFIG_UCBOOTLOADER is defined. The cache setting is defined in the bootloader in this case. Also I would like to point out that at least the cache setting is not quite correct if RAM size is not 16M for CONFIG_M527x. The settings made by

RE: [uClinux-dev] Threading and synchronization questions

2009-02-26 Thread Gavin Lambert
Quoth Jan Ringoš: 1) If properly synchronized I can access data of other processes. True only for !MMU, but it's bad style. You should use the normal shared memory facilities, just as you would on Windows. 3) There is no practical distinction between process and thread in uClinux as there

RE: [uClinux-dev] elf2flt ctors?

2009-02-01 Thread Gavin Lambert
Quoth Wolfgang Mües: The linking of crtbegin and crtend is disabled with --no-stdlibs. In the old uClinux distributions, this switch is embedded in ucfront. Wait, ucfront is old now? I'm still using a pre-ucfront distribution ;) ___ uClinux-dev

RE: [uClinux-dev] why no-mmu cannot support binfmt_aout.c

2009-01-28 Thread Gavin Lambert
Quoth loody: At beginning, I use the combination you suggest, but uclinux makes me cry when I find that the only executable file format that can run on uclinux is FLAT. This is because the other file formats rely on the VMM being able to make code/data appear at specific addresses. Without a

RE: [uClinux-dev] build uclinux successfully but get cpu unknow exception

2009-01-28 Thread Gavin Lambert
Quoth Greg Ungerer: Use readelf. FLAT format files are generated by a trivial conversion from ELF. (That is they are compiled as ELF, and a final conversion step is done to convert them to FLAT). The ELF format file is the myapp.gdb file created next to the myapp (FLAT) file.

RE: [uClinux-dev] RAM size autodetection

2008-12-09 Thread Gavin Lambert
Quoth RAM size autodetection: We plan to double up the SDRAM size of our 5272-based board. It would be more convenient for us that the kernel automagically detects the size of the installed RAM instead of managing two different kernels or bootloaders; it would also be better than placing some

RE: [uClinux-dev] Compiler library libgcc.a for uClinux

2008-12-03 Thread Gavin Lambert
Quoth Lin KJ: You mentioned that the uClinux binaries do not necessarily have to be XIP and can be run on non-XIP mode. How do i switch to run non-XIP uClinux? Bypass the -fpic -msingle-pic-base CFLAGS and use some specific elf2flt options? If uClinux could be non-XIP, why the -fpic

RE: [uClinux-dev] gdbserver on MMU-less boards (mini-HOWTO)

2008-11-20 Thread Gavin Lambert
Quoth Michael Schnell: I am using uCLinux for non-MMU NIOS2 processor and I was told that the gdbserver in the uCllinux-distr for same does not support threads (gdb does not show the threads when a threaded application is monitored). As I will need this some day soon, we need to fix this

RE: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-29 Thread Gavin Lambert
Quoth David Wu: I have created attched patch using Gavin's original patch plus my changes -- adding fdwatch in cgi_interpose_output(). The timeout for read is 5000ms -- terminating the child process if the timeout expires. again this patch applies to uClinux-dist-20080808. Is the

RE: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-05 Thread Gavin Lambert
Quoth David Wu: OK. For normally CGI program(I mean exit normally) it works fine. But If I try to call cat kmsg in a CGI program then it will block further request from browser. It seems there is one missing close on the socket. That's just vfork at work, isn't it? vfork blocks the

RE: [uClinux-dev] patch to fix thttpd in uClinux-dist-20080808

2008-10-02 Thread Gavin Lambert
Quoth David Wu: Here is a patch for thttpd against uClinux-dist-200808011(uClinux-dist-20080808 + 20080811 patch) This patch fixes CGI calls for uClinux(vfork). Here is an example to test: I've previously sent (larger) patches for thttpd in that make it use vfork. Been running for ages

RE: [uClinux-dev] XIP on uclinux 2.6, fantasy or reality?

2008-09-28 Thread Gavin Lambert
Quoth David Howells: Once it's loaded into ramfs, then XIP is unnecessary. As far as I was aware, that's not true. Regardless of filesystem (ramfs or other), if XIP isn't enabled then an *extra* copy of the executable will get loaded into RAM when it's run.

RE: [uClinux-dev] build philosophy

2008-09-28 Thread Gavin Lambert
Quoth Robin Getz: This just takes longer - since you either need to copy things by hand, or run a 'make romfs' every time you edit something in vendors How long does a 'make romfs' take on your system? It's usually only a second on mine, so it doesn't bother me. If I'm just tweaking

RE: [uClinux-dev] XIP on uclinux 2.6, fantasy or reality?

2008-09-24 Thread Gavin Lambert
Quoth rwarner: Are the patches supplied only for 20080808 or will they also work with the 2007 version? My contribution to the patchset (#2) was originally developed with 20041215; I don't think it needed much (if any) changes to work with the latest version, so you shouldn't have too many

RE: [uClinux-dev] irc on freenode #uC-Linux

2008-08-21 Thread Gavin Lambert
Quoth rwarner: Problem with a ML is you get every single mail that may or may not pertain to something you are working on with respect to the uclinux dist and or kernel. Note other ML try to setup multiple ML, but this becomes unwieldy with any break down into upper level subject

RE: [uClinux-dev] map kernel memory to user space application

2008-07-17 Thread Gavin Lambert
Quoth Markus Franke: I am wondering whether it would be possible to have a huge FIFO of like 16 MBytes allocated in kernel memory and to map this memory region to the user space process. I am not really sure if this would be possible with uClinux because of the lack of MMU support. While it's

RE: [uClinux-dev] mtd/mknod/romfs/-romfs1- .... need more clear and concise information

2008-06-16 Thread Gavin Lambert
Quoth rwarner: [42949379.66] uclinux[mtd]: RAM probe address=0x204cffd0 size=0x8e000 [42949379.67] Creating 1 MTD partitions on %s: [42949379.68] 0x%8x-0x%x : NUEL [42949379.70] uclinux[mtd]: set ROMfs to be root filesystem There's something really weird going on there. Why

RE: [uClinux-dev] MCF5249 GPIO5/SIGILL Interrupt Crash

2008-06-08 Thread Gavin Lambert
Quoth Paul Romero: I made great progress in isolating the problem. If you modify the driver to ignore interrupts that are very close together rather than automatically send SIGUSR2 to to the user space application process right away, the problem does not occur. (i.e. Crude debouncing.) This

[uClinux-dev] RE: [PATCH v3] m68knommu: add old stack trace method

2008-05-08 Thread Gavin Lambert
Quoth Sebastian Siewior: + /* + * If the address is either in the text segment of the kernel, + * then it *may* be the address of a calling routine; if so, + * print it so that someone tracing down the cause of the crash + *

RE: [uClinux-dev] Problem compiling application with zlib.

2008-05-07 Thread Gavin Lambert
Quoth JL SYNCHRO: I try to compile my application with zlib support : [...] m68k-elf-gcc -m5307 -msep-data libz.c -L/opt/uClinux- dist/uClibc/ -Wl,-elf2flt -lc -lgcc -lz [...] .elf2flt: In function `zcalloc': /opt/uClinux-dist/lib/zlib/zutil.c:306: undefined reference to `malloc' .elf2flt:

RE: [uClinux-dev] [PATCH] m68knommu: add old stack trace method

2008-05-06 Thread Gavin Lambert
Quoth Sebastian Siewior: + /* + * If the address is in the text segment of the kernel or in + * it *may* be the address of a calling routine; if so, print + * it so that someone tracing down the cause of the crash will + * be

RE: [uClinux-dev] socket binding error

2008-04-30 Thread Gavin Lambert
Title: RE: [uClinux-dev] socket binding error Quoth kailash toshniwal: syslog, Errorlog, Accesslog all these types of files will not be created since filesystem used is ROMFS. That's why I had commented out all the commands that creates these files\xA0in boa.conf file.\xA0 This is

RE: [uClinux-dev] socket binding error

2008-04-27 Thread Gavin Lambert
Quoth kailash toshniwal: syslog, Errorlog, Accesslog all these types of files will not be created since filesystem used is ROMFS. That's why I had commented out all the commands that creates these files in boa.conf file.  This is what I understood,I might be wrong in reasoning here. You can

RE: [uClinux-dev] getting 'pid' error while running boa!

2008-04-15 Thread Gavin Lambert
Quoth kailash toshniwal:  Do I have to run 'boa' binary file in uClinux to start boa web server? Well I thought so, so I gave it a try. When I try to run it,I get error message like  /bin./boa 'pid:18  failed 1536'. [...] If I run it again then pid number increments by 1 each time. What

RE: [uClinux-dev] setting up the network

2008-04-08 Thread Gavin Lambert
Quoth Michael Schnell: I don't have one. OTOH, I don't understand. uCLinux does not handle the MMU and a user land program can't do that on itself. So it should not matter it any MMU hardware is present. Without an MMU, userland constructs such as fork()s and certain kinds of mmap() won't

RE: [uClinux-dev] setting up the network

2008-04-06 Thread Gavin Lambert
Quoth Michael Schnell: sash does not support scripts ? That does not seem very useful. Do you know a document that explains what shells provide which capabilities ? Looking at the docs for each shell is how I did it. Note that what I said is slightly misleading -- you can write scripts and

RE: [uClinux-dev] setting up the network

2008-04-04 Thread Gavin Lambert
Quoth kailash toshniwal: Can someone please tell me the general instructions on setting up the network in uClinux for any platform? Much like any other linux system: you run ifconfig and/or a DHCP client. Getting DHCP working isn't trivial, since most common DHCP clients tend to use scripts,

RE: [uClinux-dev] Starting ths same program multiple times

2008-04-01 Thread Gavin Lambert
Quoth Greg Ungerer: Well in this sense there is no libraries. You lost any notion of them at the link stage. With no shared libraries all you have is the final binaries. (Yes each will contain some of code that was in the build library archives). That's my point though. If linking to the

FW: [uClinux-dev] error linking mtd-utils

2008-03-26 Thread Gavin Lambert
[Resending because I got a listserver bounce; apologies if some people already received this.] Quoth [EMAIL PROTECTED]: I'm compiling uclinux with 20080305-patch on net+arm, and i get the following error from mtd-utils: make[3]: Entering directory `/home/u011514/uClinux-dist/user/mtd-utils

RE: [uClinux-dev] PAGE_OFFSET?, XIP .lds file?

2008-03-18 Thread Gavin Lambert
Quoth [EMAIL PROTECTED]: PAGE_OFFSET question: Looked through archives and grepped through code. It's still unclear to me how PAGE_OFFSET is getting set to 0x2000. When i view vmlinux.lds the replaced value for PAGE_OFFSET is 0x2000, however the SDRAM configuration from make

RE: [uClinux-dev] kernel BUG at sched.c:561!

2008-03-17 Thread Gavin Lambert
Quoth Andrey Kamchatnikov: I have the next kernel message during booting: kernel BUG at sched.c:561! What is wrong with the kernel? Perhaps you should look at that line of code and find out. Without even knowing what kernel version and configuration you're talking about, there's no way

RE: [uClinux-dev] [Fwd: convert ld-elf2flt to C program]

2008-03-13 Thread Gavin Lambert
Quoth Mike Frysinger: On Wednesday 20 February 2008, Mike Frysinger wrote: On Tuesday 12 September 2006, Nathan Sidwell wrote: static void fatal (const char *, ...); static void fatal_perror (const char *, ...); are there really no libiberty funcs that do this ? looks like the

RE: [uClinux-dev] BINFMT_FLAT guilt : C++ compilations fault, compilations flags or ???

2008-02-28 Thread Gavin Lambert
Quoth [EMAIL PROTECTED]: I have made an hello world application in c++ that when run on the board returns the message : BINFMT_FLAT: reloc outside program 0xb658 (0 - 0x19504/0xdde0), killing hello! [...] ucfront-g++ m68k-elf-g++ -m5307 -DCONFIG_COLDFIRE -Wl,--fatal-warnings -Wl,-elf2flt

RE: [uClinux-dev] Problem with mcf_qspi compilation

2008-02-21 Thread Gavin Lambert
Quoth Sean McGranaghan: I could not get the mcf_qspi driver to leave the chip select asserted after the 16th word in the transfer. (I tried all manner of configurations using the QCRn[CONT] bit (bit 15 in the Command Register) and QWR[CSIV] bit (bit 12 of the Wrap Register). The short of it

RE: [uClinux-dev] physmap with several devices and jffs2 errors

2008-02-17 Thread Gavin Lambert
Quoth António Silva: From 0xC000 to 0xC01F there is one flash chip From 0xC020 to 0xC03F nothing is mapped From 0xC040 to 0xC060 there is another flash chip (exact same model as the previous one) [...] However, I was expecting that by specifying 0x80 as the address

RE: [uClinux-dev] Semaphore undefined reference

2008-02-13 Thread Gavin Lambert
Quoth Christian Gieseler: I have to use a named semaphore in my application. When i tried to compile i received an error message undefined reference to sem_open. I could not understand why because i included all the necessary headers. Are semaphores enabled in your libc configuration?

RE: [uClinux-dev] I2C with Coldfire in 2.4.x kernel

2008-02-13 Thread Gavin Lambert
Quoth Michael Schnell: Is it true that 2.6 supports an I²C Subsystem that allows for a driver for the I²C transport hardware and - independent of same - multiple drivers for the chips to be accesses via I²C. That would be a major advantage and rule out earlier versions in many cases. Yes,

RE: [uClinux-dev] 'Instant-On' ... and uCLinux

2008-02-13 Thread Gavin Lambert
Quoth Robert Warner: I'm looking into the prospect of preloading all of the necessary tables for applications and kernel such that when the device is turned on it doesn't boot it just starts executing as if it had already gone through all the booting and application(s) initialization(s). Has

RE: [uClinux-dev] [patch] for 2.6.24 give the following when attempting to do menuconfig for ARM

2008-02-12 Thread Gavin Lambert
Quoth Robert Warner: I may be misunderstanding something here. Do i apply the patch to a Linux 2.6.24 kernel tree from kernel.org? Or, do i apply the patch at the uCLinux-dist/linux-2.6.x directory? From the FAQ sounds like the first choice. Then after i apply the patch should i

RE: [uClinux-dev] [patch] restore gui config support

2008-01-31 Thread Gavin Lambert
Quoth Mike Frysinger: diff --git a/Makefile b/Makefile [...] @@ -109,25 +109,17 @@ Kconfig: [...] +config menuconfig qconfig gconfig xconfig: Kconfig conf + $(SCRIPTSDIR)/$(SCRIPTS_BINARY_$@) Kconfig @if [ ! -f .config ]; then \ echo; \ echo You have

RE: [uClinux-dev] Re: mounting JFFS2 filesystems

2008-01-24 Thread Gavin Lambert
Quoth Claude: On the other hand /dev/mtdblock1 is used for mount: mount -t jffs2 /dev/mtdblock1 /mnt Actually that's not true. The block device is used for mounting any filesystem *other than* JFFS2, however JFFS2 actually prefers being given a character device. (It will still work ok

RE: [uClinux-dev] embedded linux

2007-12-18 Thread Gavin Lambert
Quoth Jamie Lokier: A small note about licensing. uClibC is copyright licensed under the LGPL. If you have shared libraries on the target, it's easy to meet the LGPL requirements. If you don't have shared libraries (e.g. ARM without MMU), and some of your programs aren't open source, it's

RE: [uClinux-dev] embedded linux

2007-12-18 Thread Gavin Lambert
Quoth Alessandro Rubini: Not really: it's more than that for static linking. You must allow the recipient to replace the library with a different version (rationale: the library is free, so you should be able to fix a bug by upgrading). For static linking, you need to provide the object

RE: [uClinux-dev] how to debug the uClinux user application using gdb?

2007-12-10 Thread Gavin Lambert
Quoth Xin Xie: Sorry if this is question is too trivial. Currently I am using m68k-uclinux-20061214 tool chain, and the uClinux-dist-20070130 tree. I need to debug some user applications through the network gdbserver , but I cannot find the m68k-elf-gdb in the tool chain? I recall having

RE: [uClinux-dev] problems with serial port on MCF5373 (MCF532x) - or yet another stupid programming fault by me?

2007-12-02 Thread Gavin Lambert
Quoth Greg Ungerer: I am sure some people will stand up and say threads work great for them on specific architectures. I've used both C++ and threads on Coldfire (5272) successfully with an old (20041215) build of uClinux. But what Greg said is true -- while the threading itself works fine

RE: [uClinux-dev] problems with serial port on MCF5373 (MCF532x) - or yet another stupid programming fault by me?

2007-12-02 Thread Gavin Lambert
Quoth Bob Furber: ...YMMV. -- Whazzat? http://www.google.com/search?q=define%3AYMMV ___ 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

RE: [uClinux-dev] malloc 101 in uClinux

2007-12-02 Thread Gavin Lambert
Quoth Greg Ungerer: In this example it is better to malloc(1000) than 1000 malloc(1)'s. Lots of small allocations is slow and generally not good for fragmentation. Small in this case is a relative thing. Large allocations (especially say larger than about 64k) can be difficult for the

RE: [uClinux-dev] CONFIG_ROMFS_FS and MCF532x

2007-11-29 Thread Gavin Lambert
Quoth Greg Ungerer: This is due to the almost universal way that images are put together on ColdFire. The single image file (which is a kernel and filesystem concatenated) means that the fs needs to be copied at kernel start to a more suitable place. And this is the code you are seeing above,

RE: [uClinux-dev] Deciding the boot-from area

2007-11-22 Thread Gavin Lambert
Quoth Karthik Balaguru: Is it good to boot from RAM or from a Flash that is good for XIP ? Technically, you're always booting from Flash somewhere along the line :) Starting the kernel from RAM is easier to get working, so that's probably the best way to start out using uClinux. Obviously this

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

2007-11-20 Thread Gavin Lambert
Quoth Harry Gunnarsson: 1) For you vendor, edit vendor/whatever/board/config.arch and change to this   CROSS_COMPILE=m68k-uclinux- 2) For your vendor, edit vendor/whatever/board/Makefile and change all explicit references to m68k-elf-objcopy, gcc etc to m68k-uclinux-objcopy, gcc etc If

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:

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

2007-11-14 Thread Gavin Lambert
Quoth David van Geest: 1.  What are the options for including custom user software on the board?  Is it necessary to re-compile the kernel with your app included every time you make a change to your program(s)? Depends on how you've written the program :) For compiled-in-kernel changes,

RE: [uClinux-dev] RAMFS

2007-11-07 Thread Gavin Lambert
Quoth Mei Xu: I'm developing a uClinux system on MicroBlaze on Spartan3E 1600 Dev Board. The reference design runs a romfs. Can anyone tell me how to set up a ramfs, since I need to run some user application on it? Many of the vendor configs have an rc file or fstab file that mounts a ramfs

RE: [uClinux-dev] Re: Porting Linux programs to uClinux and other

2007-11-05 Thread Gavin Lambert
Quoth Mike Frysinger: while some processors lack an MMU, then do not lack an MPU (memory protection unit). for example, the Blackfin processor has an MPU which means the Blackfin Linux port can (and does) prevent user space from accessing peripherals. we can (and have an

RE: [uClinux-dev] Reclaiming Memory

2007-11-01 Thread Gavin Lambert
Quoth Harry Gunnarsson: So here's the problem, if I run this download-uncompress routine back-to-back, it always works fine the first time, but it could bail on the second/third/fourth time due to allocation failure on one of the big buffers I need. I never figured out why this is and I

RE: [uClinux-dev] Reclaiming Memory

2007-11-01 Thread Gavin Lambert
Quoth Harry Gunnarsson: Hm, you are saying one thing that gets me thinking. I assumed, perhaps incorrectly, that the 'chunks' of memory in the power-of-two scheme were pre-allocated at kernel start. That is, n * 128k, m * 256k, y * 512k etc And I thought that the big chunks of 2M and 4M

RE: [uClinux-dev] Re: Porting Linux programs to uClinux and other

2007-10-30 Thread Gavin Lambert
Quoth Felipe Uderman: I am having some trouble finding uClinux documentation. I guess for now that most of it is this list and the ucdot.org and uClinux websites. Is there a document that explains how does uClinux works on providing the drivers and abstracts the hardwares? Maybe it is

RE: [uClinux-dev] Problem with Memory in uClinux

2007-10-17 Thread Gavin Lambert
Moments ago, I said: oom-killer: gfp_mask=0x40d0, order=9 [...] Trying to allocate a further 1MB must therefore split the 2MB block in half (since there's no VMM it's not possible to stitch smaller blocks together). In any case, allocating 1024KB from the 3040KB free would leave

RE: [uClinux-dev] insmod fails with Unknown symbol

2007-10-07 Thread Gavin Lambert
Quoth Robin Getz: Someone asked about why when their module was marked Proprietary, they couldn't use GPL symbols, a suggestion was to: 3. create a GPL-licensed module that uses the GPL-only symbols and make your proprietary driver talk through that module. Although technically

RE: [uClinux-dev] C++ exceptions, STLPort?

2007-10-04 Thread Gavin Lambert
Quoth Stanislav Meduna: Actually what I need are the basic classes such as vector or list - I don't need the exception support as I found the exception handling too heavyweight and error-prone in an embedded world - however, the STL itself uses exceptions. uClibc++ supports disabling

RE: [uClinux-dev] uClinux on Cygwin

2007-09-27 Thread Gavin Lambert
Quoth Eftimovski, Ivica: I have also compiled and used the m68k-uclinux-tools-20061214 (binutils-2.16, uClibc-20060608 and gcc-4.1.1), but caveat emptor: the cygwin shell parses text the DO$ way, and makefiles and .config will fail because of CR/LF in the text. You will have to remove CR/LF

RE: [uClinux-dev] Also a flash memory problem

2007-09-27 Thread Gavin Lambert
Quoth Aaron Zhong: And df shows there is still aboe 2M free space in flash. I have seen Gavin's reply on the previous letter. If it is caused by MTD driver, how could I confirm raw MTD functions working correctly? Or there is other methods to find the bug? Thanks in advance. What I did was

RE: [uClinux-dev] Problems with the flash memory

2007-09-26 Thread Gavin Lambert
Quoth [EMAIL PROTECTED]: This strange problem isn't fixed yet. We've tried every trick we could come up with, including the use of tools recommended by Matt Waddel, remapping of the flash memory, the use of logs from JFFS2 and MTD and nothing so far. I had some problems with JFFS2 at first

RE: [uClinux-dev] HELP!!! What does BINFMT_FLAT: reloc outside program mean!

2007-09-25 Thread Gavin Lambert
Quoth Jamie Lokier: But this part of the kernel will relocate incorrectly in border cases with XIP: if (r text_len) /* In text segment */ addr = r + start_code; else/* In data segment */

RE: [uClinux-dev] HELP!!! What does BINFMT_FLAT: reloc outside program mean!

2007-09-25 Thread Gavin Lambert
Quoth Jamie Lokier: It might be useful to see these files, and the exact version of toolchain, and exact command line, and exact compiler messages (with -v option, to show exactly which libraries are used), as there aren't a lot of people reporting this problem. I used to have it quite a lot

RE: [uClinux-dev] HELP!!! What does BINFMT_FLAT: reloc outside program mean!

2007-09-25 Thread Gavin Lambert
Quoth Bob Grimes: I had tried this because of comments such as yours, Gavin (no, I am most certainly NOT blaming you! :) ) in a last attempt to get C++ apps to work, but that killed everything. (Well, okay, not everything, but damn, I couldn't even change or list directories!). Well, it'll

RE: [uClinux-dev] Can't get simple C++ Hello world application to work - BINFMT_FLAT: reloc outside program error

2007-09-24 Thread Gavin Lambert
Quoth Bob Grimes: Okay, I think I accomplished all this, with much gnashing of teeth on this end. At one point, nearly everything was giving me the BINFMT_FLT errors!!! But I've finally gotten it rebuilt, and things seem somewhat better. For example, another program I wrote in C looks like

RE: [uClinux-dev] Can't get simple C++ Hello world application to work - BINFMT_FLAT: reloc outside program error

2007-09-23 Thread Gavin Lambert
Quoth Bob Grimes BINFMT_FLAT: reloc outside program 0x73735f74 (0 - 0xffa52e54/0xd900), killing hello! [...] I've also seen some suggestions about disabling XIP, and I tried to change that in vendors/Freescale/M5329EVB/config.arch, but I didn't see any evidence that it had any

RE: [uClinux-dev] How patches are applied?

2007-09-03 Thread Gavin Lambert
Quoth Claude: I've got an stupid question, I think: Given a uclinux release, how patches are applied? I always have avoided patching code by downloading the latest releases, but I think I should learn how to patch them. This doesn't exactly answer your question, but probably the easiest thing

RE: [uClinux-dev] x86 port? Or easily x86-emulated hardware port?

2007-08-19 Thread Gavin Lambert
Quoth David McCullough: Others have the embedded systems so well oiled it's quicker to write/load/debug directly on the board. Also, if you're testing user mode changes only (and your user code doesn't require being in a fixed directory), then it's easy enough to tftp/ftp something to a RAM

RE: [uClinux-dev] Making msh the default shell?

2007-08-06 Thread Gavin Lambert
Quoth David Spain: Anyone on the list know if its possible to make msh the default shell at boot time rather than sash? And if so, how to go about it? I am using uclinux-2.4.32-uc0. Yes, it's easy -- there's a config option near where you turned on msh in the first place. (You probably also

  1   2   >