Date: Sat, 8 Jan 2011 14:49:59 -0500 From: Andrew Gallatin <gallatin@gmail.com> To: freebsd-multimedia@freebsd.org Subject: Re: em28xx? Message-ID: <AANLkTimOtABnMgkNn9jAiThWmZ9Ec3pNQ%2Bq_GR_1Ae4h@mail.gmail.com> In-Reply-To: <AANLkTimhh9qt1mwMk0NJ0_XP2W14azixpKD=fZYYpOpi@mail.gmail.com> References: <AANLkTimhh9qt1mwMk0NJ0_XP2W14azixpKD=fZYYpOpi@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0016e644cfe23b0f3d04995b0a97 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, Jan 8, 2011 at 2:11 PM, Andrew Gallatin <gallatin@gmail.com> wrote: > (see appended output). =A0Has anybody tried =A0this before? =A0What are t= he > general steps for porting a driver? So I hacked on it for a while (see attached dirty patch) and I've got the em28xx device seen. But it dies in v4l2_device_register(): (gdb) bt #0 0x000000000040aeba in v4l2_device_register (dev=3D0x8011bf4b0, v4l2_dev=3D0x801202630) at /tank/ports/multimedia/webcamd/work.bak/webcamd-0.1.18/v4l-dvb/linux= /drivers/media/video/v4l2-device.c:47 #1 0x000000000046c933 in em28xx_usb_probe (interface=3D0x8011bf4b0, id=3D0= x6d43c8) at /tank/ports/multimedia/webcamd/work.bak/webcamd-0.1.18/v4l-dvb/linux= /drivers/media/video/em28xx/em28xx-cards.c:2908 #2 0x00000000004084f2 in usb_linux_probe_p (p_bus=3D0x758d50, p_addr=3D0x758d54, p_index=3D0x758d58) at /tank/ports/multimedia/webcamd/work.bak/webcamd-0.1.18/kernel/linux_usb.c:4= 15 #3 0x00000000004f04ff in main (argc=3D-5792, argv=3D0x7fffffffea80) at webcamd.c:482 (gdb) frame 0 #0 0x000000000040aeba in v4l2_device_register (dev=3D0x8011bf4b0, v4l2_dev=3D0x801202630) at /tank/ports/multimedia/webcamd/work.bak/webcamd-0.1.18/v4l-dvb/linux= /drivers/media/video/v4l2-device.c:47 47 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s", (gdb) l 42 return 0; 43 } 44 45 /* Set name to driver name + device name if it is empty. */ 46 if (!v4l2_dev->name[0]) 47 snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s", 48 dev->driver->name, dev_name(dev)); 49 if (dev_get_drvdata(dev)) 50 v4l2_warn(v4l2_dev, "Non-NULL drvdata on register\n= "); 51 dev_set_drvdata(dev, v4l2_dev); (gdb) p dev->driver->name Cannot access memory at address 0x0 (gdb) p dev->driver $2 =3D (struct device_driver *) 0x0 (gdb) p dev $3 =3D (struct device *) 0x8011bf4b0 Advice? Thanks, Drew --0016e644cfe23b0f3d04995b0a97 Content-Type: text/x-patch; charset=US-ASCII; name="t.diff" Content-Disposition: attachment; filename="t.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gioxdk6t0 T25seSBpbiB3b3JrLmJhazogLlBMSVNULmZsYXR0ZW5lZApPbmx5IGluIHdvcmsuYmFrOiAuUExJ U1QubWt0bXAKT25seSBpbiB3b3JrLmJhazogLlBMSVNULm9iamR1bXAKT25seSBpbiB3b3JrLmJh azogLlBMSVNULnNldHVpZApPbmx5IGluIHdvcmsuYmFrOiAuUExJU1Qud3JpdGFibGUKT25seSBp biB3b3JrLmJhazogLmJ1aWxkX2RvbmUud2ViY2FtZC5fdXNyX2xvY2FsCk9ubHkgaW4gd29yay5i YWs6IC5jb25maWd1cmVfZG9uZS53ZWJjYW1kLl91c3JfbG9jYWwKT25seSBpbiB3b3JrLmJhazog Lmluc3RhbGxfZG9uZS53ZWJjYW1kLl91c3JfbG9jYWwKT25seSBpbiB3b3JrLmJhazogd2ViY2Ft ZApkaWZmIC11ciB3b3JrL3dlYmNhbWQtMC4xLjE4L01ha2VmaWxlIHdvcmsuYmFrL3dlYmNhbWQt MC4xLjE4L01ha2VmaWxlCi0tLSB3b3JrL3dlYmNhbWQtMC4xLjE4L01ha2VmaWxlCTIwMTEtMDEt MDggMTQ6ND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TZ4LjQuZ3oKT25s eSBpbiB3b3JrLmJhay93ZWJjYW1kLTAuMS4xODogd2ViY2FtZC44Lmd6Ck9ubHkgaW4gd29yay5i YWsvd2ViY2FtZC0wLjEuMTg6IHdlYmNhbWQuY29yZQpPbmx5IGluIHdvcmsuYmFrL3dlYmNhbWQt MC4xLjE4OiB6YzAzMDEuNC5negpPbmx5IGluIHdvcmsuYmFrL3dlYmNhbWQtMC4xLjE4OiB6YzN4 eC40Lmd6Ck9ubHkgaW4gd29yay5iYWsvd2ViY2FtZC0wLjEuMTg6IHpvcmFuLjQuZ3oKT25seSBp biB3b3JrLmJhay93ZWJjYW1kLTAuMS4xODogenIzNjR4eC40Lmd6Ck9ubHkgaW4gd29yay5iYWs6 IHdlYmNhbWQuY29uZgo= --0016e644cfe23b0f3d04995b0a97--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimOtABnMgkNn9jAiThWmZ9Ec3pNQ%2Bq_GR_1Ae4h>