Re: smi2021 module compile only

444 views
Skip to first unread message

wirean...@gmail.com

unread,
Feb 19, 2014, 11:04:03 AM2/19/14
to easycap-so...@googlegroups.com
Hello,

Are you referring to me unpacking the easycap source from  smi2021v3.patch? I copied the contents of the patch to my kernel in /usr/src/, along with the necessary changes to some files (e.g. Kconfig).

As for the easycap code containing userspace tools (e.g. somagic capture), I got the code from the Google repo. Do I need this easycap code placed somewhere to finish the compile?

Thanks,

Arnold

From my Android phone on T-Mobile. The first nationwide 4G network.

----- Reply message -----
From: "tosiara" <tos...@gmail.com>
To: <easycap-so...@googlegroups.com>
Subject: smi2021 module compile only
Date: Wed, Feb 19, 2014 05:35


Which easycap source are you using? Google repo? linux-tv patchwork?

On Wednesday, February 19, 2014 7:37:25 AM UTC+2, Arnold wrote:
>
> Hello,
>
> When attempting to compile the SMI2021 module in Ubuntu 13.10 I am getting
> this error when running the first command:
>
> $ sudo make M=drivers/media/i2c modules
>   CC [M]  drivers/media/i2c/saa6588.o
> drivers/media/i2c/saa6588.c: In function ‘read_from_buf’:
> drivers/media/i2c/saa6588.c:194:11: error: ‘struct saa6588_command’ has no
> member named ‘nonblocking’
>   while (!a->nonblocking && !s->data_available_for_read) {
>            ^
> make[1]: *** [drivers/media/i2c/saa6588.o] Error 1
> make: *** [_module_drivers/media/i2c] Error 2
>
> $ uname -a
> Linux Arnold-Ubuntu 3.12.0-031200-generic #201311031935 SMP Mon Nov 4
> 00:46:34 UTC 2013 i686 i686 i686 GNU/Linux
>
> I have verified (as best as I could tell) that all relevant code from the
> listed patches are found in this kernel.  What is missing/preventing the
> compile?
>
> Thanks,
>
> Arnold
>

--
You received this message because you are subscribed to a topic in the Google Groups "easycap-somagic-linux" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/easycap-somagic-linux/EfrOxVy-SEc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to easycap-somagic-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jon Arne Jørgensen

unread,
Feb 19, 2014, 12:04:23 PM2/19/14
to easycap-so...@googlegroups.com
Hi,
This error is not comming from the compilation of the smi driver.
There seems to be something wrong with your kernel tree.

>> $ sudo make M=drivers/media/i2c modules
>> CC [M] drivers/media/i2c/saa6588.o
>> drivers/media/i2c/saa6588.c: In function ‘read_from_buf’:
>> drivers/media/i2c/saa6588.c:194:11: error: ‘struct saa6588_command’ has no
>> member named ‘nonblocking’
>> while (!a->nonblocking && !s->data_available_for_read) {
>> ^
>> make[1]: *** [drivers/media/i2c/saa6588.o] Error 1
>> make: *** [_module_drivers/media/i2c] Error

This message says that the error is in the saa6588.c file, that file
is not part of the smi driver.
So, my suggestion is that you update your kernel tree.
> You received this message because you are subscribed to the Google Groups
> "easycap-somagic-linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an
--
Jonarne
http://jonarne.no

Arnold

unread,
Feb 19, 2014, 12:30:09 PM2/19/14
to easycap-so...@googlegroups.com
Hello,

The kernel I am using came with Ubuntu 13.10 when I installed it yesterday.  I followed the instructions at http://code.google.com/p/easycap-somagic-linux/wiki/BuildingKernelModule and cloned the git repo in a different location (since space is limited on the installation where I will be using the easycap).  After applying the patches, I manually copied the new files from the patches (e.g. drivers/media/usb/smi2021) over to the /usr/src/linux-headers* on the 13.10 machine.  Did I do this incorrectly; how would I update my kernel tree having only done this yesterday?  Should I just try a fresh clone?

Thanks,

Arnold
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "easycap-somagic-linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Arnold

unread,
Feb 19, 2014, 2:38:22 PM2/19/14
to easycap-so...@googlegroups.com
Hello,

I tried this:

1. Cloned kernel source tree into /usr/src/linux-headers-3.12.0-031200
2. Applied smi2021v3.patch
3. Fixed broken simlinks and references required for compilation
4. Run 'make M=drivers/media/i2c modules' from /usr/src/linux-headers-3.12.0-031200-generic

After step 4, I get the following errors:

  CC [M]  drivers/media/i2c/soc_camera/mt9m111.o
In file included from include/linux/sched.h:25:0,
                 from include/linux/i2c.h:31,
                 from drivers/media/i2c/soc_camera/mt9m111.c:12:
include/linux/mm_types.h:29:30: warning: "SPINLOCK_SIZE" is not defined [-Wundef]
 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8)
                              ^
include/linux/mm_types.h:159:5: note: in expansion of macro ‘ALLOC_SPLIT_PTLOCKS’
 #if ALLOC_SPLIT_PTLOCKS
     ^
include/linux/mm_types.h:29:30: warning: "SPINLOCK_SIZE" is not defined [-Wundef]
 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8)
                              ^
