Re: [uClinux-dev] Driver appears to be successfully registetered but doesn't appear in /dev

2009-12-17 Thread Mike Frysinger
On Thursday 17 December 2009 11:03:01 David Wooff wrote: would someone mind checking my module initialisation function in case I have missed something? It loads without error and the appropriate message is printed out on the console, buit it does not appear in /dev. you need to create it

Re: [uClinux-dev] Driver appears to be successfully registetered butdoesn't appear in /dev

2009-12-17 Thread Mike Frysinger
On Thursday 17 December 2009 12:11:16 David Wooff wrote: you need to create it yourself with `mknod`, or if you want to utilize the hotplug stack, you have to create some classes/devices using the kobject layer. /dev is not a pseudo file system (ignoring the devtmpfs in 2.6.32) which

Re: [uClinux-dev] Re: [PATCH] NOMMU: add [stack] label to per-process maps output

2009-12-17 Thread Mike Frysinger
On Wed, Dec 16, 2009 at 11:59, David Howells wrote: Mike Frysinger wrote: +             if (vma-vm_start = mm-start_brk +                             vma-vm_end = mm-brk) { Hmmm...  That ought to involve mm-start_stack somewhere...  (Or, more probably, task-stack_start:-/) with MMU

[uClinux-dev] [PATCH v2] NOMMU: add [stack] label to per-process maps output

2009-12-21 Thread Mike Frysinger
than the current output (which is nothing), so screw it. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - use start_stack rather than brk to find the mapping fs/proc/task_nommu.c | 20 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/fs/proc

[uClinux-dev] [PATCH] nommu: implement vmap/vunmap with kmalloc

2009-12-21 Thread Mike Frysinger
git-svn-id: svn://localhost/svn/linux-kernel/tr...@7693 526b6c2d-f592-4532-a319-5dd88ccb003d --- mm/nommu.c | 18 +++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index 8687973..d28ab94 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@

[uClinux-dev] Re: [PATCH] Valid relocation symbol for FLAT format on ARM

2009-12-31 Thread Mike Frysinger
On Sat, Dec 26, 2009 at 11:36, Jun Sun wrote: Apparently newer GCC would generate ANCHOR symbols beyond the end of data/bss segment on ARM CPUs. As a result, the exiting validity checking for relocation symbols in FLAT format will fail. This also fixes a cosmetic error in printk. Text segment

Re: [uClinux-dev] [PATCH] Valid relocation symbol for FLAT format on ARM, v2

2009-12-31 Thread Mike Frysinger
On Thursday 31 December 2009 20:26:45 Jun Sun wrote: when posting updates, you should put the v2 and such inside of the [patch] marker like so: [PATCH v2]. git will remove this automatically when applying. #define flat_old_ram_flag(flags)(flags) -#define

Re: [uClinux-dev] [PATCH] error message when FLAT reloc symbol is invalid, v2

2009-12-31 Thread Mike Frysinger
On Thursday 31 December 2009 20:28:52 Jun Sun wrote: See the attachement. looks good to me, thanks -mike signature.asc Description: This is a digitally signed message part. ___ uClinux-dev mailing list uClinux-dev@uclinux.org

Re: [uClinux-dev] [PATCH] nommu: implement vmap/vunmap with kmalloc

2010-01-06 Thread Mike Frysinger
On Mon, Dec 21, 2009 at 11:44, Mike Frysinger wrote: git-svn-id: svn://localhost/svn/linux-kernel/tr...@7693 526b6c2d-f592-4532-a319-5dd88ccb003d blah, didnt realize i still had this crap. drop the changelog and add: Signed-off-by: Mike Frysinger vap...@gentoo.org -mike

[uClinux-dev] [PATCH 1/2] elf2flt: allow people to always process text relocs even if pic_with_got

2010-01-16 Thread Mike Frysinger
/gmane.linux.hardware.blackfin.toolchain.devel/1121 Signed-off-by: Bernd Schmidt bernds_...@t-online.de Signed-off-by: Mike Frysinger vap...@gentoo.org --- Makefile.in |3 ++- configure| 21 + configure.in | 13 + elf2flt.c|2 +- 4 files changed, 37 insertions(+), 2 deletions(-) diff

[uClinux-dev] [PATCH 2/2] use AS_HELP_STRING for all configure options

2010-01-16 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- configure| 23 ++- configure.in | 18 +- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/configure b/configure index 6884892..2dcbc48 100755 --- a/configure +++ b/configure @@ -1360,8

[uClinux-dev] [PATCH] debug: add a gcc-2 compat tweak

2010-01-21 Thread Mike Frysinger
GCC-2.x has a bug with empty arg expansion in macros. Signed-off-by: Mike Frysinger vap...@gentoo.org --- stubs.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/stubs.h b/stubs.h index 7e5308d..615cab5 100644 --- a/stubs.h +++ b/stubs.h @@ -41,7 +41,7 @@ #define

Re: [uClinux-dev] [PATCH] debug: add a gcc-2 compat tweak

2010-01-21 Thread Mike Frysinger
On Thursday 21 January 2010 20:21:31 Jamie Lokier wrote: Mike Frysinger wrote: GCC-2.x has a bug with empty arg expansion in macros. - fprintf(stderr, %s:%i: fmt, __func__, __LINE__, ## args); \ + fprintf(stderr, %s:%i: fmt, __func__, __LINE__ , ## args); \ Assuming it's what

Re: [uClinux-dev] [PATCH] debug: add a gcc-2 compat tweak

2010-01-23 Thread Mike Frysinger
On Friday 22 January 2010 16:10:08 Jamie Lokier wrote: Mike Frysinger wrote: On Thursday 21 January 2010 20:21:31 Jamie Lokier wrote: Mike Frysinger wrote: GCC-2.x has a bug with empty arg expansion in macros. - fprintf(stderr, %s:%i: fmt, __func__, __LINE__, ## args

Re: [uClinux-dev] where can i download the hush shell tarball ?

2010-02-02 Thread Mike Frysinger
On Wednesday 03 February 2010 00:34:19 wzc0066 wrote: I want to build the hush shell independent. But i can not search the download url. Does anybody tell me the download link? there is no such thing. it's part of busybox. simply get busybox, disable all config options but hush, and presto

Re: [uClinux-dev] uClinux/FDPIC loader on LatticeMico32/Milkymist

2010-02-02 Thread Mike Frysinger
On Monday 01 February 2010 16:08:20 Sébastien Bourdeauducq wrote: Does anyone have experience with developing uClinux/FDPIC loaders? The loader we use in Milkymist [1] (a 100% open source system-on-chip, i.e. ALL Verilog HDL design files are under a free license) is merely crap, requiring

Re: [uClinux-dev] Hi guys, a problem with MTD and SST39VF6401B70 NOR flash

2010-03-06 Thread Mike Frysinger
On Saturday 06 March 2010 12:17:12 Fabio Giovagnini wrote: According to you, it is easier to add jedec entry or it is better to modify cfi_cmdset_0002.c? I'm newbe, so I aks: what could be the trade off between the two solutions? one can be sent upstream (jedec) and one cannot (hacking cmdset

Re: [uClinux-dev] Toolchain for OSX

2010-03-06 Thread Mike Frysinger
On Friday 05 March 2010 17:21:11 Gino Heusdens wrote: In file included from scripts/kconfig/conf.c:14: scripts/kconfig/lkc.h:11:21: error: libintl.h: No such file or directory use a newer kernel or backport the fixes to kconfig that address this you will however hit other problems building a

Re: [uClinux-dev] Strace support on uClinux

2010-03-08 Thread Mike Frysinger
On Monday 08 March 2010 04:40:15 Jamie Lokier wrote: David Howells wrote: Sol Kavy sk...@ubicom.com wrote: Any information regarding strace's ability to follow children in a NOMMU config is greatly apprecaited. strace should work just as well on a NOMMU system as on an MMU system.

[uClinux-dev] [PATCH v2] NOMMU: implement vmap/vunmap with kmalloc

2010-03-09 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - fix up changelog mm/nommu.c | 18 +++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index b9b5cce..61a68d5 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -360,14 +360,26

[uClinux-dev] [PATCH] NOMMU: allow private mappings of read-only devices

2010-03-09 Thread Mike Frysinger
bernds_...@t-online.de Signed-off-by: Mike Frysinger vap...@gentoo.org --- mm/nommu.c | 32 ++-- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index 61a68d5..5767237 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -930,14 +930,6

Re: [uClinux-dev] bzero and bcopy in 20100315 with uClibc on i386

2010-03-24 Thread Mike Frysinger
On Wednesday 24 March 2010 16:42:26 Mike Frysinger wrote: functions exist based purely on how you've configured u-boot. sorry, obviously i mean uClibc. i was reading u-boot e-mails at the same time i wrote this. -mike signature.asc Description: This is a digitally signed message part

Re: [uClinux-dev] bzero and bcopy in 20100315 with uClibc on i386

2010-03-24 Thread Mike Frysinger
On Wednesday 24 March 2010 17:57:12 Dave Rensberger wrote: I just did a quick look into the source last night, and most of the architecture-specific areas of uClibc have definitions bcopy and bzero (x86_64 had them, but not i386). if you're looking under libc/string/arch/, then that doesnt

[uClinux-dev] Re: [PATCH v2] NOMMU: implement vmap/vunmap with kmalloc

2010-03-31 Thread Mike Frysinger
On Wednesday 31 March 2010 13:11:24 David Howells wrote: How about the attached patch instead? I'd rather not make vmap() generally available in NOMMU mode since it can't be implemented in NOMMU mode. Yes, vmap() can take a copy of the pages it is given, but you can't guarantee that's the

[uClinux-dev] Re: [PATCH v2] NOMMU: implement vmap/vunmap with kmalloc

2010-03-31 Thread Mike Frysinger
On Wednesday 31 March 2010 19:07:54 David Howells wrote: David Howells wrote: how about putting this implementation into like vmap_nommu() and only rewriting vmap() to vmap_nommu() when we know it's safe ? such as this firmware case ? Well, I'd argue it's _not_ vmap(), so it

Re: [uClinux-dev] Creating a new arch

2010-04-08 Thread Mike Frysinger
On Friday 09 April 2010 00:36:38 David McCullough wrote: Jivin Ben Kloosterman lays it down ... Fork is the big question mark , speaking of which why didn't uclib support fork and instead of copy on write ( like early unix fork) just change fork to copy on fork or are the API differences

Re: [uClinux-dev] Creating a new arch

2010-04-12 Thread Mike Frysinger
On Monday 12 April 2010 22:30:01 Ben Kloosterman wrote: On Fri, Apr 09, 2010 at 10:48:07AM +0800, Ben Kloosterman wrote: Copy on fork is expensive, and if you are going to do fork+exec then why bother copying at all? vfork+exec works fine for that. fork is supposed to be a cheap operation.

Re: [uClinux-dev] [PATCH ld-elf2flt] unlink temporary linker scripts

2010-04-13 Thread Mike Frysinger
On Tuesday 13 April 2010 04:38:02 Philippe De Muyter wrote: Everytime I recompile uClinux-dist for m68k using the uclinux-tools-20080626 toolchain, my /tmp directory is filled with a new bunch of flt-XX files, which are not unlinked after usage. this was fixed a while ago in the elf2flt

Re: [uClinux-dev] hush shell can not identify grave accent ( ` ) ?

2010-04-20 Thread Mike Frysinger
On Tuesday 20 April 2010 05:41:28 wzc0066 wrote: Hush shell is used in my romfs, but the command can not run correctly: *# echo `pwd`* It seems hush shell can not identify grave accent ( ` ) Does anybody know how to make up a defect ? either you're using an old version of busybox and

[uClinux-dev] [PATCH] ld-elf2flt: tweak verbose output

2010-05-10 Thread Mike Frysinger
The sed debug showed incorrect syntax for deletions, and the program exec debug missed output redirection. Signed-off-by: Mike Frysinger vap...@gentoo.org --- ld-elf2flt.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ld-elf2flt.c b/ld-elf2flt.c index 227c90b

Re: [uClinux-dev] [PATCH] : Avoid filename TASK_SIZE test in do_getname() when no MMU

2010-05-20 Thread Mike Frysinger
dont know if David subscribes to this list ... On Thursday 20 May 2010 04:14:45 Philippe De Muyter wrote: Hi Greg, -- Avoid filename TASK_SIZE test in do_getname() when no MMU. Without MMU, filenames can be anywhere in memory. It is thus wrong to check that filename is before TASK_SIZE

[uClinux-dev] [PATCH 2/2] mtd: physmap: allow maps to be read-only mapped

2010-05-23 Thread Mike Frysinger
-by: Bernd Schmidt bernds_...@t-online.de Signed-off-by: Mike Frysinger vap...@gentoo.org --- Note: this does semi-undo recent changes that punted the prototypes for these common mtd_bdi's ... drivers/mtd/maps/physmap.c |2 ++ drivers/mtd/mtdcore.c |4 include/linux/mtd

[uClinux-dev] Re: [PATCH v2] NOMMU: add [stack] label to per-process maps output

2010-05-23 Thread Mike Frysinger
On Tuesday 22 December 2009 10:58:10 David Howells wrote: Okay. I've adjusted the desciption of the patch a little (see attached). David --- From: Mike Frysinger vap...@gentoo.org Subject: [PATCH] NOMMU: Add '[stack]' label to /proc/pid/maps output Add support to the NOMMU /proc/pid

Re: [uClinux-dev] [PATCH] : Avoid filename TASK_SIZE test in do_getname() when no MMU

2010-05-25 Thread Mike Frysinger
On Sunday 23 May 2010 21:29:50 Greg Ungerer wrote: David Howells wrote: Geert Uytterhoeven ge...@linux-m68k.org wrote: Are these also problematic? None of these are problematic for NOMMU FRV because there I set: #define TASK_SIZE __UL(0xUL) I

Re: [uClinux-dev] [PATCH] : Avoid filename TASK_SIZE test in do_getname() when no MMU

2010-05-25 Thread Mike Frysinger
On Tuesday 25 May 2010 04:40:01 Philippe De Muyter wrote: On Tue, May 25, 2010 at 11:19:43AM +1000, Greg Ungerer wrote: Philippe De Muyter wrote: On Mon, May 24, 2010 at 11:29:50AM +1000, Greg Ungerer wrote: [...] +#else +#define TASK_SIZE(0xUL) +#endif Because

[uClinux-dev] [PATCH] FLAT: fix unmap len in load error path

2010-05-26 Thread Mike Frysinger
The data chunk is mmaped with 'len' which remains unchanged, so use that when unmapping in the error path rather than trying to recalculate (and incorrectly so) the value used originally. Signed-off-by: Mike Frysinger vap...@gentoo.org --- fs/binfmt_flat.c |2 +- 1 files changed, 1

[uClinux-dev] [PATCH] FLAT: allow arches to declare a larger alignment than the slab

2010-05-26 Thread Mike Frysinger
FLAT libraries. The nommu arches might want to check to see if they need to declare this in their headers as well ... Signed-off-by: Jie Zhang jie.zh...@analog.com Signed-off-by: Mike Frysinger vap...@gentoo.org --- arch/blackfin/include/asm/flat.h |2 ++ fs/binfmt_flat.c

[uClinux-dev] Re: [PATCH] FLAT: allow arches to declare a larger alignment than the slab

2010-05-26 Thread Mike Frysinger
On Tue, May 25, 2010 at 17:07, Paul Mundt wrote: On Tue, May 25, 2010 at 03:24:27PM -0400, Mike Frysinger wrote: This stems from the alignment usage in the FLAT loader.  The behavior before was that FLAT would default to ARCH_SLAB_MINALIGN only if it was defined, and this was only defined

[uClinux-dev] [PATCH 1/2 v2] FLAT: split the stack data alignments

2010-05-26 Thread Mike Frysinger
fixes a swath of gcc tests which try to force larger alignment values but randomly fail when the FLAT loader fails to deliver. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - split changes document better fs/binfmt_flat.c | 23 +++ 1 files changed, 15

[uClinux-dev] [PATCH 2/2 v2] FLAT: tweak default stack alignment

2010-05-26 Thread Mike Frysinger
, this is kind of hokey that the FLAT is semi-abusing defines it shouldn't. But let's ignore that and simply ignore min alignment values of 0. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - split changes document better fs/binfmt_flat.c |2 +- 1 files changed, 1 insertions

[uClinux-dev] Re: [PATCH] FLAT: allow arches to declare a larger alignment than the slab

2010-05-26 Thread Mike Frysinger
On Wed, May 26, 2010 at 02:59, Geert Uytterhoeven wrote: On Wed, May 26, 2010 at 04:23, Jie Zhang wrote: On 05/26/2010 07:17 AM, Mike Frysinger wrote: i do not believe that is the reason for this, but unfortunately Jie is about the only one atm who knows the inner details as for why shared

[uClinux-dev] Re: [PATCH] FLAT: allow arches to declare a larger alignment than the slab

2010-05-26 Thread Mike Frysinger
On Wed, May 26, 2010 at 03:33, Paul Mundt wrote: On Wed, May 26, 2010 at 03:23:02AM -0400, Mike Frysinger wrote: On Wed, May 26, 2010 at 02:59, Geert Uytterhoeven wrote: From looking at linux/flat.h, it looks like the FLAT binary format doesn't contain any alignment information? So if I

[uClinux-dev] Re: [PATCH] FLAT: allow arches to declare a larger alignment than the slab

2010-05-26 Thread Mike Frysinger
On Tue, May 25, 2010 at 22:23, Jie Zhang wrote: On 05/26/2010 07:17 AM, Mike Frysinger wrote: i do not believe that is the reason for this, but unfortunately Jie is about the only one atm who knows the inner details as for why shared FLAT libraries requires 0x20 rather than just 0x4 alignment

[uClinux-dev] Re: [PATCH] FLAT: allow arches to declare a larger alignment than the slab

2010-05-26 Thread Mike Frysinger
On Wed, May 26, 2010 at 03:48, Paul Mundt wrote: On Tue, May 25, 2010 at 07:17:16PM -0400, Mike Frysinger wrote: to be sure, we dont need 0x20 alignment in general.  i just figured kill two birds with one patch here.  and Blackfin is already setting ARCH_KMALLOC_MINALIGN to cacheline size

[uClinux-dev] Re: [Uclinux-dist-devel] [PATCH 1/2 v2] FLAT: split the stack data alignments

2010-06-01 Thread Mike Frysinger
On Thu, May 27, 2010 at 04:24, Michal Simek wrote: Mike Frysinger wrote: The stack and data have different alignment requirements, so don't force them to wear the same shoe.  Increase the data alignment to match that which the elf2flt linker script has always been using: 0x20 bytes.  Not only

[uClinux-dev] Re: [PATCH 1/2 v2] FLAT: split the stack data alignments

2010-06-01 Thread Mike Frysinger
On Wed, May 26, 2010 at 04:45, Mike Frysinger wrote: The stack and data have different alignment requirements, so don't force them to wear the same shoe.  Increase the data alignment to match that which the elf2flt linker script has always been using: 0x20 bytes.  Not only does this bring

Re: [uClinux-dev] run busybox's depmod.pl separately from the kernel

2010-06-02 Thread Mike Frysinger
On Monday, May 31, 2010 00:06:48 David McCullough wrote: Jivin Jate Sujjavanich lays it down ... In the modules_install target, the current top level Makefile sets DEPMOD to user/busybox/depmod.pl. The latest 2.4/2.6 kernels try to run this perl script as depmod, but it's not compatible

Re: [uClinux-dev] Moving to a newer version of busybox

2010-08-05 Thread Mike Frysinger
On Thursday, August 05, 2010 22:47:26 Dave Rensberger wrote: How difficult is it to drop a newer version of Busybox into uClibc-dist? uClinux-dist I assume it's more difficult than a typical user app because of the interaction with Busybox's own Kconfig system. Is there a straightforward

[uClinux-dev] Re: [Uclinux-dist-devel] [PATCH 1/2] mtd: physmap: add physmap_unmapped_area() for no-mmu XIP

2010-08-09 Thread Mike Frysinger
On Wed, Aug 4, 2010 at 05:33, David Woodhouse wrote: On Sat, 2010-06-12 at 17:26 +0300, Artem Bityutskiy wrote: On Sun, 2010-05-23 at 03:30 -0400, Mike Frysinger wrote: Currently, romfs XIP doesn't work in flash memory (the kernel crashes with a null pointer dereference).  The problem

[uClinux-dev] Re: [Uclinux-dist-devel] [PATCH 1/2] mtd: physmap: add physmap_unmapped_area() for no-mmu XIP

2010-08-09 Thread Mike Frysinger
On Sun, Aug 8, 2010 at 07:33, David Woodhouse wrote: On Sat, 2010-08-07 at 19:26 -0400, Mike Frysinger wrote: if we delve a bit, what you're referring to is only possible i think if this change is merged (we posted this back in Jan w/no feedback):   mtd-physmap: add support users can assign

[uClinux-dev] [PATCH] ld-elf2flt.c: fix runtime relocatable support

2010-08-16 Thread Mike Frysinger
Kilbane st...@whitecrow.demon.co.uk Signed-off-by: Mike Frysinger vap...@gentoo.org --- ld-elf2flt.c | 76 +++-- 1 files changed, 36 insertions(+), 40 deletions(-) diff --git a/ld-elf2flt.c b/ld-elf2flt.c index 707e9e1..e4cb073 100644 --- a/ld

Re: [uClinux-dev] [PATCH] ld-elf2flt.c: fix runtime relocatable support

2010-08-16 Thread Mike Frysinger
On Tue, Aug 17, 2010 at 12:26 AM, David McCullough wrote: Applied, damn; your new mcafee overlords making you fast or something ? :) -mike ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This

Re: [uClinux-dev] [PATCH] m68knommu : Fix strace support for 68328/68360

2010-08-17 Thread Mike Frysinger
On Tue, Aug 17, 2010 at 11:11 AM, Philippe De Muyter wrote:  do_trace: -       movel   #-ENOSYS,%sp@(PT_OFF_D0)        /* needed for strace*/ +       movel   #-ENOSYS,%sp@(PT_OFF_D0) /* needed for strace*/        subql   #4,%sp -1:     movel   %d0,%sp@(PT_OFF_D0)             /* save the

[uClinux-dev] nommu vm_get_page_prot and framebuffer drivers in 2.6.36-rc1

2010-08-18 Thread Mike Frysinger
the recent commit c07fbfd17e614a76b194f371c5331e21e6cffb54 added a call to vm_get_page_prot() in drivers/video/fbmem.c. but this function doesnt exist for nommu. so obviously we get: ERROR: vm_get_page_prot [drivers/video/fb.ko] undefined! looking a bit through mm/, i guess we should stub this

Re: [uClinux-dev] [PATCH 1/3] MPU support

2010-08-22 Thread Mike Frysinger
as it stands, this breaks all non-arm NOMMU ports. the patch will need to be broken up into arm-specific and arm-independent parts. the common code changes will need justification as to why they exist at all. we're doing MPU on Blackfin/nommu today without any of these. we support pretty

Re: [uClinux-dev] [PATCH 1/3] MPU support

2010-08-24 Thread Mike Frysinger
On Tuesday, August 24, 2010 18:06:14 Steve Longerbeam wrote: On 08/23/2010 01:18 PM, Mike Frysinger wrote: On Monday, August 23, 2010 14:16:30 Steve Longerbeam wrote: sorry, I see CONFIG_MPU under blackfin in the 888 release. I'm not familiar with the blackfin arch, but my patches

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

2010-08-24 Thread Mike Frysinger
On Tuesday, August 24, 2010 19:09:43 Gavin Lambert wrote: 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

Re: [uClinux-dev] [PATCH 1/3] MPU support

2010-08-26 Thread Mike Frysinger
On Thursday, August 26, 2010 14:19:41 Steve Longerbeam wrote: The ARM MPU can do something similar. MPU regions can overlap, and a simple priority scheme is used to decide which region's permissions apply to a memory access that overlaps (higher numbered regions have higher priority). So on

Re: [uClinux-dev] [PATCH 1/3] MPU support

2010-08-26 Thread Mike Frysinger
On Thursday, August 26, 2010 18:45:08 Steve Longerbeam wrote: On 08/26/2010 12:04 PM, Mike Frysinger wrote: On Thursday, August 26, 2010 14:19:41 Steve Longerbeam wrote: The ARM MPU can do something similar. MPU regions can overlap, and a simple priority scheme is used to decide which

Re: [uClinux-dev] [PATCH 1/3] MPU support

2010-08-26 Thread Mike Frysinger
On Thursday, August 26, 2010 21:40:13 Steve Longerbeam wrote: On 08/26/2010 06:07 PM, Mike Frysinger wrote: have you done performance measurements to see the overhead with the MPU turned on in your scheme compared to off ? doing something like a ffmpeg decode to another file

Re: [uClinux-dev] [PATCH 1/3] MPU support

2010-08-27 Thread Mike Frysinger
On Friday, August 27, 2010 11:08:37 vi jaya wrote: Hi steve, please do not top post Recently we have purchased LPC2468 evaluation board from embedded artists.Already that board is preloaded with uclinux on it .can you please guide me how to configure the SPI,UART,I2C,ETHERNET,WLAN,SDCARD and

Re: [uClinux-dev] [PATCH 00/15] Make strace work with vfork on uClinux

2010-09-12 Thread Mike Frysinger
On Thursday, April 22, 2010 18:48:26 Jamie Lokier wrote: Mike Frysinger wrote: well, they're broken past an execve(). before that, they work fine. i had an item to get that fixed, but since i couldnt trace forks in the past, i never really cared. strace without -f is still quite useful

Re: [uClinux-dev] How to echo binary data in sash or hush shell

2010-10-05 Thread Mike Frysinger
On Tuesday, October 05, 2010 05:17:53 Cao Sy Le wrote: Ubuntu (bash shell) like this: echo at+cmgs=\123456\$'\r\n' and it write (at+cmgs=123456crlf) to modem But on sash and hush shell I couldn't do the same. Plz tell me some way to echo binary data on those shell. use the standard octal

[uClinux-dev] Re: [Uclinux-dist-devel] [PATCH] vendors/Makefile: make v3.82 fix

2010-10-19 Thread Mike Frysinger
i dont like this duplication of targets. i committed this instead: --- vendors/Makefile(revision 9856) +++ vendors/Makefile(working copy) @@ -25,8 +25,9 @@ dir_v := $(VEND)/$(CONFIG_VENDOR)/$(CONF # Note: the all and clean targets are not normally used, # since user/Makefile jumps

Re: [uClinux-dev] [RFC][PATCH] m68knommu stack checker

2010-10-25 Thread Mike Frysinger
On Mon, Oct 25, 2010 at 5:27 PM, Jate Sujjavanich wrote: I implemented this in arch/m68k*. I patched fs/proc/base.c, and I'm not sure entirely sure if it's the proper place. this isnt really I believe a stack checker for threads would need to be implemented inside of libpthreads. it

Re: [uClinux-dev] [RFC][PATCH] m68knommu stack checker

2010-10-26 Thread Mike Frysinger
On Monday, October 25, 2010 17:27:53 Jate Sujjavanich wrote: +{ + struct mm_struct *mm = get_task_mm(task); + + unsigned long stack_length = mm-start_stack - mm-context.end_stack; + unsigned char *stack_first_data = + (unsigned char *)mm-context.end_stack; +

Re: [uClinux-dev] Compiler question

2010-11-12 Thread Mike Frysinger
On Friday, November 12, 2010 09:55:30 Philip Nye wrote: In this situation is there any benefit to carrying out the second compiler pass? yes http://embedded.gentoo.org/handbook/?part=1chap=2#doc_chap3 What about C++ - can that be built with the first stage compiler? no -mike signature.asc

[uClinux-dev] [PATCH] elf2flt.ld: give .note.ABI-tag its own output section

2010-12-15 Thread Mike Frysinger
anything from it. But tools expect to find a dedicated section in ELFs which the current section merge prevents. So give .note.ABI-tag its own output section so gdb can locate and use it. This shouldn't change the FLAT files produced in any way. Signed-off-by: Mike Frysinger vap...@gentoo.org

Re: [uClinux-dev] [PATCH] elf2flt.ld: give .note.ABI-tag its own output section

2010-12-16 Thread Mike Frysinger
On Wednesday, December 15, 2010 20:40:14 David McCullough wrote: I thought that if it's not needed in the flat file, perhaps you should have put it lower in the ld script like the .debug sections etc, that way it will not get pushed into the text/data of the flat executable but should still

Re: [uClinux-dev] [PATCH] elf2flt.ld: give .note.ABI-tag its own output section

2010-12-16 Thread Mike Frysinger
On Thursday, December 16, 2010 16:56:56 David McCullough wrote: On Wednesday, December 15, 2010 20:40:14 David McCullough wrote: I thought that if it's not needed in the flat file, perhaps you should have put it lower in the ld script like the .debug sections etc, that way it will not

Re: [uClinux-dev] ftpd

2011-01-05 Thread Mike Frysinger
On Wed, Jan 5, 2011 at 5:32 PM, Angelo Dureghello wrote: i am trying to have ftpd running on a Coldfire board, but it does not start ftpd -D -A crash and terminate immediately, without any message. What are the pre-requisite for it ? I have now added tinylogin with but still i cannot start

Re: [uClinux-dev] git/svn/... repo

2011-01-08 Thread Mike Frysinger
On Sat, Jan 8, 2011 at 8:21 AM, Robson Roberto Souza Peixoto wrote: Where's the code? there are only tarball snapshots I'd like to study the source of uClinux, but a I did not find the git/svn/... repo. there are no public scm repos -mike ___

[uClinux-dev] [PATCH 1/2] NOMMU: new vcoalesce helper function

2011-01-11 Thread Mike Frysinger
We can't support vmap on NOMMU systems, so add a new vcoalesce function which combines maps via kmalloc. A bit more overhead, but at least it works. For MMU systems, vcoalesce simply redirects to vmap. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/linux/vmalloc.h |3 +++ mm

[uClinux-dev] [PATCH 2/2] firmware loader: use vcoalesce for NOMMU

2011-01-11 Thread Mike Frysinger
NOMMU parts can't support vmap, so use vcoalesce instead. Signed-off-by: Mike Frysinger vap...@gentoo.org --- drivers/base/firmware_class.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 40af43e

Re: [uClinux-dev] [PATCH 1/2 uClinux-dist] lib/libxml2: Use correct configure switches

2011-01-25 Thread Mike Frysinger
On Tue, Jan 25, 2011 at 09:31, Tobias Klauser wrote: Use USE_WITH instead of USE_ENABLE helper as these configure options are enabled/disabled using --with-package/--without-package according to ./configure --help and also indicated by the following warning: configure: WARNING: unrecognized

Re: [uClinux-dev] [PATCH 2/2 uClinux-dist] lib/libxml2: Allow to build a minimally sized libxml2

2011-01-25 Thread Mike Frysinger
On Tue, Jan 25, 2011 at 09:31, Tobias Klauser wrote: libxml2 can be compiled in a minimum version using the --with-minimum configure flag for systems with memory constraints. This patch allows to select the minimal configuration in Kconfig. thanks ... ive committed this now too -mike

Re: [uClinux-dev] usleep in uClibc/uClinux

2011-03-08 Thread Mike Frysinger
On Tue, Mar 8, 2011 at 9:14 AM, Drasko DRASKOVIC wrote: in uClibc/include/unistd.h I can see : #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED /* Set an alarm to go off (generating a SIGALRM signal) in VALUE   microseconds.  If INTERVAL is nonzero, when the alarm goes off, the   timer

Re: [uClinux-dev] Hash functions

2011-03-08 Thread Mike Frysinger
On Tue, Mar 8, 2011 at 11:52 AM, Drasko DRASKOVIC wrote: I want to allocate a certain numbers on skbuf structures in one module, and free them later when they have been used. What would be the best way to keep references to these skbuffs in my driver ? networking questions are probably best

[uClinux-dev] Re: [PATCH] NOMMU: Work around the lack of vmap()/vunmap() in firmware_loading_store() [ver #2]

2011-03-17 Thread Mike Frysinger
On Thu, Apr 8, 2010 at 09:51, David Howells wrote: Work around the lack of vmap()/vunmap() in firmware_loading_store() when operating in NOMMU mode.  vmap() cannot be implemented as there's no virtual mapping available. Instead, in NOMMU mode, make available a function (vcoalesce()) that can

[uClinux-dev] [PATCH] NOMMU: support SMP dynamic percpu_alloc

2011-03-22 Thread Mike Frysinger
-by: Mike Frysinger vap...@gentoo.org --- include/linux/vmalloc.h | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 81f8622..01bbeb4 100644 --- a/include/linux/vmalloc.h +++ b/include/linux

[uClinux-dev] Re: [uclinux-dist-devel] [PATCH] NOMMU: support SMP dynamic percpu_alloc

2011-03-23 Thread Mike Frysinger
On Wed, Mar 23, 2011 at 08:37, Paul Mundt wrote: Looks ok to me. I've got a couple other fixes I'm working on at the moment, so I'll roll this in to my nommu tree and send it along. are you picking up nommu fixes in general now ? there's a long standing issue of the firmware subdir not working

[uClinux-dev] Re: [uclinux-dist-devel] [PATCH] NOMMU: support SMP dynamic percpu_alloc

2011-03-23 Thread Mike Frysinger
On Wed, Mar 23, 2011 at 8:06 PM, David Howells wrote: Mike Frysinger vap...@gentoo.org wrote: but David seems to be afk for a while ? Yeah...  I moved house and then we had to redecorate and stuff, and whilst all ah, np that was going on, my FRV board has been locked away in storage. i can

[uClinux-dev] Re: [PATCH] NOMMU: support SMP dynamic percpu_alloc

2011-03-23 Thread Mike Frysinger
On Wed, Mar 23, 2011 at 8:20 PM, David Howells wrote: Mike Frysinger wrote: The percpu code requires more functions to be implemented in the mm core which nommu currently does not provide.  So add inline implementations since these are largely meaningless on nommu systems. Under what

[uClinux-dev] Re: [PATCH] NOMMU: Work around the lack of vmap()/vunmap() in firmware_loading_store() [ver #2]

2011-03-23 Thread Mike Frysinger
On Thu, Apr 8, 2010 at 09:51, David Howells wrote: Work around the lack of vmap()/vunmap() in firmware_loading_store() when operating in NOMMU mode.  vmap() cannot be implemented as there's no virtual mapping available. Instead, in NOMMU mode, make available a function (vcoalesce()) that can

[uClinux-dev] [PATCH] NOMMU: implement access_remote_vm

2011-03-25 Thread Mike Frysinger
Recent vm changes brought in a new function which the core procfs code utilizes. So implement it for nommu systems too to avoid link failures. Signed-off-by: Mike Frysinger vap...@gentoo.org --- mm/nommu.c | 52 +++- 1 files changed, 39

[uClinux-dev] [PATCH 1/2 v2] NOMMU: new vcoalesce helper function

2011-03-28 Thread Mike Frysinger
We can't support vmap on NOMMU systems, so add a new vcoalesce function which combines maps via kmalloc. A bit more overhead, but at least it works. For MMU systems, vcoalesce simply redirects to vmap. Signed-off-by: Mike Frysinger vap...@gentoo.org --- v2 - fix MMU version of vcoalesce

Re: [uClinux-dev] Shared libraries + CVS

2011-03-31 Thread Mike Frysinger
On Thu, Mar 31, 2011 at 7:33 PM, Paul McGougan wrote: And finally, uclinux.org CVS seems way out-of-date compared to the latest uClinux-dist releases, has the public source control gone away altogether, or just moved elsewhere? the public cvs has never really been a public cvs. more like when

Re: [uClinux-dev] Shared libraries + CVS

2011-03-31 Thread Mike Frysinger
On Thu, Mar 31, 2011 at 8:10 PM, David McCullough wrote: Jivin Paul McGougan lays it down ... On 1/04/2011 9:33 AM, Paul McGougan wrote:       I tracked the issue back to a change that's been made to uClibc between version 0.9.26 and 0.9.27 (so this problem would appear to affect every

Re: [uClinux-dev] Shared libraries + CVS

2011-03-31 Thread Mike Frysinger
On Thu, Mar 31, 2011 at 8:36 PM, Greg Ungerer wrote: On 01/04/11 10:07, David McCullough wrote: Jivin Mike Frysinger lays it down ... On Thu, Mar 31, 2011 at 7:33 PM, Paul McGougan wrote: And finally, uclinux.org CVS seems way out-of-date compared to the latest uClinux-dist releases, has

Re: [uClinux-dev] Managing users and groups

2011-04-01 Thread Mike Frysinger
On Fri, Apr 1, 2011 at 10:03 AM, Simon V Chamlian wrote: Is it possible to manage users and groups under ucLinux (/etc/passwd and /etc/group) ? yes -mike ___ uClinux-dev mailing list uClinux-dev@uclinux.org

[uClinux-dev] [PATCH] ld-elf2flt: do not alias -v to --verbose

2011-04-02 Thread Mike Frysinger
-by: Mike Frysinger vap...@gentoo.org --- ld-elf2flt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ld-elf2flt.c b/ld-elf2flt.c index 6b8853e..b8b02fd 100644 --- a/ld-elf2flt.c +++ b/ld-elf2flt.c @@ -453,7 +453,7 @@ static void parse_args(int argc, char **argv

[uClinux-dev] Re: [PATCH] binfmt_flat: missing argv table

2011-06-15 Thread Mike Frysinger
On Wed, Jun 15, 2011 at 03:30, Yoshinori Sato wrote: put_user is multiple times evalute on argument (in asm-generic/uaccess.h). So this code building argv table include gabage. NAK. asm-generic/uaccess.h is broken. i posted some fixes some time ago to lkml for the header to clean it all up,

Re: [uClinux-dev] [PATCH] mtd: clean up uclinux.c map driver

2012-05-15 Thread Mike Frysinger
On Tue, May 15, 2012 at 12:08 AM, g...@snapgear.com wrote: . make the struct uclinux_ram_map static NAK: this breaks Blackfin systems. we specifically don't want this to be static. it should probably get a comment added above it saying as much. -mike

Re: [uClinux-dev] [PATCH] mtd: clean up uclinux.c map driver

2012-05-15 Thread Mike Frysinger
On Tue, May 15, 2012 at 8:45 PM, Greg Ungerer g...@snapgear.com wrote: On 16/05/12 01:57, Mike Frysinger wrote: On Tue, May 15, 2012 at 12:08 AM,g...@snapgear.com  wrote: . make the struct uclinux_ram_map static NAK: this breaks Blackfin systems.  we specifically don't want

Re: [uClinux-dev] [PATCH] mtd: clean up uclinux.c map driver

2012-05-15 Thread Mike Frysinger
On Tue, May 15, 2012 at 10:55 PM, Greg Ungerer g...@snapgear.com wrote: On 16/05/12 12:42, Mike Frysinger wrote: On Tue, May 15, 2012 at 8:45 PM, Greg Ungererg...@snapgear.com  wrote: On 16/05/12 01:57, Mike Frysinger wrote: On Tue, May 15, 2012 at 12:08 AM,g...@snapgear.com  Ã¡wrote: . make

Re: [uClinux-dev] [PATCH] mtd: clean up uclinux.c map driver

2012-05-16 Thread Mike Frysinger
On Wed, May 16, 2012 at 7:49 AM, Greg Ungerer g...@snapgear.com wrote: On 05/16/2012 03:02 PM, Mike Frysinger wrote: On Tue, May 15, 2012 at 10:55 PM, Greg Ungererg...@snapgear.com  wrote: On 16/05/12 12:42, Mike Frysinger wrote: On Tue, May 15, 2012 at 8:45 PM, Greg Ungererg

Re: [uClinux-dev] BF526 EZBRD / Linux version 3.0.8-ADI-2011R1 : suspend to mem?

2013-01-26 Thread Mike Frysinger
suspend to ram was tested on all our parts and known to work you should use the ADI ez forums for questions -mike On Wed, Aug 29, 2012 at 1:08 PM, g...@novadsp.com g...@novadsp.com wrote: Apologies if this is the wrong list. Directions appreciated if so. I'm running Linux version

<    1   2   3   4