linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* NFS probelm in MPC8245
@ 2004-06-17  8:58 m madhuker
  2004-06-17  9:33 ` jmartin
  2004-06-17  9:37 ` Marc Leeman
  0 siblings, 2 replies; 6+ messages in thread
From: m madhuker @ 2004-06-17  8:58 UTC (permalink / raw)
  To: linuxppc-embedded


Hello all,
         Iam working with MPC8245 in Linux.but im new
to this. Kernel was booted into board and we able to
do ping,telnet,ftp to board. but, i could not able to
mount NFS in board.Rfs also not mounting. i had tried
as per the "Getting started timesys linux on Ampro
Encore PP1" doc. and i search in google also, but
progress...
please can anybody help me....
                                          Regards
                                          Madhukar
                                          Kosmic Tech.
                                          Chennai, India.



Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NFS probelm in MPC8245
  2004-06-17  8:58 m madhuker
@ 2004-06-17  9:33 ` jmartin
  2004-06-17 10:25   ` bharat
  2004-06-17  9:37 ` Marc Leeman
  1 sibling, 1 reply; 6+ messages in thread
From: jmartin @ 2004-06-17  9:33 UTC (permalink / raw)
  To: m madhuker, linuxppc-embedded


----- Original Message -----
From: "m madhuker" <mythri_madhuker@yahoo.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Sent: Thursday, June 17, 2004 10:58 AM
Subject: NFS probelm in MPC8245


>
> Hello all,
>          Iam working with MPC8245 in Linux.but im new
> to this. Kernel was booted into board and we able to
> do ping,telnet,ftp to board. but, i could not able to
> mount NFS in board.
you need nfs daemon running.

add nfs daemon to sbin if you don't yet.
then execute /etc/init.d/nfs start or /etc/init.d/nfs restart

nfs should appear now when ps axvf is executed.

execute mount -t nfs [ip]:/resource localdir

be sure [ip_remote_machine_which_do_mount]:/resource exists on file
/etc/exports on remote machine.

i.e, if machine which is mounting resource have ip x.y.z.t
you will have an entry on /etc/export like this

/resource    x.y.z.t(rw,no_root_squash)

if you haven't got it, write it and then execute /etc/init.d/nfs restart on
machine which export resource


>Rfs also not mounting. i had tried
> as per the "Getting started timesys linux on Ampro
> Encore PP1" doc. and i search in google also, but
> progress...
> please can anybody help me....
>                                           Regards
>                                           Madhukar
>                                           Kosmic Tech.
>                                           Chennai, India.
>
>
>
> Yahoo! Mail - Helps protect you from nasty viruses.
> http://promotions.yahoo.com/new_mail
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NFS probelm in MPC8245
  2004-06-17  8:58 m madhuker
  2004-06-17  9:33 ` jmartin
