LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2008, 09:30 AM   #1
AshishVyas
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
UART driver porting from 2.4.20 to 2.6.10 for freescale imx21ADS21 board.


Hi All,

I have Freescale's iMX21ADS board with linux 2.4.20 based BSP running on it. Freescale does not provide a 2.6 kernel based BSP for the hardware. So I am (trying ) porting the 2.6.10 vanilla kernel on the board. I have reached upto start_kernel() and 1t goes to console_init(). This in 2.4 used to initialize board's UART driver (mx2uart.c). When I try to put the 2.4 BSP's UART into the 2.6 kernel and try to compile I run into so many compilation errors. Basically it uses task queue and this is changed to work queue in 2.6

has anyone done similar work in the past? I am not clear about the concept of task queue and work queues. some of the task queues i may need to change to work queue are:
DECLARE_TASK_QUEUE(tq_serial);
mark_bh(SERIAL_BH);
run_task_queue(&tq_serial);
 
Old 05-15-2008, 06:30 AM   #2
AshishVyas
LQ Newbie
 
Registered: May 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hi All,

After looking into other serial drivers for reference, I finally did the required changes related to task queue / work queue and I compiled the kernel with mx2uart.c successfully.

Now the problem is, still I do not see any printks appearing on the console. I also tried putting printk in start_kernel() of my working 2.4.20 BSP and to my surprise, they also did not show up to the console, but they did come to dmesg.

Can anyone tell me what some quick pointers that I need to check to see those printks on the console?

Thanks
Ashish
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Driver Failing to Register all Ports of my Quad Uart bramsey123 Linux - Newbie 0 09-13-2007 10:16 AM
how to modified 16c550 uart driver from kernel 2.4 to 2.6 first1113 Programming 3 03-02-2007 01:24 PM
uart driver for infrared remote control ubuntu_amateur Linux - Kernel 4 11-04-2006 01:38 PM
device driver for UART (write illegal seek - error) adit_2g Programming 0 06-10-2006 01:07 PM
Driver porting dafri Linux - Hardware 2 06-07-2003 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration