RE: multiple devices using ELDK NFS mounts

2007-02-08 Thread Fillod Stephane
Daniel Ng wrote: > I am working on multiple ELDK devices. So far, I just have one copy of the ELDK > NFS mount per device. This gets unwieldly when we have more than a few devices, > especially considering the size of one NFS mount being over 800Mb. > > Can you suggest a more efficient way? Some

RE: Endianness versus too many byte swaps??

2007-03-05 Thread Fillod Stephane
Charles Krinke wrote: >This routine uses a ccsr_pci struct to assign potar2, powar2, powbar2 and >others like this: > >pci->potar2 = 0x0010; >pci->powar2 = 0x8004401a; >pci->powbar2 = 0x00888000; This is big-endian access to the registers, right? I tend to prefer explicit macros like th

RE: Endianness versus too many byte swaps??

2007-03-05 Thread Fillod Stephane
Charles Krinke wrote: [...] >I am told that we are running this ppc in big endian, so would this mean >that readl & writel should actually be resolving to in_be32/out_be32 >respectively? Is there some other setup that may be wrong? IIRC, readl and writel were defined this way in order to ease PCI

RE: MPC5200B memory performance

2007-05-15 Thread Fillod Stephane
Daniel Schnell wrote: >With the attached program (compile with -lrt) I am testing the memcpy() >throughput. In theory the memory throughput should be the double of the >memcpy() throughput if source and destination buffers are same size and >inside the DDR-RAM. Theory tells that write speed is a l

Cross compiling : problem linking

2003-10-02 Thread Fillod Stephane
Note to the list: sorry for the RFC2822 > Do you know the replacement for iopl to work on PowerPC? There's no such crap on PowerPC. No separate IO bus either. > Final goal is a kernel module, but now I'm writing a test program in > user space (standalone, dynamic compiled). Okay, let's use ES

Cross compiling : problem linking

2003-10-06 Thread Fillod Stephane
Dear Wolfgang, > Then you can edit / add to the U-Boot and Linux Guide at > http://www.denx.de/twiki/bin/view/DULG/WebHome yourself... It seems like I have no permission to mess with DULG, so I've added it to PPCEmbedded HOWTO: http://www.denx.de/twiki/bin/view/PPCEmbedded/DeviceDrivers Feel f

Dual-Port SRAM

2004-05-04 Thread Fillod Stephane
Bob White wrote: > What configuration is necessary to map this memory into the kernel? You need ioremap() and a good book on Linux Kernel Driver development. Excellent examples are in linux/drivers directory. > Can you point me to some examples? How does it then get accessed from > a user progr

DPRAM driver on 440gp

2004-05-11 Thread Fillod Stephane
>Given that the physical address has already been mapped, via >ioremap64(), do I need remap_page_range()? Does anyone have any ideas >on what the mmap file_op for this driver would look like? Do I even >need mmap() or should I just use an ioctl to return the pointer I've >already got to the user

http sharing in linux

2004-05-17 Thread Fillod Stephane
> > > recommend me some opensource solutions? > > > > solution=(embedded)?boa:apache; > > Ummm... depending on requirements, Mbedthis AppWeb, GoAhead, khttpd, > and others come to mind, too. For DIY embedded HTTP server, what about the EHS library? http://freshmeat.net/projects/ehs SF

looking for a model for building CRAMFS(?)-based system

2005-03-17 Thread Fillod Stephane
Robert P. J. Day wrote: > now this is the sticky part. imagine this system out in the field, > where you need to make an update to something in the initrd in the > root filesystem. You could get away with mirrored partitions, having version N and N-1 in flash, so a rollback is possible. But stati

question about writing to memory directly from user space in Linux

2005-03-23 Thread Fillod Stephane
Vijay Padiyar wrote: >I am running Linux 2.6.10 on an MPC8260 target. We have an I2C controller >that is part of our application code. In VxWorks, we could address the >MPC8260 I2C memory registers directly from application space and so this was >not a problem. The I2C abstraction layer of Linux i

Stable Linux kernel 2.6 for MPC8XX

2006-03-08 Thread Fillod Stephane
>I would want to use a linux kernel 2.6 on a custom MPC8xx board. >Which stable kernel release must or can I use ? http://www.denx.de/wiki/bin/view/Know/Linux24vs26 -- SF

Performance issue - VoIP application on Linux 2.4.22

2005-05-02 Thread Fillod Stephane
bobys wrote: >Hello everybody, >I have a multithreaded VoIP application in user space and a kernel driver >module on MPC 8248 based board. >During media data transfer( Video Call) I have observed one strange >behavior >that at specific interval, cpu utilization is reaching to 100 % and then >rolls

440GX + peek/poke utility

2004-10-27 Thread Fillod Stephane
>I probably just wasn't looking hard enough but would anyone know if a >peek/poke type command line utility would exist for accessing physical >addresses under Linux on a 440GX board ? Thanks. I have such, and I wanted to contribute them to busybox. My peek/poke even support hotplug (as long as y