@ 2004-06-17  9:37 ` Marc Leeman
  1 sibling, 0 replies; 6+ messages in thread
From: Marc Leeman @ 2004-06-17  9:37 UTC (permalink / raw)
  To: m madhuker; +Cc: linuxppc-embedded


>          Iam working with MPC8245 in Linux.but im new
> to this. Kernel was booted into board and we able to
> do ping,telnet,ftp to board. but, i could not able to
> mount NFS in board.Rfs also not mounting. i had tried
> as per the "Getting started timesys linux on Ampro
> Encore PP1" doc. and i search in google also, but
> progress...
> please can anybody help me....

So you are booting and running a CramFS, but cannot replace it with a
NFS System?

Have you configured the kernel to activate BOOTP?
CONFIG_IP_PNP_BOOTP=y
CONFIG_NFS_FS=y
CONFIG_ROOT_NFS=y

I just wrote the following, hope its of some use.

   Barco home TWiki > Firmware > FirmwareDocumentation > NFSSystem TWiki
   webs:
   Firmware | Software | Servers
   Firmware . { Changes | Index | Search | Go ________________ }

   Loading a cramfs is time consuming and during a
   testing/debuggin/development cycle, this is done quite often.
   Therefore a NFS filesystem is more useful. The boards are configured
   to use BOOTP for booting. In the following, the basic modifications
   are described to configure a GNU/Linux server to serve as a bootp
   server.

   First of all, a number of services need to be installed on the
   machine:
     * a NFS server
     * a DHCP server

   On a GNU/Debian system, the following packages need to be installed:
[mleeman@gemini mleeman]$ dpkg -l |grep nfs
ii  nfs-common     1.0-2woody1    NFS support files common to client and serve
ii  nfs-kernel-ser 1.0-2woody1    Kernel NFS server support
[mleeman@gemini mleeman]$ dpkg -l |grep dhcp
ii  dhcp           2.0pl5-19      DHCP server for automatic IP address assignme
nt

   Other systems have similarly named packages.

   The main configuration for this is done in a number of files:
     * /etc/exports contains the files of your files on the server which
       are exported over NetworkFileSystem (NFS). In this case, this will
       be the root filesystem for our embedded board.
     * /etc/dhcpd.conf contains the configuration of the DHCP server. You
       have to make certain that you are the only DHCP server in your
       netrange. If you do not, a lot of unpleasantness can occuur since
       your server will reply with DHCPNAK on request going for the
       official DHCP server.

   Extract a root filesystem tarball (or something similar) to your
   homedir (or a predetermined location).
[mleeman@gemini mleeman]$ mkdir targets
[mleeman@gemini mleeman]$ tar xvfz target.scn.tar.gz -C targets/

   Secondly, add the following entry in the exports file, indicating that
   you want to export without any condition:
/home/mleeman/targets/target.scn.01 *(rw,no_root_squash,no_all_squash)

   Finally, restart the NFS server:
[mleeman@gemini mleeman]$ sudo /etc/init.d/nfs-kernel-server restart

   We're halfway through. We now need to link this NFS filesystem to the
   MAC address of our board. This is done by adding the following in the
   /etc/dhcpd.conf file:
# global configuration options
# allow bootp packages
allow bootp;
# the first subnet we listen to
subnet 150.158.231.0 netmask 255.255.255.0 {
  # options for the subnet in question
  option routers 150.158.231.1;
  default-lease-time 1209600;
  max-lease-time 31557600;
  # for each board, add the following configuration block.
  # It is best that you use different root FS directories
  # for each board.
  group {
    host scnhost01 {
      # MAC address
      hardware ethernet 00:d0:b7:85:f9:28;
      # The fixed address we will assign to the board
      fixed-address 150.158.231.20;
      # hm. not relevant here, is the kernel, which we load in FLASH
      filename "image";
      # our root FS that will be passed to the board
      option root-path "/home/mleeman/targets/target.scn.01";
    }
  }

   We now need to restart the dhcp server:
[mleeman@gemini mleeman]$ sudo /etc/init.d/dhcpd restart

   If you do not know the MAC address, and it is not indicated on the
   board in some way, just let the target boot (loaded with an NFS kernel
   of course) and watch the messages of the dhcp server, it will display
   the the MAC address (but will not pass a root FS).

[mleeman@gemini mleeman]$ sudo tail -f /var/log/messages

   and search for something like the following passing:
Apr  9 07:53:22 gemini dhcpd: BOOTREQUEST from 00:04:a5:00:05:19 via eth0
Apr  9 07:53:22 gemini dhcpd: No applicable record for BOOTP host 00:04:a5:00:0
5:19 via eth0

   In this case 00:04:a5:00:05:19 is our MAC address.

   -- MarcLeeman - 17 Jun 2004

   Topic NFSSystem . { Edit | Attach | Ref-By | Printable | Diffs | r1.1
   | More }

   Revision r1.1 - 17 Jun 2004 - 07:57 GMT - MarcLeeman
   Parents: WebHome > FirmwareDocumentation Copyright © 1999-2003 by the
   contributing authors. All material on this collaboration platform is
   the property of the contributing authors.
   Ideas, requests, problems regarding TWiki? Send feedback.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NFS probelm in MPC8245
  2004-06-17  9:33 ` jmartin
@ 2004-06-17 10:25   ` bharat
  2004-06-17 11:25     ` jmartin
  0 siblings, 1 reply; 6+ messages in thread
From: bharat @ 2004-06-17 10:25 UTC (permalink / raw)
  To: linuxppc-embedded


the gentleman is quite right abt starting nfs
but also check portmap service should also work
otherwise  you cannot start nfs
bye

On Thursday 17 Jun 2004 3:03 pm, jmartin wrote:
> ----- Original Message -----
> From: "m madhuker" <mythri_madhuker@yahoo.com>
> To: <linuxppc-embedded@lists.linuxppc.org>
> Sent: Thursday, June 17, 2004 10:58 AM
> Subject: NFS probelm in MPC8245
>
> > Hello all,
> >          Iam working with MPC8245 in Linux.but im new
> > to this. Kernel was booted into board and we able to
> > do ping,telnet,ftp to board. but, i could not able to
> > mount NFS in board.
>
> you need nfs daemon running.
>
> add nfs daemon to sbin if you don't yet.
> then execute /etc/init.d/nfs start or /etc/init.d/nfs restart
>
> nfs should appear now when ps axvf is executed.
>
> execute mount -t nfs [ip]:/resource localdir
>
> be sure [ip_remote_machine_which_do_mount]:/resource exists on file
> /etc/exports on remote machine.
>
> i.e, if machine which is mounting resource have ip x.y.z.t
> you will have an entry on /etc/export like this
>
> /resource    x.y.z.t(rw,no_root_squash)
>
> if you haven't got it, write it and then execute /etc/init.d/nfs restart on
> machine which export resource
>
> >Rfs also not mounting. i had tried
> > as per the "Getting started timesys linux on Ampro
> > Encore PP1" doc. and i search in google also, but
> > progress...
> > please can anybody help me....
> >                                           Regards
> >                                           Madhukar
> >                                           Kosmic Tech.
> >                                           Chennai, India.
> >
> >
> >
> > Yahoo! Mail - Helps protect you from nasty viruses.
> > http://promotions.yahoo.com/new_mail
>
>
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NFS probelm in MPC8245
  2004-06-17 10:25   ` bharat
@ 2004-06-17 11:25     ` jmartin
  0 siblings, 0 replies; 6+ messages in thread
