Re: /dev/mem

2010-10-28 Thread StephanT
John, I do not plan to argue this further in advance. :-) It wasn't in my intention to argue anything. Just knowledge exchange. In a microkernel drivers could have their own global namespace and not have direct access to memory. As long as the processor doesn't provide any specific

Re: /dev/mem

2010-10-27 Thread StephanT
John, Basically, this boils down to the ancient debate of microkernel vs monolithic kernel. Could you, please elaborate on this. Thanks, Stephan -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at

Re: Learning hardware ...

2010-10-19 Thread StephanT
... read some text book etc before this to have correct context ? This is a learning challenge -sorry, I cannot provide a magic recipe. Here is how I tackle such situations: - Start by writing down a list of your H/W knowledge holes and begin working it one item at a time. - Get some

Re: Learning hardware ...

2010-10-19 Thread StephanT
Any suggestions what can I read ? Is your list ready ?:o) 1. User Guide - Data Sheet 2. Application Notes 3. Code examples 4. Use Wikipedia to get quick answers and directions. I assume you have the basics (from what I already know about you). So, unless you have a very good

Re: Learning harware ...

2010-10-16 Thread StephanT
HI Abu, What I want is some directions. I want to learn hardware intimately. If you mean H/W design this is not the good place to ask. If you mean programming H/W (aka firmware) then I would start by building some H/W basic knowledge and I would want to practically implement and

Re: Regarding device cycles

2010-10-13 Thread StephanT
Sri, I have a doubt regarding devices, with respect to how they operate. Every device needs some cycles to operate. So, devices like NIC, Video controller, memory controller, , does they all have their own clock or core. Or these controllers act in respect to system clock are

Re: Regarding device cycles

2010-10-13 Thread StephanT
Latest news: How-to: LaunchPad programming with Linux http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/ -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: Regarding device cycles

2010-10-13 Thread StephanT
Hi Greg, In a standard PC design, don't you have 2 arbitrators? Dave built his explanation on a micro controller architecture which is very different from the PC/Intel stuff. Depending of the model you may have one bus or more. There are some DSP dedicated architectures based on more

Learning / Experimenting with micro controllers.

2010-10-08 Thread StephanT
Hi, I know it is not the target of this discussion list but people reading it may be, also interested in learning or experimenting at the CPU level. It is difficult if not impossible to follow from end to end an interrupt on a Linux box. Or a UART, or a timer. Here you can get for $4.30 a

Re: Best linux distribution

2010-09-16 Thread StephanT
http://en.wikipedia.org/wiki/Comparison_of_Linux_distributions

Re: what is static inline void tvec_base

2010-08-27 Thread StephanT
Please give some online link to what you said I will go through it. http://www.google.com/search?hl=enclient=firefox-ahs=yTXrls=org.mozilla%3Aen-US%3Aofficialchannel=sq=dennis+ritchie+c+pdfcts=1282966271211aq=2sxaqi=g-s1g-sx9aql=oq=denis+ritcgs_rfai= Say a short prayer every time you open

How create a miscellaneous crw-rw-rw- device ?

