AnsweredAssumed Answered

imx6q patch xenomai3.0.3 with ipipe-core-4.1.18-arm-8.patch

Question asked by 杨 顺福 on Dec 19, 2017

hey brother,

   [Xenomai] Trying to install Xenomai 3.0.3 on i.MX6 Kernel 4.1.15  

      My situation is very similar to this man, Linux-4.1.15 and ipipe-core-4.1.18-arm-8.patch(Index of /downloads/ipipe/v4.x/arm/older ) not fully adapted, I solved the error and also compile successfully, but the system starts to become very strange , Will be blocked, I need to use external devices such as touch screen or mouse will continue to enter the system. Then I found that the contents of the diff in kernel_root / arch / arm / mach-imx / gpc.c and ipipe-core-4.1.18-arm-8.patch are very different.

 

there are three related files in the attachment, How to modify, thank you very much.

 

 

ipipe:

 

@@ -53,6 +54,7 @@ struct pu_domain {
 static void __iomem *gpc_base;
 static u32 gpc_wake_irqs[IMR_NUM];
 static u32 gpc_saved_imrs[IMR_NUM];
+static IPIPE_DEFINE_RAW_SPINLOCK(gpc_lock);
 
 void imx_gpc_set_arm_power_up_timing(u32 sw2iso, u32 sw)
 {
gpc.c:

 

struct pu_domain {
 struct generic_pm_domain base;
 struct regulator *reg;
 struct clk *clk[GPC_CLK_MAX];
 int num_clks;
};
struct disp_domain {
 struct generic_pm_domain base;
 struct clk *clk[GPC_CLK_MAX];
 int num_clks;
};
static void __iomem *gpc_base;
static u32 gpc_wake_irqs[IMR_NUM];
static u32 gpc_saved_imrs[IMR_NUM];
static u32 gpc_mf_irqs[IMR_NUM];
static u32 gpc_mf_request_on[IMR_NUM];
static DEFINE_SPINLOCK(gpc_lock);
static struct notifier_block nb_pcie;
static struct pu_domain imx6q_pu_domain;
static bool pu_on;      /* keep always on i.mx6qp */
static void _imx6q_pm_pu_power_off(struct generic_pm_domain *genpd);
static void _imx6q_pm_pu_power_on(struct generic_pm_domain *genpd);
static struct clk *ipg;

Outcomes