Serial port module in kernel.
Hi,
I consulted a old thread which talked about this http://www.linuxquestions.org/questi...959/page2.html I am doing an expermient with TDMA on wifi for which I need access to serial port so that I can log receiving data from Wifi.I figured if I can just have a RTS pin toggled on demand I can do my work. Reading te post I first recompiled my kernel to modularize serial port.Now if I insmod and serial_core.ko and 8250.ko the serial mode starts working (I test using a loopback test) the dmesg at that time says "Serial :8250/16550 driver ,4 ports IRQ sharing disbaled" :serial8250.o: ttyS0 at MMIO 0x70006000 (irq=68) is a Xscale" SO i assume the port address is 0x70006000 no here is the kernel code I have written.Right now I am just trying to make a square wave to see if I can toggle a pin on deman Code: Code:
#include <linux/module.h> This never enters the "else" block also when I rmmod see in dmesg "trying to free nonexistent resource <000000070006000-00000000700060007>" Can some one help me.I am using trimslice by compulab with kernel 3.1.10 |
MMIO refers to mapping I/O space to memory space, so that the I/O instructions (inb, outb, etc) are not used. The memory address is not fixed so you can't use a fixed value in your code.
|
All times are GMT -5. The time now is 10:47 AM. |