Git Product home page Git Product logo

bbb-preempt-rt-kernel-patch's Introduction

BBB PREEMPT RT patch script

This script will install a Debian image at your SD card with the Linux preempt rt kernel

Requirements

There are a couple of dependencies needed for the script to run successfully. On Debian/Ubuntu, be sure to have build-essential, quilt, gcc-arm-linux-gnueabihf or cross-binutils installed.

How it works?

You only have to run sudo ./bbb-patch.sh start /dev/sdb changing /dev/sdb with the desired device

Workflow

The bbb-patch script will:

  1. Download linux kernel 3.12 and debian image (requeriments.sh)
  2. Apply OSADL patches (enabling PREEMPT RT) at Linux Source (osadl-patch.sh)
  3. Compile Linux Kernel (compile-kernel.sh)
  4. Copy Debian 7.5 image to your SD card (clone-image.sh)
  5. Copy the patched kernel to your SD card (transfer.sh)

Available commands on bbb-patch.sh

  • help: show the help window
  • start $2: start the process (pass the /dev/* as second argument!)
  • clean: clean 'start' generated folders
  • clean-all: clean 'start' generated files, including downloaded

TransferToSD-only process

If you already downloaded the Debian Image and have compiled the kernel, probably because you already ran the build-patch-deploy, you just need to run ./transfer.sh /dev/sdb, changing /dev/sdb with the desired device.

Re-download patches

If you want to re-download the OSADL patches you can run ./osadl-downloads.sh.

Problems with connection sharing

If you are sharing the connection with BBB using the USB port, and it is not working, try to run this on BBB:

/sbin/route add default gw 192.168.7.1;
echo "nameserver 8.8.8.8" >> /etc/resolv.conf;

And this on your Ubuntu (or Debian based) host:

sudo iptables -A POSTROUTING -t nat -j MASQUERADE;
sudo echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null;

If you don't want to re-run both scripts after reboot, add it to ~/.bashrc

bbb-preempt-rt-kernel-patch's People

Contributors

brunoluiz avatar lucalenardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bbb-preempt-rt-kernel-patch's Issues

It's not really real-time?

Hi Brnluiz,
Thanks for your information for this git source. It's really helpful to me.
But I met a problem. I already finished all 5 steps (5 scripts) and boot my beaglebone black from sdcard.
All was fine, but X Window met some problem. (Sometimes some error as below note. I could switch to command line mode, that's ok.)

The 'uname -a' shows version is "Linux beaglebone 3.12.31-rt45 #1 SMP PREEMPT RT Tue Jun 2......armv71 GNU/Linux". When I test its efficacy by "rt-tests" tool, it looks like non-realtime OS:

sudo cyclictest -p 90 - m -c 0 -i 200 -n -h 100 -q -l 1000000
Min Latencies: 000006
Avg Latencies: 116772
Max Latencies: 821199

Do I made any mistake? Do you have any suggestion?
Thank you~

Note:
About X Window error message. There are only these message in my monitor.
[ 37.313103] libphy: PHY4a101000.mdio:01 not found
[ 37.320514] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 43.000255] libphy: PHY4a101000.mdio:01 not found
[ 43.006086] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 43.611974] libphy: PHY4a101000.mdio:01 not found
[ 43.617879] net eth0: phy 4a101000.mdio:01 not found on slave 1

Regards,

No bone-capemgr slots file

I'm not able to find the slots file inside /sys/devices/bone_capemgr.* so I'm not able to load any cape on the board. Does it work for you?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.