도와주세요!!
글 수 15,339
2008.11.10 11:03:43 (*.100.138.222)
11101
안녕하세요.
ramdisk file을 생성후 bootloader에서 tftp를 이용해 tfr command로 wirte하면 정상적으로 부팅이 되는데,
이 ramdisk file을 nfs로 복사한 후에, ez_image -r command로 write하고 재부팅하면 kernel panic이 발생합니다.
Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 784]...
Uncompressing Linux.................................................................................................. done, booting the kernel.
Linux version 2.6.13.5-ez-s2410 (root@localhost.localdomain) (gcc version 3.4.3) #575 Tue Sep 23 11:24:06 KST 2008
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: WWW.FALINUX.COM EZ-S2410 for S3C2410 Board
Warning: bad configuration page, trying to continue
Check ezboot Magic Value [20041201]
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 266.000 MHz, memory 133.000 MHz, peripheral 66.500 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384 console=ttySAC2,115200 ip0=61.100.138.5 nandparts=2,5,1,56 arch=EZ-S2410 mac=00:17:a1:70:00:05
irq: clearing pending ext status 00000010
irq: clearing subpending status 00000080
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000001, tcnt d877, tcfg 000002ff,00003333, usec 00001719
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 56576KB available (2405K code, 674K data, 88K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 5120K
NET: Registered protocol family 16
S3C2410: Initialising architecture
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NetWinder Floating Point Emulator V0.97 (extended precision)
Initializing Cryptographic API
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
AX88796B: MAC ADDRESS 00 17 a1 70 00 05
eth0: AX88796B found at 0x8000000, using IRQ 60.
Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
HDLC support module revision 1.18
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4a00000
s3c2410-nand: timing: Tacls 13ns, Twrph0 66ns, Twrph1 39ns
NAND device: Manufacturer ID:0xec, Chip ID:0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 754 at 0x00bc8000
Bad eraseblock 4095 at 0x03ffc000
Creating 6 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00034000 : "EZ-S2410 Bootloader partition"
0x00034000-0x00040000 : "EZ-S2410 Config partition"
0x00040000-0x00300000 : "EZ-S2410 Kernel partition"
0x00300000-0x00800000 : "EZ-S2410 Ramdisk partition"
0x00800000-0x00900000 : "EZ-S2410 Logo partition"
0x00900000-0x04000000 : "EZ-S2410 Data partition 0"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 377 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
GPIO L3 bus interface for S3C2410, installed
EZ-S2410 UDA1341 audio driver initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 10
Disabled Privacy Extensions on device c02c21f8(lo)
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
RAMDISK: Compressed image found at block 0
invalid compressed format (err=2)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 88K
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
-----------------------------------------------------------------------------------------------------
확인 부탁드립니다.
ez_image 문제 같아서 access_nand module을 찾고 있는데, 안 보이네요.
링크좀 알려주시면 고맙겠습니다.
그럼 수고하세요.
ramdisk file을 생성후 bootloader에서 tftp를 이용해 tfr command로 wirte하면 정상적으로 부팅이 되는데,
이 ramdisk file을 nfs로 복사한 후에, ez_image -r command로 write하고 재부팅하면 kernel panic이 발생합니다.
Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 784]...
Uncompressing Linux.................................................................................................. done, booting the kernel.
Linux version 2.6.13.5-ez-s2410 (root@localhost.localdomain) (gcc version 3.4.3) #575 Tue Sep 23 11:24:06 KST 2008
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: WWW.FALINUX.COM EZ-S2410 for S3C2410 Board
Warning: bad configuration page, trying to continue
Check ezboot Magic Value [20041201]
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 266.000 MHz, memory 133.000 MHz, peripheral 66.500 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384 console=ttySAC2,115200 ip0=61.100.138.5 nandparts=2,5,1,56 arch=EZ-S2410 mac=00:17:a1:70:00:05
irq: clearing pending ext status 00000010
irq: clearing subpending status 00000080
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000001, tcnt d877, tcfg 000002ff,00003333, usec 00001719
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 56576KB available (2405K code, 674K data, 88K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 5120K
NET: Registered protocol family 16
S3C2410: Initialising architecture
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NetWinder Floating Point Emulator V0.97 (extended precision)
Initializing Cryptographic API
HDLC line discipline: version $Revision: 4.8 $, maxframe=4096
N_HDLC line discipline registered.
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
AX88796B: MAC ADDRESS 00 17 a1 70 00 05
eth0: AX88796B found at 0x8000000, using IRQ 60.
Cronyx Ltd, Synchronous PPP and CISCO HDLC (c) 1994
Linux port (c) 1998 Building Number Three Ltd & Jan "Yenya" Kasprzak.
HDLC support module revision 1.18
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4a00000
s3c2410-nand: timing: Tacls 13ns, Twrph0 66ns, Twrph1 39ns
NAND device: Manufacturer ID:0xec, Chip ID:0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 754 at 0x00bc8000
Bad eraseblock 4095 at 0x03ffc000
Creating 6 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00034000 : "EZ-S2410 Bootloader partition"
0x00034000-0x00040000 : "EZ-S2410 Config partition"
0x00040000-0x00300000 : "EZ-S2410 Kernel partition"
0x00300000-0x00800000 : "EZ-S2410 Ramdisk partition"
0x00800000-0x00900000 : "EZ-S2410 Logo partition"
0x00900000-0x04000000 : "EZ-S2410 Data partition 0"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 377 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
GPIO L3 bus interface for S3C2410, installed
EZ-S2410 UDA1341 audio driver initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 10
Disabled Privacy Extensions on device c02c21f8(lo)
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
RAMDISK: Compressed image found at block 0
invalid compressed format (err=2)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 88K
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
-----------------------------------------------------------------------------------------------------
확인 부탁드립니다.
ez_image 문제 같아서 access_nand module을 찾고 있는데, 안 보이네요.
링크좀 알려주시면 고맙겠습니다.
그럼 수고하세요.
부트로더에서 설정한 파티션 정보( 2 / 5 / 56 )와 커널 소스( linux/arch/arm/mach-s3c2410/mach-ez-s2410.c )안의 정보 ( 3 / 5 / 55 )가 달라서 부트로더에서 ramdisk를 구울때는 정상동작 하는데, 부팅후 ez_image를 이용해 ramdisk를 구우면 kernel panic이 발생했습니다.
커널 소스를 원래대로 ( 2 / 5 / 56 ) 으로 변경후 해결됐습니다.
그럼 수고하세요.