Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: NFS setup for Atmel SAM9G45
PostPosted: Thu Jan 20, 2011 7:52 pm 
Offline

Joined: Thu Dec 30, 2010 6:49 pm
Posts: 38
Hi,

I am trying to setup NFS boot on my ATSAm9G45 board but not able to get the exact configuraiton. The default setting in the uboot was as follows

console=ttySAC0,115200 tft=m root=/dev/mtdblock6 mtdparts=atmel_nand:128k(bootstrap)ro,256k (uboot)ro,128k(env1)ro,128k(env2)ro,1M(logo)ro,2M(linux),-(root) rw rootfstype=yaffs2

My nfs is located at the following location on my server
/home/workspace/Debug_box/Atmel_ARM_Board/dbgene_fw/source_code/dbgene_fs

When i try to append the above path in uboot, my tera term doesn't allow me to input such a big string, not sure what is the problem....

Then i tried to trim the configuration as below
bootargs=console=ttySAC0,115200 tft=m root=/dev/mtdblock6 nfsroot=10.223.129.90:/home/workspace/Debu
g_box/Atmel_ARM_Board/dbgene_fw/source_code/dbgene_fs rw rootfstype=yaffs2 mem=128M

When i do bootm, it boots but loads the file system from my NAND flash then NFS.
Can anyone please help me on this?

-Prashanth


Top
 Profile  
 
 Post subject: Re: NFS setup for Atmel SAM9G45
PostPosted: Wed Jan 26, 2011 2:23 pm 
Offline

Joined: Wed Jan 26, 2011 2:03 pm
Posts: 3
Hi Prashanth,

I think you have specified the wrong root device. My settings for booting through nfs is the following:

setenv bootargs=mem=64M root=/dev/nfs rw init=/sbin/init console=ttyS0,115200 nfsroot=192.168.0.2:/home/devolution/angstrom/ ip=192.168.0.3

Notice the "root=/dev/nfs" part.

Best regards
Erik Sandbraaten


Top
 Profile  
 
 Post subject: Re: NFS setup for Atmel SAM9G45
PostPosted: Mon Feb 07, 2011 6:48 am 
Offline

Joined: Thu Dec 30, 2010 6:49 pm
Posts: 38
Thanks for the reply. Will give it a try and let u know


Top
 Profile  
 
 Post subject: Re: NFS setup for Atmel SAM9G45
PostPosted: Mon Feb 21, 2011 2:29 pm 
Offline

Joined: Fri Jun 22, 2007 10:41 am
Posts: 10
I have some problem to mount the root filesystem by nfs. The kernel is loaded by tftp
The kernel is built with openembedded, I tried also with the pre-build image with the same result.
Any suggestions is appreciated.
Thanks
J

