gkaindl / ambi-tv

a flexible ambilight clone for embedded linux
295 stars 85 forks source link

Invalid Module Format #7

Open SchruteRampage opened 11 years ago

SchruteRampage commented 11 years ago

Hello, I seem to have everything running a built correctly except I am getting one error that I can't figure out.

When I run the 'sudo insmod usbtv.ko' command when I am located in the usbtv folder, I get the error: could not insert module usbtv.ko: invalid module format.

Any ideas?

amroibrahim commented 10 years ago

@overbusy 1) ctrl + c 2) sudo shutdown -h now 3) are u sure that ur connecting on the right IP address?

overbusy commented 10 years ago

Hi amroibahim, ctrl + c doesn't work, so no other command are allowed. The IP is correct coz when I extract the grabber ambi-tv quit in abnormal mode leaving me login and (with the same ping command) the device give answer. I guess the problem is ambi-tv runs before the login. I wonder if unplugging the wall adapter during while ambi-tv is running could corrupt something.

amroibrahim commented 10 years ago

@overbusy are u starting ambi-tv on boot?

overbusy commented 10 years ago

yes amroibrahim, but I did not made any setting, the image I loaded already do that.

amroibrahim commented 10 years ago

I'm not aware of a good way to stop it if it is auto stated on boot , but this is what I do to kill the process get the process number using this command "ps -ef | grep ambi-tv" then "kill -9 process_number"

Phil1988 commented 10 years ago

you can check the autostart by typing: sudo nano /etc/rc.local in commandline

everything that is written between "fi" and "exit 0" starts at boot up

pete111 commented 10 years ago

Hello, please help I followed MrJohns42's steps (below) with my easycap dc60 stk1160 grabber. But when I run "mplayer tv:// -tv device=/dev/video0 -hardframedrop" I am getting green picture (or in top part some noise without images)

What am I doing wrong? Please help

Steps: Install Debian Wheezy on SD card (2013-07-26) Run raspi-config, Expand the root file system (expand_rootfs), Configure password, keyboard, locale, timezone, ssh if you want sudo apt-get install git-core git clone https://github.com/gkaindl/ambi-tv.git ambi-tv cd ambi-tv/misc && sudo bash get-kernel-source.sh cd usbtv-driver && make sudo mkdir /lib/modules/3.6.11+/extra sudo cp usbtv.ko /lib/modules/3.6.11+/extra/ sudo depmod 3.6.11+ sudo modprobe videobuf2_core sudo modprobe videobuf2_vmalloc sudo modprobe usbtv Check that video0 is in /dev (if it’s not, STOP, come back here and ask for help) Add videobuf2_core, videobuf2_vmalloc, and usbtv to /etc/modules Check for spidev0.0 in /dev (if it’s there, skip the next 2 steps) Open /etc/modprobe.d/raspi-blacklist.conf and comment out ” blacklist spi-bcm2708” with a #. sudo reboot Check for spidev0.0 in /dev (if it’s not, STOP, come back here and ask for help) cd to the main ambi-tv folder you cloned make Create a copy of sample.conf and save as etc/ambi-tv.conf. Configure as necessary Try running bin/ambi-tv Use sudo if required, otherwise, change permissions of the offending file with chmod Add the full path to the ambi-tv executable to /etc/rc.local if you want it to run on startup

Phil1988 commented 10 years ago

green means that your pi or and the grabber dont get enough power...

pete111 commented 10 years ago

wohooo, great Phil1988! thank you very much! When I use powered usb hub it works! :)

overbusy commented 10 years ago

I'd like to thanks everybody coz my ambi-tv is working even though it is an open pcb with flying cables on the side of my tv set. I still have the problem to get the raspi visible on my network coz the ambi-tv program runs before login, and I still wonder if turning off the power of the raspi could damage my SD. I hope to solve those probelms (searching on /etc/rc.local as told me Phil1988) and hope to find the time to put everything on a box to avoid an angry wife. Bye.

pete111 commented 10 years ago

Overbusy, I would temporarily turn off loading of ambi-tv (could be in etc/rc.local), then enable ssh. Then test it from your network and if ssh works, you can reenable ambi-tv. good luck!

ghgoldberg commented 10 years ago

For some packaging ideas (including chassis, wiring, connectors, etc.) see my posts near the bottom of issue #48.

Sent from my Samsung Galaxy S4

-------- Original message -------- From: overbusy notifications@github.com Date:02/06/2014 7:30 AM (GMT-05:00) To: gkaindl/ambi-tv ambi-tv@noreply.github.com Subject: Re: [ambi-tv] Invalid Module Format (#7)

I'd like to thanks everybody coz my ambi-tv is working even though it is an open pcb with flying cables on the side of my tv set. I still have the problem to get the raspi visible on my network coz the ambi-tv program runs before login, and I still wonder if turning off the power of the raspi could damage my SD. I hope to solve those probelms (searching on /etc/rc.local as told me Phil1988) and hope to find the time to put everything on a box to avoid an angry wife. Bye.

— Reply to this email directly or view it on GitHub.

overbusy commented 10 years ago

pete111, I didn't try yet (I'll do it in the week end) but I can't ping the raspi, so it shouldn't depend on enabling ssh... I should see the raspi without ssh. Bye.

pete111 commented 10 years ago

ok overbusy, so maybe there is something wrong in iptables (In the last few days I tried a lot of rasbian versions and I never had this issue with raspi). Try to allow all incoming connection in iptables. (hope this link helps http://superuser.com/questions/634469/need-iptables-rule-to-accept-all-incoming-traffic)

overbusy commented 10 years ago

Hello all, I'd like to assign a new gpio to a new push button to allow quitting ambi-tv and launch a "sudo poweroff" to my raspy before pulling the plug. Do anybody have some idea to suggest me on how I could perform that ? I guess that is necessary a daemon running before ambi-tv or some more code in ambi-tv but I never experienced in Linux; I could try by myself with some guideline... Thanks.