How can I use Xenomai with Firefly RK3288?
----- 原始邮件 -----
发件人:Gilles Chanteperdrix <[email protected]> 收件人:王宇驰 <[email protected]>
抄送人:xenomai <[email protected]>
主题:Re: [Xenomai] How can I use Xenomai with Firefly RK3288? 日期:2016年02月16日 17点24分
Quoted 13 lines · 王宇驰
Quoted 5 lines
Hi, everyone! I need a real-time platform now, and I have a board:
Firefly RK3288.Board: Firefly RK3288;Soc: RK3288 (rockchip);Core:
A17;Architecture: armv7. I can get the kernel source here:
https://github.com/mmind/linux-rockchip.v3.14, v3.16 v4.1 are all good to be patched withQuoted 8 lines
ipipe-core-3.14-arm-1.patch,ipipe-core-3.16-arm-4.patch, ipipe-core-4.1-arm-1.patch respectively.But when I run make bzImage after make firefly-rk3288_defconfig and make menuconfig,it shows that "implicit declaration of function '
__ipipe_mach_update_tsc()' in smp.c"Can anyone tell me what I should do next, do I need to port Xenomai to RK3288 or just find a new board?An advice please, I am new to practical embedded programming. Thank you very much!
Quoted 12 lines
Hi,
The list of supported embedded processors may be found here:
https://xenomai.org/embedded-hardware/
If you want to port Xenomai to a new ARM board, you should follow this guide:
https://xenomai.org/2014/09/porting-xenomai-dual-kernel-to-a-new-arm-soc/
Though it may be a bit hard if you have no experience in kernel programming.
Regards.Signature · 2 lines
Gilles. https://click-hack.org
Hi, I can get the zImage now. I solved the problem by the following procedures:(My kernel is linux-rockchip-3.14, and Xenomai version is 3.0.1. Patch after #1.)
#1[COPY]firefly-rk3288_defconfigdts
#2[COPY]mach_rockchip[MODIFY]arch/arm/Kconfigarch/arm/mach_rockchip/Kconfig[TAKE CARE OF]ROCKCHIP (You should solve this by your understanding)ARCH_ARM_KUSER_TSC (This causes "Implicit declaration of function "__ipipe_update_tsc()", "Implicit declaration of function '__ipipe_share_current()'" and so on. Make sure that after make menuconfig, your .config has "CONFIG_ARCH_ARM_KUSER_TSC=y")
#3 ("Unknown field: .l2c_aux_val, .l2c_aux_mask")arch/arm/include/asm/mach/arch.hLine 47 [ADD] unsigned l2c_aux_val; /* L2 cache aux value */ unsigned l2c_aux_mask; /* L2 cache aux mask */ void (*l2c_write_sec)(unsigned long, unsigned);
#4 ("Implicit declaration of function '__ipipe_share_current()'")include/linux/ipipe.hLine 64 [ADD]void __ipipe_share_current(int flags);
void __ipipe_arch_share_current(int flags);kernel/ipipe/core.cLine 1741 [ADD]void __weak __ipipe_arch_share_current(int flags){}
void __ipipe_share_current(int flags){ ipipe_root_only();
__ipipe_arch_share_current(flags);}EXPORT_SYMBOL_GPL(__ipipe_share_current);#5 ("To few arguments is function '............'")drivers/pinctrl/pinctrl-rockchip.cstatic int rockchip_irq_set_type(struct irq_data *d, unsigned int type)[ADD]unsigned long flags;[MODIFY]flags = irq_gc_lock(gc);irq_gc_unlock(gc, flags);
The above procedures are trivial. Different problems arising are on large possibilities.I downloaded linux-rockchip-3.14, linux-rockchip-4.1, ipipe-core-3.14-arm-x.patch, ipipe-core-4.1-arm-x.patch. Execute make command, get the error information, look for related parts in the above four folders/files, Google... loop until success. Wish you good luck if you see this message!