Android 内核

移植内核,启动后解压缩后就卡住了。 其实是汇编启动代码那段检测machine ID地方出错了, 需要改下machine id

 

make menuconfig前改下makefile  把ARCH等改掉

可以用make s3c2410_defconfig配置

 

内核如果关掉eabi 编译会出错 原因

The old apcs-gnu ABI doesn't guarantee that double words are allocated
to registers with even alignment, causing the 64-bit exclusive memory
operations to be rejected by the assembler.

This patch requires that CONFIG_AEABI is set in order to use the native
atomic operations and falls back to the generic (spinlock) code otherwise.

Cc: Nicolas Pitre <nico at fluxnic.net>
Signed-off-by: Will Deacon <will.deacon at arm.com>
---
 arch/arm/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index a19a526..8ae3d48 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -6,7 +6,7 @@ config ARM
     select HAVE_MEMBLOCK
     select RTC_LIB
     select SYS_SUPPORTS_APM_EMULATION
-    select GENERIC_ATOMIC64 if (!CPU_32v6K)
+    select GENERIC_ATOMIC64 if (!CPU_32v6K || !AEABI)
     select HAVE_OPROFILE if (HAVE_PERF_EVENTS)
     select HAVE_ARCH_KGDB
     select HAVE_KPROBES if (!XIP_KERNEL)
--
1.7.0.4

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值