Pages

Showing posts with label fixing. Show all posts
Showing posts with label fixing. Show all posts

Sunday, June 5, 2016

Fixing Raspberry Pi Crashes

The most common crash Ive experienced/heard about posts an error that says:
raspberrypi kernel: <1-1.1:1.0: eth0: kevent 2 may have been dropped

This happens to a lot of people who are torrenting (probably using transmission) and especially to external HDDs. It tends to turn up in /var/log/messages and/or /var/log/kernel and/or /var/log/dmesg. You can cat these to see if the error is there.

There are a couple of reasons that this happens and the following has been the way I have managed to fix it (Supposedly there is a bug fix in a distant future kernel release).

Reason 1:

Memory isnt available fast enough and for some reason the kernel crashes.
I did two things to fix this.
1: Increase the number of min_kbytes by editing sysctl.conf
 (using vim or nano or whatever)
Start by opening a terminal then type the following to edit the proper files.

sudo nano /etc/sysctl.conf

at the end of the file add the following line
vm.min_free_kbytes = 16384

*Note, if that doesnt help, try increasing the number
Example:
vm.min_free_kbytes = 32768

Then save and exit the file.

The second thing I did was to add an option to the boot command

sudo nano /boot/cmdline.txt

At the end of the line, add: smsc95xx.turbo_mode=N

Save, exit the file, and then reboot (sudo reboot)

Reason 2:

Your usb hub has a problem where it is creating a feedback loop.

Tape over the +5V pin on the USB cord (You should use a multimeter to find it). Fixed, though a bit sketchily.



Check out my other Raspberry Pi Fixes/How tos:
http://stevenhickson.blogspot.com/2012/10/using-raspberry-pi-as-web-server-media.html
http://stevenhickson.blogspot.com/2012/08/setting-up-omxplayer-gui-on-raspberry-pi.html

Consider donating to further my tinkering.


Places you can find me
Read More..

Saturday, March 19, 2016

Updating your Raspberry Pi Packages Kernel and Firmware Also fixing omxplayer problems

**Note, this is for Raspbian and other Debian based distros**

Also, this tends to fix Omxplayer when it wont work

Ive found that almost all of the omxplayer problems are solved by properly updating your raspberry pi. Before you say "I already did that!", read below to make sure you have taken all of the steps since the kernel and the firmware require different commands.

Updating Packages

sudo apt-get update && sudo apt-get upgrade

This updates the package list and upgrades all the packages. You can use the -y flag if you hate typing yes. After the kernel and all packages are upgraded, this command should show you:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

Updating the Kernel

sudo apt-get update && sudo apt-get -y dist-upgrade

This upgrades your linux kernel distribution. These are regularly released. You can see which version you have by running:
uname -a

Right now I have "Linux raspberrypi 3.6.11+"

Updating the Firmware

sudo rpi-update

This upgrades the firmware as long as you have the Hexxeh script downloaded. It and instructions can be found here:
https://github.com/Hexxeh/rpi-update

If you are having issues with video, make sure your memory split is set appropriately. I uses 128/128.
You can set this by editing /boot/config.txt and adding the line gpu_mem=128

If something is wrong, especially with omxplayer, make sure your packages, firmware, and kernel are all up to date. When they are, your problems will most likely be fixed.

Consider donating to further my tinkering.


Places you can find me
Read More..