기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.
안녕하세요.
CLabsys 社의 LN2440SBC(s3c2440)에 리눅스 포팅을 하고 있습니다.
u-boot : 1.3.4
kernel : 2.6.38
toolchain : Sourcery G++ Lite 2010q1-188
usb gadget을 이용하여 nfs로 루트 파일 시스템을 사용하고 있습니다.
그런데 로그인 메시지가 뜨지가 않네요. 도무지 왜 그런지 감을 잡을 수가 없네요.
커널이 잘 못 된건지 아니면 루트 파일 시스템이 문제인지...
u-boot의 설정은 다음과 같습니다.
-------------------------------------------------------------------------------------------------
SMDK2440 # printenv
bootdelay=3
baudrate=115200
ethaddr=00:40:5c:26:0a:5b
netmask=255.255.255.0
serverip=192.168.1.1
ipaddr=192.168.1.2
gatewayip=192.168.1.1
bootcmd=dnw 32000000;bootm 32000000
bootargs=root=/dev/nfs rw nfsroot=192.168.1.1:/home/john/work/tftpboot/rootfs/rootfs_nfs ip=192.168.1.2:192.168.1.1:192.168.1.1:255.255.255.0::usb0:off console=ttySAC0,115200n81 mem=64M
stdin=serial
stdout=serial
stderr=serial
-----------------------------------------------------------------------------------------------------
커널 메시지는 아래와 같습니다.
-----------------------------------------------------------------------------------------------
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.38-rc4 (john@john-vm) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-188) ) #40 Fri Oct 26 16:57:04 KST 2012
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)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 135.000 MHz, peripheral 67.500 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/nfs rw nfsroot=192.168.1.1:/home/john/work/tftpboot/rootfs/rootfs_nfs ip=192.168.1.2:192.168.1.1:192.168.1.1:255.255.255.0::usb0:off console=ttySAC0,115200n81 mem=64M
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 60892k/60892k available, 4644k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc4800000 - 0xf6000000 ( 792 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc002a000 ( 136 kB)
.text : 0xc002a000 - 0xc03a0000 (3544 kB)
.data : 0xc03a0000 - 0xc03c1940 ( 135 kB)
NR_IRQS:85
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
gpiochip_add: gpios 288..303 (GPIOK) failed to register
gpiochip_add: gpios 320..334 (GPIOL) failed to register
gpiochip_add: gpios 352..353 (GPIOM) failed to register
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 65 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) ⓒ 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 118
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
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
brd: module loaded
loop: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=3, 22ns Twrph0=7 51ns, Twrph1=3 22ns
s3c24xx-nand s3c2440-nand: NAND hardware ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 4 MTD partitions on "NAND":
0x000000000000-0x000000080000 : "Bootloader"
0x000000080000-0x000000400000 : "Kernel"
0x000000400000-0x000003400000 : "Rootfs"
0x000003400000-0x000004000000 : "File System"
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
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new interface driver libusual
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 2e:f5:68:f5:67:59
usb0: HOST MAC 0e:70:82:ff:d8:95
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
mousedev: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
Registering the dns_resolver key type
s3c-rtc s3c2410-rtc: setting system clock to 2000-01-01 00:34:00 UTC (946686840)
g_ether gadget: full speed config #1: CDC Ethernet (ECM)
IP-Config: Complete:
device=usb0, addr=192.168.1.2, mask=255.255.255.0, gw=192.168.1.1,
host=192.168.1.2, domain=, nis-domain=(none),
bootserver=192.168.1.1, rootserver=192.168.1.1, rootpath=
VFS: Mounted root (nfs filesystem) on device 0:12.
Freeing init memory: 136K <----------- 여기서 멈춰서 넘어가지가 않네요.
-----------------------------------------------------------------------------------------------
비슷한 문제를 경험하신 분이나 아시는 분 계시면 조언 부탁드립니다.
그리고 s3c2440이나 s3c2443에서 사용할 수있는 루트 파일 시스템은 어디서 구할 수 있나요?
감사합니다.
root filesystem 구성이 틀려서일 가능성이 높습니다.
udev관련인 경우가 있는데, 되도록이면 최신 rootfs를 사용하시는게 좋습니다.
저도 arm9용으로는 근래 만들지 않아서 관련 자료가 없는데.....쩝