MPC8540 DMA routines (channel 0 broken?)

2005-07-18 Thread Fillod Stephane
Clemens Koller wrote: >In the meanwhile, I got channel 0 working. It seems >that the DMA#0 machine got stuck in some configuration from any >previous (u-boot?) operation which didn't clean up things >properly. I had to explicitly abort a (continously running?) >transfer to be able to re-program it

How to support LFS on ppc

2005-09-14 Thread Fillod Stephane
>I have a problem about Large File System on ppc. The following is my example >code: Actually not problem with LFS, but with int types. >#define _FILE_OFFSET_BITS 64 >#include >#include >Int main() >{ >?? struct stat buf; >?? stat64("/3G",&buf); >?? printf("size of test

How to use SPE on MPC8541

2005-09-28 Thread Fillod Stephane
Bonjour G?rard, G?rard Gu?vel wrote: >I don't especially want to see if the bit is set, I just want >to improve the board performance for a Linux application :-). Do you know where your CPU is spending much of its time? It looks like a job for OProfile. Support for e500 exists in 2.6.x thanks to

Floating point math in kernel interrupt -- am I doing this right?(repost)

2006-02-06 Thread Fillod Stephane
Dan Malek wrote: >> So my question is, is there some minor detail that my >> FPU-state-save/restore >> code is missing, that would cause these sort of symptoms? > >Just get all of this out of the kernel. If you used the standard ALSA >drivers and framework, lots of mixing features are available t

RE: Réf. : Re: Read in /dev/port with S egmentation Fault

2005-06-09 Thread Fillod Stephane
Sophie CARAYOL wrote: >Another question, if i use mmap to map physical addresses of I/O registers, >could i dereference the pointer on virtual adresse to access data or should >i use read/write on the file descriptor ? Yes, you can dereference the pointer. Don't you remember my past mail? >From t

[OT?] recommendations for a small footprint DB for PPC system?

2005-06-23 Thread Fillod Stephane
Robert P. J. Day wrote: > any recommendations for a small, relational database that can be >cross-compiled with ELDK 3.1.1 for a PPC system? it's not going to be >holding a lot of records (about 1000, more or less), and will be >initialized and loaded at system boot time, at which point the >majo

mmap : please help !

2005-04-13 Thread Fillod Stephane
Sophie CARAYOL wrote: [...] > What is the good manner to read or write in the physical memory? Please have a look at Denx's FAQ for accessing memory bus: http://www.denx.de/twiki/bin/view/PPCEmbedded/DeviceDrivers#Section_Acce ssingPeripheralsFromUserSpace or shorter: http://tinyurl.com/6c7th

RE: Réf. : Re: Réf. : RE: mmap : please help !

2005-04-14 Thread Fillod Stephane
Sophie CARAYOL wrote: >But, the real question is : if you use the /dev/mem (with open() and mmap >()), could you use, in the user space, the pointer returned by the mmap >function to access the physical memory or do you have to use read/write (on >the file descriptor) to access physical memory beca

Accessing physical memory

2006-04-10 Thread Fillod Stephane
Antonio Di Bacco wrote: >How can I access the physical memory? Can I MMAP for example /dev/mem? Is >there a simpler way? Your question is a linuxppc-embedded FAQ. It is documented in Denx's FAQ[1], and accessible through shorter URL[2]. For more information, please follow this thread[3] (not ppc

mpc8248 and FCC ethernet

2005-10-07 Thread Fillod Stephane
Wojciech Kromer wrote: [..] >But inside kernel all RX frames are filled with 0xff data, >also send frames I can see on the other side, are full of 0xff. >Clocks and other FCC aware registers seems to be correct. >The same version on linux (2_4_devel from denx.de) works fine >on another mpc8260 boar

Which way to store log in flash on mpc8xx?

2005-11-29 Thread Fillod Stephane
David Jander wrote: [..] >After getting some advice from peoble at mtd-list, I switched to 2.6.14 for >our new developments, and jffs2 seems a lot more stable now. I can only >recommend you to consider switching. Besides consuming a little more RAM and >Flash, 2.6.14 is miles ahead in terms of a

linuxppc-embedded help needed:kernel access of bad area

2005-11-30 Thread Fillod Stephane
Dear zengshuai, zengshuai at sogou.com wrote: > i writed a led driver for PQ2FADS(a ppc board). > but i can't read/write 0x0450 where led register addr locate in. > i tested two ways to do that. > first, > p=0x0450; > *p=0x12; > > second, > outb(0x12,0x0450); > ... > two ways both

throughput question

2004-09-28 Thread Fillod Stephane
> I am currently working on a 8245 based board with 2.4.27 e100 driver > and when taking in (and processing streams), only about 50 Mbps can be > handled: about half of the time is based in kernel space (handling > interrupts). Is your e100 driver having NAPI support? What's the cache size of your

