도와주세요!!
안녕하세요. 현재 EZ-PXA270 보드를 사용 중에 있습니다.
여기에 EZ-LCD-Q2를 사용하려고 합니다.
LCD를 사용하기 위하여 커널을 "zImage.ez-pxa270-480x272" 으로 바꾸고나서 램디스크 모드(LR)로 부팅하였습니다.
부팅 후에 YAFFS 모드로 바꾸기 위하여 ./mkflashroot 를 실행하면 아래와 같은 에러 메세지가 출력됩니다.
============================================================================
./mkflashroot 실행 시의 에러 메세지
============================================================================
[root@falinux ~]$ ./mkflashroot
mkflashroot ver 1.1 (www.falinux.com)
wait about 20sec ...
backup app
mkdir: Cannot create directory `/tmp/': File exists
copy /bin
copy /dev
copy /etc
copy /home
copy /lib
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
copy /root
cp: Write Error: No space left on device
[root@falinux ~]$ ls
mkflashroot nfsmnt
[root@falinux ~]$ mkflashroot
-bash: mkflashroot: command not found
[root@falinux ~]$ ./mkflashroot
mkflashroot ver 1.1 (www.falinux.com)
wait about 20sec ...
backup app
mkdir: Cannot create directory `/tmp/': File exists
cp: cannot create directory `/tmp/app/bin': No space left on device
cp: cannot create directory `/tmp/app/dev': No space left on device
cp: cannot create directory `/tmp/app/etc': No space left on device
cp: cannot create directory `/tmp/app/home': No space left on device
cp: cannot create directory `/tmp/app/lib': No space left on device
cp: cannot create directory `/tmp/app/root': No space left on device
copy /bin
copy /dev
copy /etc
copy /home
copy /lib
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
cp: Write Error: No space left on device
copy /root
cp: Write Error: No space left on device
copy /sbin
cp: cannot create directory `/app/sbin': No space left on device
copy /tmp
cp: cannot create directory `/app/tmp': No space left on device
copy /usr
cp: cannot create directory `/app/usr': No space left on device
copy /var
cp: cannot create directory `/app/var': No space left on device
mkdir: Cannot create directory `/app/proc': No space left on device
mkdir: Cannot create directory `/app/mnt': No space left on device
mkdir: Cannot create directory `/app/mnt/nfs': No such file or directory
mkdir: Cannot create directory `/app/mnt/cf': No such file or directory
mkdir: Cannot create directory `/app/mnt/mmc': No such file or directory
mkdir: Cannot create directory `/app/mnt/usb': No such file or directory
mkdir: Cannot create directory `/app/mnt/nand': No such file or directory
mkdir: Cannot create directory `/app/mnt/temp': No such file or directory
mkdir: Cannot create directory `/app/sys': No space left on device
mkdir ...done
restore app
cp: cannot create directory `/app/app': No space left on device
chmod: /app/app: No such file or directory
chmod: /app/mnt: No such file or directory
cp: /root/.fstab: No such file or directory
please reboot system and enter EZBOOT->set
Select >> LF
: will be changed [noinitrd root=/dev/mtdblock2]
[root@falinux ~]$
============================================================================
df 명령을 실행하면 아래와 같이 표시됩니다.
============================================================================
[root@falinux app]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram 15863 15863 0 100% /
============================================================================
부트로더 설정 화면은 아래와 같습니다.
============================================================================
EZBOOT>set
^^;
1) mac address : 00:FA:07:78:27:04
2) local ip : 192.168.10.95
3) local netmask : 255.255.255.0
4) local gateway : 192.168.10.1
5) server ip : 192.168.10.100
6) zImage file name : zImage.ez-pxa270-480x272
7) ram disk file name : ramdisk-1.11-16M.gz
8) boot loader file name : ezboot.ez-pxa270
9) logo image file name :
10) auto execute full name :
11) autoboot wait time : 3
12) copy ramdisk [Y/N] : Y
13) arm kernel arch number : 3003
14) nand part (B,C,L,K,R,A): 0,1,0,3,5,55
15) watchdog (sec, off=0) : 0
16) KCMD 1 : mem=64M
17) KCMD 2 : initrd=0xA0800000,5M root=/dev/ram ramdisk=16384
18) KCMD 3 : console=ttyPXA2,115200
19) KCMD 4 :
20) KCMD 5 :
21) KCMD 6 :
L) Load default
LF) load KCMD2 root=flash
LR) load KCMD2 root=ramdisk
S) Save to flash
P) aPply & exit
Q) Quit
Select >>
============================================================================
커널 부팅 중 메세지는 아래와 같습니다.
============================================================================
WELCOME EZBOOT V2.2.49 (FALINUX Co.,Ltd) ..........PXA270(EZ-PXA270)
Program by You Young-chang, Oh Jae-Kyoung, Jang Hyung-Gi
Last Modify Aug 1 2008
Detect ES29LV400_B Flash : vid=4A pid=22BA
SIZE 4-Mbits [512-Kbytes]
Detect Samsung NAND 64M 3.3V 8-bit Flash : vid=EC pid=76
SIZE 64-Mbytes (page=512, block=16K)
...
Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 3003]...
kernel command [EZBOOT mem=64M initrd=0xA0800000,5M root=/dev/ram ramdisk=16384 console=ttyPXA2,115200 ip0=192.168.10.95 mac=00:FA]
Uncompressing Linux...................................................................................................................
Linux version 2.6.21-falinux (gemini@hw27) (gcc version 3.4.3) #2 Tue Jun 17 18:28:40 KST 2008
CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), cr=0000397f
Machine: FALinux EZ-PXA270 Development Platform
Memory policy: ECC disabled, Data cache writeback
Run Mode clock: 208.00MHz (*16)
Turbo Mode clock: 520.00MHz (*2.5, active)
Memory clock: 104.00MHz (/2)
System bus clock: 104.00MHz
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists. Total pages: 16256
Kernel command line: EZBOOT mem=64M initrd=0xA0800000,5M root=/dev/ram ramdisk=16384 console=ttyPXA2,115200 ip0=192.168.10.95 mac=
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 55808KB available (3472K code, 397K data, 120K init)
Security Framework v1.0.0 initialized
SELinux: Initializing.
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Time: pxa_timer clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 5120K
NetWinder Floating Point Emulator V0.97 (double precision)
audit: initializing netlink socket (disabled)
audit(12.519:1): initialized
yaffs Jun 17 2008 18:02:53 Installing.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 60x34
pxa2xx-uart.0: ttyPXA0 at MMIO 0x40100000 (irq = 22) is a FFUART
pxa2xx-uart.1: ttyPXA1 at MMIO 0x40200000 (irq = 21) is a BTUART
pxa2xx-uart.2: ttyPXA2 at MMIO 0x40700000 (irq = 20) is a STUART
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
AX88796B: v1.1.0
AX88796B: 09/20/06 (http://www.asix.com.tw)
ax88796b: MAC ADDRESS 00 fa 07 78 27 04
No NAND device found!!!
No NAND device - returning -ENXIO
pxa27x-ohci pxa27x-ohci: PXA27x OHCI
pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number 1
pxa27x-ohci pxa27x-ohci: irq 3, io mem 0x4c000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
input: wm9712 TouchScreen 0.30 as /class/input/input0
wm9712ts registe complete irq=116
i2c /dev entries driver
I2C: i2c-0: PXA I2C adapter
I2C: i2c-1: PXA I2C adapter
SD Card initial
Advanced Linux Sound Architecture Driver Version 1.0.14rc3.
ASoC version 0.13.0
AC97 SoC Audio Codec 0.6
asoc: AC97 HiFi <-> pxa2xx-ac97 mapping ok
ALSA device list:
#0: EZ-PXA270 (AC97)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
NET: Registered protocol family 17
CAUTION: XScale iWMMXt coprocessor detected, but kernel support is missing.
RAMDISK: Compressed image found at block 0
length error
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 120K
INIT: version 2.86 booting
INIT: Entering runlevel: 3
mount: Mounting /dev/mtdblock2 on /app failed: No such device or address
/usr/local/apache/bin/apachectl start: httpd started
Starting system logger: [ OK ]
Starting INET services: [ OK ]
eth0 Link mode : 100 Mb/s Duplex mode.
Welcome to FALinux (www.falinux.com)
Linux Kernel 2.6.21-falinux
falinux login: root
[root@falinux ~]$
============================================================================
어떻게 해야 mkflashroot 쉘 명령이 제대로 실행이 될까요?
부트로더에서 EFA 명령으로 NAND Flash 의 어플리케이션 영역도 지웠는데요.
방법을 알려 주시면 감사하겠습니다.