도와주세요!!
글 수 15,339
2004.01.07 20:59:22 (*.104.18.25)
6748
안녕하세요...
SDRAM을 128MByte 를 쓰려고 합니다..
현재 ez-x5 보드의 커널을 기본으로 쓰고 있는데요...
linux/arm/mach-pax/ez-x5.c 파일에서
// SDRAM 을 선언하는 부분이다. -- 64Mbyte
SET_BANK (0, 0xa0000000, 64*1024*1024);
SET_BANK (1, 0xa4000000, 64*1024*1024);
//mi->nr_banks = 1;
mi->nr_banks = 2;
와 같이 했구요.. arch/arm/kernel/setup.c 파일에서
#ifndef MEM_SIZE
//#define MEM_SIZE (64*1024*1024)
#define MEM_SIZE (128*1024*1024)
#endif
와 같이 하였습니다..
그런데 컴파일을 하니 아래와 같이 커널 패닉이 나오네요..
Calibrating delay loop... 397.31 BogoMIPS
Memory: 64MB 64MB = 128MB total
Memory: 119896KB available (1182K code, 279K data, 64K init)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Using PXA255 frequency points.
Registering CPU frequency change support.
CPU clock: 398.131 MHz (99.000-400.000 MHz)
Starting kswapd
Unhandled fault: external abort on linefetch (0x006) at 0x00016e90
Unhandled fault: external abort on linefetch (0x006) at 0x00016e90
mm = c014a920 pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: 0
CPU: 0
pc : [] lr : [<00000001>] Not tainted
sp : c03cde14 ip : c02e5e08 fp : 000000fc
r10: 00000003 r9 : 60000013 r8 : c7f97000
r7 : c7f97000 r6 : c02eb270 r5 : 00000020 r4 : 000000a0
r3 : a7f97000 r2 : c0162930 r1 : c014c204 r0 : c7f97000
Flags: NzCv IRQs off FIQs on Mode SVC_32 Segment kernel
Control: 397F Table: A0004000 DAC: 0000001D
Process swapper (pid: 1, stack limit = 0xc03cc368)
Stack: (0xc03cde14 to 0xc03ce000)
de00: c02eb270 40000093
00000020
de20: c02eb278 a0000013 c03cc340 c003e768 00000001 c01628d8 c03cc338
00000007
de40: c002f024 00000007 c03cc000 00000000 00000001 c002f048 00000007
c03cc000
de60: 00000000 c002f14c 00000006 c03cc000 c0129ef0 00016e90 c03cde9c
00000002
de80: c0020778 ffffffff c03cded0 c0014b56 0000004f 00000005 c001a260
00000008
dea0: c8801002 0000ffff 0000001f 000000d5 0000ffe0 c0014b56 0000004f
00000005
dec0: 000000f8 00000002 000000fc 00000003 c03cdee4 fffffffd c0011898
60000013
dee0: ffffffff 00000000 00000000 000000f8 00000000 00000000 c0014b56
c8801000
df00: 00000500 00000010 c017eb30 e0c08000 fefcf8f0 000000ff c017eb30
c016d1dc
df20: c02e9060 c0182f6c c0399400 c0182f74 000000cc 00000000 c00c52f0
00000001
df40: 00000000 c016d1ec 00000000 00000001 c0138f40 00000000 c009faa4
00000001
df60: 00000000 c012a564 0000003e c016d1ec c00a3d6c 003008f8 00000001
00000000
df80: 0000003f 00000000 c0399400 c014abb4 69052d06 a00132ec 00000000
c00c1cf8
dfa0: c0138ee8 c0159888 c0399400 00000000 c0138ee8 c0159888 c0011e8c
c0399400
dfc0: 00000000 0000001d c0010ed4 00000001 c001762c c017c528 c000e5d8
c00175e4
dfe0: c000873c 00000000 c0148000 c0018040 c0018034 c001bd98 e4c2c001
e4c20001
Backtrace: invalid frame pointer
Code: e3500000 e1a07000 0a00003c e59f2190 (e288320e)
Kernel panic: Attempted to kill init!
메세지를 보면 일단 메모리는 128MB 로 된것 같은데 커널 패닉이 나오는 것으
로 보아...
다른 세팅이 더 있는것 같은데 혹시 알고 계신분 있으면 알려주심 감사하겠습
니다..
ps) 메모리를 128메가 장착한 상태에서 ez-x5와 같이 64MB로 세팅해서 쓰면
잘 돌아갑니다...
SDRAM을 128MByte 를 쓰려고 합니다..
현재 ez-x5 보드의 커널을 기본으로 쓰고 있는데요...
linux/arm/mach-pax/ez-x5.c 파일에서
// SDRAM 을 선언하는 부분이다. -- 64Mbyte
SET_BANK (0, 0xa0000000, 64*1024*1024);
SET_BANK (1, 0xa4000000, 64*1024*1024);
//mi->nr_banks = 1;
mi->nr_banks = 2;
와 같이 했구요.. arch/arm/kernel/setup.c 파일에서
#ifndef MEM_SIZE
//#define MEM_SIZE (64*1024*1024)
#define MEM_SIZE (128*1024*1024)
#endif
와 같이 하였습니다..
그런데 컴파일을 하니 아래와 같이 커널 패닉이 나오네요..
Calibrating delay loop... 397.31 BogoMIPS
Memory: 64MB 64MB = 128MB total
Memory: 119896KB available (1182K code, 279K data, 64K init)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Using PXA255 frequency points.
Registering CPU frequency change support.
CPU clock: 398.131 MHz (99.000-400.000 MHz)
Starting kswapd
Unhandled fault: external abort on linefetch (0x006) at 0x00016e90
Unhandled fault: external abort on linefetch (0x006) at 0x00016e90
mm = c014a920 pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: 0
CPU: 0
pc : [
sp : c03cde14 ip : c02e5e08 fp : 000000fc
r10: 00000003 r9 : 60000013 r8 : c7f97000
r7 : c7f97000 r6 : c02eb270 r5 : 00000020 r4 : 000000a0
r3 : a7f97000 r2 : c0162930 r1 : c014c204 r0 : c7f97000
Flags: NzCv IRQs off FIQs on Mode SVC_32 Segment kernel
Control: 397F Table: A0004000 DAC: 0000001D
Process swapper (pid: 1, stack limit = 0xc03cc368)
Stack: (0xc03cde14 to 0xc03ce000)
de00: c02eb270 40000093
00000020
de20: c02eb278 a0000013 c03cc340 c003e768 00000001 c01628d8 c03cc338
00000007
de40: c002f024 00000007 c03cc000 00000000 00000001 c002f048 00000007
c03cc000
de60: 00000000 c002f14c 00000006 c03cc000 c0129ef0 00016e90 c03cde9c
00000002
de80: c0020778 ffffffff c03cded0 c0014b56 0000004f 00000005 c001a260
00000008
dea0: c8801002 0000ffff 0000001f 000000d5 0000ffe0 c0014b56 0000004f
00000005
dec0: 000000f8 00000002 000000fc 00000003 c03cdee4 fffffffd c0011898
60000013
dee0: ffffffff 00000000 00000000 000000f8 00000000 00000000 c0014b56
c8801000
df00: 00000500 00000010 c017eb30 e0c08000 fefcf8f0 000000ff c017eb30
c016d1dc
df20: c02e9060 c0182f6c c0399400 c0182f74 000000cc 00000000 c00c52f0
00000001
df40: 00000000 c016d1ec 00000000 00000001 c0138f40 00000000 c009faa4
00000001
df60: 00000000 c012a564 0000003e c016d1ec c00a3d6c 003008f8 00000001
00000000
df80: 0000003f 00000000 c0399400 c014abb4 69052d06 a00132ec 00000000
c00c1cf8
dfa0: c0138ee8 c0159888 c0399400 00000000 c0138ee8 c0159888 c0011e8c
c0399400
dfc0: 00000000 0000001d c0010ed4 00000001 c001762c c017c528 c000e5d8
c00175e4
dfe0: c000873c 00000000 c0148000 c0018040 c0018034 c001bd98 e4c2c001
e4c20001
Backtrace: invalid frame pointer
Code: e3500000 e1a07000 0a00003c e59f2190 (e288320e)
Kernel panic: Attempted to kill init!
메세지를 보면 일단 메모리는 128MB 로 된것 같은데 커널 패닉이 나오는 것으
로 보아...
다른 세팅이 더 있는것 같은데 혹시 알고 계신분 있으면 알려주심 감사하겠습
니다..
ps) 메모리를 128메가 장착한 상태에서 ez-x5와 같이 64MB로 세팅해서 쓰면
잘 돌아갑니다...