도와주세요!!
안녕하세요
사이트에 있는 램디스크로 바꾸어 올려 보았습니다.
커널 패닉이 나타나 해결을 위해 이것 저것 찾고 있습니다. (잘 안 되네요 )
램디스크 : ramdisk-1.12-24M.gz
==> 18M디스크를 만들어서 24M 내용물을 복사해 넣었습니다.
================================
Quickly Autoboot [ENTER] / Goto BOOT-MENU press [space bar]
Copy Kernel Image .....
Copy Ramdisk Image .....
Starting kernel [MARCH 3007]...
kernel command [EZBOOT mem=64M initrd=0x30800000,5M root=/dev/ram
ramdisk=16384 console=ttySAC2,115200 video=ezfb:panel:2 ip0=10.0.0.130
mac=00:FA:01:A2:13]
Uncompressing
Linux..........................................................................................................................
done, booting t.
Linux version 2.6.21-falinux (root@localhost.localdomain) (gcc version 3.4.3) #22 Tue Aug 31 14:13:22 KST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: www.falinux.com EZ-S3C2440 for S3C2440 Board
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 399.651 MHz, memory 133.217 MHz, peripheral 66.608 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (2.116 MHz), fast, MPLL on, UPLL on
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. Total pages: 16256
Kernel command line: EZBOOT mem=64M initrd=0x30800000,5M root=/dev/ram ramdisk=16384 console=ttySAC2,115200 video=ezfb:panel:2 ip0=10.0.0.130 mac=00:FA:01:
irq: clearing pending status 00000400
irq: clearing subpending status 000000c0
irq: clearing subpending status 00000080
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000009, tcnt 2b5c, tcfg 000002ff,00003333, usec 0000170f
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: 55856KB available (3368K code, 392K data, 124K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
S3C24XX DMA Driver, (c) 2003-2004,2006 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
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
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(2.568:1): initialized
yaffs May 17 2010 17:17:34 Installing.
io scheduler noop registered (default)
s3c2410-lcd s3c2410-lcd: options are "panel:2"
Console: switching to colour frame buffer device 100x30
fb0: s3c2410fb frame buffer device ( 800x480x16 )
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
usbcore: registered new interface driver ub
AX88796B: v1.1.0
AX88796B: 09/20/06 (http://www.asix.com.tw)
ax88796b: MAC ADDRESS 00 fa 01 a2 13 04
Linux video capture interface: v2.00
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 22ns Twrph0=8 60ns, Twrph1=3 22ns
NAND device: Manufacturer ID:0xec, Chip ID:0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
Scanning device for bad blocks
count of bad blocks = 1
Creating 3 MTD partitions on "NAND 1GiB 3,3V 8-bit":
0x00000000-0x00200000 : "falinux boot/config/logo partition"
0x00200000-0x00a00000 : "falinux kernel/ramdisk partition"
0x00a00000-0x04000000 : "falinux yaffs partition"
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 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
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /class/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 378 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: initialisation done.
Advanced Linux Sound Architecture Driver Version 1.0.14rc3.
ASoC version 0.13.0
AC97 SoC Audio Codec 0.6
asoc: AC97 HiFi <-> s3c2440-ac97 mapping ok
ALSA device list:
#0: FALINUXS3C2440 (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
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
RAMDISK: Compressed image found at block 0
RAMDISK: ran out of compressed data
invalid compressed format (err=1)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 124K
EXT2-fs error (device ram0): ext2_check_page: bad entry in directory
#3384: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0,
name_len=0
EXT2-fs error (device ram0): ext2_check_page: bad entry in directory
#3241: rec_len is smaller than minimal - offset=0, inode=0, rec_len=0,
name_len=0
EXT2-fs error (device ram0): ext2_check_page: bad entry in directory
#3154: rec_len is smaller than minimal - offset=1024, inode=0,
rec_len=0, name_len=0
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
========================================================
중간 INIT 부분은 색깔 변경해 놓았습니다.
툴체인을 4.3 으로 바꿔 보려고 램디스크를 바꿀려고 합니다.
감사 합니다.
invalid format 이라고 되어 있습니다.
바꾸어서 만드는 과정을 한번 올려주세요.
만드는 과정을 한번 살펴 보는 것이 좋을 것 같습니다.
네 .. 저도 지금 그부분을 보았습니다.
http://southlife.tistory.com/61 <== 이곳을 보고 램디스크를 만들었습니다.
[root@localhost ramdisk]# dd if=/dev/zero of=R_16M bs=1k count=16384
16384+0 records in
16384+0 records out
16777216 bytes (17 MB) copied, 0.11962 seconds, 140 MB/s
[root@localhost ramdisk]# mke2fs R_16M
mke2fs 1.39 (29-May-2006)
R_16M is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
4096 inodes, 16384 blocks
819 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=16777216
2 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost ramdisk]# mount -o loop R_16M 16M/
내용 복사
umount ..
gzip R_16M
==> R_16M.gz 생성 보드에 업로드 하였습니다.
혹시 압축 상태의 size 가 5M 넘은건 아닌가요?
s3c2440 보드를 사용하신다면 현재 NAND 파티션이 5M 로 설정 돼 있습니다.
==> 14) nand part (B,C,L,K,R,A): 1,1,2,3,5,1012
파티션 나눈게 사용하시는 보드와 다를수도 있지만 윗줄에 표시한부분을 확인 해 보세요.
LSA device list:
#0: FALINUXS3C2440 (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
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (-28 != 32768) 16777216
invalid compressed format (err=1)
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 124K
지적해 주신 부분을 6M로 변경해 보았습니다.
이상태에서 진행을 안(못) 하네요.
램영역/ 커널 영역 삭제 하니..
#0: FALINUXS3C2440 (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
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
RAMDISK: Compressed image found at block 0
length error
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 140K
메시지가 다르네요..
저희가 사용하는 램디스 16메가 짜리 만드는 스크립트 입니다.
참조하셔서 시도해 보세요
#!/bin/sh
RAMDISK=ramdisk-1.11-16M.gz
rm -rf ramdisk-*.gz
dd if=/dev/zero of=t_ramdisk bs=1k count=16384
/sbin/losetup /dev/loop1 t_ramdisk
/sbin/mke2fs /dev/loop1
/sbin/losetup -d /dev/loop1
mount -t ext2 -o loop t_ramdisk dir_ramdisk
#ldconfig -r target_ramdiskroot
cp -a target_ramdiskroot/* dir_ramdisk
umount dir_ramdisk
gzip t_ramdisk
mv t_ramdisk.gz $RAMDISK
chmod 777 $RAMDISK
#0: FALINUXS3C2440 (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
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 140K
===================
Message Ending..
이와 같은 증상은 etc나 dev디렉토리의 오류라고 적혀다른곳에서 본것 같네요.
좀더 찾아 보도록 하겠습니다. -- 도움을 주시면 좀더 빨리 해결할수 있을테니 도움도 간절히 기다립니다. ^^
부트옵션에는 램디스크 사이즈를 정해주게 되어 있습니다.
루트 마운트시에 그 크기를 알기 위해서지요.
방법은 ramdisk=16384 -> ramdisk=1024*원하는 사이즈 가 되겠습니다
이지부트에서는 부팅시 스페이스 누르시고 커맨드 라인이 뜨면
set 하시면 부트옵션을 바꾸는 메뉴로 진입하실수 있습니다.
다른 것은 그대로 두고 ramdisk=숫자 만 바꾸시면 됩니다.
<meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"></meta></meta>