minhnt152 wrote:Dear fj.rojas,
I'm new to linux,
So i dont understand much about the procedure.
Is your procedure run on an ubuntu pc then it will create a RT image for RPi?
Thanks
If you are a newbie maybe better you say what you are trying to do and why you think you need a real time kernel, it may mean you get more helpful replies.
To try and answer your question, I have not tried the fj.rojas zip file but thought I would have a look at it as I am back checking RT_PREEMPT again. From the looks of things the script uses the cross compiler (export CROSS_COMPILE=~/Desktop/RPi_RT/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-
) and downloads the 3.8.y branch of the rpi kernel. That means you would be compiling on an x86 system, ubuntu, debian, or some other recent linux x86 distro should all work, of course I don't know for certain as I have not run the script.
I actually have not really used that branch much (as far as I can remember I may have compiled it, but not found good results in cyclictest or had problems with usb).
the script grabs the kernel source and cross compiler tools with:
git clone
https://github.com/raspberrypi/linux.git
git clone
https://github.com/raspberrypi/tools.git
I get the feeling a better command would be to get the 3.12 branch only?
git clone -b rpi-3.12.y --depth=1
https://github.com/raspberrypi/linux.git
I think the sdhci.c file is probably okay to copy into the 3.12.y tree as not much seems to change in that file between releases, thought I have not actually looked at it in the zip file.
I normally use the same cross compiler tools from git on an ubuntu system installed from a linuxcnc livecd onto a vmware virtual machine.
I am posting as something spurred me to think there were improvements in the rpi kernel, and I actually grabbed the latest 3.12.y kernel from git last night and it compiled and booted quite well once patched with the RT patch, and seemed to have great cyclictest results and vastly improved usb though still seems to have some problems with keyboard inputs when highly loaded.
I was running X with a few apps and cyclictest command within an lxterminal as suggested in the RT_PREEMPT faq (I think 'sudo cyclictest -p 80 t5 -n') I think max latency was less than 130 with average at a constant 25 and I tried plugging in/unplugging a few usb devices and dragging windows etc, left it running for an hour, but did not try running a browser as I did not have the rpi on the network.
I think current 3.12 branch may give the best results I have seen so far(unfortunatly I have not really documented figures as I have just been trying to get a feel for weather RT_PREEMPT is ready for my purposes), but I will have to try test some networking apps tonight.
I am hoping this could mean I am going to put together another linuxcnc SD card boot image soon(if/when I get enough time).