Started by crubille, February 04, 2013, 10:55:17 pm
tar xf linux-sunxi-sunxi-v3.4.24-r2.tar.gz
Quote from: crubille on February 07, 2013, 12:05:38 amAt this point, i load- xenomai-184.108.40.206 with patchs for 3.0.36 and for 3.4.6.- the sunxi 3.0 and 3.4 kernels - the patch 3.4.1 ... up to 3.4.6 seems to be already applied on the 3.4 sunxi kernel. So it is not clear what is the closest linux vanilla kernel version.- appling the patch from the xenomai distribution on the sunxi kernels, there is not so many fails. Here are the files where the patchs cant obviously apply in either kernels: saving rejects to file arch/arm/include/asm/cacheflush.h.rej saving rejects to file arch/arm/include/asm/pgtable.h.rej saving rejects to file arch/arm/kernel/smp.c.rej saving rejects to file arch/arm/vfp/entry.S.rej saving rejects to file arch/arm/vfp/vfphw.S.rej and two more files from the sunxi 3.0.8 saving rejects to file arch/arm/vfp/vfpmodule.c.rej saving rejects to file kernel/sched.c.rejI start to look at these files.
mkdir kernelcd kernelgit clone https://github.com/linux-sunxi/linux-sunxi linux-sunxigit checkout v3.0.36cd ..mkdir xenomaicd xenomaiwget http://download.gna.org/xenomai/stable/LATEST_IS-v220.127.116.11.tar.bz2tar -jxf LATEST_IS-v18.104.22.168.tar.bz2cd xenomai-22.214.171.124scripts/prepare-kernel.sh --arch=arm \ --adeos=/ksrc/arch/arm/patches/adeos-ipipe-3.0.36-arm-* \ --linux=../../kernel/linux-sunxi
cd ../..cd kernel/linux-sunximake ARCH=arm CROSS_COMPLIE=arm-linux-gnueabi- a13_defconfig
Quote from: ehj666 on February 10, 2013, 02:55:57 amFWIW, here is what I have managed so far.Notes: I had previously built a generic kernel and copied a13_defconfig from arch/arm/configs primarily based on the instructions found here:https://www.olimex.com/wiki/Build_Bootable_SD_Card_with_DebianI am using Ubuntu 12.04 as the build envirnonment.The latest kernal on which Xenomai appears to work is 3.0.36. Here are the build instructions up to needing to implement a high res timer.Code Select Expandmkdir kernelcd kernelgit clone https://github.com/linux-sunxi/linux-sunxi linux-sunxigit checkout v3.0.36cd ..My blog on this can be found here:http://lcncolinuxino.blogspot.com/
mkdir kernelcd kernelgit clone https://github.com/linux-sunxi/linux-sunxi linux-sunxigit checkout v3.0.36cd ..
make ARCH=arm menuconfig
$ cd xenomai-126.96.36.199$ ./scripts/prepare-kernel.sh --arch=arm \ --adeos=./ksrc/arch/arm/patches/adeos-ipipe-3.0.36-arm-1.18-11.patch.fixed \ --linux=../linux-sunxi-sunxi-v3.0.36-r1$ cd ../linux-sunxi-sunxi-v3.0.36-r1
$ make ARCH=arm a13_defconfig$ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- a13_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage
In file included from kernel/xenomai/arch/generic/hal.c:44:0:/home/uminded/Downloads/A13-RT-Kernel/sunxi-xenomai/arch/arm/include/asm/xenomai/hal.h:99:2: error: #error "Unsupported ARM machine"
Quote from: uMinded on February 14, 2013, 11:15:25 pmWould anybody be willing to give my kernel a try? I think I am going to try and get a board next week if I can but it will be two weeks at best before I know if it works without any help.