๐Ÿ“ฆ barneyman / somagic

my rewrite of (currently) the easycap somagic kernel driver, specifically for my rpi

โ˜… 7 stars โ‘‚ 2 forks ๐Ÿ‘ 7 watching โš–๏ธ GNU General Public License v2.0
๐Ÿ“ฅ Clone https://github.com/barneyman/somagic.git
HTTPS git clone https://github.com/barneyman/somagic.git
SSH git clone git@github.com:barneyman/somagic.git
CLI gh repo clone barneyman/somagic
barney barney cleaned up the MD 847c764 8 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .tmp_versions
๐Ÿ“„ .gitignore
๐Ÿ“„ Kconfig
๐Ÿ“„ LICENSE
๐Ÿ“„ Makefile
๐Ÿ“„ Module.symvers
๐Ÿ“„ modules.order
๐Ÿ“„ README.md
๐Ÿ“„ smi2021_audio.c
๐Ÿ“„ smi2021_main.c
๐Ÿ“„ smi2021_v4l2.c
๐Ÿ“„ smi2021.h
๐Ÿ“„ smi2021.mod.c
๐Ÿ“„ README.md

somagic =======

my rewrite of (currently) the easycap somagic kernel driver, specifically for my rpi

using 3.12.26 Raspbian (debian/wheezy)

The original kernel code was pulled from instructions at https://code.google.com/p/easycap-somagic-linux/wiki/BuildingKernelModule That URL references DIFFERENT source to the kernel source in the easycap-somagic-linux google repository

The intention is to have a stable kernel driver for me to access an STB from my pi

the rpi simply can't keep up currently, i'm using the FSM USB driver and i've overclocked to turbo - i'm going to try exposing lower FPS streams and also have a bash at using the GPU encoder

This is my first leap into linux coding, so, excuse any blatant errors

[(please refer to https://www.raspberrypi.org/documentation/linux/kernel/building.md for help on getting source/building the kernel)]

the basic steps for building the kernel are

  • get the code!
  • get the toolset
  • configure what/how it's built ( _defconfig)
  • build kernel
  • build modules
  • install them

to get this compiling, two choices

A. to Compile this module only

  • get your linux source
  • cd linux/drivers/media/usb
  • git clone https://github.com/barneyman/somagic.git
  • go back to your linux directory
  • make M=drivers/media/usb/somagic modules modules_install
B. to add to your kernel build

  • as above
  • as above
  • as above
  • edit Kconfig, add the following line in the MEDIAANALOGTV_SUPPORT block source "drivers/media/usb/somagic/Kconfig"
  • edit Makefile, add the following in block of similar commands obj-$(CONFIG_VIDEO_SMI2021) += somagic/
  • go back to your linux directory
  • make menuconfig
  • add SMI2021 module (in device drivers/multimedia support/Media USB Adaptors/Somagic)
  • build your kernel and modules
  • make
  • make modules
  • make modules_install
  • (and copy the img over)