Linux version 2.6.30 (gcc version 4.3.3 (GCC) ) #1 Sun Feb 20 01:27:20 CET 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91SAM9M10-EKES
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/nfs rw nfsroot=192.168.3.105:/nfs/rootfs_at91 ip=192.168.3.200 mem=64M rootfstype=ext3
NR_IRQS:192
AT91: 160 gpio irqs in 5 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [tty0] enabled
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61012KB available (3392K code, 237K data, 116K init, 0K highmem)
Calibrating delay loop... 199.47 BogoMIPS (lpj=997376)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 296 bytes
NET: Registered protocol family 16
atmel_tcb: probe of atmel_tcb.0 failed with error -22
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 119
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_lcdfb atmel_lcdfb.0: 255KiB frame buffer at 73900000 (mapped at ffa00000)
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00500000 (mapped at c4858000), irq 23
atmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfff90000 (irq = 8) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffbc000 irq 25 (3e:36:65:ba:6f:be)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1)
No NAND device found!!!
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffa4000 (irq 14)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
atmel-ehci atmel-ehci: Atmel EHCI UHP HS
atmel-ehci atmel-ehci: new USB bus registered, assigned bus number 1
atmel-ehci atmel-ehci: irq 22, io mem 0x00800000
atmel-ehci atmel-ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: Atmel EHCI UHP HS
usb usb1: Manufacturer: Linux 2.6.30 ehci_hcd
usb usb1: SerialNumber: atmel-ehci
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 2
at91_ohci at91_ohci: irq 22, io mem 0x00700000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: AT91 OHCI
usb usb2: Manufacturer: Linux 2.6.30 ohci_hcd
usb usb2: SerialNumber: at91
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
atmel_usba_udc atmel_usba_udc: MMIO registers at 0xfff78000 mapped at c485c000
atmel_usba_udc atmel_usba_udc: FIFO at 0x00600000 mapped at c4900000
mice: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys/input/input0
atmel_tsadcc atmel_tsadcc: Master clock is set at: 133333333 Hz
atmel_tsadcc atmel_tsadcc: Prescaler is set at: 221
input: atmel touch screen controller as /devices/platform/atmel_tsadcc/input/input1
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
IRQ 1/rtc0: IRQF_DISABLED is not guaranteed on shared IRQs
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
i2c-gpio i2c-gpio.0: using pins 52 (SDA) and 53 (SCL)
Registered led device: d8
Registered led device: d6
Registered led device: d7
at_hdmac at_hdmac: Atmel AHB DMA Controller ( cpy slave ), 8 channels
Advanced Linux Sound Architecture Driver Version 1.0.20.
atmel_ac97c atmel_ac97c.0: Atmel AC97 controller at 0xc4880000, irq = 24
ALSA device list:
#0: Atmel AC97 controller
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
atmel_mci atmel_mci.0: Using dma0chan0 for DMA transfers
atmel_mci atmel_mci.0: Atmel MCI controller at 0xfff80000 irq 11, 1 slots
atmel_mci atmel_mci.1: Using dma0chan1 for DMA transfers
atmel_mci atmel_mci.1: Atmel MCI controller at 0xfffd0000 irq 29, 1 slots
VFS: Cannot open root device "nfs" or unknown-block(0,255)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)
[<c002a344>] (unwind_backtrace+0x0/0xdc) from [<c02b17ec>] (panic+0x34/0x110)
[<c02b17ec>] (panic+0x34/0x110) from [<c0008e90>] (mount_block_root+0x25c/0x2b4)
[<c0008e90>] (mount_block_root+0x25c/0x2b4) from [<c00090b8>] (prepare_namespace+0x164/0x1c8)
[<c00090b8>] (prepare_namespace+0x164/0x1c8) from [<c0008404>] (kernel_init+0xb8/0xe8)
[<c0008404>] (kernel_init+0xb8/0xe8) from [<c00377c4>] (do_exit+0x0/0x5a4)
[<c00377c4>] (do_exit+0x0/0x5a4) from [<00000003>] (0x3)


Top
 Profile  
 
 Post subject: Re: NFS setup for Atmel SAM9G45
PostPosted: Tue Feb 22, 2011 1:37 pm 
Offline

Joined: Thu Jan 14, 2010 12:30 pm
Posts: 23
[quote="jaws"]I have some problem to mount the root filesystem by nfs. The kernel is loaded by tftp
The kernel is built with openembedded, I tried also with the pre-build image with the same result.
Any suggestions is appreciated.
Thanks
J

Kernel command line: root=/dev/nfs rw nfsroot=192.168.3.105:/nfs/rootfs_at91 ip=192.168.3.200 mem=64M rootfstype=ext3
[/quote]

In Kernel something like this:
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_ROOT_NFS=y
CONFIG_NFS_COMMON=y

[quote="jaws"]
rootfstype=ext3
[/quote]
A u sure that kernel will work with this argument? I have something like this:

console=ttyS0,115200 mem=64M root=/dev/nfs nfsroot=192.168.1.2:/home/Developer/rootfs ip=192.168.1.3:192.168.1.2:192.168.1.1:255.255.255.0::eth0:off\0


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: