<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Sudip,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">If you have any doubt please ask little only, he will reply for sure. Better not to ask questions in public mailing list.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 9, 2014 at 5:46 PM, Sudip Mukherjee <span dir="ltr"><<a href="mailto:sudipm.mukherjee@gmail.com" target="_blank">sudipm.mukherjee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
sorry i cant help you with this. the rules of the challenge says "you<br>
really should be doing your own work" .<br>
i can only say you that I have taken almost one month for this one . I<br>
am currently at task 18 and i still think this one was the toughest of<br>
all the tasks til now. but after finishing it you will surely say<br>
"s**** its this easy .. " .. well .. atleast i said .. :)<br>
<br>
thanks<br>
sudip<br>
<br>
<br>
<br>
On Tue, Sep 9, 2014 at 5:45 PM, lx <<a href="mailto:lxlenovostar@gmail.com">lxlenovostar@gmail.com</a>> wrote:<br>
> hi :<br>
> I'm confused about Eudyptula Challenge Task 05. Actually, I try two<br>
> ways.<br>
> 1. I register a usb driver, but Eudyptula Challange don't think so.<br>
> ##############################################<br>
><br>
> #include <linux/module.h><br>
> #include <linux/kernel.h><br>
> #include <linux/init.h><br>
> #include <linux/usb.h><br>
> #include <linux/usb/input.h><br>
> #include <linux/hid.h><br>
><br>
> MODULE_AUTHOR("author");<br>
> MODULE_DESCRIPTION("lx module\n");<br>
> MODULE_LICENSE("GPL");<br>
><br>
> static struct usb_device_id lx_id_table[] = {<br>
> { USB_INTERFACE_INFO(USB_INTERFACE_CLASS_HID,<br>
> USB_INTERFACE_SUBCLASS_BOOT,<br>
> USB_INTERFACE_PROTOCOL_KEYBOARD) },<br>
> { } /* Terminating entry */<br>
> };<br>
><br>
> MODULE_DEVICE_TABLE(usb, lx_id_table);<br>
><br>
> static int lx_probe(struct usb_interface *interface,<br>
> const struct usb_device_id *id)<br>
> {<br>
> pr_debug("LxModule: USB keyboard probe function called\n");<br>
> return 0;<br>
> }<br>
><br>
> static void lx_disconnect(struct usb_interface *interface)<br>
> {<br>
> pr_debug("LxModule: USB keyboard disconnect function called\n");<br>
> }<br>
><br>
> static struct usb_driver lx_driver = {<br>
> .name = "lx_driver",<br>
> .probe = lx_probe,<br>
> .disconnect = lx_disconnect,<br>
> .id_table = lx_id_table<br>
> };<br>
><br>
> ################################################<br>
><br>
> But the Eudyptula Challenge receiving message is:<br>
> ###############################################<br>
> *<br>
> This structure is not needed.*<br>
><br>
> ##############################################<br>
><br>
><br>
><br>
> 2. I use the udev rule, I create a hello.sh in /lib/udev with:<br>
> ##########################################################<br>
> sudo -H gedit /lib/udev/hello.sh<br>
> ##########################################################<br>
><br>
> And the contents is:<br>
> ##########################################################<br>
> #!/bin/bash<br>
><br>
> sudo -H insmod /opt/task_01.ko<br>
> ##########################################################<br>
> This command let module of task_01 run.<br>
><br>
> Save the file,close it and make it executable with:<br>
> ##########################################################<br>
> chmod +x /lib/udev/hello.sh<br>
> ##########################################################<br>
><br>
> Add a new rule in my /etc/udev/rules.d/01-my-first-udev.rules file like<br>
> this:<br>
> #########################################################<br>
> ACTION=="add", RUN+="/lib/udev/hello.sh"<br>
> ##########################################################<br>
><br>
><br>
> But the Eudyptula Challenge receiving message is:<br>
> ################################<br>
><br>
> No new udev rule is needed.<br>
> #########################################<br>
><br>
> So, which basics I should read and understand ?<br>
> Thank you.<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Regards<br>Jeshwanth Kumar N K<br></div>Bangalore, India<br></div>
</div>