mighty69
Posts: 25
Joined: Tue Jun 03, 2014 2:10 pm

kernel install

Wed Jul 16, 2014 1:23 pm

hi all,
i'm working on a project that uses servo motors from adafruit and i've found a kernel that helps to manipulate them.
only problem is i know nothing about kernels.
i've downloaded it onto the pi using

Code: Select all

tar vfxz OccidentalisV02Kernel.tgz
but now i have no idea what to do with it.
i thought i extracted it. seems like all the content is in a tmp folder in my working directory, but how do i go about manipulating the code? the tutorial says i should be able to find the files in /sys/class/rpi-pwm/pwm0/ but that can't be found.

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: kernel install

Wed Jul 16, 2014 2:21 pm

That was the command to extract the files. Since the 'v' option was used I guess it printed out a list of files. That list would be interesting to see. You can also list the files with "tar ztf OccidentalisV02Kernel.tgz".

This guy has created a little script for installing the kernel it seems.
https://github.com/furiousgreencloud/Ha ... install.sh

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: kernel install

Wed Jul 16, 2014 2:51 pm

This is on the Adafruit website at https://learn.adafruit.com/adafruit-ras ... s-v0-dot-2#
At the bottom of that page:
We also have a Kernel+Modules tgz file, after you've copied this over to your pi, run the following commands
tar -zxvf mykernel.tgz
sudo cp tmp/kernel.img /boot/
sudo cp -R tmp/modules/lib/* /lib/
rm -rf tmp
Gr.
Dirk.

Return to “General discussion”