도와주세요!!
커널을 컴파일하여 EZ-X5에 올리려고 하는데 커널 컴파일시에 자꾸 에러나 나서
아래 질문을 올렸더니 새로운 커널을 올려주신다고 하셨습니다.
그래서 그럼 이것저것 보드에 올리려고 하면 용량이 부족하여(QT라이브러리만 12메가나 되더군요.. 이것저것 올리면 30메가정도는 쓸꺼 같습니다.) 램디스크용량을 늘리려고 하였습니다.
acr 스크립트 파일을 수정하여 램디스트 사이즈를 원하는데로 만들고 라이브러리를 추가하여
램디스크 이미지를 만들었습니다.
그런데 보드로 플레쉬 한후에 부팅메세지는 EXT2-fs 커널 패닉이 떴습니다.
이유가 무언지 혹시 알수 있을까요?
해보려고 여러모로 시도해봤는데 잘 안되니 답답하기 그지없습니다. ㅠㅠ
부트로더나 커널은 기존 것(구매했을때 그대로2.4대 커널)을 사용했고
램디스크는 GCC 3.4.3용 램디스크를 사용했습니다.
그리고 OS는 CentOS 5입니다.
아래는 에러 메세지 입니다..
WELCOME EZBOOT.X5 V1.8...................for PXA255
Program by You Young-chang, fooji (FALinux Co.,Ltd)
Last Modify Jul 5 2005
Boot Flash Check ......................
Detect ES29LV400 (BOTTOM)Flash : 22BA
SIZE 4M-BIT [512Kbyte]
NAND Chip Check .......................
Detect SAMSUNG [ec:76] 64MByte
BAD BLOCK SCAN -> Kernel, Ramdisk Bad Block [0]
CS8900 Init............................
Mac Address : [00 A2 55 F2 26 25]
Detect value : [3000:3000]
Chip ID : [0E63:000A]
Quickly Autoboot [ENTER] / Goto BOOT-MENU press [space bar].....
Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 303]...
Uncompressing Linux...................................................... done,.
Linux version 2.4.19-rmk7-pxa1 (root@jdt) (gcc version 3.2.1) #434 Wed Aug 10 15
CPU: XScale-PXA255 revision 6
Machine: WWW.FALINUX.COM EZ-X5 for PXA255 Board
Ignoring unrecognised tag 0x00000000
Memory clock: 99.53MHz (*27)
Run Mode clock: 398.13MHz (*4)
Turbo Mode clock: 398.13MHz (*1.0, inactive)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: y initrd=0xa0800000,5M root=/dev/ram ramdisk=12288 consol5
Console: colour dummy device 80x30
Calibrating delay loop... 397.31 BogoMIPS
Memory: 64MB = 64MB total
Memory: 57856KB available (1314K code, 431K data, 64K init)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 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
Journalled Block Device driver loaded
Console: switching to colour frame buffer device 80x30
LCD resolution 640x480
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with no serial options enabled
ttyS00 at 0x0000 (irq = 15) is a PXA UART
ttyS01 at 0x0000 (irq = 14) is a PXA UART
ttyS02 at 0x0000 (irq = 13) is a PXA UART
mk712 device OK!
eth0: cs8900 rev K Base 0xF1000300<6>, IRQ 44, MAC 00:A2:55:F2:26:25
RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
loop: loaded (max 8 devices)
NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MB 3,3V)
Creating 3 MTD partitions on "NAND 64MB 3,3V":
0x00000000-0x00100000 : "EZ-X5 Kernel partition"
0x00100000-0x00600000 : "EZ-X5 Ramdisk partition"
0x00600000-0x04000000 : "EZ-X5 Data partition 0"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (-28 != 32768), only wrote 12582912
invalid compressed format (err=1)<6>Freeing initrd memory: 5120K
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 64K
attempt to access beyond end of device
01:00: rw=0, want=14338, limit=12288
attempt to access beyond end of device
01:00: rw=0, want=14340, limit=12288
attempt to access beyond end of device
01:00: rw=0, want=14342, limit=12288
attempt to access beyond end of device
01:00: rw=0, want=14343, limit=12288
attempt to access beyond end of device
01:00: rw=0, want=14338, limit=12288
attempt to access beyond end of device
01:00: rw=0, want=14340, limit=12288
attempt to access beyond end of device
01:00: rw=0, want=14342, limit=12288
attempt to access beyond end of device
01:00: rw=0, want=14343, limit=12288
Warning: unable to open an initial console.
attempt to access beyond end of device
01:00: rw=0, want=32772, limit=12288
EXT2-fs error (device ramdisk(1,0)): ext2_read_inode: unable to read inode bloc1
attempt to access beyond end of device
01:00: rw=0, want=16388, limit=12288
EXT2-fs error (device ramdisk(1,0)): ext2_read_inode: unable to read inode bloc7
attempt to access beyond end of device
01:00: rw=0, want=24725, limit=12288
EXT2-fs error (device ramdisk(1,0)): ext2_read_inode: unable to read inode bloc4
Kernel panic: No init found. Try passing init= option to kernel.
해결하였습니다.
ez-boot에 설정값이 12M가 최대치로 되어 있었네요..
ez-boot으로 들어가서 set 으로 들어가
램디스트 최대크기를 늘려주니 그만큼 늘어났습니다.
이제 얼른 QT라이브러리를 올려서 램디스크를 만들어야 되겠네요^^
root=/dev/ram ramdisk=36864
요렇게 하였습니다.^^