Chinaunix首页 | 论坛 | 博客
  • 博客访问: 39757
  • 博文数量: 25
  • 博客积分: 605
  • 博客等级: 中士
  • 技术积分: 255
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-03 21:57
文章分类

全部博文(25)

文章存档

2012年(22)

2011年(3)

我的朋友

分类: LINUX

2012-05-01 11:05:01

移植内核,启动后解压缩后就卡住了。 其实是汇编启动代码那段检测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
Signed-off-by: Will Deacon
---
 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)

阅读(512) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~