Re: A new way to dive into the kernel!

2014-03-11 Thread Srivardhan M S
Yes... Just sent the solution for the 1st assignment... You not gettting? What is the issue? Thank-you, Sri On Tue, Mar 11, 2014 at 11:19 AM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: Yes. Just remember to send a plain text mail. HTH, -mandeep On Tue, Mar 11, 2014 at 10:36 AM,

Re: A new way to dive into the kernel!

2014-03-11 Thread Aruna Hewapathirane
It seems too many people signed up at the moment... causing the scripts to malfunction. Should be resolved in a day or two is what I was told. I have so far received four tasks. Thank you ! Aruna On Tue, Mar 11, 2014 at 2:14 AM, Srivardhan M S srivardha...@gmail.comwrote: Yes... Just sent the

RE: Does register_chrdev function make device file under /dev ?

2014-03-11 Thread Kim Chan
Yeah, I know mknod command. I just wanted to know if the register_chrdev makes the file or not. To my understanding, device file is needed when a user program wants to access the device and we don't need to generate the device file for us to use the device in kernel. Is my understanding

Re: Does register_chrdev function make device file under /dev ?

2014-03-11 Thread Mandeep Sandhu
On Tue, Mar 11, 2014 at 1:31 PM, Kim Chan c...@etri.re.kr wrote: Yeah, I know mknod command. I just wanted to know if the register_chrdev makes the file or not. It doesn't. Also note that this is the old way of registering a char device. New code should use cdev_add() etc. To my

RE: Does register_chrdev function make device file under /dev ?

2014-03-11 Thread 김찬
Hi, Mandeep, Thanks for clearing some things for me. For accessing the device in kernel code, I think maybe we can use the /proc or /sys file system. (I remember seeing people saying something like that.. correct me if I'm wrong) I think you need to point getty or a shell to the correct tty

building kernel modules for linux differnet version

2014-03-11 Thread Saket Sinha
Hi, I have a scenario where I need to build a driver for different kernel versions. I have kernel-headers of different version in /lib/modules/ 2.6.32- 2.6.39- and currently I am booted into 2.6.32-(which I find out by uname -r) Now in my driver makefile, I generate .ko of

Re: building kernel modules for linux differnet version

2014-03-11 Thread Yann Droneaud
Hi, Le mardi 11 mars 2014 à 21:16 +0530, Saket Sinha a écrit : I have a scenario where I need to build a driver for different kernel versions. I have kernel-headers of different version in /lib/modules/ 2.6.32- 2.6.39- and currently I am booted into 2.6.32-(which I

Re: building kernel modules for linux differnet version

2014-03-11 Thread Yann Droneaud
Le mardi 11 mars 2014 à 22:42 +0530, Saket Sinha a écrit : Please find my response inline I have a scenario where I need to build a driver for different kernel versions. I have kernel-headers of different version in /lib/modules/ 2.6.32- 2.6.39- and currently I am

Re: building kernel modules for linux differnet version

2014-03-11 Thread Saket Sinha
On Tue, Mar 11, 2014 at 11:09 PM, Yann Droneaud ydrone...@opteya.com wrote: Le mardi 11 mars 2014 à 22:42 +0530, Saket Sinha a écrit : Please find my response inline I have a scenario where I need to build a driver for different kernel versions. I have kernel-headers of different

How to use sparse to check my driver

2014-03-11 Thread m silverstri
I am trying to use sparse to check my driver that I developed. From http://kernelnewbies.org/Sparse, It said 'make C=2 drivers/staging/wlan-ng/', what does it check it I do 'make C=2' and how does it actually call 'spare'? Do I need to modify my Makefile to add a new target or something? Thank

where is the printf source for busybox?

2014-03-11 Thread Kim Chan
Hi, I've had this question for some time past and I would like to know the answer now.. I wanted to follow a printf in busybox but couldn't find the source of the printf function. Then I throught probably the printf is provided by the system library where printf is connected to proper linux

Re: where is the printf source for busybox?

2014-03-11 Thread Mohan L
On Wed, Mar 12, 2014 at 7:14 AM, Kim Chan c...@etri.re.kr wrote: Hi, I've had this question for some time past and I would like to know the answer now.. I wanted to follow a printf in busybox but couldn't find the source of the printf function. Then I throught probably the printf is

RE: where is the printf source for busybox?

2014-03-11 Thread Kim Chan
Hi, Mohan, Thanks! so the printf is name chagned to _printf by the compiler. I missed that. Chan From : Mohan L l.mohan...@gmail.com Sent : 2014-03-12 11:07:45 ( +09:00 ) To : Kim Chan c...@etri.re.kr Cc : kernelnewbies@kernelnewbies.org

Not mounting rootfs

2014-03-11 Thread Flavio Ceolin
Hi folks, I trying to boot a kernel with a rootfs generated with buildroot under qemu but with any success, the output is: [0.814014] Magic number: 6:562:333 [0.814522] tty tty54: hash matches [0.815121] rtc_cmos 00:00: setting system clock to 2014-03-11 14:19:08 UTC (1394547548)

Re: where is the printf source for busybox?

2014-03-11 Thread Mohan L
On Wed, Mar 12, 2014 at 10:09 AM, Dave Hylands dhyla...@gmail.com wrote: Hi, On Tue, Mar 11, 2014 at 6:44 PM, Kim Chan c...@etri.re.kr wrote: Hi, I've had this question for some time past and I would like to know the answer now.. I wanted to follow a printf in busybox but couldn't

Re:Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-11 Thread Rahul Garg
Hi all, I am also thinking of taking this challenge. But I found very limited information on submission. So can you help me what we need to submit for the Assigment 1, will dmesg (or /proc/kmsg) output and module(assignement1.c and Makeflie) be enough ?? Also is there any group of forum where we

Re: Re: A new way to dive into the kernel! [Eudyptula Challenge]

2014-03-11 Thread Sudip Mukherjee
I just completed successfully task 1 .. :) ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

RE: where is the printf source for busybox?

2014-03-11 Thread Kim Chan
Hello Dave, (and Mohan) Thanks for the nice info. I've downloaded uClibc code and ran ctags -R and searched down printf. It looks like the main print path is (assuming __STDIO_BUFFERS : I guess user level buffer for stdin, stdout, stderr) and assuming STDIO_GETC/PUTC_MACRO defined. without the