From: Sir G. \(EndoraSoft\) <sir...@en...> - 2007-06-22 14:55:14
|
Hi, We download the last version of Gumstix and Apply the ds1307.pach.... ... But with this version there is a problem. When the S.O Load the = ds1307 in the modules..... have a error. Gumstix Flash ROM: Found 1 x16 devices at 0x0 in 16-bit bank Intel/Sharp Extended Query Table at 0x0031 Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled Using static partitions on Gumstix Flash ROM Creating 2 MTD partitions on "Gumstix Flash ROM": 0x00000000-0x00040000 : "Bootloader" 0x00040000-0x01000000 : "RootFS" TCP cubic registered XScale DSP coprocessor detected. Time: pxa_timer clocksource has been installed. VFS: Mounted root (jffs2 filesystem). Freeing init memory: 64K NET: Registered protocol family 1 mmcblk0: mmc0:0001 SDM064 62720KiB=20 mmcblk0: p1 i2c /dev entries driver I2C: i2c-0: PXA I2C adapter Unable to handle kernel NULL pointer dereference at virtual address = 00000000 pgd =3D c3f58000 [00000000] *pgd=3Da3ec0031, *pte=3D00000000, *ppte=3D00000000 Internal error: Oops: 17 [#1] Modules linked in: ds1307 i2c_pxa i2c_dev i2c_core nls_iso8859_1 = nls_cp437 vfat fat nls_base pxamci mmc_block mmc_core unix CPU: 0 PC is at strlen+0x18/0x2c LR is at make_driver_name+0x28/0x68 pc : [<c00cc018>] lr : [<c0049a68>] Not tainted sp : c3823e30 ip : c3823e40 fp : c3823e3c r10: c4853224 r9 : c4852000 r8 : 00000016 r7 : 00000000 r6 : bf03a60c r5 : bf03a5e0 r4 : 00000003 r3 : 00000000 r2 : 00000000 r1 : c3822000 r0 : 00000000 Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment user Control: 397F Table: A3F58000 DAC: 00000015 Process modprobe (pid: 193, stack limit =3D 0xc3822258) Stack: (0xc3823e30 to 0xc3824000) 3e20: c3823e54 c3823e40 c0049a68 = c00cc00c=20 3e40: bf03a5e0 bf03a8c0 c3823e74 c3823e58 c0049b50 c0049a4c c01423b8 = bf03a5e0=20 3e60: bf03a60c bf030e5c c3823e9c c3823e78 c00e3f14 c0049b1c c3823e9c = bf03a5e0=20 3e80: bf03a5c8 bf03a8c0 c3ffd1c4 00000016 c3823eb4 c3823ea0 c00e493c = c00e3e9c=20 3ea0: c0056454 c3ffd19c c3823ed4 c3823eb8 bf02e268 c00e48b4 c3ffd19c = c3ffd19c=20 3ec0: c3ffd000 bf03a8c0 c3823ee4 c3823ed8 bf03c018 bf02e24c c3823fa4 = c3823ee8=20 3ee0: c004b760 bf03c00c 00000000 c3cc68e0 c3f81c60 00015008 00000000 = 00000000=20 3f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 = 00000000=20 3f20: 00000000 00000000 00000008 c48540a4 c3831560 c485351c c485342c = c4853544=20 3f40: 00000000 00000071 00000071 bf03a8cc bf02d38c 00000001 c4853174 = 00000015=20 3f60: c01460d4 c485356c 00000050 00000013 bf031300 00000000 467bd9a8 = 0000a518=20 3f80: 00000000 00016230 00000080 c0018fe4 c3822000 00000000 00000000 = c3823fa8=20 3fa0: c0018e60 c004a408 0000a518 00000000 40006000 00002520 00015008 = 00000000=20 3fc0: 0000a518 00000000 00016230 00000080 000162f0 000162fc 00000000 = 00000000=20 3fe0: 40019738 befa3b38 0000a94c 4001974c 20000010 40006000 00000000 = 00000000=20 Backtrace:=20 [<c00cc000>] (strlen+0x0/0x2c) from [<c0049a68>] = (make_driver_name+0x28/0x68) [<c0049a40>] (make_driver_name+0x0/0x68) from [<c0049b50>] = (module_add_driver+0x40/0x68) r5 =3D BF03A8C0 r4 =3D BF03A5E0=20 [<c0049b10>] (module_add_driver+0x0/0x68) from [<c00e3f14>] = (bus_add_driver+0x84/0x184) r6 =3D BF030E5C r5 =3D BF03A60C r4 =3D BF03A5E0=20 [<c00e3e90>] (bus_add_driver+0x0/0x184) from [<c00e493c>] = (driver_register+0x94/0x9c) r8 =3D 00000016 r7 =3D C3FFD1C4 r6 =3D BF03A8C0 r5 =3D BF03A5C8 r4 =3D BF03A5E0=20 [<c00e48a8>] (driver_register+0x0/0x9c) from [<bf02e268>] = (i2c_register_driver+0x28/0xb0 [i2c_core]) r4 =3D C3FFD19C=20 [<bf02e240>] (i2c_register_driver+0x0/0xb0 [i2c_core]) from [<bf03c018>] = (ds1307_init+0x18/0x24 [ds1307]) r6 =3D BF03A8C0 r5 =3D C3FFD000 r4 =3D C3FFD19C=20 [<bf03c000>] (ds1307_init+0x0/0x24 [ds1307]) from [<c004b760>] = (sys_init_module+0x1364/0x1498) [<c004a3fc>] (sys_init_module+0x0/0x1498) from [<c0018e60>] = (ret_fast_syscall+0x0/0x2c) Code: e24cb004 e1a02000 ea000000 e2800001 (e5d03000)=20 Initializing random number generator... done. Starting network... udhcpc (v0.9.9-pre) started Dec 31 16:00:22 udhcpc[238]: udhcpc (v0.9.9-pre) started <6>pxa2xx_udc: version 4-May-2005 usb0: Ethernet Gadget, version: May Day 2005 usb0: using pxa2xx_udc, OUT ep2out-bulk IN ep1in-bulk STATUS ep6in-bulk usb0: MAC 0a:00:f1:42:fe:20 usb0: HOST MAC 0a:00:f1:42:fe:21 usb0: RNDIS ready Nothing to flush. NET: Registered protocol family 17 udhcpc (v0.9.9-pre) started Dec 31 16:00:23 udhcpc[280]: udhcpc (v0.9.9-pre) started smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <ni...@ca...> eth0: SMC91C11xFD (rev 1) at c4852300 IRQ 59 DMA 9 [nowait] eth0: Ethernet addr: 0a:00:f1:42:fe:10 eth0: PHY LAN83C183 (LAN91C111 Internal) Nothing to flush. eth0: link down Welcome to the Gumstix Linux Distribution! gumstix login:=20 Anyboy have any suggestion about this? We need that the DS1307 = works...... Regards, Sir Graham. |
From: Craig H. <cr...@gu...> - 2007-06-22 15:42:06
|
On Jun 22, 2007, at 7:53 AM, Sir Graham (EndoraSoft) wrote: > Anyboy have any suggestion about this? We need that the DS1307 > works...... > Looks like the ds1307 driver is calling down to strlen() on a null pointer or something from inside the "make_driver_name" function? C |
From: Sir G. \(EndoraSoft\) <sir...@en...> - 2007-06-22 16:04:18
|
Hi Craig, We need modify the ds1307.patch to compilate the Build version..... = Perhaps....this is the problem.=20 However with this change we haven=B4t problems in the before versions of = build. The modificacion in ds1301.patch: + kfree(client); + return 0; +} + +struct i2c_driver ds1307_driver =3D { + //.name =3D "ds1307", + .id =3D I2C_DRIVERID_DS1307, + //.flags =3D I2C_DF_NOTIFY, + .class =3D I2C_CLASS_HWMON, + .attach_adapter =3D ds1307_attach_adapter, + .detach_client =3D ds1307_detach_client, +}; + +static __init int ds1307_init(void) +{ + return i2c_add_driver(&ds1307_driver); +} + +static __exit void ds1307_exit(void) +{ + i2c_del_driver(&ds1307_driver); Some questions: - Is The ds1307.patch necessary in the Build 1431? - Well, If this patch is necessary, can be compiled with this version?=20 (we think there is a problem in the struct i2c_driver. Some fields = of this struct don=B4t exits) Can yo help with this driver? Thanks in advanced. Regards, Sir Graham. ----- Original Message -----=20 From: Craig Hughes=20 To: General mailing list for gumstix users.=20 Sent: Friday, June 22, 2007 5:42 PM Subject: Re: [Gumstix-users] Problem with the last version and = ds1307.patch On Jun 22, 2007, at 7:53 AM, Sir Graham (EndoraSoft) wrote: Anyboy have any suggestion about this? We need that the DS1307 = works...... =C2=20 Looks like the ds1307 driver is calling down to strlen() on a null = pointer or something from inside the "make_driver_name" function? C -------------------------------------------------------------------------= ----- = -------------------------------------------------------------------------= This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ -------------------------------------------------------------------------= ----- _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Dave H. <dhy...@gm...> - 2007-06-22 16:56:22
|
Hi guys, > We need modify the ds1307.patch to compilate the Build version..... > Perhaps....this is the problem. > However with this change we haven=B4t problems in the before versions of > build. I see that there were some patches over on the linux-arm list relating to i2c drivers for the pxa. I've been really busy lately, but its on my todo list to try out eh ds1307 stuff again, and verify the i2c stuff on recent buildroots. --=20 Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Sir G. \(EndoraSoft\) <sir...@en...> - 2007-06-23 19:31:17
Attachments:
ds1307.patch
|
Hi, We revisated te driver ds1703.c and his patch to the build version 1431 (the last). This work now. We think, that if the guys of gumstix can incorporated this modification in the build....if better that use a patch.... We attached the file (patch). Regards, Sir Graham. ----- Original Message ----- From: "Sir Graham (EndoraSoft)" <sir...@en...> To: "General mailing list for gumstix users." <gum...@li...> Sent: Friday, June 22, 2007 10:04 PM Subject: Re: [Gumstix-users] Problem with the last version and ds1307.patch Hi Dave, Thanks very much. We waiting your "test"....and conclusions.... Regards, Sir Graham. ----- Original Message ----- From: "Dave Hylands" <dhy...@gm...> To: "General mailing list for gumstix users." <gum...@li...> Sent: Friday, June 22, 2007 6:56 PM Subject: Re: [Gumstix-users] Problem with the last version and ds1307.patch Hi guys, > We need modify the ds1307.patch to compilate the Build version..... > Perhaps....this is the problem. > However with this change we haven´t problems in the before versions of > build. I see that there were some patches over on the linux-arm list relating to i2c drivers for the pxa. I've been really busy lately, but its on my todo list to try out eh ds1307 stuff again, and verify the i2c stuff on recent buildroots. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |
From: Sir G. \(EndoraSoft\) <sir...@en...> - 2007-06-22 20:05:15
|
Hi Dave, Thanks very much. We waiting your "test"....and conclusions.... Regards, Sir Graham. ----- Original Message ----- From: "Dave Hylands" <dhy...@gm...> To: "General mailing list for gumstix users." <gum...@li...> Sent: Friday, June 22, 2007 6:56 PM Subject: Re: [Gumstix-users] Problem with the last version and ds1307.patch Hi guys, > We need modify the ds1307.patch to compilate the Build version..... > Perhaps....this is the problem. > However with this change we haven´t problems in the before versions of > build. I see that there were some patches over on the linux-arm list relating to i2c drivers for the pxa. I've been really busy lately, but its on my todo list to try out eh ds1307 stuff again, and verify the i2c stuff on recent buildroots. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users |