[uClinux-dev] write peripheral user

2007-07-26 Thread Sebastien Baldacchino
Hi all,

 

I am new with uclinux. I would like to read and write in a peripheral
that I have put in uclinux. I use the kernel 2.4.

I have seen on internet that uclinux has no MMU. So I think to I can
write and read directly to the physical address of my peripheral.

Is it possible to use this code to read and write directly to the
physical address of my register?

 

char *ptr = (char *)0x3000;
*ptr=0x01;

 

 

Is there a tutorial or anything else to write in a peripheral user?

 

Thank you for your help,

Sebastien

 

 

 

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Re: [uClinux-dev] No PowerPC targets?

2007-07-26 Thread robert lazarski
I bottom post.

On 7/26/07, Robert S. Grimes [EMAIL PROTECTED] wrote:
 Probably because most PowerPC users seem to go full Linux and get the
 virtual memory benefits.  It's what I would do.

 Regards,
 -Bob


By full linux, do you mean like 2.6.22 from kernel.org ? If so, pardon
my newbie question but I'm not sure how to get a .config for cross
compiling 85xx so I can run menuconfig . I can get busybox and such
from u-boot ELDK so really what I need is a recent kernel which has
the drivers I need. I got a commercial kernel but its only 2.6.16 :-(
.

Thanks!
Robert

 robert lazarski wrote:
  Is there some sort of philosophical  reason why uClinux doesn't have any
  PowerPC targets? Lack of interest? We've been lurking on this list and seen 
  a
  great community, yet we're not aware of any active community-based PowerPC
  distro. If curious, We're developing for the MPC8548 and we're looking for a
  community based 2.6.20 or later kernel for it based on the CDS reference.
 
  Robert
  ___
  uClinux-dev mailing list
  uClinux-dev@uclinux.org
  http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
  This message was resent by uclinux-dev@uclinux.org
  To unsubscribe see:
  http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 
 
 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] GCC Optimization

2007-07-26 Thread amol sukerkar

Hello,
   How do I change the compiler optimization in uClinux from -O2 to
-O0? Thanks!

AM
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Re: [uClinux-dev] GCC Optimization

2007-07-26 Thread David McCullough

Jivin amol sukerkar lays it down ...
 Hello,
How do I change the compiler optimization in uClinux from -O2 to
 -O0? Thanks!

Kernel or User ?  Which versions ?

Normally you can do this by editing your config.arch,  some targets
allow you to set LOPT and UOPT for library and user optimisations,

Cheers,
Davidm

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] write peripheral user

2007-07-26 Thread Greg Ungerer

Hi Daniele, Sebastien,

Daniele Ziglioli wrote:

Sebastien Baldacchino ha scritto:
I am new with uclinux. I would like to read and write in a peripheral 
that I have put in uclinux. I use the kernel 2.4.


I have seen on internet that uclinux has no MMU. So I think to I can 
write and read directly to the physical address of my peripheral.


Is it possible to use this code to read and write directly to the 
physical address of my register?


char *ptr = (char *)0x3000;
*ptr=0x01;

Is there a tutorial or anything else to write in a peripheral user?


yes you can, but it's a good practice to use volatile keyword to avoid 
compiler optimization issue

when access to hw registers.

Example:
#define CS1_BASE(0x4100)
#define CPGA_LCD_D_W *((volatile unsigned char *)(CS1_BASE+0x100))


Some uClinux platforms by default will trap on this sort of thing.
For example many of the ColdFire CPU's can trap on accesses to certain
address regions when running in user mode. Typically it can be disabled
though.

Regards
Greg




Greg Ungerer  --  Chief Software Dude   EMAIL: [EMAIL PROTECTED]
Secure Computing CorporationPHONE:   +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] [PATCH] NOMMU: Fix SYSV IPC SHM

2007-07-26 Thread David Howells
From: David Howells [EMAIL PROTECTED]

Fix the SYSV IPC SHM to work with the changes applied by the new fault handler
patches when CONFIG_MMU=n.

Signed-off-by: David Howells [EMAIL PROTECTED]
---

 fs/ramfs/file-nommu.c |7 ++-
 ipc/shm.c |2 ++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c
index cad2b7a..237fe8b 100644
--- a/fs/ramfs/file-nommu.c
+++ b/fs/ramfs/file-nommu.c
@@ -295,5 +295,10 @@ unsigned long ramfs_nommu_get_unmapped_area(struct file 
*file,
  */
 int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
 {
-   return vma-vm_flags  VM_SHARED ? 0 : -ENOSYS;
+   if (!(vma-vm_flags  VM_SHARED))
+   return -ENOSYS;
+
+   file_accessed(file);
+   vma-vm_ops = generic_file_vm_ops;
+   return 0;
 }
diff --git a/ipc/shm.c b/ipc/shm.c
index d0259e3..d88ac5a 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -268,7 +268,9 @@ static int shm_mmap(struct file * file, struct 
vm_area_struct * vma)
if (ret != 0)
return ret;
sfd-vm_ops = vma-vm_ops;
+#ifdef CONFIG_MMU
BUG_ON(!sfd-vm_ops-fault);
+#endif
vma-vm_ops = shm_vm_ops;
shm_open(vma);
 

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] uClinux supports shared memory IPC?