From: jmartin @ 2004-06-17 11:25 UTC (permalink / raw)
  To: bharat, linuxppc-embedded


just rigth. Sorry, i forget it. If nfs don't want to work yet, check you
have
loopback interface up, nfs communicate on machine accross loopback
interface.

this should be done with
ifconfig lo add 127.0.0.1 up

----- Original Message -----
From: "bharat" <bharat@coraltele.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Sent: Thursday, June 17, 2004 12:25 PM
Subject: Re: NFS probelm in MPC8245


>
> the gentleman is quite right abt starting nfs
> but also check portmap service should also work
> otherwise  you cannot start nfs
> bye
>
> On Thursday 17 Jun 2004 3:03 pm, jmartin wrote:
> > ----- Original Message -----
> > From: "m madhuker" <mythri_madhuker@yahoo.com>
> > To: <linuxppc-embedded@lists.linuxppc.org>
> > Sent: Thursday, June 17, 2004 10:58 AM
> > Subject: NFS probelm in MPC8245
> >
> > > Hello all,
> > >          Iam working with MPC8245 in Linux.but im new
> > > to this. Kernel was booted into board and we able to
> > > do ping,telnet,ftp to board. but, i could not able to
> > > mount NFS in board.
> >
> > you need nfs daemon running.
> >
> > add nfs daemon to sbin if you don't yet.
> > then execute /etc/init.d/nfs start or /etc/init.d/nfs restart
> >
> > nfs should appear now when ps axvf is executed.
> >
> > execute mount -t nfs [ip]:/resource localdir
> >
> > be sure [ip_remote_machine_which_do_mount]:/resource exists on file
> > /etc/exports on remote machine.
> >
> > i.e, if machine which is mounting resource have ip x.y.z.t
> > you will have an entry on /etc/export like this
> >
> > /resource    x.y.z.t(rw,no_root_squash)
> >
> > if you haven't got it, write it and then execute /etc/init.d/nfs restart
on
> > machine which export resource
> >
> > >Rfs also not mounting. i had tried
> > > as per the "Getting started timesys linux on Ampro
> > > Encore PP1" doc. and i search in google also, but
> > > progress...
> > > please can anybody help me....
> > >                                           Regards
> > >                                           Madhukar
> > >                                           Kosmic Tech.
> > >                                           Chennai, India.
> > >
> > >
> > >
> > > Yahoo! Mail - Helps protect you from nasty viruses.
> > > http://promotions.yahoo.com/new_mail
> >
> >
> >
> >
> >
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: NFS probelm in MPC8245
       [not found] <20040618061127.50148.qmail@web13601.mail.yahoo.com>
@ 2004-06-18  6:51 ` Marc Leeman
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Leeman @ 2004-06-18  6:51 UTC (permalink / raw)
  To: m madhuker; +Cc: linuxppc-embedded


> -C >targets/
> oky, what is this target.scn.tar.gz...and why???

I did not write this for you, I just wrote it for internal use on our
intranet. So the filenames might be slightly off.

> where we get it..

You can get a PPC target from ELDK (somewhere on ftp.leo.org). It should
be name accordingly; search Wolfgang's site for the details.

> as u said :in kernel configuration of board ..
> >Have you configured the kernel to activate BOOTP?
> >CONFIG_IP_PNP_BOOTP=y
> >CONFIG_NFS_FS=y
> >CONFIG_ROOT_NFS=y
>i had enabled these all.

And recompiled and loaded the NFS kernel on the target board?

> oky, when i run this command:
> ]#/etc/init.d/nfs restart
> it is getting restarted oky,..

I hope this is on the NFS server machine?

> iam getting some erors that "configuration file has errors"

You should close all the brackets you open, there is one missing at the
end.

> ]# "mount -t nfs [ip]:/hostresource  /mnt "
> iam getting following o/p:

How can you mount your root FS on your board after you have boot it.

> sir, one doubt.. to mount NFS in board...

Wait, do you want to mount just a simple share or do you want to mount
your root FS on the board, ...

If it's just an NFS share, then there's some missunderstanding here.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-18  6:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040618061127.50148.qmail@web13601.mail.yahoo.com>
2004-06-18  6:51 ` NFS probelm in MPC8245 Marc Leeman
2004-06-17  8:58 m madhuker
2004-06-17  9:33 ` jmartin
2004-06-17 10:25   ` bharat
2004-06-17 11:25     ` jmartin
2004-06-17  9:37 ` Marc Leeman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).