안녕하세요. s3c2440 보드로 공부중인 학생입니다.

 

현재 ramdisk 모드로 되어있는 것을 yaffs모드로 변경하려 하는데요.

 

강좌&팁에 있는 강좌물을 보면서 몇번을 수행해봤는데 계속해서 커널 패닉이 발생하더군요.

 

ramdisk 모드로 부팅하고, mount로 mtdblock2를 마운팅해보면 마운트는 되더라고요..

 

ramdisk모드로 부팅한후 ./mkflashroot 유틸리티를 실행한후 재부팅, 그후에 부트로더에 들어가서 yaffs 모드로 부팅모드를 변경한후

 

다시 부팅을 실시한 로그메세지를 밑에 첨부합니다.

 

고수님들 도와주세요..ㅠㅠ

-------------------------------------------------------------------------부팅 로그 메세지------------------------------------------------------------------------
Starting kernel [MARCH 3007]...
kernel command [EZBOOT mem=64M initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384 console=ttySAC2,115200 video=ezfb:panel:2   ip0=192.168.10.183 mac=00:FA:09:02:16:12 netma]
Uncompressing Linux.......................................................................................................................... done, booting the kernel.
Linux version 2.6.21-falinux (root@hw27) (gcc version 3.4.3) #5 Wed Mar 4 17:29:35 KST 2009
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/ram0 ramdisk=16384 console=ttySAC2,115200 video=ezfb:panel:2   ip0=192.168.10.183 mac=00:FA:09:02:16:12 
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 (3360K code, 391K data, 140K 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.412:1): initialized
yaffs Mar  4 2009 12:38:54 Installing.
io scheduler noop registered (default)
s3c2410-lcd s3c2410-lcd: options are "panel:2"
Console: switching to colour frame buffer device 80x30
fb0: s3c2410fb frame buffer device ( 640x480x16 )
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 09 02 16 12
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:0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
count of bad blocks = 0
Creating 3 MTD partitions on "NAND 64MiB 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
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 140K
INIT: version 2.86 booting
INIT: Entering runlevel: 3
Starting system logger: [  OK  ]
Starting INET services: [  OK  ]


Welcome to FALinux (www.falinux.com)
Linux Kernel 2.6.21-falinux
falinux login: root
[root@falinux ~]$ ls
mkflashroot  nfsmnt
[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
copy /root
copy /sbin
copy /tmp
copy /usr
copy /var
mkdir ...done
restore app
 
please reboot system and enter EZBOOT->set
   Select >> LF
: will be changed [noinitrd root=/dev/mtdblock2]
 
[root@falinux ~]$ reboot           
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
Stopping INET services: [  OK  ]
Shutting down system logger: pidof: invalid option -- c
BusyBox v1.2.1 (2008.10.27-02:26+0000) multi-call binary

Usage: pidof process-name [OPTION] [process-name ...]

pidof: invalid option -- c
BusyBox v1.2.1 (2008.10.27-02:26+0000) multi-call binary

Usage: pidof process-name [OPTION] [process-name ...]

[FAILED]
Starting killall [  OK  ]
Sending all processes the TERM signal... Exiting Syslogd!

Give root password for system maintenance
(or type Control-D for normal startup):[  OK  ]
Sending all processes the KILL signal..
Give root password for system maintenance
(or type Control-D for normal startup):[  OK  ]
Unmounting file systems [  OK  ]
mount: Cannot read /proc/mounts: No such file or directory
mount: No /proc/mounts
Please stand by while rebooting the system...
Restarting system.
0123B

WELCOME EZBOOT V2.3.03 (FALINUX Co.,Ltd) ......S3C2440(EZ-S3C2440) (400MHz)
Program by You Young-chang, Oh Jae-Kyong, Jang Hyung-Gi
Last Modify Feb 16 2009

  Detect Samsung NAND 64M 3.3V 8-bit Flash : vid=EC pid=76
  SIZE 64-Mbytes (page=512, block=16K)

 ... not supported part_nr=2
  clear lcd .....

Quickly Autoboot [ENTER] / Goto BOOT-MENU press [space bar].

  AX88796B MAC  : [ 00 FA 09 02 16 12 ]
  AX88796B_Init : OK!

EZBOOT>help

  Memory dump        : MD,  MWB, MWW, MWL, ND
  Download by ZModem : ZFB, ZFK, ZFR, ZMK, ZMR, ZF, ZM
  Download by TFTP   : TFB, TFK, TFR, TMK, TMR, TF, TM
  Copy               : MFK, MFR, FMK, FMR
  Erase Partition    : EFK, EFR, EFA, EFC, EFL
  Network            : ARP, PING
  System             : RST, GK, GO
  Repeat Command     : R
  Confiruation       : SET

  More Help          : HELP [cmd]

EZBOOT>set
^^;
   1) mac address            : 00:FA:09:02:16:12
   2) local ip               : 192.168.10.183
   3) local netmask          : 255.255.255.0
   4) local gateway          : 192.168.10.1
   5) server ip              : 192.168.10.27
   6) zImage      file name  : zImage.ez-s3c2440
   7) ram disk    file name  : ramdisk-1.11-16M.gz
   8) boot loader file name  : ezboot.ez-s3c2440
   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 : 3007
  14) nand part (B,C,L,K,R,A): 1,1,0,3,5,54
  15) watchdog  (sec, off=0) : 0
  16) KCMD 1 : mem=64M
  17) KCMD 2 : initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384
  18) KCMD 3 : console=ttySAC2,115200
  19) KCMD 4 : video=ezfb:panel:2
  20) KCMD 5 :
  21) KCMD 6 :

  L)  Load default
      LF) load KCMD2 root=flash
      LR) load KCMD2 root=ramdisk
  M)  generlate Mac address
  S)  Save to flash
  P)  aPply & exit
  Q)  Quit

  Select >> lf
  ...Loaded default
