Re: Filesystem / Partition type support in kernel

2009-10-16 Thread Ole Loots
Hello, i did what you told me but as expected make outputs the following: scripts/kconfig/conf -s arch/x86/Kconfig .config:150:warning: symbol value 'm' invalid for ATARI_PARTITION ...but I grep'ped /proc/kallsyms and it seems that ATARI_PARTITION type is already registered. however, dmesg tel

Re: software for x86 instruction set

2009-08-30 Thread Ole Loots
John M schrieb: Hi Does anyone know about any software that can be used to browse through x86 instruction set? I have intel processors instruction sets reference manuals from intel website. But having a software to look up details of any specific instruction would be great. I used some of the

Re: making a system call from module?

2009-06-19 Thread Ole Loots
Hi, krushnaal pai schrieb: how to make a system call from module? Someone told me that you shouldn't do that because it's to dangerous... Also how can we include the c library headers in our modules,so as to use the open,read functions of c library? the lib that offers these user-space funct

Re: how to call function in one module frm another?

2009-06-15 Thread Ole Loots
Just to be complete: the compiler will complain about unresolved symbols if you compile a module..., but the symbols will be resolved at runtime. SandeepKsinha schrieb: try EXPORT_SYMBOL( ) for the function you wish to use in any later module. On Mon, Jun 15, 2009 at 9:49 AM, krushnaal pai wr

Re: Porting float and double variable in linux kernel

2009-05-28 Thread Ole Loots
Hello Jitendra Pradhan, My main objective is how to convert the line” dLsw = (double)strTv.tv_usec / 100 * 65536 * 65536” , so that I will get the accurate NTPTime. I will appreciate if I get help on this regard. Please provide some info on it. I know that floating point is not suppor

Re: Question regarding spinlock

2009-05-19 Thread Ole Loots
Mulyadi Santosa schrieb: Hi... Sorry if my earlier post confused some people. What I wanted to say was actually that spinlock is SMP safe, however, in multicore it makes code running on a cpu might spin to wait for other code running on different cpu. so, to avoid this, perhaps the original pos

Question regarding spinlock

2009-05-18 Thread Ole Loots
Hello to the list, I got a question about spinlocks. Here is some pseudo-code: my_external_int_handler(...) { spin_lock(&my_lock); // do things... spin_unlock(&my_lock); } my_ioctl_handler(ioctl_value) { switch(ioctl_value) { case xy: spin_lock_irqsave(&my_lock,

Re: Kernel internals.

2009-05-08 Thread Ole Loots
Hello venkatram ajmeera venkatram ajmeera schrieb: Hai I am interested in learing linux kernel internal thouroughly How the interrupt is handled by linux Kernel. That's hardware dependant. Not only the Hardware is involved, also the kind of interrupt is involved. I don't know the differe

Re: Choosing Driver Model

2009-04-01 Thread Ole Loots
txt platform.txt devres.txtbinding.txt > bus.txt class.txt driver.txt interface.txt overview.txt porting.txt > > On Wed, Apr 1, 2009 at 3:51 AM, xin yuepeng wrote: >> Hi, >> I met this situation as you. I chose the platform_driver... It >> seems

Choosing Driver Model

2009-03-31 Thread Ole Loots
Hello there, I'm writing a Driver that uses an not-so-well-known Bus System. I'm developing for the at91 Processor, the processor has an "Extension Bus Interface" ... it's good enough to make CF Cards, IDE disks, etc. work. I'm developing a driver for an Hardware device that is connected to the B

Re: SOC Board development

2009-03-09 Thread Ole Loots
> It is just an assumption ... > > TR > > > > > > > Am Montag, den 09.03.2009, 20:38 +0100 schrieb Ole Loots: >> Hello there, >> >> we are developing an board for the dnp9200 SOC >> (http://www.dilnetpc.com/dnp0069.htm). >> >> We

SOC Board development

2009-03-09 Thread Ole Loots
Hello there, we are developing an board for the dnp9200 SOC (http://www.dilnetpc.com/dnp0069.htm). We got kernel 2.4.27 running with the board, boots fine, serial port is working, ethernet is working, everything is good. but when i try to boot kernel 2.6.10, it hangs. What could be the cause?

Re: Getting kernel symbols in kernel module (dynamically)

2009-02-25 Thread Ole Loots
But I wan't to call a function that is not part of my module... i want to call sys_clock_gettime - which is a function of the kernel. - Original Message - From: "Guo Hongruan" To: "Ole Loots" Sent: Wednesday, February 25, 2009 12:47 PM Subject: Re: Getting

Re: Getting kernel symbols in kernel module (dynamically)

2009-02-25 Thread Ole Loots
he symbols dynamically. greets, Ole On Wed, 25 Feb 2009 18:20:21 +0800, "Guo Hongruan" wrote: > Too dangrous!! > > In kernel space or userspace? If in userspace, you can only call > clock_gettime. > > 在 Wed, 25 Feb 2009 18:08:55 +0800,Ole Loots 写道: > >>

Getting kernel symbols in kernel module (dynamically)

2009-02-25 Thread Ole Loots
Hello, I want to call the kernel function sys_clock_gettime, but when I just try to call it, the linker complains about the unknown symbol/function sys_clock_gettime, so i have hard coded a function pointer in my module...: long (*p_sys_clock_gettime)(clockid_t, struct timespec *tp) = 0xc0043

Re: ARM Linux at91: installing Timer Controller Interrupt

2009-02-24 Thread Ole Loots
Hi there, Thanks for the help. This code works: /* * Kernel interrupt demo for Timer Channel 0 * Author : * Date: 24.02.2009 * Version : 1.00 * License : GPL */ #include #include #include #include #include #include #include #include #include #include #include #includ

Requesting shared IRQ?

2009-02-17 Thread Ole Loots
Hello there, I'm new to the list and I'm new to kernel module developing, too. I want to handle an Interrupt on an ARM processor... (at91). The Interrupt is already handled by the module at91_timer (compiled into kernel). the module registers it's interrupt this way: ret = request_irq(AT91_I