도와주세요!!
커널은 강좌를 보고 2.6.28.10 을 올렸습니다..
램디스크는 1.11-16M를 사용하였습니다. 1.12-24M는 부팅이 되질않아서...
제일 아래쪽에 부팅 로그르 올려놓았습니다. 램디스크로 부팅은 잘되는데 yaffs2모드로 사용하기위해 ./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]
이런 메세지가 뜨길래 df를 쳐보니
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ram 15863 13470 1574 90% /
파일 시스템에 ram뿐이었습니다. 원래 mtd는 보이질 않는건가요? 마운트 하려고해도 no such device라고만 떠서 현재 진행이 되질 않고있습니다.
지금부터 flash로 루트 파일 시스템을 옮겨서 작업을 하고싶습니다.
부팅로그
0123B
WELCOME EZBOOT V2.3.04 (FALINUX Co.,Ltd) ......S3C2440(EZ-S3C2440) (400MHz)
Program by You Young-chang, Oh Jae-Kyong, Jang Hyung-Gi
Last Modify Apr 30 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 .....
Copy Ramdisk Image .....
Starting kernel [MARCH 362]...
kernel command [EZBOOT mem=64M initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384 console=ttySAC2,115200 video]
Uncompressing Linux...........................................................................................
Linux version 2.6.28.10 (root@kosmos) (gcc version 4.3.2 (GCC) ) #11 Thu Aug 5 21:26:55 KST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
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
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: EZBOOT mem=64M initrd=0x30800000,5M root=/dev/ram0 ramdisk=16384 console=ttySAC2,115200
irq: clearing pending status 00000400
irq: clearing subpending status 00000080
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000009, tcnt d8d2, tcfg 000002ff,00003333, usec 0000170f
Console: colour dummy device 80x30
console [ttySAC2] enabled
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: 55800KB available (3452K code, 330K data, 148K init)
Calibrating delay loop... 199.47 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 484 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
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
NET: Registered protocol family 1
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 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
JFS: nTxBlock = 476, nTxLock = 3811
msgmni has been set to 119
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.31
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
Driver 'sd' needs updating - please use bus_type methods
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
Creating 8 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00004000 : "Boot Agent"
mtd: Giving out device 0 to Boot Agent
0x00000000-0x00200000 : "S3C2410 flash partition 1"
mtd: Giving out device 1 to S3C2410 flash partition 1
0x00400000-0x00800000 : "S3C2410 flash partition 2"
mtd: Giving out device 2 to S3C2410 flash partition 2
0x00800000-0x00a00000 : "S3C2410 flash partition 3"
mtd: Giving out device 3 to S3C2410 flash partition 3
0x00a00000-0x00e00000 : "S3C2410 flash partition 4"
mtd: Giving out device 4 to S3C2410 flash partition 4
0x00e00000-0x01800000 : "S3C2410 flash partition 5"
mtd: Giving out device 5 to S3C2410 flash partition 5
0x01800000-0x03000000 : "S3C2410 flash partition 6"
mtd: Giving out device 6 to S3C2410 flash partition 6
0x03000000-0x04000000 : "S3C2410 flash partition 7"
mtd: Giving out device 7 to S3C2410 flash partition 7
usbmon: debugfs is not available
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
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
usbcore: registered new interface driver libusual
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
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
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing init memory: 148K
INIT: version 2.86 booting
INIT: Entering runlevel: 3
SIOCSIFADDR: No such device
SIOCSIFNETMASK: No such device
SIOCGIFFLAGS: No such device
route: SIOC[ADD|DEL]RT: No such device
Starting system logger: [ OK ]
Starting INET services: [ OK ]
Welcome to FALinux (www.falinux.com)
Linux Kernel 2.6.28.10
falinux login:
부트로더에서 플래시 부트로 바꿔서 했을경우 커널패닉이 일어납니다..
아래는 부팅로그입니다.
Copy Kernel Image .....
Starting kernel [MARCH 3007]...
kernel command [EZBOOT mem=64M noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 console=ttySAC2,115200 ]
Uncompressing Linux...................................................................................
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,11
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.145: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 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: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.
첫번째 부팅시에 난드 파티션을 잘못잡혔었네요...
첫번째 로그의 mtd 드라이버와 두번재 로그의 mtd 드라이버가 다른것이 올라가면서
데이타가 깨진것 같습니다.
두번째 커널의 로그에는 정상으로 보입니다.
두번째 커널을 이용해서 램디스크 부팅을 하시고 mkflashroot 를 다시 실행하셔서
낸드에 정상적인 루트파일시스템을 구축하신후
yaffs2 로 다시 한번 부팅을 시도해 보세요...
<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
현재 부팅 모드가 ramdisk 를 이용해서 부팅하고 있네요
부팅 커맨드를 바꾸셔서 루트파일 시스템을 yaffs2 가 되도록 해주시면 됩니다.