I am able to boot from SD card but I am facing problem when I am trying to boot from NFS server.
I am able to get the uImage(kernel image file ) from server but unable to get the rootfile system from NFS server.
Bootargs :
nfsboot= setenv autoload no; dhcp; setenv serverip 10.100.131.74;setenv bootfile uImage;tftp 0x82000000 uImage;setenv bootargs "console=ttyO0,115200n8 root=/dev/nfs nfsroot=10.0.102.20910.100.131.74:/home/durga/dsv/nfsroot,nolock rw ip=10.100.131.126:10.100.131.74:10.100.131.1:255.255.255.0 video=da8xx:bpp=16,mode=mtw9pcap";bootm 0x82000000
NFS Server Status:
root@durga-HCL-Desktop:~# service nfs-kernel-server status
nfsd running
root@durga-HCL-Desktop:~# ifconfig
eth0 Link encap:Ethernet HWaddr 54:be:f7:57:d7:02
inet addr:10.100.131.74 Bcast:10.100.131.255 Mask:255.255.255.0
inet6 addr: fe80::56be:f7ff:fe57:d702/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6919296 errors:0 dropped:0 overruns:0 frame:0
TX packets:7396468 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4689853778 (4.6 GB) TX bytes:8842155538 (8.8 GB)
Export file:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/durga/dsv/nfsroot *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
One More thing I have tested NFS sever from one more Linux PC there I am able to mount .only I am facing problem in AM335X target.
Boot command:
I am using run nfsboot.
Error:
U-Boot# run nfsboot
link up on port 0, speed 100, full duplex
link up on port 1, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 10.100.131.126
link up on port 0, speed 100, full duplex
link up on port 1, speed 100, full duplex
Using cpsw device
TFTP from server 10.100.131.74; our IP address is 10.100.131.126
Filename 'uImage'.
Load address: 0x82000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######################################
143.6 KiB/s
done
Bytes transferred = 3851448 (3ac4b8 hex)
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.2.0-00284-g0736f1a-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3851384 Bytes = 3.7 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.2.0-00284-g0736f1a-dirty (root@durga-HCL-Desktop5
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[ 0.000000] Machine: mitysom335x
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES2.1 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa8
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroop
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 510840k/510840k available, 13448k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0742000 (7400 kB)
[ 0.000000] .init : 0xc0742000 - 0xc07da000 ( 608 kB)
[ 0.000000] .data : 0xc07da000 - 0xc0872ec8 ( 612 kB)
[ 0.000000] .bss : 0xc0872eec - 0xc08b2734 ( 255 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrus
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 1s
[ 0.000000] Console: colour dummy device 80x30
[ 0.000122] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[ 0.039093] pid_max: default: 32768 minimum: 301
[ 0.039184] Security Framework initialized
[ 0.039276] Mount-cache hash table entries: 512
[ 0.039611] CPU: Testing write buffer coherency: ok
[ 0.040313] devtmpfs: initialized
[ 0.059143] omap_hwmod: gfx: failed to hardreset
[ 0.075012] omap_hwmod: pruss: failed to hardreset
[ 0.076232] print_constraints: dummy:
[ 0.076538] NET: Registered protocol family 16
[ 0.078582] OMAP GPIO hardware version 0.1
[ 0.081085] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.082977] set gmii_sel register
[ 0.083404] omap_i2c.3: alias fck already exists
[ 0.083648] omap_i2c.2: alias fck already exists
[ 0.084289] Registering mcspi 1 [2]
[ 0.084320] omap2_mcspi.1: alias fck already exists
[ 0.084533] Registering mcspi 2 [2]
[ 0.084533] omap2_mcspi.2: alias fck already exists
[ 0.084808] edma.0: alias fck already exists
[ 0.084808] edma.0: alias fck already exists
[ 0.084838] edma.0: alias fck already exists
[ 0.087768] baseboard_init [Manitowoc HRCB+]...
[ 0.088012] omap_hsmmc.0: alias fck already exists
[ 0.089172] da8xx_lcdc.0: alias fck already exists
[ 0.089416] RAD - Setting up LCD GPIOs
[ 0.090148] RAD - setting up backlight
[ 0.090148] Backlight GPIO = 5
[ 0.090240] d_can.1: alias fck already exists
[ 0.090484] Configuring audio...
[ 0.090606] Registering mcasp[1]
[ 0.090637] davinci-mcasp.1: alias fck already exists
[ 0.091217] RAD - setting up TS_RESET_N
[ 0.091461] omap_i2c.1: alias fck already exists
[ 0.091735] RAD - finished baseboard init
[ 0.113922] bio: create slab <bio-0> at 0
[ 0.115936] SCSI subsystem initialized
[ 0.117797] usbcore: registered new interface driver usbfs
[ 0.118103] usbcore: registered new interface driver hub
[ 0.118286] usbcore: registered new device driver usb
[ 0.118438] musb-ti81xx musb-ti81xx: musb0, board_mode=0x11, plat_mode=0x1
[ 0.118682] musb-ti81xx musb-ti81xx: musb1, board_mode=0x11, plat_mode=0x1
[ 0.119842] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[ 0.120758] tps65910 3-002d: JTAGREVNUM 0x1
[ 0.123138] print_constraints: VRTC:
[ 0.124572] print_constraints: VIO: at 1500 mV
[ 0.126861] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
[ 0.129119] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
[ 0.130126] print_constraints: VDD3: 5000 mV
[ 0.131530] print_constraints: VDIG1: at 1800 mV
[ 0.132965] print_constraints: VDIG2: at 1800 mV
[ 0.134368] print_constraints: VPLL: at 1800 mV
[ 0.135772] print_constraints: VDAC: at 1800 mV
[ 0.137207] print_constraints: VAUX1: at 1800 mV
[ 0.138610] print_constraints: VAUX2: at 3300 mV
[ 0.139984] print_constraints: VAUX33: at 3300 mV
[ 0.141418] print_constraints: VMMC: at 3300 mV
[ 0.141906] tps65910 3-002d: No interrupt support, no core IRQ
[ 0.142059] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[ 0.159088] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.160369] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.161560] cfg80211: Calling CRDA to update world regulatory domain
[ 0.162628] Switching to clocksource gp timer
[ 0.179687] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.179840] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.180267] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 0.180328] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus numb1
[ 0.180450] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.180480] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber1
[ 0.180480] usb usb1: Product: MUSB HDRC host driver
[ 0.180480] usb usb1: Manufacturer: Linux 3.2.0-00284-g0736f1a-dirty musb-hcd
[ 0.180511] usb usb1: SerialNumber: musb-hdrc.0
[ 0.181335] hub 1-0:1.0: USB hub found
[ 0.181365] hub 1-0:1.0: 1 port detected
[ 0.181915] musb-hdrc musb-hdrc.0: USB Host mode controller at e081c000 usin8
[ 0.182098] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.182495] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.182525] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus numb2
[ 0.182617] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.182617] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber1
[ 0.182647] usb usb2: Product: MUSB HDRC host driver
[ 0.182647] usb usb2: Manufacturer: Linux 3.2.0-00284-g0736f1a-dirty musb-hcd
[ 0.182647] usb usb2: SerialNumber: musb-hdrc.1
[ 0.183532] hub 2-0:1.0: USB hub found
[ 0.183563] hub 2-0:1.0: 1 port detected
[ 0.184082] musb-hdrc musb-hdrc.1: USB Host mode controller at e081e800 usin9
[ 0.184509] NET: Registered protocol family 2
[ 0.184692] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.184936] TCP established hash table entries: 16384 (order: 5, 131072 byte)
[ 0.185211] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.185363] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.185394] TCP reno registered
[ 0.185394] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.185424] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.185607] NET: Registered protocol family 1
[ 0.185882] RPC: Registered named UNIX socket transport module.
[ 0.185882] RPC: Registered udp transport module.
[ 0.185882] RPC: Registered tcp transport module.
[ 0.185913] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.186096] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.203887] VFS: Disk quotas dquot_6.5.2
[ 0.203948] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.204437] msgmni has been set to 997
[ 0.205200] io scheduler noop registered
[ 0.205230] io scheduler deadline registered
[ 0.205291] io scheduler cfq registered (default)
[ 0.206604] DA8XX FB - options = bpp=16,mode=mtw9pcap
[ 0.206726] da8xx_lcdc da8xx_lcdc.0: GLCD: Found 800x600 panel
[ 0.207763] DA8XX FB: 800 x 480 16 bpp
[ 0.215850] Console: switching to colour frame buffer device 100x30
[ 0.228057] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.229949] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 1.040740] console [ttyO0] enabled
[ 1.045227] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 1.053100] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 1.060913] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 1.068756] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 1.076599] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 1.093658] brd: module loaded
[ 1.101837] loop: module loaded
[ 1.105377] i2c-core: driver [tsl2550] using legacy suspend method
[ 1.111846] i2c-core: driver [tsl2550] using legacy resume method
[ 1.118286] at24 2-0050: 256 byte 24c02 EEPROM, read-only, 0 bytes/write
[ 1.131134] MitySOM-335x: Part Number = 3354-HX-X38-RC
[ 1.136535] Manitowoc HRCB+: factory_config_callback
[ 1.141723] RAD - turning on PWM GPIO
[ 1.146087] No SPI NOR Flash found.
[ 1.149749] Configuring 512MB NAND device
[ 1.154632] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 1.159667] Registering NAND on CS0
[ 1.165924] m25p80 spi2.0: m25p64-nonjedec (8192 Kbytes)
[ 1.171508] Creating 1 MTD partitions on "spi_flash":
[ 1.176849] 0x000000000000-0x000000800000 : "NOR User Defined"
[ 1.184875] omap2-nand driver initializing
[ 1.189483] ONFI flash detected
[ 1.192901] ONFI param page 0 valid
[ 1.196563] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron MT29F4)
[ 1.204986] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.210540] 0x000000000000-0x000000040000 : "SPL"
[ 1.216918] 0x000000040000-0x000000080000 : "SPL.backup1"
[ 1.223907] 0x000000080000-0x0000000c0000 : "SPL.backup2"
[ 1.230865] 0x0000000c0000-0x000000100000 : "SPL.backup3"
[ 1.237945] 0x000000100000-0x000000300000 : "U-Boot"
[ 1.244873] 0x000000300000-0x000000340000 : "U-Boot Env"
[ 1.251770] 0x000000340000-0x000000840000 : "Kernel"
[ 1.259368] 0x000000840000-0x000020000000 : "File System"
[ 1.370178] OneNAND driver initializing
[ 1.376464] CAN device driver interface
[ 1.380493] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.386901] d_can d_can.1: device registered (irq=55, irq_obj=56)
[ 1.443359] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.449829] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[ 1.456817] Comparing Given PHYID: 2000A201 and Detected PHYID: 2000A211
[ 1.463836] TLK110 Fixup
[ 1.466827] davinci_mdio.0: probed
[ 1.470397] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.478179] usbcore: registered new interface driver cdc_ether
[ 1.484466] usbcore: registered new interface driver cdc_subset
[ 1.490692] Initializing USB Mass Storage driver...
[ 1.496063] usbcore: registered new interface driver usb-storage
[ 1.502349] USB Mass Storage support registered.
[ 1.507751] mousedev: PS/2 mouse device common for all mice
[ 1.516448] tps65910-rtc tps65910-rtc: Wake up is not possible as irq = 0
[ 1.529541] tps65910-rtc tps65910-rtc: rtc core: registered tps65910-rtc as 0
[ 1.537475] i2c /dev entries driver
[ 1.542053] Linux media interface: v0.10
[ 1.546325] Linux video capture interface: v2.00
[ 1.551483] usbcore: registered new interface driver uvcvideo
[ 1.557495] USB Video Class driver (1.1.1)
[ 1.614532] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.623016] cpuidle: using governor ladder
[ 1.627807] cpuidle: using governor menu
[ 1.636596] usbcore: registered new interface driver usbhid
[ 1.642425] usbhid: USB HID core driver
[ 1.647094] usbcore: registered new interface driver snd-usb-audio
[ 1.668304] tlv320aic26-codec spi1.1: Probing AIC26 SoC CODEC driver
[ 1.692535] asoc: tlv320aic26-hifi <-> davinci-mcasp.1 mapping ok
[ 1.700225] ALSA device list:
[ 1.703369] #0: MityARM-335X DevKit
[ 1.707214] oprofile: hardware counters not available
[ 1.712493] oprofile: using timer interrupt.
[ 1.716979] nf_conntrack version 0.5.0 (7981 buckets, 31924 max)
[ 1.723754] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.729431] TCP cubic registered
[ 1.732788] NET: Registered protocol family 17
[ 1.737487] can: controller area network core (rev 20090105 abi 8)
[ 1.744018] NET: Registered protocol family 29
[ 1.748687] can: raw protocol (rev 20090105)
[ 1.753173] can: broadcast manager protocol (rev 20090105 t)
[ 1.759124] lib80211: common routines for IEEE802.11 drivers
[ 1.765106] Registering the dns_resolver key type
[ 1.770080] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3
[ 1.778137] ThumbEE CPU extension supported.
[ 1.782653] mux: Failed to setup hwmod io irq -22
[ 1.788116] Power Management for AM33XX family
[ 1.792938] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.799652] Copied the M3 firmware to UMEM
[ 1.803955] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not st
[ 1.818237] Detected MACID=90:59:af:6d:9e:8a
[ 1.827178] tps65910-rtc tps65910-rtc: setting system clock to 2015-09-22 03)
[ 1.839172] Comparing Given PHYID: 2000A201 and Detected PHYID: 2000A211
[ 1.846221] TLK110 Fixup
[ 1.849090]
[ 1.849090] CPSW phy found : id is : 0x2000a211
[ 1.856170] net eth0: PHY already attached
[ 1.873260] mmc0: host does not support reading read-only switch. assuming w.
[ 1.884765] mmc0: new high speed SDHC card at address aaaa
[ 1.891113] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[ 1.897552] mmcblk0: p1 p2
[ 3.844635] PHY: 0:01 - Link is Up - 100/Full
[ 3.874511] IP-Config: Complete:
[ 3.877899] device=eth0, addr=10.100.131.126, mask=255.255.255.0, gw=10,
[ 3.886047] host=10.100.131.126, domain=, nis-domain=(none),
[ 3.892425] bootserver=10.100.131.74, rootserver=10.100.131.74, rootpath=
[ 38.964111] VFS: Unable to mount root fs via NFS, trying floppy.
[ 38.970886] VFS: Cannot open root device "nfs" or unknown-block(2,0)
[ 38.977600] Please append a correct "root=" boot option; here are the available partitions:
[ 38.986358] 1f00 8192 mtdblock0 (driver?)
[ 38.991668] 1f01 256 mtdblock1 (driver?)
[ 38.996978] 1f02 256 mtdblock2 (driver?)
[ 39.002258] 1f03 256 mtdblock3 (driver?)
[ 39.007568] 1f04 256 mtdblock4 (driver?)
[ 39.012847] 1f05 2048 mtdblock5 (driver?)
[ 39.018157] 1f06 256 mtdblock6 (driver?)
[ 39.023437] 1f07 5120 mtdblock7 (driver?)
[ 39.028747] 1f08 515840 mtdblock8 (driver?)
[ 39.034057] b300 15558144 mmcblk0 driver: mmcblk
[ 39.039611] b301 72261 mmcblk0p1 00000000-0000-0000-0000-000000000000
[ 39.047485] b302 15470595 mmcblk0p2 00000000-0000-0000-0000-000000000000
[ 39.055328] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 39.063964] Backtrace:
[ 39.066558] [<c0017f3c>] (dump_backtrace+0x0/0x10c) from [<c04be638>] (dump_stack+0x18/0x1c)
[ 39.075408] r6:00008000 r5:c067de00 r4:c0873ee0 r3:c07fc714
[ 39.081359] [<c04be620>] (dump_stack+0x0/0x1c) from [<c04be8a4>] (panic+0x64/0x194)
[ 39.089385] [<c04be840>] (panic+0x0/0x194) from [<c0742c8c>] (mount_block_root+0x174/0x228)
[ 39.098114] r3:00000004 r2:00000000 r1:df82bf40 r0:c067de00
[ 39.104064] r7:c067de68
[ 39.106719] [<c0742b18>] (mount_block_root+0x0/0x228) from [<c0742ef4>] (mount_root+0xc8/0xe8)
[ 39.115753] [<c0742e2c>] (mount_root+0x0/0xe8) from [<c0743080>] (prepare_namespace+0x16c/0x1cc)
[ 39.124938] r4:c0872f60
[ 39.127593] [<c0742f14>] (prepare_namespace+0x0/0x1cc) from [<c0742900>] (kernel_init+0xf4/0x120)
[ 39.136901] r5:c07d9de4 r4:c07d9de4
[ 39.140655] [<c074280c>] (kernel_init+0x0/0x120) from [<c0044b50>] (do_exit+0x0/0x65c)
[ 39.148956] r5:c074280c r4:00000000