포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 1GB 입니다.

다들 아시는 내용일거라 생각합니다만... 이거라도 적어야 할 것 같아서 적어놓습니다. ;

linux-2.6.21.5-aesop6410-090320/arch/arm/boot/compressed/head.S 를 다음과 같이 수정합니다.
(빨간색으로 표시한 부분 추가)

 /*
  *  linux/arch/arm/boot/compressed/head.S
  *
  *  Copyright (C) 1996-2002 Russell King
  *  Copyright (C) 2004 Hyok S. Choi (MPU support)
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
 #include <asm/mach-types.h>

그리고 아래의 코드를 찾아서 붉은색으로 표시된 코드를 추가합니다. (120번째 줄 근처임)

                .section ".start", #alloc, #execinstr
/*
 * sort out different calling conventions
 */
                .align
start:
                .type   start,#function
                .rept   8
                mov     r0, r0
                .endr

                b       1f
                .word   0x016f2818              @ Magic numbers to help the loader
                .word   start                   @ absolute load/run zImage address
                .word   _edata                  @ zImage end address
1:              mov     r7, r1                  @ save architecture ID
                mov     r8, r2                  @ save atags pointer

#ifdef CONFIG_MACH_AESOP6410
                mov     r7, #(MACH_TYPE_AESOP6410 & 0xff)
                orr     r7, r7, #(MACH_TYPE_AESOP6410 & 0xff00)
#endif

#ifndef __ARM_ARCH_2__

이렇게 한 뒤 재컴파일하고 실행하면 U-Boot를 교체하지 않더라도 Machine ID가 잘못되었다고 멈추는 문제가 발생하지 않습니다.

P.S 운영진 여러분 보드 제작하시느라 수고 많으셨습니다. 보드는 감사히 잘 쓰겠습니다.


profile

김재훈

2009.03.27 04:41:27
*.162.4.210

좋은 팁 감사드립니다. ^^;
커널단에서 초기에 아키텍쳐 넘버를 확인하지 못하게 하는건가 보네요~

박진홍

2009.03.27 08:45:42
*.190.46.91

제 경우에는 mach-types에 마지막 번호 + 1로 ID를 설정하는 바람에 종종 커널 업그레이드 하려면 부트로더까지 교체해야 하는 상황이 오더군요. 그래서 저런 방법을 많이 쓰게 되었습니다. 사실 이솝 보드처럼 멀찌감치 뒷자리 번호로 하면 되는데 말이죠. ^^;;
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
53 Errata for S3C6410X_UM_Rev1.10 Rev 01 [2] 관리자 2009-08-31 5820
52 Samsung S3C6400 Processor Datasheet [1] 관리자 2009-04-05 5797
51 AESOP-6410 : S3C6410 Samsung JFlash Ver 1.0 file 김재훈 2009-04-20 5695
50 S3C6410 Linux JPEG Driver file 김재훈 2009-04-20 5690
49 AESOP-6410 : 이더넷의 NFS...not responding 문제발생시 테스트... [2] 고현철 2009-03-30 5684
48 AESOP-6410 : S3C64x0 - OpenICE A1000 디버깅 가이드 file [1] 김재훈 2009-03-25 5647
47 AESOP-6410 : GPE Root File System - 090327 file [2] 김재훈 2009-03-28 5645
46 [datasheet] 320x480 HVGA LCD file [2] 이제현 2009-01-13 5645
45 AESOP-6410 : MFC 테스트용 영상 파일 file [3] 김재훈 2009-03-26 5644
44 aesop-6410 kernel 2.6.21.5 MFC용 데이터 생성 프로그램 file 고현철 2009-04-14 5627
43 keyboard/touchscreen 동작 test용 source코드 - aesopev file [1] 고현철 2009-04-28 5617
42 AESOP-6410 : GTK+ 2.0 - Hello-GTK 샘플 코드 컴파일 방법 [3] 김재훈 2009-03-21 5549
41 AESOP-6410 : Aesop-6410 보드 메뉴얼 Rev 0.3 입니다. file [5] 이제현 2009-02-27 5520
40 SMDK 호환 보드 계열용 USB-OtgMon file 김재훈 2009-04-07 5496
39 AESOP-6410 : Windows CE 6.0 BSP - EBOOT.nb0 file 김재훈 2009-03-30 5422
38 S3C64x0용 H.264 sample 영상 file [5] 고현철 2009-03-17 5390
37 aesop-6410용 toolchain으로 컴팔한 busybox-1.14.0 file [2] 고현철 2009-04-24 5298
36 AESOP-6410 : linux-kernel-2.6.21.5 - 090327 file [2] 김재훈 2009-03-28 5223
35 AESOP-6410 : Native GDB 사용 방법 [2] 김재훈 2009-03-21 5223
34 AESOP-6410 : Sound Mixer 사용 방법 김재훈 2009-03-25 5213

사용자 로그인