기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

아래에 질문을 드렸습니다만...

제목과 같이 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  가 어떤것이 다른걸까요???

 

고수님들의 답변 부탁드리겠습니다

 

수고하십시요

 

 

 


고도리

2009.09.22 08:55:23
*.59.122.199

부트로그 및 ifconfig -a 한 로그가 없으면 답하기 힘든데...

 

mac이 일단 세팅되어야 동작할겁니다.

이학남

2009.09.22 20:40:14
*.117.46.209

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)

root@aESOP-S3C6410:~#

profile

김재훈

2009.09.22 23:19:59
*.162.60.144

맥 어드레스는 다음으로 설정 합니다.

 

ifconfig eth0 hw ether 00:11:22:33:44:55

 

이학남

2009.09.23 00:12:25
*.117.46.209

답변감사합니다...

위의 명령으로 설정을 하고 ifconfig -a로 확인하면 mac 설정은 됩니다

그러나 네트워크가 되질 않습니다

 

profile

김재훈

2009.09.23 09:14:08
*.162.5.126

글쎄요. 단순히 안된다고 하셔서 답변해 드리기가 애매하네요.

참고로 SMSC에서 제가 IP 잡을 때 사용한 명령어는 다음과 같습니다.

 

ifconfig hw ether 00:11:22:33:44:55

ifconfig eth0 192.168.11.250

ifconfig eth0 up

iptables default gw 192.168.11.1

ping 192.168.11.1

List of Articles
번호 제목 글쓴이 날짜sort 조회 수
4068 S3C2442 보드 UART TX 전송시 문제 [2] 한석준 2009-09-21 717
4067 kernel 버전이 변경되면 RFS의 어떤 부분이 함께 변경되어야 하나... [1] 이현배 2009-09-22 585
» NAND Flash 루트 화일시스템 적용후 네트워크 설정 [5] 이학남 2009-09-22 1143
4065 IPCThreadState.cpp 에서 로그 출력 하기? 최종환 2009-09-22 645
4064 웹 브라우저를 통한 네트워크 설정방법을 알려주세요~ 황원재 2009-09-23 614
4063 Mplayer -1.0 rc2 컴파일시 에러 날떄.. [2] 최종환 2009-09-23 656
4062 gettext를 locale이 없는 타겟에서 사용할 때.. [3] 황세진 2009-09-23 608
4061 aesop6410 보드에서 마이크 테스트 하려면 어떻게 해야 하나요? [1] 이희승 2009-09-23 617
4060 [USB OTG] Firmware 레벨에서 End point 설정을 어떻게 해야 ... 이준우 2009-09-24 708
4059 S3C2440 SD Card 자동 마운트 문제 [6] 레고 2009-09-24 1024
4058 디바이스 드라이버 관련하여 궁금한게 있어 질문드립니다. [2] 최강산 2009-09-24 596
4057 SDIO 타입의 Wifi 모듈 사용 [1] 이학남 2009-09-25 1049
4056 사운드 믹싱과 관련된 알고리즘이나 코드들이 있는지요? [2] just4you 2009-09-25 692
4055 기존 툴체인에 glibc나 newlib를 추가할 수 있나요? [2] 이예빈 2009-09-25 710
4054 mp2530 부트로더상에 이미지를 띄우는 거에 대한 질문입니다. [4] 김영일 2009-09-26 661
4053 s3c2443 에서 UDC 사용 질문있습니다. [1] 김종완 2009-09-27 679
4052 안드로이드 배터리 게이지 자동 업데이트 문의 [6] 이제현 2009-09-27 1494
4051 android에서 사용한 browser 궁금합니다. [2] 마린 2009-09-28 532
4050 안드로이드 파일 시스템 관련 [5] 박이삭 2009-09-28 812
4049 kegel home의 cross-toolchain 0.43을 사용하는데.. [7] 푸른하늘 2009-09-29 864

사용자 로그인