기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.
아래에 질문을 드렸습니다만...
제목과 같이 NAND Flash 에 yaffs2 를 적용한후, 네트워크 설정이 않됩니다
확인을 해보니... nfs 로 부팅을 하면 bootargs 에 설정한 mac 주소 적용하고
네트워크를 설정하는데, yaffs2 에서는 읽어 가질 못하고
00으로 설정이 됩니다
(커널버전은 2.6.21.5 을 사용하고 있습니다)
ifconfig 명령도 실행이 않되며
ifconfig eth0 xxx.xxx.xxx.xxx 명령을 하면
ifconfig: SIOCSIFFLAGS: Invalid argument
와 같이 에러가 납니다
ifconfig -a 로 확인해보면 주소는 입력되기는 합니다
nfs 와 yaffs2 가 어떤것이 다른걸까요???
고수님들의 답변 부탁드리겠습니다
수고하십시요
mac을 ifconfig 명령을 셋팅을 해도 되질 않던데요...
부트 로그올립니다...
검토 부탁드리겠습니다...
aESOP-S3C6410 # print
bootdelay=3
baudrate=115200
ethaddr=00:40:5c:26:0a:5b
gateway=192.168.20.1
filesize=1a7304
fileaddr=C0008000
gatewayip=192.168.20.1
netmask=255.255.255.0
bootm=c0008000
bootcmd=nand read c0008000 60000 200000;bootm c0008000
serverip=192.168.20.5
ipaddr=192.168.20.100
bootargs=root=/dev/mtdblock2 rootfstype=yaffs2 console=ttySAC0,115200
stdin=serial
stdout=serial
stderr=serial
NAND read: device 0 offset 0x60000, size 0x200000
Boot with zImage
Starting kernel ...
Uncompressing Linux..................................................................................................................... done, booting the kernel.
Linux version 2.6.21.5-cfs-v19 (root@build) (gcc version 4.2.4) #37 Mon Sep 21 20:27:41 KST 2009
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv6TEJ), cr=00c5387f
Machine: AESOP6410
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C6400: core 666.000 MHz, memory 133.000 MHz, peripheral 66.500 MHz
S3C6400: EPLL 192.000 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CPU0: D VIPT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists. Total pages: 23114
Kernel command line: root=/dev/mtdblock2 rootfstype=yaffs2 console=ttySAC0,115200
Trying to install chained interrupt handler for IRQ0
Trying to install chained interrupt handler for IRQ1
Trying to install chained interrupt handler for IRQ32
Trying to install chained interrupt handler for IRQ33
PID hash table entries: 512 (order: 9, 2048 bytes)
timer tcon=00600000, tcnt 103c3, tcfg 00000400,00000000, usec 00001340
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: 91MB = 91MB total
Memory: 88448KB available (3088K code, 440K data, 268K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
s3c6410: Initialising architecture
S3C DMA-pl080 Controller Driver, (c) 2006-2007 Samsung Electronics
Total 32 DMA channels will be initialized.
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: 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
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Sep 6 2009 17:49:53 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
s3c-uart.0: s3c_serial0 at MMIO 0x7f005000 (irq = 37) is a S3C
s3c-uart.1: s3c_serial1 at MMIO 0x7f005400 (irq = 38) is a S3C
s3c-uart.2: s3c_serial2 at MMIO 0x7f005800 (irq = 39) is a S3C
s3c-uart.3: s3c_serial3 at MMIO 0x7f005c00 (irq = 40) is a S3C
RAMDISK driver initialized: 8 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
eth0: LAN9215 (rev 0) at 0xc600a000 IRQ 67
eth0: Invalid ethernet MAC address. Please set using ifconfig
Linux video capture interface: v2.00
[KERNEL] ITU-R BT 656
set gpio Success!!!!
Request irq 3 for codec
Request irq 4 for preview
S3C FIMC v3.0
AESOP NOR-Flash Driver, (c) 2006 AESOP Embedded
aesop-flash: map_probe() failed
S3C NAND Driver, (c) 2007 Samsung Electronics
S3C NAND Driver is using software ECC.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00200000 : "Kernel"
0x00200000-0x10000000 : "File System"
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 47, io mem 0x74300000
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
Loaded s3c-udc version Sep 6 2009 (Slave Mode)
ether gadget: using random self ethernet address
ether gadget: using random host ethernet address
usb0: Ethernet Gadget, version: May Day 2005
usb0: using s3c-udc, OUT ep1-bulk IN ep2-bulk STATUS ep3-int
usb0: MAC e2:e2:1c:df:3f:d9
usb0: HOST MAC f6:4b:30:76:33:7a
usb0: RNDIS ready
Registered gadget driver 'ether'
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
res->start : 7e005000 res->end : 7e0050ff<6>s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
S3C PWM Driver, (c) 2006-2007 Samsung Electronics
i2c /dev entries driver
s3c2410-i2c s3c2410-i2c: slave address 0x10
pdata c038f5d8, freq 200000 0..200000
clockin 66500
s3c2410-i2c s3c2410-i2c: bus frequency set to 129 KHz
tvp5150.c: starting probe for adapter s3c2410-i2c (0x0)
Parent clock for Camera = 266000000, CAMDIV = 98
tvp5150.c: detecting tvp5150 client on address 0xba
Register Success!!
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
[s3c_hsmmc_probe]: s3c-hsmmc.0: at 0xc6010000 with irq 56. clk src: sclk_DOUTmpll_mmc0
[s3c_hsmmc_probe]: s3c-hsmmc.1: at 0xc6012000 with irq 57. clk src: sclk_DOUTmpll_mmc1
Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14 07:25:50 2007 UTC).
ASoC version 0.13.2
WM9713/WM9714 SoC Audio Codec 0.12
asoc: AC97 HiFi <-> s3c6400-ac97 mapping ok
ALSA device list:
#0: SMDK6400 (WM9713)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
s3c2410-rtc s3c2410-rtc: setting the system clock to 2009-03-16 16:15:00 (1237220100)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
VFS: Mounted root (yaffs2 filesystem).
Freeing init memory: 268K
udevd version 124 started
end_request: I/O error, dev mtdblock2, sector 0
Buffer I/O error on device mtdblock2, logical block 0
end_request: I/O error, dev mtdblock2, sector 8
Buffer I/O error on device mtdblock2, logical block 1
end_request: I/O error, dev mtdblock2, sector 16
Buffer I/O error on device mtdblock2, logical block 2
end_request: I/O error, dev mtdblock2, sector 24
Buffer I/O error on device mtdblock2, logical block 3
end_request: I/O error, dev mtdblock0, sector 0
Buffer I/O error on device mtdblock0, logical block 0
end_request: I/O error, dev mtdblock0, sector 8
Buffer I/O error on device mtdblock0, logical block 1
end_request: I/O error, dev mtdblock0, sector 16
Buffer I/O error on device mtdblock0, logical block 2
end_request: I/O error, dev mtdblock0, sector 24
Buffer I/O error on device mtdblock0, logical block 3
end_request: I/O error, dev mtdblock2, sector 0
Buffer I/O error on device mtdblock2, logical block 0
end_request: I/O error, dev mtdblock1, sector 0
Buffer I/O error on device mtdblock1, logical block 0
end_request: I/O error, dev mtdblock0, sector 0
end_request: I/O error, dev mtdblock1, sector 0
INIT: Entering runlevel: 5
Starting Dropbear SSH server: dropbear.
Starting system message bus: dbus.
Starting syslogd/klogd: done
Starting Connection Manager
connmand: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
Starting GPE display manager: gpe-dm
/usr/bin/gpe-dm: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
_____ _____ _____ _____ _____
| _ | __| __| | _ |
| | __|__ | | | __|
|__|__|_____|_____|_____|__|.or.kr
(C)2009 aESOP Embedded Forum.
aESOP S3C6410 Embedded Linux Platform.
System : aESOP-S3C6410
Console : s3c_serial0
aESOP-S3C6410 login: root
root@aESOP-S3C6410:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:67 Base address:0xa000 DMA chan:ff
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr E2:E2:1C:DF:3F:D9
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
부트로그 및 ifconfig -a 한 로그가 없으면 답하기 힘든데...
mac이 일단 세팅되어야 동작할겁니다.