^^;
   1) mac address            : 00:FA:09:02:16:12
   2) local ip               : 192.168.10.183
   3) local netmask          : 255.255.255.0
   4) local gateway          : 192.168.10.1
   5) server ip              : 192.168.10.27
   6) zImage      file name  : zImage.ez-s3c2440
   7) ram disk    file name  : ramdisk-1.11-16M.gz
   8) boot loader file name  : ezboot.ez-s3c2440
   9) logo image  file name  :
  10) auto execute full name :
  11) autoboot wait time     : 3
  12) copy ramdisk [Y/N]     : N
  13) arm kernel arch number : 3007
  14) nand part (B,C,L,K,R,A): 1,1,0,3,5,54
  15) watchdog  (sec, off=0) : 0
  16) KCMD 1 : mem=64M
  17) KCMD 2 : noinitrd root=/dev/mtdblock2 rootfstype=yaffs2
  18) KCMD 3 : console=ttySAC2,115200
  19) KCMD 4 : video=ezfb:panel:2
  20) KCMD 5 :
  21) KCMD 6 :

  L)  Load default
      LF) load KCMD2 root=flash
      LR) load KCMD2 root=ramdisk
  M)  generlate Mac address
  S)  Save to flash
  P)  aPply & exit
  Q)  Quit

 ...write 32768  complete
 ...verify complete



  ...Saved^^;
   1) mac address            : 00:FA:09:02:16:12
   2) local ip               : 192.168.10.183
   3) local netmask          : 255.255.255.0
   4) local gateway          : 192.168.10.1
   5) server ip              : 192.168.10.27
   6) zImage      file name  : zImage.ez-s3c2440
   7) ram disk    file name  : ramdisk-1.11-16M.gz
   8) boot loader file name  : ezboot.ez-s3c2440
   9) logo image  file name  :
  10) auto execute full name :
  11) autoboot wait time     : 3
  12) copy ramdisk [Y/N]     : N
  13) arm kernel arch number : 3007
  14) nand part (B,C,L,K,R,A): 1,1,0,3,5,54
  15) watchdog  (sec, off=0) : 0
  16) KCMD 1 : mem=64M
  17) KCMD 2 : noinitrd root=/dev/mtdblock2 rootfstype=yaffs2
  18) KCMD 3 : console=ttySAC2,115200
  19) KCMD 4 : video=ezfb:panel:2
  20) KCMD 5 :
  21) KCMD 6 :

  L)  Load default
      LF) load KCMD2 root=flash
      LR) load KCMD2 root=ramdisk
  M)  generlate Mac address
  S)  Save to flash
  P)  aPply & exit
  Q)  Quit

  Select >> Q

EZBOOT>reborst 
System Soft Reset.......
EZBOOT>0123B

WELCOME EZBOOT V2.3.03 (FALINUX Co.,Ltd) ......S3C2440(EZ-S3C2440) (400MHz)
Program by You Young-chang, Oh Jae-Kyong, Jang Hyung-Gi
Last Modify Feb 16 2009

  Detect Samsung NAND 64M 3.3V 8-bit Flash : vid=EC pid=76
  SIZE 64-Mbytes (page=512, block=16K)

 ... not supported part_nr=2
  clear lcd .....

Quickly Autoboot [ENTER] / Goto BOOT-MENU press [space bar]...

Copy Kernel Image .....
Starting kernel [MARCH 3007]...
kernel command [EZBOOT mem=64M noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttySAC2,115200 video=ezfb:panel:2   ip0=192.168.10.183 mac=00:FA:09:02:16:12 netmask=]
Uncompressing Linux.......................................................................................................................... done, booting the kernel.
Linux version 2.6.21-falinux (root@hw27) (gcc version 3.4.3) #5 Wed Mar 4 17:29:35 KST 2009
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 noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttySAC2,115200 video=ezfb:panel:2   ip0=192.168.10.183 mac=00:FA:09:02:16:12 net
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: 60976KB available (3360K code, 391K data, 140K 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
NetWinder Floating Point Emulator V0.97 (double precision)
audit: initializing netlink socket (disabled)
audit(0.146:1): initialized
yaffs Mar  4 2009 12:38:54 Installing.
io scheduler noop registered (default)
s3c2410-lcd s3c2410-lcd: options are "panel:2"
Console: switching to colour frame buffer device 80x30
fb0: s3c2410fb frame buffer device ( 640x480x16 )
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 09 02 16 12
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:0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
count of bad blocks = 0                                                                         
Creating 3 MTD partitions on "NAND 64MiB 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
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs1
VFS: Mounted root (yaffs2 filesystem) readonly.
Freeing init memory: 140K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------