LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-25-2009, 07:19 AM   #1
sumahegde
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Upgrading from linux 2.6.17.14kernel to linux 2.6.28 kernel


Hi all,

I am porting linux version 2.6.28 kernel onto my board. Previously linux 2.6.17.14 kernel was brought up on this board and worked fine.Now I need to upgrade it to 2.6.28 version.Every thing looks fine except for my video driver. My video driver code was accessing struct semaphore and sema_init() function from asm/semaphore.h from version 2.6.17.14 kernel. But in newer version(2.6.28) I found it is linux/semaphore.h. Struct semaphore and sema_init() is completely different in both versions.. I searched in net and found I have to replace my struct semaphore with struct mutex and sem_init() function call with mutex_init() function call to make my video driver compatible to newer version. So I made those modifications.

Then video driver code was referring to 'find_pid()' and 'kill_proc()'function calls which i couldnt find in newer version. But those functions are defined in older version.So I copied those two function definations from kernel/pid.c and kernel/signal.c respectively to my newer version(2.6.28) code. After these changes I compiled and booted my board
It led to following eror.

Data bus error, epc == 8023e670, ra == 8023e60c
Oops[#1]:
Cpu 0
$ 0 : 00000000 10009400 b1000042 000000b1
$ 4 : b10000c6 b10001ce b1000000 00000000
$ 8 : 00000000 80104530 810739e0 00010000
$12 : 00000000 8038de00 00000001 80364814
$16 : 803a0000 803a0000 8039ddbc 80390000
$20 : 80377a74 00000001 00000000 00000000
$24 : 00000008 80100000
$28 : 83818000 83819e10 00000000 8023e60c
Hi : 00000000
Lo : 00000000
epc : 8023e670 vc_host_init+0x114/0x434
Not tainted
ra : 8023e60c vc_host_init+0xb0/0x434
Status: 10009403 KERNEL EXL IE
Cause : 0080001c
PrId : 00029018 (MIPS 4KEc)
Modules linked in:
Process swapper (pid: 1, threadinfo=83818000, task=83817988, tls=00000000)
Stack : 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 803a0000 80390000 80390000 80377a74 802414f8 839c9b00 8035fd30
10009401 00000000 00000020 8015c124 80256378 80217194 8033d644 00000073
839c9b00 00000004 80108098 00000000 00000020 8033035c 00000000 00000000
00000000 8015c468 00000000 8018c764 8399d380 83814100 00000001 00000001
...
Call Trace:
[<8023e670>] vc_host_init+0x114/0x434
[<802414f8>] vc_interface_init+0x24/0x428
[<80377b48>] vc_init_drv+0xd4/0x4cc
[<80107b4c>] do_one_initcall+0x5c/0x1a4
[<8036db60>] kernel_init+0xb0/0x118
[<8010e540>] kernel_thread_helper+0x10/0x18


Can anybody please tell me what error is this and what made me to get this crash??? Did the changes which i made in kernel/pid.c and kernel/signal.c cause this crash??? Is there any replacement for find_pid() and kill_proc() in newer version 2.6.28 which i can use in my video driver???
 
Old 09-26-2009, 05:20 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
If this is distribution specific, then upgrade the sources.
 
  


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
problem upgrading linux kernel noiz354 Linux - Newbie 4 02-21-2009 02:38 AM
Upgrading Kernel 2.4.20 to 2.4.36.6 in RedHat Linux 9 austinbravo Linux - Newbie 4 07-21-2008 11:59 PM
Upgrading the Linux Kernel scottjwoodford Linux - Software 6 06-15-2005 12:52 PM
Upgrading my Linux Kernel MSwal2846 Linux - Networking 1 03-19-2004 11:23 AM
Upgrading the Linux Kernel to 2.5 Ken Ju-On Linux - Newbie 7 08-12-2003 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration