real time kernel on pi?

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

real time kernel on pi?

Postby novitsky » Mon Jun 03, 2013 5:32 am

Hi,
Does anyone have an experience with a real-time kernel on pi? any assistant would be great.
kind regards,
Ran
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby moonman » Mon Jun 03, 2013 7:29 am

You can try to compile one yourself

Patch: https://www.kernel.org/pub/linux/kernel ... 6.patch.gz
(There are none for 3.9 if you wanted it with linux-raspberrypi-latest)

PKGBUILD: https://github.com/archlinuxarm/PKGBUIL ... aspberrypi
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: real time kernel on pi?

Postby novitsky » Mon Jun 03, 2013 7:57 am

Thank you very much moonman. However, my knowledge with compiling a Linux kernel is Null. Can you please give me some directions? A link to a guide or pointers on how to use the PKGBUILD and patch would be appreciated.

kind regards,
Ran
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby moonman » Mon Jun 03, 2013 8:31 am

http://archlinuxarm.org/developers/building-packages

Download all files from git
$this->bbcode_second_pass_code('', 'git clone https://github.com/archlinuxarm/PKGBUILDs.git')

cd PKGBUILDs/core/linux-raspberrypi/

EDIT PKGBUILD to include the patch into the source array, then add a line patch -Np1 <patch>

compile with makepkg --asroot (or without that flag if you are not root)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: real time kernel on pi?

Postby novitsky » Mon Jun 03, 2013 8:34 am

Wow, Thanks for the quick reply. I'll try that. Should I do it on the raspberrypi itself or can I do it on a normal (X86) machine?
Kind regards,
Ran
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby moonman » Mon Jun 03, 2013 9:31 am

You have to compile on the pi, but you can speed up the process by distributing some compile jobs to your x86 machines from the pi (with linking and scripting still being done on the pi): http://archlinuxarm.org/developers/dist ... -compiling.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: real time kernel on pi?

Postby novitsky » Mon Jun 03, 2013 10:17 am

Once again, Thanks.
I updated the PKGBUILD and copied the files to the SD card.
I run the command:
makepkg --asroot -Acs
but I get this error:
$this->bbcode_second_pass_code('', '==> Making package: linux-raspberrypi 3.6.11-11 (Mon Jun 3 11:14:58 BST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...

Packages (3): perl-test-pod-1.48-1 perl-yaml-syck-1.25-1 xmlto-0.0.25-2

Total Download Size: 0.06 MiB
Total Installed Size: 0.49 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
error: failed retrieving file 'perl-yaml-syck-1.25-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.
')

any idea how to solve this?
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby novitsky » Mon Jun 03, 2013 10:53 am

OK. solved this one by updating the pacman and changing the mirror.
$this->bbcode_second_pass_code('', 'pacman -Syy')

but now I have this error:

$this->bbcode_second_pass_code('', ' -> Found patch-3.6.11.4-rt36.patch
==> ERROR: Integrity checks (md5) differ in size from the source array.')
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby novitsky » Mon Jun 03, 2013 11:04 am

Ok, solved this one as well:
run:
$this->bbcode_second_pass_code('', 'md5sum patch-3.6.11.4-rt36.patch')
and copy the number to the md5sums=() section at the end of the PKGBUILD.

Now I wait for the build to end.
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Re: real time kernel on pi?

Postby novitsky » Mon Jun 03, 2013 1:22 pm

I had a problem with the patching:
$this->bbcode_second_pass_code('', '...
patching file net/core/skbuff.c
Hunk #2 succeeded at 348 with fuzz 2 (offset 2 lines).
Hunk #3 succeeded at 361 with fuzz 2 (offset 5 lines).
Hunk #4 succeeded at 395 with fuzz 1 (offset 14 lines).
patching file net/core/sock.c
Hunk #1 succeeded at 2204 (offset -6 lines).
patching file net/ipv4/icmp.c
patching file net/ipv4/ip_output.c
patching file net/ipv4/sysctl_net_ipv4.c
patching file net/mac80211/rx.c
patching file net/netfilter/core.c
patching file net/packet/af_packet.c
patching file net/rds/ib_rdma.c
patching file scripts/mkcompile_h
==> ERROR: A failure occurred in build().
Aborting...
')

any suggestions on how to solve this or how to debug?
novitsky
 
Posts: 19
Joined: Mon Jun 03, 2013 5:17 am

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 28 guests