uncached user space mapping with mmap() ???

2004-03-04 Thread Fillod Stephane
Hi Steven, > I am trying to access a hardware timer implemented in an FPGA from > user space. I implemented a simple mmap() functionality (taken from > Runbini's Linux Device Driver) Please refer to "11.13. Accessing peripherals from user space" in the excellent FAQ from DENX's TWiki at : http:

uncached user space mapping with mmap() ???

2004-03-04 Thread Fillod Stephane
Steven Scholz wrote: >> Please refer to "11.13. Accessing peripherals from user space" >> in the excellent FAQ from DENX's TWiki at : >> >> http://www.denx.de/twiki/bin/view/PPCEmbedded/DeviceDrivers#Section_Accessin >> gPeripheralsFromUserSpace >> >> There's no need to implement kernel side stuff

uncached user space mapping with mmap() ???

2004-03-08 Thread Fillod Stephane
> When I map only the the GRAM I get a throughput of > > IoremapTest...8.0 s => 2049.4 kW/s Talking about Retries count, the higher the better. Getting 8 seconds is okay, but not less to have good average result. Perform several times the IoremapTest to check for noise consistency. T

uncached user space mapping with mmap() ???

2004-03-09 Thread Fillod Stephane
Jon Masters wrote: >> The bigger the mmap, the better, and the "lesser" entries in page table >> there will be. > >That's not true though. I went along with the rest of your mail, but the >above just does not make sense to me. Indeed! I should have written: "The bigger the mmap, the better, and t

ioperm

2004-04-27 Thread Fillod Stephane
>Anybody seen this error? No :) >I'm getting it while trying to compile for a ppc405EP based board, >using the ELDK 2.1 toolchain (ppc_4xx). Don't use ioperm. There's no io bus, only memory bus. Please have a look at Denx's FAQ for accessing memory bus: http://www.denx.de/twiki/bin/view/PPC

mmap

2006-01-05 Thread Fillod Stephane
Brett McNerney wrote: [...] >I am open for other options on how I can do this other then mmap. And am still not against a driver >built into the kernel if someone has a an example I could see and can explain how to add it in so it >builds into the kernel since I have had no success on that either

io.h question

2006-01-09 Thread Fillod Stephane
Arnd Bergmann wrote: >On Thursday 05 January 2006 21:00, mcnernbm at notes.udayton.edu wrote: >> I finally noticed out_8 and in_8 and what not are located in the >> ppc io.h file in the kernel development download.? But when I >> tried to do a io.h with in my program I added #include ? >> and it s

RE: How to access physical memory from user space for MPC8260 chip

2007-07-12 Thread Fillod Stephane
suresh suresh wrote: >I have to map physical memory to user space or kernel space. I am writing >driver for MPC8260 chip and I want to know how to map any 32-bit address >space to user space and kernel space. Your question is a linuxppc-embedded FAQ. User-land access is documented in Denx's FAQ[1

HugeTLB on MPC 85xx ?

2008-03-05 Thread Fillod Stephane
Hi, Most of you know already about HugeTLB (Documentation/vm/hugetlbpage.txt). Is there any plan of HugeTLB support for the MPC 85xx platform? This is IMO an important feature missing in Linux for those great SoC. Would any 4K assumption in the kernel be a showstopper for HugeTLB? On a similar S

[PATCH] RE: Some memory (DDR2 ECC Dual Rank) just doesn't work! Can anyone pointme to how to debug this hang?

2008-08-14 Thread Fillod Stephane
Vince Asbridge wrote: > We have an 8548 design, which implements a DDR2 on a SODIMM > We have an issue with dual rank memory (specific part number Viking > VR5DR287218EBSS1), which is a 1G ECC Registered SODIMM part, with two ranks. > Our platform wires CS0 and CS1 to the SODIMM slot. > At uBoot

RE: direct access to Flash from userland

2008-09-04 Thread Fillod Stephane
Dave Littell wrote: >I have a CFI Flash device which has some non-CFI commands I need to >issue from userland. I've tried mmap() of the mtdblock device, but that >only yielded a corrupted Flash as my non-CFI command sequences were >simply written to Flash. An attempted mmap() of the character mtd

RE: SA-RTLinux for ppc?

2008-10-03 Thread Fillod Stephane
sumedh tirodkar wrote: > does there exist a Standalone RTLinux for powerpc? > I don't know, but there's a very good hard real-time extension called Xenomai for powerpc (and many other arch's). http://www.xenomai.org Best Regards -- Stephane ___ Linuxp

RE: virtex4 RTOS with hw FPU.

2008-12-03 Thread Fillod Stephane
vadik wrote: > I have implementation of Virtex4 with hw FPU trough APU . > >Is there any Real Time OS that directly supports this implementation without >relying on sw floating point emulation. This is a matter of tool chain and setup of your kernel? >Xilinx Relesed GCC build of their own that is