LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 04-22-2011, 03:05 AM   #1
balakv
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
Unable to handle kernel paging request at virtual address 4800217c




hi dudes,

i am using Begale board Xm(OMAP processer) Board..i am wrote the program for toggling the user's LED in Begale board...

my code is





#include<linux/module.h>
#include<linux/kernel.h>

#define Enable_Reg (*((volatile unsigned long*)0x49056034))

#define output (*((volatile unsigned long*)0x4905603c))

#define func_clk (*((volatile unsigned long*)0x48005000))

#define inter_clk (*((volatile unsigned long*)0x48005010))

#define UART_TX (*((volatile unsigned long*)0x4800217c))

#define UART_CTS (*((volatile unsigned long*)0x48002180))

#define USR_LED0 0x00200000
#define USR_LED1 0x00400000




int init_module()
{
long int i;
printk(KERN_ALERT,"HELLO DEARs\n");

UART_TX &=0x0000ffff;
UART_TX |=0x00040000;
UART_CTS &=0xffff0000;
UART_CTS |=0x00000004;

func_clk |=0x20;
inter_clk|=0x20;


Enable_Reg &= ~(USR_LED0+USR_LED1);

output|=USR_LED0;
output &=~USR_LED1;

while(1){
for(i=0;i<10000;i++){}
output^=USR_LED0;
output^=USR_LED1;
}

}

void cleanup_module()
{
printk(KERN_ALERT,"GOOD buy\n");
}


i am trying to compile...

it shows following error.........


Unable to handle kernel paging request at virtual address 4800217c


module_led: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
Unable to handle kernel paging request at virtual address 4800217c
pgd = d74d4000
[4800217c] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file: /sys/kernel/uevent_seqnum
Modules linked in: module_led(P+)


plz help me dudesssssA
 
Old 04-25-2011, 08:56 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by balakv View Post


hi dudes,

i am using Begale board Xm(OMAP processer) Board..i am wrote the program for toggling the user's LED in Begale board...

my code is





#include<linux/module.h>
#include<linux/kernel.h>

#define Enable_Reg (*((volatile unsigned long*)0x49056034))

#define output (*((volatile unsigned long*)0x4905603c))

#define func_clk (*((volatile unsigned long*)0x48005000))

#define inter_clk (*((volatile unsigned long*)0x48005010))

#define UART_TX (*((volatile unsigned long*)0x4800217c))

#define UART_CTS (*((volatile unsigned long*)0x48002180))


Where are these addresses from? Why do you think they are valid?
Quote:


#define USR_LED0 0x00200000
#define USR_LED1 0x00400000




int init_module()
{
long int i;
printk(KERN_ALERT,"HELLO DEARs\n");

UART_TX &=0x0000ffff;
UART_TX |=0x00040000;
UART_CTS &=0xffff0000;
UART_CTS |=0x00000004;
Are you expecting this to modify memory location 0x4800217c?
That's not what this code does.
Quote:



func_clk |=0x20;
inter_clk|=0x20;


Enable_Reg &= ~(USR_LED0+USR_LED1);

output|=USR_LED0;
output &=~USR_LED1;

while(1){
for(i=0;i<10000;i++){}
output^=USR_LED0;
output^=USR_LED1;
}

}

void cleanup_module()
{
printk(KERN_ALERT,"GOOD buy\n");
}
You should post code in code tags.
Quote:



i am trying to compile...

it shows following error.........

Unable to handle kernel paging request at virtual address 4800217c
Are you sure the compiler is giving you this error?

Quote:


module_led: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
Unable to handle kernel paging request at virtual address 4800217c
pgd = d74d4000
[4800217c] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file: /sys/kernel/uevent_seqnum
Modules linked in: module_led(P+)


plz help me dudesssssA
 
Old 04-26-2011, 12:42 AM   #3
balakv
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
YES..COMPILER GAVE SAME ERROR MENTIONED ABOVE......

THE ABOVE ADDRESS ARE TAKEN FRON DM3730manual.pdf......

---------- Post added 04-26-11 at 12:42 AM ----------

Thx for replying dude....
 
  


Reply



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
unable to handle kernel paging request at virtual address skibud2 Linux - Kernel 0 12-10-2009 08:32 AM
Unable to handle kernel paging request at virtual address ff200200 gdkool Linux - Kernel 10 07-22-2009 06:33 AM
Unable to handle kernel paging request at virtual address gdkool Linux - Software 2 01-04-2008 07:21 AM
unable to handle kernel paging request at virtual address 723d4edb mahipal Linux - Kernel 1 03-02-2007 07:05 PM
Unable to handle kernel paging request at virtual address jah3765 Linux - General 6 01-17-2005 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 06:33 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
Open Source Consulting | Domain Registration