include/linux/mm.h:1361:5: note: in expansion of macro ‘ALLOC_SPLIT_PTLOCKS’
 #if ALLOC_SPLIT_PTLOCKS
     ^
/*
    more of the same
*/
  CC [M]  drivers/media/i2c/soc_camera/tw9910.o
In file included from include/linux/sched.h:25:0,
                 from include/linux/i2c.h:31,
                 from drivers/media/i2c/soc_camera/tw9910.c:21:
include/linux/mm_types.h:29:30: warning: "SPINLOCK_SIZE" is not defined [-Wundef]
 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8)
                              ^
include/linux/mm_types.h:159:5: note: in expansion of macro ‘ALLOC_SPLIT_PTLOCKS’
 #if ALLOC_SPLIT_PTLOCKS
     ^
include/linux/mm_types.h:29:30: warning: "SPINLOCK_SIZE" is not defined [-Wundef]
 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8)
                              ^
include/linux/mm.h:1361:5: note: in expansion of macro ‘ALLOC_SPLIT_PTLOCKS’
 #if ALLOC_SPLIT_PTLOCKS
     ^
  Building modules, stage 2.
  MODPOST 53 modules
WARNING: "devm_kmalloc" [drivers/media/i2c/wm8775.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/wm8739.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/vpx3220.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/vp27smpx.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/upd64083.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/upd64031a.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/uda1342.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tw9906.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tw9903.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tw2804.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tvp5150.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tvaudio.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tea6420.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tea6415c.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tda9840.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/tda7432.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/sony-btf-mpx.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/tw9910.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/rj54n1cb0c.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/ov9740.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/ov9640.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/ov772x.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/ov6650.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/ov5642.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/ov2640.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/mt9v022.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/mt9t112.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/mt9t031.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/mt9m111.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/mt9m001.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/soc_camera/imx074.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/saa7185.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/saa717x.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/saa7127.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/saa7115.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/saa7110.ko] undefined!
WARNING: "_copy_to_user" [drivers/media/i2c/saa6588.ko] undefined!
WARNING: "prepare_to_wait_event" [drivers/media/i2c/saa6588.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/saa6588.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/ov7670.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/ov7640.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/mt9v011.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/msp3400.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/m52790.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/ks0127.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/ir-kbd-i2c.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/cx25840/cx25840.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/cs53l32a.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/cs5345.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/bt866.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/bt856.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/bt819.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/adv7180.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/adv7175.ko] undefined!
WARNING: "devm_kmalloc" [drivers/media/i2c/adv7170.ko] undefined!
  CC      drivers/media/i2c/adv7170.mod.o
  LD [M]  drivers/media/i2c/adv7170.ko
/*
   more of the same
*/
  CC      drivers/media/i2c/wm8775.mod.o
  LD [M]  drivers/media/i2c/wm8775.ko

Then when I try to load the module:
$ sudo /sbin/insmod drivers/media/i2c/saa7115.ko
Error: could not insert module drivers/media/i2c/saa7115.ko: Unknown symbol in module




On Wednesday, February 19, 2014 9:04:23 AM UTC-8, Jon Arne wrote:
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "easycap-somagic-linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Stephen Yu

unread,
Mar 17, 2014, 1:02:46 PM3/17/14
to easycap-so...@googlegroups.com
Hello,

I brought this device from ebay and received it a few days ago. Unfortunately, Ubuntu 13.10 did not come with a driver.

Thanks to Jon Arne. I followed his instructions from the web and successfully make to it a debian package "smi2021-dkms_1.0_all.deb" for ubuntu 13.10.  File is attached.

I believe this driver is still having work to do, it hanged my computer a few times when I tried to record the video.  And why skype didn't work with this driver? Since I am not a driver developer, I hope Jon Arne or/and other people can improve and enhance this driver.

Thanks to all who have made contributions to the development of this driver.

Stephen

smi2021-dkms_1.0_all.deb

Stephen Yu

unread,
Mar 17, 2014, 4:59:16 PM3/17/14
to easycap-so...@googlegroups.com
Hi

Can anyone explain why my easycap, which has CVBS, S-VIDEO, AUDIO(L), and AUDIO(R) inputs, come with Windows drivers  SmiUsbGrabber3F.sys?It initializes to 1c88:003f and works in Windows & Linux on CVBS, no S-VIDEO.

I suspected it might come with a wrong driver, so then I downloaded a SmiUsbGrabber3C.sys driver from the internet. it initializes the device to 1c88:003c. But again it only works on  CVBS, but not on S-VIDEO.

Can anyone help? Thanks.

Jeffry Johnston

unread,
Mar 17, 2014, 5:08:04 PM3/17/14
to easycap-somagic-linux

1) Does s-video work with the userspace tools?
2) Does the s-video work when connected to another device such as a TV?

--
You received this message because you are subscribed to the Google Groups "easycap-somagic-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to easycap-somagic-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arnold

unread,
Mar 18, 2014, 1:53:04 PM3/18/14
to easycap-so...@googlegroups.com
Bump from last month...  I am still unable to complete the module compiles.  Any tips on fixing the "ALLOC_SPLIT_PTLOCKS" and "devm_kmalloc undefined" errors?
Reply all
Reply to author
Forward
0 new messages