
도와주세요!!
글 수 15,339
2002.10.14 17:17:12 (*.231.168.11)
8043
현재 kernel2.4.10를 사용하고 있습니다. 2.4.18로 up한다음 MTD, jiffs를 사
용하려고 합니다. 강의에 가보면 kernel부분에 설명서를 읽었습니다. 그리고
자료실에서 ezboard에 맞게 patch가 되어 있는 2.4.18를 downloading하였구
요. 이전의 ramdisk를 사용하는 상태에서 2.4.18의 zImage를 올리면 다음과 같
은 message가 나옵니다.
Copy
Image ...
Starting
kernel ...
Uncompressing Linux............................................ done,
booting t.
Linux version 2.4.18-rmk7-ez1 (root@jdt) (gcc version 2.95.2 20000313
(Debian G2
CPU: Intel StrongARM-1110 revision
8
Machine:
EZBOARD
Security risk: creating user accessible mapping for 0x00000000 at
0xe8000000
Security risk: creating user accessible mapping for 0x10000000 at
0xf0000000
On node 0 totalpages:
8192
zone(0): 8192
pages.
zone(1): 0
pages.
zone(2): 0
pages.
Kernel command line:
keepinitrd
Warning: uninitialized Real Time
Clock
Calibrating delay loop... 147.04
BogoMIPS
Memory: 32MB = 32MB
total
Memory: 26660KB available (1176K code, 238K data, 44K
init)
Dentry-cache hash table entries: 4096 (order: 3, 32768
bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384
bytes)
Mount-cache hash table entries: 512 (order: 0, 4096
bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096
bytes)
Page-cache hash table entries: 8192 (order: 3, 32768
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
Starting
kswapd
JFFS version 1.0, (C) 1999, 2000 Axis Communications
AB
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
Communications AB.
ttySA0 at MEM 0x80050000 (irq = 17) is a
SA1100
pty: 256 Unix98 ptys
configured
block: 64 slots per queue,
batch=16
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024
blocksize
eth0: cs8900 rev J Base 0xF0000300<6>, IRQ 47, MAC
00:D0:CA:F1:26:25
SA1100 flash: probing 16-bit flash
bus
Using buffer write
method
Using static partition
definition
Creating 3 MTD partitions on "SA1100
flash":
0x00000000-
0x00100000 : "Loader+Kernel"
0x00100000-
0x00400000 : "Initrd"
0x00400000-0x01000000 : "file
System"
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 2048 bind
2048)
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
EXT2-fs warning: mounting unchecked fs, running e2fsck is
recommended
VFS: Mounted root (ext2
filesystem).
Freeing init memory:
44K
INIT: version 2.74
booting
INIT: Entering runlevel:
3
Starting system logger:
syslogd
Starting INET services:
inetd
Starting pcmcia Starting PCMCIA services: module
directory /lib/modules/2.4.18-.
Welcom to J.D&T
EZBOARD.
ezboard login:
root
Password:
[root@ezboard /root]$
cat /proc/mtd
dev: size erasesize
name
mtd0: 00100000
00020000 "Loader+Kernel"
mtd1: 00300000
00020000 "Initrd"
mtd2: 00c00000 00020000 "file
System"
[root@ezboard /root]
$
[root@ezboard /root]$ mkdir -
p /mnt/jffs2
[root@ezboard /root]$ mount -t
jffs2 /dev/mtdblock2 /mnt/jffs2/
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:
0x876b id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004:
0x48e0 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008:
0x20e5 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c:
0x2f99 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010:
0x4f12 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014:
0x13de id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018:
0x8956 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c:
0xf869 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020:
0x4cdf id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024:
0xdac0 id
Further such events for this erase block will not be
printed
JFFS2: Erase block at 0x00000000 is not formatted. It will be
erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000:
0xc9b5 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004:
0xf6be id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008:
0xcc35 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c:
0x113b id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010:
0xcba8 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014:
0x6772 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018:
0x2561 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c:
0x9255 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020:
0x9798 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024:
0xc425 id
Further such events for this erase block will not be
printed
JFFS2: Erase block at 0x00020000 is not formatted. It will be
erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000:
0x1e9f id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004:
0x3472 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008:
0xb14c id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c:
0x840d id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010:
0xcb9c id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014:
0x5d10 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018:
0x24c0 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c:
0x9a2d id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020:
0x7ae0 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024:
0xb4cf id
Further such events for this erase block will not be
printed
JFFS2: Erase block at 0x00040000 is not formatted. It will be
erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2
nodes
mount: wrong fs type, bad option, bad superblock
on /dev/mtdblock2,
or too many mounted file
systems
[root@ezboard /root]$
그리고 [강의 --> 램디스크/MTD] 에가보면 여러 문서가 있습니다. 그런데 그
문서를 언제 사용하는지를 모르겠습니다.
"플래시 롬을 root로 만드는 과정"
"플래시 롬을 root로 만드는 과정(램디스크 image영역없이)"
플래시 롬을 root로 만든다는 것이 무슨 말인지, 램디스크 image영역없이 라
는 말은 무슨 말인가요? 그리고 "zlib 라이브러니 포팅"은 무슨 말인가요?
이전의 ramdisk로는 사용을 할수 없는건지요..
용하려고 합니다. 강의에 가보면 kernel부분에 설명서를 읽었습니다. 그리고
자료실에서 ezboard에 맞게 patch가 되어 있는 2.4.18를 downloading하였구
요. 이전의 ramdisk를 사용하는 상태에서 2.4.18의 zImage를 올리면 다음과 같
은 message가 나옵니다.
Copy
Image ...
Starting
kernel ...
Uncompressing Linux............................................ done,
booting t.
Linux version 2.4.18-rmk7-ez1 (root@jdt) (gcc version 2.95.2 20000313
(Debian G2
CPU: Intel StrongARM-1110 revision
8
Machine:
EZBOARD
Security risk: creating user accessible mapping for 0x00000000 at
0xe8000000
Security risk: creating user accessible mapping for 0x10000000 at
0xf0000000
On node 0 totalpages:
8192
zone(0): 8192
pages.
zone(1): 0
pages.
zone(2): 0
pages.
Kernel command line:
keepinitrd
Warning: uninitialized Real Time
Clock
Calibrating delay loop... 147.04
BogoMIPS
Memory: 32MB = 32MB
total
Memory: 26660KB available (1176K code, 238K data, 44K
init)
Dentry-cache hash table entries: 4096 (order: 3, 32768
bytes)
Inode-cache hash table entries: 2048 (order: 2, 16384
bytes)
Mount-cache hash table entries: 512 (order: 0, 4096
bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096
bytes)
Page-cache hash table entries: 8192 (order: 3, 32768
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
Starting
kswapd
JFFS version 1.0, (C) 1999, 2000 Axis Communications
AB
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis
Communications AB.
ttySA0 at MEM 0x80050000 (irq = 17) is a
SA1100
pty: 256 Unix98 ptys
configured
block: 64 slots per queue,
batch=16
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024
blocksize
eth0: cs8900 rev J Base 0xF0000300<6>, IRQ 47, MAC
00:D0:CA:F1:26:25
SA1100 flash: probing 16-bit flash
bus
Using buffer write
method
Using static partition
definition
Creating 3 MTD partitions on "SA1100
flash":
0x00000000-
0x00100000 : "Loader+Kernel"
0x00100000-
0x00400000 : "Initrd"
0x00400000-0x01000000 : "file
System"
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 2048 bind
2048)
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
EXT2-fs warning: mounting unchecked fs, running e2fsck is
recommended
VFS: Mounted root (ext2
filesystem).
Freeing init memory:
44K
INIT: version 2.74
booting
INIT: Entering runlevel:
3
Starting system logger:
syslogd
Starting INET services:
inetd
Starting pcmcia Starting PCMCIA services: module
directory /lib/modules/2.4.18-.
Welcom to J.D&T
EZBOARD.
ezboard login:
root
Password:
[root@ezboard /root]$
cat /proc/mtd
dev: size erasesize
name
mtd0: 00100000
00020000 "Loader+Kernel"
mtd1: 00300000
00020000 "Initrd"
mtd2: 00c00000 00020000 "file
System"
[root@ezboard /root]
$
[root@ezboard /root]$ mkdir -
p /mnt/jffs2
[root@ezboard /root]$ mount -t
jffs2 /dev/mtdblock2 /mnt/jffs2/
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:
0x876b id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004:
0x48e0 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008:
0x20e5 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c:
0x2f99 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010:
0x4f12 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014:
0x13de id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018:
0x8956 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c:
0xf869 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020:
0x4cdf id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024:
0xdac0 id
Further such events for this erase block will not be
printed
JFFS2: Erase block at 0x00000000 is not formatted. It will be
erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000:
0xc9b5 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004:
0xf6be id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008:
0xcc35 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c:
0x113b id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010:
0xcba8 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014:
0x6772 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018:
0x2561 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c:
0x9255 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020:
0x9798 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024:
0xc425 id
Further such events for this erase block will not be
printed
JFFS2: Erase block at 0x00020000 is not formatted. It will be
erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000:
0x1e9f id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004:
0x3472 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008:
0xb14c id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c:
0x840d id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010:
0xcb9c id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014:
0x5d10 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040018:
0x24c0 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004001c:
0x9a2d id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040020:
0x7ae0 id
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040024:
0xb4cf id
Further such events for this erase block will not be
printed
JFFS2: Erase block at 0x00040000 is not formatted. It will be
erased
Cowardly refusing to erase blocks on filesystem with no valid JFFS2
nodes
mount: wrong fs type, bad option, bad superblock
on /dev/mtdblock2,
or too many mounted file
systems
[root@ezboard /root]$
그리고 [강의 --> 램디스크/MTD] 에가보면 여러 문서가 있습니다. 그런데 그
문서를 언제 사용하는지를 모르겠습니다.
"플래시 롬을 root로 만드는 과정"
"플래시 롬을 root로 만드는 과정(램디스크 image영역없이)"
플래시 롬을 root로 만든다는 것이 무슨 말인지, 램디스크 image영역없이 라
는 말은 무슨 말인가요? 그리고 "zlib 라이브러니 포팅"은 무슨 말인가요?
이전의 ramdisk로는 사용을 할수 없는건지요..