Hey guys, I wrote a simple driver for using interrupts. I have kernel print statements that I want my driver to print whenever I insert it into the kernel. When I type modprobe myfile , it prints nothing but it registers the driver to the mini2440's kernel. I have tried: printk("BLAH BLAH BLAH BLAH"); and printk("BLAHAHAHAHAH %d", myvariable) and also printk(KERN ALERT "BLAHAHAHAHAH") Everything compiles just fine but I cant get anything to print out on the console at all. Usually you can "cat" /var/log/messages and see what the kernel is logging. When I cat this file though, it does not have any of the kernel messages that I am looking for. Does printing to the kernel work on the mini2440? I don't see why it would not. When I read the chinese manual, they have a simple hello_world driver. Even when I run that... the mini2440 won't print out printk() statements, even though the manual shows them working (of course). Any help would be appreciated.. Thank You! -Ben
printk() problems
Normally kernel have different loglevels. Try use KERN_ERR or in bootargs add after console=....,debug maybe it help. marek
You can register a driver. But if there is no device it belongs to, the driver gets not called. Maybe this is the reason, why you can't see any output. It is just not called.
Hey guys, I figured it out. Apperently the mini2440 natively outputs it's kernel messages through the serial port. So after I connected the the ARMBoard through the serial port, I was able to see my printk() messages. Thank you though! -Ben