2010-08-13 Thread StephanT
Hello, This question is related to a simple driver implementing a miscellaneous device under 2-6-32 Using the following code: /* snippet --- static struct miscdevice lab1_dev = { .minor = MISC_DYNAMIC_MINOR, .name = lab1, .fops =

Re: How to port linux drivers ftom devfs to udev.

2010-06-28 Thread StephanT
Your Subject is very generic. Well, my subject says I am looking for a migration/port guide. If you have such document I will be very grateful to get a pointer on it. Thanks, Stephan. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org

Re: recommendations for cheap PCI/PCIe card with OSS drivers?

2010-06-28 Thread StephanT
a friend asks me for a cheap pci/pcie card with OSS drivers? Uart/parallel port with something hanging off it (null modem orarduino or LEDs). A good place to start: 1. http://microcontrollershop.com/ 2. http://www.embeddedarm.com/index.php Good luck, /Stephan -- To unsubscribe from

Re: How to port linux drivers ftom devfs to udev.

2010-06-28 Thread StephanT
Again, it all depends on the code. Some interfaces have changed radically from the past 8 years, while others, not much at all. Care to post it? Negotiation becomes tougher and tougher ... :-) Joking a bit - this reminds me a nice statement I heard in some TV show discussing

Re: Usage of leading underscore in linux kernel code.

2010-06-22 Thread StephanT
Hi Fabian, ... the convention in many systems is to use a leading underscore for low level functions that do little validation and should therefore not be used directly. Thank you for the kind explanation. I wasn't aware about this low_level vs. leading_underscore convention. Make

How to port linux drivers ftom devfs to udev.

2010-06-10 Thread StephanT
Hello, Is there any User Guide, Tutorial, FAQ, example which explains how to port a 2.4 devfs driver to a 2.6 udev one. Thanks, Stephan. p.s. I already spent half day googling for and I start feeling the boss nervousness... :-) -- To unsubscribe from this list: send an email with

Re: How can I search this discussion list?

2010-06-04 Thread StephanT
I use http://www.google.com and keyword insite:www.kernelnewbies.org Thanks Tapas ! I learned something new today. Let's share it with others who, like me didn't know this search feature: To search with Google only the site: mail.nl.linux.org/kernelnewbies/ for kernel AND build AND 2.4

How can I search this discussion list?

2010-06-03 Thread StephanT
Hello, I need to find topics discussed here some time ago. I don't remember exactly the date of the discussion - so I'd like to do a search on the whole archive. Is this possible and how? Thanks, Stephan. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to

Re: Schedule() call in driver context.

2010-02-23 Thread StephanT
Hi Joel, because timers execute in interrupt context, not process context. What do you mean exactly? My understanding is the kernel uses interrupts to count the time and to trigger timer routines - but these routine are executed in the context they were registered. A timer created by a

Re: Schedule() call in driver context.

2010-02-23 Thread StephanT
Hi Greg, Joel, You're missing a tier of complexity and I'm afraid I don't know the... Agreed 100% :-) My intent was not to discuss the whole linux driver topic but to understand the subtleties of using schedule() in linux drivers. This point of view I have to say, you guys you did an

Re: Schedule() call in driver context.

2010-02-23 Thread StephanT
Hi Joel, You need to be clear with yourself on the meaning and the types/differences of different contexts first, because its really confusing when you say kernel context (not interrupt). Could you, please be a little more specific about what is confusing? As this is learning ground it would

Re: Schedule() call in driver context.

2010-02-22 Thread StephanT
Hi Joel, 1. What event awakes the process? Has the driver any way to control it? The kernel code executing on behalf of the process is usually waiting for some resource to become available, we sleep because we can't return from the middle and have to wait till we get the resource. For

Re: Schedule() call in driver context.

2010-02-22 Thread StephanT
Hi Greg, driver context? Not really a kernel term to my knowledge. I'll assume you mean in a driver directly associated with a user space call. ie. Not in interrupt mode Sorry for the formulation. And yes I meant exactly what you suggesting. It is not at all uncommon to have access to

Schedule() call in driver context.

2010-02-18 Thread StephanT
Hello all, Why would a linux driver call schedule() ? The LDD proposes this method to fight systems hangs caused by an infinite loop in the driver. In this case the schedule() call would be a workaround. I think better fix the infinite loop and abstain to call schedule()... I found more than

Re: stop mount/read/write

2009-06-15 Thread StephanT
Remove them all ! /st :o) From: Sandu Popa Marius sandupopamar...@gmail.com To: Daniel Baluta daniel.bal...@gmail.com Cc: kernelnewbies@nl.linux.org Sent: Monday, June 15, 2009 12:22:17 PM Subject: Re: stop mount/read/write isn't chmod useful. thanks, Daniel

Re: Custom Ethernet frame transmitter module

2009-01-19 Thread StephanT
Lukasz, You don't need a new driver for this purpose. Just write a raw-socket application, switch the interface in promiscuous mode and you an send whatever you want. You have to be root for that. Search the net for raw socket interface. Stevens - UNIX Network Programming is a very good book

Re: Custom Ethernet frame transmitter module

2009-01-19 Thread StephanT
The reason why I would like to do it as a kernel module is performance. Raw packets has to be filtered (by headers) and/or dumped to disk at rate close to gigabit per second. Also some of them must be send to userspace application. So my question remains open: how to implement such kernel

Re: Kernel OOPss - corrupted memory

2008-12-08 Thread StephanT
Hi Kostya, I had a similar experience and the problem was the SDRAM timing. This is set up not in the Linux but in the bootloader (U-boot or whatever) If not the simplest way to find out which driver is incriminated is to unload it and to run the system for a while without it. It is lengthy,

Re: Please suggest a way to synchronize tasklets.

2008-11-10 Thread StephanT
? Is this type of synch safe in IRQ context? Could you provide, please a precise pointer on such a call? or copy here a code snippet? Thanks a lot for your interest in helping me, I'm deeply indebt with some free beer, StephanT

Re: Please suggest a way to synchronize tasklets.

2008-11-10 Thread StephanT
You forgot to cc kernelnewbies as well.. Yes and I screwed also the first post (the head). Sorry... This is learning by error :o) Next time I'll do-it right, promise! Stephan