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

안녕하십니까? 또 질문을 올리게 되네요...ㅜ.ㅜ;;

nfs로 마운트하고자 하는데 마운트가 안 되는 것 같습니다.

저는 u-boot나 커널이나 루트파일시스템으로 사용할 내용들에는 수정을 하진 않았습니다.

다만 약간 설정을 변경하였습니다.

제 리눅스컴 아이피 : 192.168.20.100->no firewall
게이트웨이(공유기) : 192.168.20.1
타겟보드(이솝보드3차) : 192.168.20.105
nfs로 마운트 할 디렉토리:/root/nfsroot/small_2613

혹시 게이트웨이도 설정이 필요한건가요?
나머지 부분은 다 그대로 했는데 마운트가 안 되네요...ㅜ.ㅜ;(패널에는 여우모양만이...^^;;)

#### vi /etc/exports 파일 편집내용 ####
/root/nfsroot/small_2613        192.168.20.105(rw,no_root_squash,no_all_squash)
*중간 띄어쓰기는 당연 탭으로....


###### u-boot 환경설정은 다음과 같습니다.######
bootcmd=tftp 32000000 aesopk;bootm 32000000
baudrate=115200
ethaddr=08:00:3e:26:0a:5b
netmask=255.255.255.0
bootdelay=3
ipaddr=192.168.20.105
serverip=192.168.20.100
gatewayip=192.168.20.1
bootargs=root=/dev/nfs rw nfsroot=192.168.20.100:/root/nfsroot/small_2613 ip=192.168.20.105:192.168.20.100:192.168.20.1:255.255.255.0::eth0:off console=ttySAC0,115200n81 ethaddr=08:00:3e:26:0a:5b
stdin=serial
stdout=serial
stderr=serial

aesop3rd # boot



############부팅 명령을 수행시#########

SMC91111:smc_open
SMC91111:smc_phy_configure()
phy cfg reg1: 0x0022
SMC91111:phy caps=0x7809
SMC91111:phy advertised caps=0x01e1
SMC91111:PHY auto-negotiate complete
SMC91111:PHY_STAT_REG : 0x7839
SMC91111:PHY remote fault detected
SMC91111:PHY remote fault detected
SMC91111:RPC_DEFAULT : 0x3810
[ MAC : 08 00 3e 26 0a 5b ]
Using MAC Address 08:00:3E:26:0A:5B
TFTP from server 192.168.20.100; our IP address is 192.168.20.105
Filename 'aesopk'.
Load address: 0x32000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################
done
Bytes transferred = 1414638 (1595ee hex)
## Booting image at 32000000 ...




#####tftp로 커널 다운로딩 후 부팅시작#######
   Image Name:   Linux-2.6.13-h1940-aesop2440
   Created:      2006-12-02   6:58:30 UTC
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    1414574 Bytes =  1.3 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.13-h1940-aesop2440 ([email protected]) (gcc version 3.3.4) #20 Sat Dec 2 15:57:14 KST 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: aESOP-2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C2440: core 399.651 MHz, memory 133.217 MHz, peripheral 66.608 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
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
Kernel command line: root=/dev/nfs rw nfsroot=192.168.20.100:/root/nfsroot/small_2613 ip=192.168.20.105:192.168.20.100:192.168.20.1:255.255.255.0::eth0:off console=ttySAC0,115200n81 ethaddr=08:00:3e:26:0a:5b
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00500000, tcnt d8d2, tcfg 00000200,00000000, usec 0000170f
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: 64MB = 64MB total
Memory: 61696KB available (2344K code, 592K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
PM initialize
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, UPLL 47.980 MHz
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
S3C2410 DMA Driver, (c) 2003-2004 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
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Dec  2 2006 15:51:27 Installing.
Initializing Cryptographic API
s3c2410 Backlight Driver Initialized.
Console: switching to colour frame buffer device 96x34
S3C24X0 fb0: s3c2410fb frame buffer device initialize done
GPIO L3 bus interface for S3C2440, installed
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 8 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
cs89x0:cs89x0_probe(0x0)
PP_addr=0x3810
eth0: incorrect signature 0x0
cs89x0: no cs8900 or cs8920 detected.  Be sure to disable PnP with SETUP
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
AESOP NOR-Flash Driver, (c) 2006 AESOP Embedded
aesop-nor: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4b00000
s3c2410-nand: timing: Tacls 13ns, Twrph0 66ns, Twrph1 39ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 1 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x04000000 : "Total nand"
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 42, io mem 0x49000000
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.13-h1940-aesop2440 ohci_hcd
usb usb1: SerialNumber: s3c24xx
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
s3c2410_udc: version 28 Aug 2005
mice: PS/2 mouse device common for all mice
s3c2410-buttons successfully loaded
s3c2410 TouchScreen successfully loaded
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
mmci-s3c2410: probe: mapped sdi_base=c5100000 irq=37 irq_cd=62 dma=0.
mmci-s3c2410: initialisation done.
godori: AESOP2440 SOUND driver register
godori: AESOP2440 SOUND driver.........probe
s3c2410_dma_config: chan=2, xfer_unit=2, dcon=80000000
s3c2410_dma_config: chan=1, xfer_unit=2, dcon=82000000
AESOP2440 UDA1341 audio driver initialized
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
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
IP-Config: Device `eth0' not found.
MMC: sd_app_op_cond timed out. Probably no SD-Card here.
Looking up port of RPC 100003/2 on 192.168.20.100
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.20.100
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get mountd port number from server, using default
RPC: sendmsg returned error 101
Root-NFS: Server returned error -101 while mounting /root/nfsroot/small_2613
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

김경복

2006.12.21 08:12:39
*.78.113.133

부팅 메세지 어떻게 캡처 받았나요?
저는 보드쪽에 나온던데...
시리얼 연결은 minicom을 사용합니다.

유형목

2006.12.21 08:16:37
*.131.98.52

아래글의 댓글을 확인해보세요.

김경복

2006.12.21 08:47:50
*.78.113.133

부팅 메세지는 나오게 하는 것은
console=ttySAC0,115200n81 를 넣어 해결하였습니다.

김경복

2006.12.21 08:52:26
*.78.113.133

보드가 정상 작동됩니다.
저 같은 경우는
호스쪽에서 보드가 마운트할 수 있도록 수정했습니다.

/etc/host파일에
<보드의 IP주소> aESOP-2440
를 넣어 주었음.

보드의 이름을 몰라 넣지 못한것데 위의 메세지에
Machine: aESOP-2440
라고 나와 있더군요.

김경복

2006.12.21 09:08:17
*.78.113.133

/etc/hosts

유용출

2006.12.21 12:20:31
*.100.73.237

VFS: Mounted root (nfs filesystem).
Freeing init memory: 112K
INIT: version 2.86 booting
Initializing udev dynamic device directory.
mount: Mounting /dev/root on / failed: No such file or directory
INIT: Entering runlevel: 3
[: 0: unknown operand

Linux 2.6.13-h1940-aesop2440.

/) /)
(='.'=)

login[319]: root login on `tts/0'

-sh: can't access tty; job control turned off
root@godori:~#

답변 주신 분들 너무나 감사드리고요...

여기 까지 와서 NFS 마운트는 성공했습니다.

nfs mount위치는 그냥 제 위치(/root/nfsroot/small_2613)으로 진행했구요....
커널을 다시 포팅해야 되는게 문제였습니다.
테스트 프로그램들 돌려보니 다 되는군요... SDL쪽은 아예 몰라서 해보진 않았구요...ㅎㅎㅎ
어쨌든 제대로 되니 기쁩니다. 이제부터 이리저리 이것저것 해봐야겠네요...

이제 새벽 4시가 다 되어가니... 오늘 하루 좋은 하루 되세요~~~!!!!

고현철

2006.12.21 20:31:54
*.117.46.252

잘 살았다니 다행이네요....^^

Sung-Geun Lee

2006.12.21 23:15:53
*.51.75.144

저도 같은 증상이 나오는데요....
전 host 환경이 vmware에 fedora6을 설치해서 사용하고 있습니다.
bootargs root=/dev/nfs 라고 설정을 하는데
host에서 /dev/nfs를 찾아보면 없는데..
이 파일이 없어서 그런건 아닌지???
혹시 fedora6에서 성공하신분은 없으신가요?

권성현

2006.12.22 02:48:18
*.127.69.248

RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.20.100
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get mountd port number from server, using default
RPC: sendmsg returned error 101
Root-NFS: Server returned error -101 while mounting /root/nfsroot/small_2613
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

대부분 이런 메세지가 나오는 겄은
255.255.255.0::eth0:off ---->요부분에서 <netmask>:<host>:eth0:off <host>이부분이 빠져서 그런것 같더군요.
그래서 "" $ hostname"" 이란 명령어로 자신의 리눅스 컴 이름을 알아내서 <host>이분분에 넣어주면 됩니다.


대부분 리눅스배포본 종류에 상관없이 NFS,tftp설정은 같습니다.
중요한것은 고현철님께서 소스 컴파일시 커널과 u-boot이미지 생성 장소를 /korea-dokdo/.....여기 아래로 설정을 하셔서 그렇지 Makefile에서 저부분을 자신이 원하는 작업장소로 변경하면 대부분 리눅스에서는 문제 없이 동작하실겁니다.


유용출

2006.12.22 10:27:37
*.100.73.237

이승근님... bootargs는 보드에 포팅된 커널로 넘겨주는 파라미터들입니다.

즉 root=/dev/nfs 라는 의미는 호스트의 nfs라는 디바이스를 찾는 것이 아니라...

보드의 nfs라는 디바이스를 찾는 걸겁니다.
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
288 [질문] 아래분과 비슷한 NFS 문제인데.. 전 에러 메시지가 다르게... [7] Sung-Geun Lee 2006-12-22 1598
287 [질문] vmware사용하지 않고 리눅스 깔아서 하는 방법? <==완료 [2] 조영택 2006-12-21 666
286 [질문] 커널 업그레이드관련 kernel.iso 파일 <== 완료 [3] 이세학 2006-12-21 741
» 저도 아랫 분과 똑같습니다. NFS로 부팅하려 합니다. << ... [10] 유용출 2006-12-21 1460
284 "NFS부팅시 정지되는 문제" 조언 부탁 드립니다. <=완료 [2] 김경복 2006-12-21 1082
283 vmware에서 vmware tools install시 에러[완료] [2] 이태간 2006-12-21 814
282 3차보드 설정관련 질문드립니다. <==완료 [4] 윤기현 2006-12-21 1147
281 Touch와 SIGIO관련 재질문입니다. [2] 김증일 2006-12-21 597
280 [질문] 제가 SD MEMORY를 사려하는데요.<= 완료 [2] 조영택 2006-12-20 676
279 [질문] UART 포트를 확장하려고 합니다 [2] 양용현 2006-12-20 860
278 Touch event와 SIGIO [4] 김증일 2006-12-20 875
277 asm화일에 헤더파일을 넣을수 없나요? [완료] [2] 서연석 2006-12-20 867
276 [SMC91C113] 네트웍 수신성능이 잘 안 나옵니다. 디버깅 팁이나 ... [4] 김유석 2006-12-19 1035
275 VMware에 slackware 설치과정....? <<완료>> [3] 유용출 2006-12-19 932
274 [UDA1341] 사운드 재생 관련 질문입니다.[완료] [2] 김유석 2006-12-19 722
273 chmod관련 질문.. [완료] [2] 박기호 2006-12-19 874
272 MPEG4 자료를 찾고 있습니다. ==> [완료] [3] 이영재 2006-12-19 697
271 UTP Cable은 다이렉트인가요 크로스인가요? <완료!> [2] 김재우 2006-12-18 801
270 [re] use-serial 컨버터 질문[완료] [1] 이태간 2006-12-18 654
269 aesop 3차 보드가 동작을 안합니다...ㅠ <=== [완료] [4] 전병우 2006-12-18 1062

사용자 로그인