LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Unable to handle kernel paging request at virtual address 4800217c (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/unable-to-handle-kernel-paging-request-at-virtual-address-4800217c-876459/)

balakv 04-22-2011 03:05 AM

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

smallpond 04-25-2011 08:56 AM

Quote:

Originally Posted by balakv (Post 4332337)


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

balakv 04-26-2011 12:42 AM

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....


All times are GMT -5. The time now is 08:25 AM.