Great find!

Regards,
Andy

----- Original Message ----
From: Meher <[EMAIL PROTECTED]>
To: Constantine Shulyupin <[EMAIL PROTECTED]>; [EMAIL PROTECTED]; 
davinci-linux-open-source@linux.davincidsp.com
Sent: Thursday, May 24, 2007 8:49:33 AM
Subject: git kernel boot problem: Solved: Able to boot with USB built in: patch 
attached

On 5/23/07, Constantine Shulyupin <[EMAIL PROTECTED]> wrote:
> Sorry, I don't know.
> I could suggest:
> 1. Debug kernel boot with JTAG.
> 2. Try to boot last known good configuration.
>
> On 5/23/07, kalyan chakravarthy <[EMAIL PROTECTED]> wrote:
> >
> >
> > http://wiki.linuxquestions.org/wiki/DaVinci-Linux_FAQ#git_kernel_boot_problem
> >
> > MACHINE_NUMBER is not the ONLY problem that causes git kernel to not boot(or
> > not display any messages after "booting linux kernel")
> >  Unless USB is compiled as a module (vs buitl-in) it does not work. Is this
> > a known problem and does any one know if it is fixed?
> >
> > Regards,
> >  Kalyan
> >

This problem is solved.. As I sent in my earlier mail, kernel was
crashing because of a call to i2c and by the time USB core makes a
call to i2c, i2c subsystem is not initialized. So as a workaround for
this I change two files:

changed
subsys_initcall(musb_init) to fs_initcall(musb)init);
in drivers/usb/musb/plat_uds.c

changed
module_init(davinci_i2c_client_init) to fs_initcall(davinci_i2c_client)
in arch/arm/mach-davinci/i2c-client.c


I am attaching a patch file along with the mail.. This si the first
time I ahve generated a patch so if there is any thing wrong I have
done please let me know..


-- 
Regards,
Meher

--- arch/arm/mach-davinci/i2c-client.orig.c    Thu May 24 10:45:26 2007
+++ arch/arm/mach-davinci/i2c-client.c    Thu May 24 10:41:30 2007
@@ -245,5 +245,6 @@
     i2c_del_driver(&davinci_i2c_client_driver);
 }
 
-module_init(davinci_i2c_client_init);
+//module_init(davinci_i2c_client_init);
+fs_initcall(davinci_i2c_client_init);
 module_exit(davinci_i2c_client_exit);
--- drivers/usb/musb/plat_uds.orig.c    Thu May 24 10:46:45 2007
+++ drivers/usb/musb/plat_uds.c    Thu May 24 10:21:26 2007
@@ -1998,7 +1998,8 @@
 /* make us init after usbcore and before usb
  * gadget and host-side drivers start to register
  */
-subsys_initcall(musb_init);
+//subsys_initcall(musb_init);
+fs_initcall(musb_init);
 
 static void __exit musb_cleanup(void)
 {

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source




_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to