일반 부팅시 문제...(형기님 고맙습니다. 미처 그걸 몰랐네요)
2009.01.06 18:40
저는 귀사의 EZ-pxa270 보드를 사용하고 있습니다.
요 몇일간 보드에 여러가지 라이브러리들을 설치, 삭제 한 거 같아서
싹 다 지우고 ( EFK, EFR, EFA, EFC)
다시 시디에 있는 부트로더와 커널이미지, 램디스크를 올렸습니다.
(사진 첨부)
분명히 zfb zfk zfr 로 플래쉬에 부트로더, 커널이미지, 램디스크를 썻는데...
그런데 아래와 같은 커널 패닉이 뜹니다.
VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
그래서 사용시 set모드에서 load kcmd2 root = ramdisk로 선택시에는 부팅이 잘됩니다.
그러나 df 해서 메모리 사용을 보면..
16메가의 램만 나오고...플래쉬(mtdblock)는 나오지가 않습니다.
램디스크모드라서 그런지 껏다 키면 데이터가 소멸되더군요...
문제점 좀 해결해주세요...
요 몇일간 보드에 여러가지 라이브러리들을 설치, 삭제 한 거 같아서
싹 다 지우고 ( EFK, EFR, EFA, EFC)
다시 시디에 있는 부트로더와 커널이미지, 램디스크를 올렸습니다.
(사진 첨부)
분명히 zfb zfk zfr 로 플래쉬에 부트로더, 커널이미지, 램디스크를 썻는데...
그런데 아래와 같은 커널 패닉이 뜹니다.
VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
그래서 사용시 set모드에서 load kcmd2 root = ramdisk로 선택시에는 부팅이 잘됩니다.
그러나 df 해서 메모리 사용을 보면..
16메가의 램만 나오고...플래쉬(mtdblock)는 나오지가 않습니다.
램디스크모드라서 그런지 껏다 키면 데이터가 소멸되더군요...
문제점 좀 해결해주세요...
댓글 5
-
장형기
2009.01.06 20:49
-
디지털마스타
2009.01.06 21:03
커널 부팅메시지
Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 3003]...
kernel command [EZBOOT mem=64M noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttyPXA2,115200 ip0=192.168.10.182 mac=00:FA:07:78:27:04 netmask=255.255.255.0 gw=192.168.10.1 host=192.168.10.27 nandparts=1,8,55 ]
Uncompressing Linux............................................................................................................................. done, booting the kernel.
Linux version 2.6.21-falinux (gemini@hw27) (gcc version 3.4.3) #1 Tue Jun 17 18:05:14 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: 624.00MHz (*3.0, 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 noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttyPXA2,115200 ip0=192.168.10.182 mac=00:FA:07:78:27:04 netmask=255.255.255.0 gw=192.168.10.1 host=192.168.10.27 nandparts=1,8,55
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: 60928KB 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
NET: Registered protocol family 2
Time: pxa_timer clocksource has been installed.
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
NetWinder Floating Point Emulator V0.97 (double precision)
audit: initializing netlink socket (disabled)
audit(9.569: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 80x30
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.
VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
df명령후 메세지
[root@falinux ~]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram 15863 11945 3099 79% /
이상입니다. -
이동수
2009.01.06 22:31
안녕하세요^^
예전 커널 이미지 같습니다. 현재 자료실에 올라가있는 커널로 업데이트 해주시면 해결이 되어질 것으로 생각이 되어집니다.
그럼 좋은 하루되십시오 -
디지털마스타
2009.01.06 22:59
다시 삭제 하고 설치 하고 ramdisk로 df 명령어 결과 플래쉬는 잡힙니다.
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram 15863 11947 3097 79% /
/dev/mtdblock2 56320 116 56204 0% /app
하지만 부팅시에 root = flash 로 하면 또 다른 커널 패닉이 뜹니다...
Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 3003]...
kernel command [EZBOOT mem=64M noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttyPXA2,115200 ip0=192.168.10.182 mac=00:FA:07:78:27:04 netmask=255.255.255.0 gw=192.168.10.1 host=192.168.10.27 nandparts=1,8,55 ]
Uncompressing Linux............................................................................................................................ done, booting the kernel.
Linux version 2.6.21-falinux (root@hw27) (gcc version 3.4.3) #3 Thu Aug 14 13:59:00 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: 624.00MHz (*3.0, 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 noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttyPXA2,115200 ip0=192.168.10.182 mac=00:FA:07:78:27:04 netmask=255.255.255.0 gw=192.168.10.1 host=192.168.10.27 nandparts=1,8,55
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: 60928KB available (3460K code, 397K data, 116K 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
NET: Registered protocol family 2
Time: pxa_timer clocksource has been installed.
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
NetWinder Floating Point Emulator V0.97 (double precision)
audit: initializing netlink socket (disabled)
audit(9.569:1): initialized
yaffs Aug 14 2008 12:59:15 Installing.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
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
NAND device: Manufacturer ID:0xec, Chip ID:0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 906 at 0x00e28000
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00100000 : "falinux boot/config/logo partition"
0x00100000-0x00900000 : "falinux kernel/ramdisk partition"
0x00900000-0x04000000 : "falinux yaffs partition"
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.
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs1
yaffs: block 330 is marked bad
block 331 is bad
VFS: Mounted root (yaffs2 filesystem) readonly.
Freeing init memory: 116K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel. -
장형기
2009.01.07 17:07
안녕하세요..
혹시 램디스크로 부팅 후에 root에서 mkflahroot 라는 스크립트를 실행 해 주셨나요???
파일 시스템을 yaffs로 할 경우에는 root=/dev/mtdblock2 의 영역인 app 디렉토리에 파일 시스템을 모두 복사를 해 주셔야 합니다.
이 복사를 해 주는 스크립트가 mkflahroot 스크립트 입니다.
[root@falinux ~]$ ls
mkflahroot nfsmnt
[root@falinux ~]$ ./mkflahroot
이렇게 하시고 나서 부트로더에서 set 명령으로 들어가셨어 LF 라고 명령을 치시고, 저장 후 재 부팅을 해 보세요..
그럼 좋은 하루 되세요..




커널 부팅 메세지를 올려주실 수 있나요???
그리고, ramdisk 로 부팅 후 df 명령으로 나온 메세지를 그렙하셨어 올려 주세요.
부팅 메세지에서 NAND영역을 찾는 부분을 확인 해 봐야 할 것 같습니다.
그럼 좋은 하루 되세요.