2007-07-26 Thread David Howells
Allen Yang [EMAIL PROTECTED] wrote:

  What was errno?
 
 No error/warning messages.
 From the return value (-1), I know shared memory creation failed.

Yes, but without knowing the error put in errno by shmget(), it's difficult to
say why it failed.

 shmget(4096, 4096, IPC_CREAT|0x1b6|0666) = -1 EINVAL (Invalid argument)

strace shows that error EINVAL was returned.

 I tried putting printk() in do_shmat(), sys_shmget(), shm_init() in
 ipc/shm.c. I found that shm_init() was called, but do_shmat() and
 sys_shmget() were NOT called.

Hmmm...  Can you put a few printk()'s in arch/m68knommu/kernel/sys_m68k.c, in
sys_ipc()?  Can you print the call ID on entry, and put a printk() by each
error return so that you can tell which it returns through?

David
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] No PowerPC targets?

2007-07-26 Thread Richard Klingler

Wolfang Denk's site is the place to go for PowerPC:

   http://www.denx.de/


cheers
rick



robert lazarski schrieb:

They do, but only 2.6.14 ;-( .

On 7/26/07, Andrew Webster [EMAIL PROTECTED] wrote:
  

Try Freescale's web site, they probably have a linux distro (LTIB) for that
part.

Andrew



On 7/26/07, robert lazarski [EMAIL PROTECTED] wrote:


I bottom post.

On 7/26/07, Robert S. Grimes [EMAIL PROTECTED]  wrote:
  

Probably because most PowerPC users seem to go full Linux and get the
virtual memory benefits.  It's what I would do.

Regards,
-Bob



By full linux, do you mean like 2.6.22 from kernel.org ? If so, pardon
my newbie question but I'm not sure how to get a .config for cross
compiling 85xx so I can run menuconfig . I can get busybox and such
from u-boot ELDK so really what I need is a recent kernel which has
the drivers I need. I got a commercial kernel but its only 2.6.16 :-(
.

Thanks!
Robert

  

robert lazarski wrote:


Is there some sort of philosophical  reason why uClinux doesn't have
  

any


PowerPC targets? Lack of interest? We've been lurking on this list and
  

seen a


great community, yet we're not aware of any active community-based
  

PowerPC


distro. If curious, We're developing for the MPC8548 and we're looking
  

for a


community based 2.6.20 or later kernel for it based on the CDS
  

reference.


Robert
___
uClinux-dev mailing list
uClinux-dev@uclinux.org

  

http://mailman.uclinux.org/mailman/listinfo/uclinux-dev


This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:

  

http://mailman.uclinux.org/mailman/options/uclinux-dev



  

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev



___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

  

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev



___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

  


___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] No PowerPC targets?

2007-07-26 Thread robert lazarski
Wolfgang's ELDK has kernel-source-2.6.19.2-1.noarch.rpm , and I need
2.6.20 for a sata driver that got merged. Unless a new ELDK version
comes out I'm probably going to have to go with kernel.org . There be
demons going that way?

Robert

On 7/26/07, Richard Klingler [EMAIL PROTECTED] wrote:
 Wolfang Denk's site is the place to go for PowerPC:

 http://www.denx.de/


 cheers
 rick



 robert lazarski schrieb:
  They do, but only 2.6.14 ;-( .
 
  On 7/26/07, Andrew Webster [EMAIL PROTECTED] wrote:
 
  Try Freescale's web site, they probably have a linux distro (LTIB) for that
  part.
 
  Andrew
 
 
 
  On 7/26/07, robert lazarski [EMAIL PROTECTED] wrote:
 
  I bottom post.
 
  On 7/26/07, Robert S. Grimes [EMAIL PROTECTED]  wrote:
 
  Probably because most PowerPC users seem to go full Linux and get the
  virtual memory benefits.  It's what I would do.
 
  Regards,
  -Bob
 
 
  By full linux, do you mean like 2.6.22 from kernel.org ? If so, pardon
  my newbie question but I'm not sure how to get a .config for cross
  compiling 85xx so I can run menuconfig . I can get busybox and such
  from u-boot ELDK so really what I need is a recent kernel which has
  the drivers I need. I got a commercial kernel but its only 2.6.16 :-(
  .
 
  Thanks!
  Robert
 
 
  robert lazarski wrote:
 
  Is there some sort of philosophical  reason why uClinux doesn't have
 
  any
 
  PowerPC targets? Lack of interest? We've been lurking on this list and
 
  seen a
 
  great community, yet we're not aware of any active community-based
 
  PowerPC
 
  distro. If curious, We're developing for the MPC8548 and we're looking
 
  for a
 
  community based 2.6.20 or later kernel for it based on the CDS
 
  reference.
 
  Robert
  ___
  uClinux-dev mailing list
  uClinux-dev@uclinux.org
 
 
  http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 
  This message was resent by uclinux-dev@uclinux.org
  To unsubscribe see:
 
 
  http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 
 
  ___
  uClinux-dev mailing list
  uClinux-dev@uclinux.org
  http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
  This message was resent by uclinux-dev@uclinux.org
  To unsubscribe see:
  http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 
  ___
  uClinux-dev mailing list
  uClinux-dev@uclinux.org
  http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
  This message was resent by uclinux-dev@uclinux.org
  To unsubscribe see:
  http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 
  ___
  uClinux-dev mailing list
  uClinux-dev@uclinux.org
  http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
  This message was resent by uclinux-dev@uclinux.org
  To unsubscribe see:
  http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 
  ___
  uClinux-dev mailing list
  uClinux-dev@uclinux.org
  http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
  This message was resent by uclinux-dev@uclinux.org
  To unsubscribe see:
  http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 

 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


RE: [uClinux-dev] uClinux supports shared memory IPC?

2007-07-26 Thread Allen Yang
Hi, Gerrit.

 

1. CONFIG_TMPFS is already set to y

2. directory /dev/shm is already in my current image

3. tmpfs is not in my system. So I used mount -t tmpfs tmpfs /dev/shm.
Then I double checked:

 

# mount

/dev/rom0 on / type romfs (ro)

/proc on /proc type proc (rw)

rwfs on /mnt/rwfs type ramfs (rw)

rwfs on /tmp type ramfs (rw)

rwfs on /etc type ramfs (rw)

rwfs on /var type ramfs (rw)

sysfs on /sys type sysfs (rw)

tmpfs on /dev/shm type tmpfs (rw)

 

tmpfs is now in my system.

 

4. I tried my test program. It still didn't work. shmget() still returns
-1.

 

Regards,

 

Allen Yang

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gerrit Binnenmars
Sent: Thursday, July 26, 2007 12:41 PM
To: uClinux development list
Subject: Re: [uClinux-dev] uClinux supports shared memory IPC?

 

Hello Allen,

Since 2.6.15 uClinux has support for shared memory. Do the following
steps:

- compile your kernel with CONFIG_TMPFS 
- mkdir /dev/shm
- mount -t tmpfs tmpfs /dev/shm

Now shared memory should be working!

Greetings Gerrit




 Datum: 26/07/07 11:11 AM
 Van: David Howells 
 Aan: uClinux development list 
 CC: 
 Onderwerp : Re: [uClinux-dev] uClinux supports shared memory
IPC?
 
 Allen Yang wrote:
 
  I am using ColdFire MCF5329EVB and uClinux (2.6.17 kernel,
uClibc
  0.9.27).
 
 2.6.17 certainly has support for it.
 
 Can you check CONFIG_TINY_SHMEM=y and CONFIG_RAMFS=y?
 
  The compilation was OK. However, when I downloaded to my
board, the
  shared memory creation always failed. shmid was always -1.
 
 What was errno?
 
 Also, can you strace your test program to make sure that it's
not the C
 library aborting the call before the kernel is consulted?
Alternatively, you
 could put a printk() in do_shmat() in the kernel to see if it
actually gets
 there.
 
 David
 
 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 






The information contained in this email and attachments to this email are the 
proprietary and confidential property 
of Nucomm, Inc.  The information is provided in strict confidence and shall not 
be reproduced, copied, or
used (partially or wholly) in any manner without prior, express written 
authorization of Nucomm, Inc.

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Re: [uClinux-dev] No PowerPC targets?

2007-07-26 Thread Robert S. Grimes
Probably because most PowerPC users seem to go full Linux and get the
virtual memory benefits.  It's what I would do.

Regards,
-Bob

robert lazarski wrote:
 Is there some sort of philosophical  reason why uClinux doesn't have any
 PowerPC targets? Lack of interest? We've been lurking on this list and seen a
 great community, yet we're not aware of any active community-based PowerPC
 distro. If curious, We're developing for the MPC8548 and we're looking for a
 community based 2.6.20 or later kernel for it based on the CDS reference.

 Robert
 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev


   
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] No PowerPC targets?

2007-07-26 Thread David McCullough

Jivin Robert S. Grimes lays it down ...
 Probably because most PowerPC users seem to go full Linux and get the
 virtual memory benefits.  It's what I would do.

A common misconception is that the uClinux-dist is only for !MMU
systems :-)

If has support for all systems,  MMU and not.  In fact,  we do not even
build non MMU enabled systems and it's basically our source tree :-)

There are active targets in the tree for x86, m68knommu, armnommu, microblaze
arm, mips, superh and probably some more.

I'd imagine that at least half the targets are for MMU enabled systems.

To add PPC support would only require a few files and some setup time.

create vendors/config/ppc (look at the arm or sh dirs)
create target:

vendors/Vendor/Board/*

Use another board as an example,  ask if you need to 
find an
appropriate one.

Hopefully from there you can start configuring and building.  There is
doc in the toplevel Documentation dir that has more on this.

We would be more than happy to have people contributing PPC targets :-)

Cheers,
Davidm


 robert lazarski wrote:
  Is there some sort of philosophical  reason why uClinux doesn't have any
  PowerPC targets? Lack of interest? We've been lurking on this list and seen 
  a
  great community, yet we're not aware of any active community-based PowerPC
  distro. If curious, We're developing for the MPC8548 and we're looking for a
  community based 2.6.20 or later kernel for it based on the CDS reference.
 
  Robert
  ___
  uClinux-dev mailing list
  uClinux-dev@uclinux.org
  http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
  This message was resent by uclinux-dev@uclinux.org
  To unsubscribe see:
  http://mailman.uclinux.org/mailman/options/uclinux-dev
 
 

 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev
 

-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] Release file cache memory

2007-07-26 Thread Edward Wang
Hi,

I'm using uClinux-2.4.22 with 64MB memory. The kernel is configured with non
power-of-2 kernel allocator.

My application always deal with large files. Every time I read a large file,
free memory goes down to approximately 8MB and then back to 40MB. That's
file cache right?

It goes well most of the time. But some times the file cache won't release,
making free memory deadly low. At that moment free memory will loop from
about 0KB to 400KB.

Could anyone tell me why the cached memory won't release?

Or how can I tell kernel to release file cache?


brs,
Edward
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

[uClinux-dev] ramdisk.gz and ramdisk address allocation in RAM

2007-07-26 Thread Pavel
Hello.
I have an IXP425 dev. board with 64M RAM and 16M Flash.
Redboot doing:
1. zImage - 0x160
2. ramdisk.gz - 0x080
3. go 0x160

My ramdisk size = 8192. And all works ok.
But i need to increase ramdisk to 16M (or to 12M).
But there is a problem: 0x160 - 0x080 = 0x0E0 (14M).
ramdisk.gz ~ 2M,
what can be maximum size of uncompressed ramdisk?
I think, than in my situatition the sum of ramdisk and ramdisk.gz can't be  
14M?

Where will be uncompressed ramdisk allocated?
Can i change it position?

Thanks.



___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] uClinux supports shared memory IPC?

2007-07-26 Thread David Howells
Gerrit Binnenmars [EMAIL PROTECTED] wrote:

 - mkdir /dev/shm
 - mount -t tmpfs tmpfs /dev/shm

These two steps ought to be unnecessary as init_tmpfs() in mm/tiny-shmem.c
creates the superblock by doing an internal mount.

David
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] write peripheral user

2007-07-26 Thread Chris Gray
On Thursday 26 July 2007 11:08, Sebastien Baldacchino wrote:
 [...]
 I have seen on internet that uclinux has no MMU. So I think to I can
 write and read directly to the physical address of my peripheral.

Operating systems don't have an MMU, CPUs have an MMU. What CPU are you using?

-- 
Chris Gray/k/ Embedded Java Solutions  BE0503765045
Embedded  Mobile Java, OSGihttp://www.k-embedded-java.com/
[EMAIL PROTECTED] +32 3 216 0369
Skype: k.embedded.chris

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] GCC Optimization

2007-07-26 Thread amol sukerkar
Thanks, David!
I was actually asking about both 2.4.x and 2.6.x and not for kernel but
user/.

AM

On 7/26/07, David McCullough [EMAIL PROTECTED] wrote:


 Jivin amol sukerkar lays it down ...
  Hello,
 How do I change the compiler optimization in uClinux from -O2 to
  -O0? Thanks!

 Kernel or User ?  Which versions ?

 Normally you can do this by editing your config.arch,  some targets
 allow you to set LOPT and UOPT for library and user optimisations,

 Cheers,
 Davidm

 --
 David McCullough,  [EMAIL PROTECTED],   Ph:+61
 734352815
 Secure Computing - SnapGear  http://www.uCdot.org
 http://www.cyberguard.com
 ___
 uClinux-dev mailing list
 uClinux-dev@uclinux.org
 http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
 This message was resent by uclinux-dev@uclinux.org
 To unsubscribe see:
 http://mailman.uclinux.org/mailman/options/uclinux-dev

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev