Phil, I more than owe you a thanks! - especially pointing out the /var/log/messages It saved me almost 2 full day of struggling with nfs mounting on a particluar board. Now if I use a static ip instead of a dhcp, this is working . Well, Until we run out of static ips or so, I think I could live with static ips. However, it would be great if someone could tell the meaing of this error messages, since that would help us play with the connection at will. Thank you again! Cheers, Deepak
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] p.com] On Behalf Of Deepak Shankar-TLS,Chennai. Sent: Friday, September 26, 2008 4:14 PM To: Phil Quiney; Subbrathnam, Swaminathan; [email protected] Subject: RE: Unable to NFS mount in dm355 Phil, I tried this and also looked into the /var/log/messages and it is now clear to me that the Server is only refusing the connection - Here is the log in the server - Sep 26 11:56:49 localhost rpc.mountd: authenticated mount request from 10.100.135.97:800 for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys) Sep 26 12:07:13 localhost rpc.mountd: refused mount request from 10.100.135.173 (hlchctdam67316.hclt.corp.hcl.in) for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys): DNS forward lookup does't match with reverse Sep 26 12:08:31 localhost rpc.mountd: refused mount request from 10.100.135.173 (hlchctdam67316.hclt.corp.hcl.in) for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys): DNS forward lookup does't match with reverse Sep 26 12:10:48 localhost last message repeated 2 times Sep 26 12:13:25 localhost rpc.mountd: refused mount request from 10.100.135.173 (hlchctdam67316.hclt.corp.hcl.in) for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys): DNS forward lookup does't match with reverse Sep 26 12:44:15 localhost rpc.mountd: refused mount request from 10.100.135.173 (hlchctdam67316.hclt.corp.hcl.in) for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys): DNS forward lookup does't match with reverse Sep 26 12:55:19 localhost rpc.mountd: refused mount request from 10.100.135.173 (hlchctdam67316.hclt.corp.hcl.in) for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys): DNS forward lookup does't match with reverse Sep 26 12:57:19 localhost vsftpd: warning: can't get client address: Bad file descriptor Sep 26 15:49:25 localhost rpc.mountd: refused mount request from 10.100.135.173 (hlchctdam67316.hclt.corp.hcl.in) for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys): DNS forward lookup does't match with reverse Sep 26 15:51:08 localhost rpc.mountd: refused mount request from 10.100.135.173 (hlchctdam67316.hclt.corp.hcl.in) for /home/dsv/workdir/filesys (/home/dsv/workdir/filesys): DNS forward lookup does't match with reverse I could not understand what is meant by "DNS forward lookup does't match with reverse" Could you please tell me how I could circumvent this ? Thanks a lot Cheers, Deepak ________________________________ From: Phil Quiney [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 2:44 PM To: Deepak Shankar-TLS,Chennai.; Subbrathnam, Swaminathan; [email protected] Subject: RE: Unable to NFS mount in dm355 Hi, Well the gateway address is garbage for a start ;-) If you want to set things not using dhcp, you need to specify more than just the IP address in the ip= parameter. You should give the full ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoco nf> (You can omit 'hostname' & 'device' - hence you get the ':::' below). That should get rid of the 'guessing netmask'. Example: ip=172.18.1.222:172.18.1.49:172.18.0.254:255.255.0.0:::off On the NFS server, check /var/log/messages. You should get an 'authenticated mount request' - something like Sep 26 09:03:21 silverstone mountd[2650]: authenticated mount request from 172.18.128.92:800 for /tftpboot/remote_fs/davinci_dm355 (/tftpboot/remote_fs) If not then the error should appear instead & hopefully it will indicate the problem. From errno.h (actually /usr/include/asm-generic/errno-base.h), the -13 is 'permission denied'. The fact you are seeing the error means that a firewall is not the problem. Check permissions on the exported file system (the whole 'tree') - this should be owned by root - the only exception are any 'user' files under 'rootfs/home'. AFAIK nfs can reject mount requests, it depends on how /etc/exports is set. The server used above has... /tftpboot/remote_fs *(rw,no_root_squash,no_all_squash,sync) The '*' means any client can connect, you can restrict based on individual IP address, NIS group or subnet. See 'man exports'. Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com <http://www.trinityconvergence.com/> ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Deepak Shankar-TLS,Chennai. Sent: 26 September 2008 08:48 To: Subbrathnam, Swaminathan; [email protected] Subject: RE: Unable to NFS mount in dm355 Swami, I suspected the Server, and checked the exportfs file and it was ok. Just to make sure I NFS mounted the same directory on a different dm355 board and it was succesful. Only in a particular board Im getting the problem. Well, even in this board it was working fine until sometime back when the board's ip was different. All this seem to have happened only after the ip addresses changed Is there a possibility of the server rejecting for a particular board(particular MAC id or so) Please help me on how further I can trouble shoot! Cheers, Deepak ________________________________ From: Subbrathnam, Swaminathan [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 1:07 PM To: Deepak Shankar-TLS,Chennai.; [email protected] Subject: RE: Unable to NFS mount in dm355 Deepak, Pl. ensure that your NFS configuration at the NFS server is correct. DM355 EVM is contacting the NFS server but the server is returning error for the NFS mount. Regards Swami PSP downloads at : http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php <http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php> Office : +91-80-25048629 ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] idsp.com] On Behalf Of Deepak Shankar-TLS,Chennai. Sent: Friday, September 26, 2008 1:05 PM To: [email protected] Subject: Unable to NFS mount in dm355 Im not able to do NFS mount in dm355 evm board. I have tried stopping iptables, exporting exportfs configuration, restarting portmap and nfs. The board was working well until 2 days ago when my host had an ip address of 10.100.135.213. Now due to some changes(!!! donno what exactly) the ip address of the host became 10.100.135.173 after then it was not working. I have changed the nfshost address in the bootargs. Also with the same host Im able to nfsmount the /workdir/filesys on another dm355 eval board! Could someone please help me to resolve the issue in booting? Here is the startup log. Starting kernel .... Uncompressing Linux................................................................... ........................................Linux version 2.6.10_mvl401 ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #1 Wed Jul 23 18:48:44 EDT 2008 CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ) CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets Machine: DaVinci DM355 EVM Memory policy: ECC disabled, Data cache writeback DM0350 Built 1 zonelists Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=10.100.135.173 root=/dev/nfs nfsroot=10.100.135.120:/home/dsv/workdir/filesys,nolock mem=116M PID hash table entries: 512 (order: 9, 8192 bytes) 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: 116MB = 116MB total Memory: 114176KB available (2749K code, 570K data, 180K init) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok spawn_desched_task(00000000) desched cpu_callback 3/00000000 ksoftirqd started up. desched cpu_callback 2/00000000 desched thread 0 started up. NET: Registered protocol family 16 DaVinci: 104 gpio irqs Registering platform device 'serial8250.0'. Parent at platform Registering platform device 'musb_hdrc'. Parent at platform Registering platform device 'nand_davinci.0'. Parent at platform Registering platform device 'dm9000.0'. Parent at platform Registering platform device 'mmc.0'. Parent at platform Registering platform device 'mmc.1'. Parent at platform DaVinci I2C DEBUG: 18:46:01 Jul 23 2008 Registering platform device 'i2c'. Parent at platform ch0 default output "COMPOSITE", mode "NTSC" VPBE Encoder Initialized LogicPD encoder initialized SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0] musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn) musb_hdrc: MHDRC RTL version 1.300 musb_hdrc: USB Host mode controller at c7802000 using DMA, IRQ 12 musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected DaVinci I2C WARNING: i2c: NACK detected Registering platform device 'dm_spi.0'. Parent at platform NetWinder Floating Point Emulator V0.97 (double precision) JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. yaffs Jul 23 2008 18:45:29 Installing. Initializing Cryptographic API Registering platform device 'davincifb.0'. Parent at platform davincifb davincifb.0: dm_osd0_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 1350KB davincifb davincifb.0: dm_vid0_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 675KB davincifb davincifb.0: dm_osd1_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 1350KB davincifb davincifb.0: dm_vid1_fb: [EMAIL PROTECTED],0 <mailto:[EMAIL PROTECTED],0> with framebuffer size 675KB watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled Registering platform device 'serial8250'. Parent at platform ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A io scheduler noop registered io scheduler anticipatory registered RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize loop: loaded (max 8 devices) dm9000 Ethernet Driver eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: 00:0e:99:02:c5:70 i2c /dev entries driver Linux video capture interface: v1.00 Registering platform device 'vpfe.1'. Parent at platform vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded Registering platform device 'DavinciDisplay.1'. Parent at platform Trying to register davinci display video device. layer=c07dac00,layer->video_dev=c07dad64 Trying to register davinci display video device. layer=c07daa00,layer->video_dev=c07dab64 davinci_init:DaVinci V4L2 Display Driver V1.0 loaded ipipe major#: 254, minor# 0 Registering platform device 'dm355_ipipe.2'. Parent at platform ipipe driver registered af major#: 253, minor# 0 Registering platform device 'dm355_af.2'. Parent at platform aew major#: 252, minor# 0 Registering platform device 'dm355_aew.2'. Parent at platform elevator: using anticipatory as default io scheduler nand_davinci nand_davinci.0: Using 4-bit hardware ECC NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit) 2 NAND chips detected nand_bbt: ECC error while reading bad block table nand_bbt: ECC error while reading bad block table Creating 5 MTD partitions on "nand_davinci.0": 0x00000000-0x003c0000 : "bootloader" 0x003c0000-0x00400000 : "params" 0x00400000-0x00800000 : "kernel" 0x00800000-0x20800000 : "filesystem1" 0x20800000-0x80000000 : "filesystem2" nand_davinci nand_davinci.0: hardware revision: 2.3 dm_spi.0: davinci SPI Controller driver at 0xc7866000 (irq = 42) use_dma=0 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.0:USB HID core driver mice: PS/2 mouse device common for all mice mmc mmc.0: Supporting 4-bit mode mmc mmc.0: Using DMA mode mmc mmc.1: Supporting 4-bit mode mmc mmc.1: Using DMA mode Registering platform device 'davinci-audio.0'. Parent at platform NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) Initializing XFRM netlink socket NET: Registered protocol family 1 NET: Registered protocol family 10 IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 eth0: link down IP-Config: Guessing netmask 255.0.0.0 IP-Config: Complete: device=eth0, addr=10.100.135.173, mask=255.0.0.0, gw=255.255.255.255, host=10.100.135.173, domain=, nis-domain=(none), bootserver=255.255.255.255, rootserver=10.100.135.120, rootpath= Looking up port of RPC 100003/2 on 10.100.135.120 Looking up port of RPC 100005/1 on 10.100.135.120 Root-NFS: Server returned error -13 while mounting /home/dsv/workdir/filesys 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) <6>eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1 Cheers, Deepak DISCLAIMER: ------------------------------------------------------------------------ ----------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ------------------------------------------------------------------------ -----------------------------------------------
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
