BBB - mounting rootfs from NFS

630 views
Skip to first unread message

Mahee

unread,
Mar 26, 2014, 4:08:01 PM3/26/14
to beagl...@googlegroups.com

Hello All,

I'm trying to mount root FS from my host PC's (Ubuntu) on BBB. After referring to various online references I was able to get to a point where BBB can detect my NFS share and goes all the way till Angstrom logo. When I try to log-in I get kernel panic.

Attached is log captured using UART. 
Any help would be greatly appreciated. 


Thanks,
Mahee

U-Boot 2013.04-dirty (Jul 10 2013 - 14:02:53)

I2C:   ready
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  No NAND device found!!!
0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401800 using PIO, IRQ 0
Net:   <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot:  0
U-Boot#    setenv ipaddr 192.168.1.200
U-Boot# setenv serverip 192.168.1.111
U-Boot# tftpboot 0x80200000 uImage-BBB
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.1.111; our IP address is 192.168.1.200
Filename 'uImage-BBB'.
Load address: 0x80200000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #######################################
         1.1 MiB/s
done
Bytes transferred = 4378364 (42cefc hex)
U-Boot# setenv rootpath /home/mahee/bone/rootfs
U-Boot# setenv bootargs console=ttyO0,115200n8 root=/dev/nfs rw nfsroot=192.168.1.122:/home/mahee/bone/rootfs ip=192.168.1.200:::::eth0
U-Boot# bootm 0x80200000
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-3.8.13-00737-g38e66f2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4378300 Bytes = 4.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.8.13-00737-g38e66f2 (mahee@mahee-VirtualBox) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #1 SMP Mon Mar 17 19:19:23 PDT 2014
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES1.0 (neon )
[    0.000000] PERCPU: Embedded 8 pages/cpu @c0f00000 s9408 r8192 d15168 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129792
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs rw nfsroot=192.168.1.122:/home/mahee/bone/rootfs ip=192.168.1.200:::::eth0
[    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] __ex_table already sorted, skipping sort
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 511MB = 511MB total
[    0.000000] Memory: 510340k/510340k available, 13948k 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 : 0xbf800000 - 0xbfe00000   (   6 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0614728   (6194 kB)
[    0.000000]       .init : 0xc0615000 - 0xc064b4c0   ( 218 kB)
[    0.000000]       .data : 0xc064c000 - 0xc06c1e60   ( 472 kB)
[    0.000000]        .bss : 0xc06c1e60 - 0xc071bbfc   ( 360 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[    0.000000] Console: colour dummy device 80x30
[    0.000359] Calibrating delay loop... 545.07 BogoMIPS (lpj=531968)
[    0.015438] pid_max: default: 32768 minimum: 301
[    0.015670] Security Framework initialized
[    0.015764] Mount-cache hash table entries: 512
[    0.025682] Initializing cgroup subsys cpuacct
[    0.025715] Initializing cgroup subsys memory
[    0.025777] Initializing cgroup subsys blkio
[    0.025912] CPU: Testing write buffer coherency: ok
[    0.026441] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.026515] Setting up static identity map for 0x8038c168 - 0x8038c1b4
[    0.027881] Brought up 1 CPUs
[    0.027905] SMP: Total of 1 processors activated (545.07 BogoMIPS).
[    0.029035] devtmpfs: initialized
[    0.093567] pinctrl core: initialized pinctrl subsystem
[    0.093781] rstctl core: initialized rstctl subsystem
[    0.094266] regulator-dummy: no parameters
[    0.094766] NET: Registered protocol family 16
[    0.095626] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.105626] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.106367] platform 49000000.edma: alias fck already exists
[    0.106398] platform 49000000.edma: alias fck already exists
[    0.106424] platform 49000000.edma: alias fck already exists
[    0.107753] OMAP GPIO hardware version 0.1
[    0.112316] gpio-rctrl rstctl.4: loaded OK
[    0.117692] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.119794] cpsw.0: No hwaddr in dt. Using 90:59:af:5a:cc:34 from efuse
[    0.119825] cpsw.1: No hwaddr in dt. Using 90:59:af:5a:cc:36 from efuse
[    0.134529] bio: create slab <bio-0> at 0
[    0.146092] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.146576] vmmcsd_fixed: 3300 mV
[    0.149234] SCSI subsystem initialized
[    0.149643] usbcore: registered new interface driver usbfs
[    0.149751] usbcore: registered new interface driver hub
[    0.150028] usbcore: registered new device driver usb
[    0.152024] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    0.153496] input: tps65217_pwr_but as /devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0
[    0.155210] DCDC1: at 1500 mV
[    0.156409] vdd_mpu: 925 <--> 1325 mV at 1325 mV
[    0.157496] vdd_core: 925 <--> 1150 mV at 1100 mV
[    0.158645] LDO1: at 1800 mV
[    0.159723] LDO2: at 3300 mV
[    0.161685] LDO3: 1800 mV
[    0.162834] LDO4: at 3300 mV
[    0.163891] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    0.164572] omap_i2c 44e0b000.i2c: unable to select pin group
[    0.165261] omap_i2c 4819c000.i2c: bus 1 rev0.11 at 100 kHz
[    0.167562] omap_i2c 4819c000.i2c: unable to select pin group
[    0.167841] media: Linux media interface: v0.10
[    0.167943] Linux video capture interface: v2.00
[    0.168092] pps_core: LinuxPPS API ver. 1 registered
[    0.168109] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[    0.168783] Advanced Linux Sound Architecture Driver Initialized.
[    0.170056] Switching to clocksource gp_timer
[    0.187627] NET: Registered protocol family 2
[    0.188666] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.188808] TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
[    0.188956] TCP: Hash tables configured (established 4096 bind 4096)
[    0.189055] TCP: reno registered
[    0.189083] UDP hash table entries: 256 (order: 1, 12288 bytes)
[    0.189126] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
[    0.189518] NET: Registered protocol family 1
[    0.190125] RPC: Registered named UNIX socket transport module.
[    0.190146] RPC: Registered udp transport module.
[    0.190161] RPC: Registered tcp transport module.
[    0.190175] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.190886] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[    0.191276] CPU PMU: attempt to register multiple PMU devices!
[    0.191315] arm-pmu: probe of arm-pmu failed with error -28
[    0.191845] omap2_mbox_probe: platform not supported
[    0.195706] VFS: Disk quotas dquot_6.5.2
[    0.195948] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.197115] NFS: Registering the id_resolver key type
[    0.197203] Key type id_resolver registered
[    0.197220] Key type id_legacy registered
[    0.197285] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.197801] msgmni has been set to 996
[    0.200620] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.200644] io scheduler noop registered
[    0.200660] io scheduler deadline registered
[    0.200702] io scheduler cfq registered (default)
[    0.202351] tps65217-bl tps65217-bl: no platform data provided
[    0.202393] tps65217-bl: probe of tps65217-bl failed with error -22
[    0.203274] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.205912] omap_uart 44e09000.serial: did not get pins for uart0 error: -19
[    0.206187] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88) is a OMAP UART0
[    0.923336] console [ttyO0] enabled
[    0.928261] [drm] Initialized drm 1.1.0 20060810
[    0.946350] brd: module loaded
[    0.956305] loop: module loaded
[    0.959739] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    0.967047] at24 1-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    0.974312] at24 1-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    0.981575] at24 1-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    0.988837] at24 1-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.003109] bone-capemgr bone_capemgr.9: Baseboard: 'A335BNLT,00A6,4913BBBK2211'
[    1.010896] bone-capemgr bone_capemgr.9: compatible-baseboard=ti,beaglebone-black
[    1.049085] bone-capemgr bone_capemgr.9: slot #0: No cape found
[    1.086191] bone-capemgr bone_capemgr.9: slot #1: No cape found
[    1.123300] bone-capemgr bone_capemgr.9: slot #2: No cape found
[    1.160410] bone-capemgr bone_capemgr.9: slot #3: No cape found
[    1.166660] bone-capemgr bone_capemgr.9: slot #4: specific override
[    1.173254] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 4
[    1.181281] bone-capemgr bone_capemgr.9: slot #4: 'Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G'
[    1.191425] bone-capemgr bone_capemgr.9: slot #5: specific override
[    1.198015] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 5
[    1.206042] bone-capemgr bone_capemgr.9: slot #5: 'Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI'
[    1.216079] bone-capemgr bone_capemgr.9: slot #6: specific override
[    1.222670] bone-capemgr bone_capemgr.9: bone: Using override eeprom data at slot 6
[    1.230710] bone-capemgr bone_capemgr.9: slot #6: 'Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN'
[    1.241399] bone-capemgr bone_capemgr.9: initialized OK.
[    1.247038] bone-capemgr bone_capemgr.9: slot #4: Requesting firmware 'cape-bone-2g-emmc1.dtbo' for board-name 'Bone-LT-eMMC-2G', version '00A0'
[    1.260619] bone-capemgr bone_capemgr.9: slot #5: Requesting firmware 'cape-boneblack-hdmi-00A0.dtbo' for board-name 'Bone-Black-HDMI', version '00A0'
[    1.276822] OneNAND driver initializing
[    1.282363] usbcore: registered new interface driver asix
[    1.288074] bone-capemgr bone_capemgr.9: slot #4: dtbo 'cape-bone-2g-emmc1.dtbo' loaded; converting to live tree
[    1.298772] bone-capemgr bone_capemgr.9: slot #5: dtbo 'cape-boneblack-hdmi-00A0.dtbo' loaded; converting to live tree
[    1.310139] usbcore: registered new interface driver cdc_ether
[    1.316543] bone-capemgr bone_capemgr.9: slot #4: #2 overlays
[    1.322707] usbcore: registered new interface driver smsc95xx
[    1.329652] bone-capemgr bone_capemgr.9: slot #5: #4 overlays
[    1.336578] bone-capemgr bone_capemgr.9: slot #4: Applied #2 overlays.
[    1.343607] usbcore: registered new interface driver net1080
[    1.351713] platform 4830e000.fb: alias fck already exists
[    1.357670] usbcore: registered new interface driver cdc_subset
[    1.365649] bone-capemgr bone_capemgr.9: slot #5: Applied #4 overlays.
[    1.372590] bone-capemgr bone_capemgr.9: slot #6: Requesting firmware 'cape-boneblack-hdmin-00A0.dtbo' for board-name 'Bone-Black-HDMIN', version '00A0'
[    1.387078] usbcore: registered new interface driver zaurus
[    1.393212] usbcore: registered new interface driver cdc_ncm
[    1.399238] bone-capemgr bone_capemgr.9: slot #6: dtbo 'cape-boneblack-hdmin-00A0.dtbo' loaded; converting to live tree
[    1.411443] usbcore: registered new interface driver cdc_acm
[    1.417433] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.425832] Initializing USB Mass Storage driver...
[    1.431275] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN conflict P8.45 (#5:BB-BONELT-HDMI)
[    1.440869] bone-capemgr bone_capemgr.9: slot #6: Failed verification
[    1.447634] bone-capemgr bone_capemgr.9: loader: retrying slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[    1.456800] usbcore: registered new interface driver usb-storage
[    1.463128] USB Mass Storage support registered.
[    1.468016] bone-capemgr bone_capemgr.9: loader: failed to load slot-6 BB-BONELT-HDMIN:00A0 (prio 2)
[    1.477766] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    1.484712] musb-hdrc musb-hdrc.0.auto: pdev->id = 0
[    1.489954] musb-hdrc musb-hdrc.0.auto: drivers/usb/musb/musb_dsps.c:468 dsps_musb_init: OK
[    1.498952] musb-hdrc musb-hdrc.0.auto: *** mode=3
[    1.504013] musb-hdrc musb-hdrc.0.auto: *** power=250
[    1.510123] musb-hdrc musb-hdrc.1.auto: pdev->id = 1
[    1.515365] musb-hdrc musb-hdrc.1.auto: drivers/usb/musb/musb_dsps.c:468 dsps_musb_init: OK
[    1.524312] musb-hdrc musb-hdrc.1.auto: *** mode=1
[    1.529350] musb-hdrc musb-hdrc.1.auto: *** power=250
[    1.534655] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.541040] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.549469] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.556600] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.564169] usb usb1: Product: MUSB HDRC host driver
[    1.569382] usb usb1: Manufacturer: Linux 3.8.13-00737-g38e66f2 musb-hcd
[    1.576403] usb usb1: SerialNumber: musb-hdrc.1.auto
[    1.582742] hub 1-0:1.0: USB hub found
[    1.586756] hub 1-0:1.0: 1 port detected
[    1.592210] mousedev: PS/2 mouse device common for all mice
[    1.600428] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.607914] 44e3e000.rtc: already running
[    1.612399] i2c /dev entries driver
[    1.617824] pps_ldisc: PPS line discipline registered
[    1.623327] Driver for 1-wire Dallas network protocol.
[    1.630534] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.638093] cpuidle: using governor ladder
[    1.642420] cpuidle: using governor menu
[    1.647065] omap_hsmmc mmc.5: of_parse_phandle_with_args of 'reset' failed
[    1.654280] omap_hsmmc mmc.5: Failed to get rstctl; not using any
[    1.661071] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[    1.668275] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[    1.675612] mmc.5 supply vmmc_aux not found, using dummy regulator
[    1.682535] omap_hsmmc mmc.5: pins are not configured from the driver
[    1.715432] gpio-rctrl rstctl.4: gpio_rctrl_request eMMC_RSTn
[    1.721594] omap_hsmmc mmc.11: Got rstctl (gpio:#0 name eMMC_RSTn) label:eMMC_RSTn
[    1.729538] gpio-rctrl rstctl.4: gpio_rctrl_deassert eMMC_RSTn
[    1.735983] edma-dma-engine edma-dma-engine.0: allocated channel for 0:3
[    1.743091] edma-dma-engine edma-dma-engine.0: allocated channel for 0:2
[    1.750599] mmc.11 supply vmmc_aux not found, using dummy regulator
[    1.757299] omap_hsmmc mmc.11: pins are not configured from the driver
[    1.791770] pinctrl-single 44e10800.pinmux: pin 44e10854 already requested by 44e10800.pinmux; cannot claim for gpio-leds.8
[    1.803490] pinctrl-single 44e10800.pinmux: pin-21 (gpio-leds.8) status -22
[    1.810788] pinctrl-single 44e10800.pinmux: could not request pin 21 on device pinctrl-single
[    1.819763] leds-gpio gpio-leds.8: pins are not configured from the driver
[    1.828397] ledtrig-cpu: registered to indicate activity on CPUs
[    1.835181] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[    1.842421] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.850856] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.857170] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[    1.864428] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[    1.876823] usbcore: registered new interface driver usbhid
[    1.882746] usbhid: USB HID core driver
[    1.890814] davinci_evm sound.14:  nxp-hdmi-hifi <-> 48038000.mcasp mapping ok
[    1.902331] TCP: cubic registered
[    1.905860] Initializing XFRM netlink socket
[    1.910400] NET: Registered protocol family 17
[    1.915179] NET: Registered protocol family 15
[    1.920052] Key type dns_resolver registered
[    1.924802] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    1.932947] ThumbEE CPU extension supported.
[    1.937500] Registering SWP/SWPB emulation handler
[    1.943682] registered taskstats version 1
[    1.949260] pinctrl-single 44e10800.pinmux: pin 44e109b0 already requested by mmc.11; cannot claim for hdmi.13
[    1.959836] pinctrl-single 44e10800.pinmux: pin-108 (hdmi.13) status -22
[    1.966872] pinctrl-single 44e10800.pinmux: could not request pin 108 on device pinctrl-single
[    1.975888] slave hdmi.13: Failed to select default state
[    1.981574] mmc1: BKOPS_EN bit is not set
[    1.985859] slave: probe of hdmi.13 failed with error -22
[    1.993199] tilcdc 4830e000.fb: No power control GPIO
[    2.002682] mmc1: new high speed MMC card at address 0001
[    2.009205] mmcblk0: mmc1:0001 MMC02G 1.78 GiB
[    2.014378] mmcblk0boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
[    2.020965] mmcblk0boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
[    2.029459]  mmcblk0: p1 p2
[    2.035086]  mmcblk0boot1: unknown partition table
[    2.042210]  mmcblk0boot0: unknown partition table
[    2.106815] tilcdc 4830e000.fb: found TDA19988
[    2.112247] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[    2.119191] [drm] No driver support for vblank timestamp query.
[    2.125777] tilcdc 4830e000.fb: No connectors reported connected with modes
[    2.133088] [drm] Cannot find any crtc or sizes - going 1024x768
[    2.155017] Console: switching to colour frame buffer device 128x48
[    2.172332] tilcdc 4830e000.fb: fb0:  frame buffer device
[    2.178000] tilcdc 4830e000.fb: registered panic notifier
[    2.183732] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[    2.240509] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.246917] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    2.254449] libphy: 4a101000.mdio: probed
[    2.258697] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    2.268559] Detected MACID = 90:59:af:5a:cc:34
[    2.273191] cpsw 4a100000.ethernet: NAPI disabled
[    2.279863] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:14:43 UTC (946685683)
[    2.296596] net eth0: initializing cpsw version 1.12 (0)
[    2.304315] net eth0: phy found : id is : 0x7c0f1
[    2.309279] libphy: PHY 4a101000.mdio:01 not found
[    2.314348] net eth0: phy 4a101000.mdio:01 not found on slave 1
[    6.449956] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[    6.468988] IP-Config: Guessing netmask 255.255.255.0
[    6.474444] IP-Config: Complete:
[    6.477847]      device=eth0, hwaddr=90:59:af:5a:cc:34, ipaddr=192.168.1.200, mask=255.255.255.0, gw=255.255.255.255
[    6.488828]      host=192.168.1.200, domain=, nis-domain=(none)
[    6.495010]      bootserver=255.255.255.255, rootserver=192.168.1.122, rootpath=
[    6.502557] ALSA device list:
[    6.505847]   #0: TI BeagleBone Black
[   21.580437] VFS: Mounted root (nfs filesystem) on device 0:12.
[   21.587243] devtmpfs: mounted
[   21.590628] Freeing init memory: 216K
[   21.877108] systemd[1]: systemd 196 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP +GCRYPT +ACL +XZ; angstrom)

Welcome to The Ångström Distribution!

[   21.950627] systemd[1]: Inserted module 'autofs4'
[   21.957620] systemd[1]: Set hostname to <beaglebone>.
[   22.017069] systemd-fstab-generator[81]: Failed to create mount unit file /run/systemd/generator/-.mount, as it already exists. Duplicate entry in /etc/fstab?
[   22.033022] systemd[1]: /lib/systemd/system-generators/systemd-fstab-generator exited with exit status 1.
[   22.294131] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. See system logs and 'systemctl status display-manager.service' for details.
[   22.317480] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   22.326043] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   22.334135] systemd[1]: Expecting device dev-ttyO0.device...
         Expecting device dev-ttyO0.device...
[   22.344838] systemd[1]: Starting Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   22.354689] systemd[1]: Listening on Syslog Socket.
[   22.359919] systemd[1]: Starting Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[   22.370690] systemd[1]: Reached target Remote File Systems.
[   22.376635] systemd[1]: Starting Delayed Shutdown Socket.
[  OK  ] Listening on Delayed Shutdown Socket.
[   22.388042] systemd[1]: Listening on Delayed Shutdown Socket.
[   22.394162] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[   22.408044] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   22.415485] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   22.424288] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   22.432873] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
[   22.451215] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   22.461658] systemd[1]: Starting udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   22.472419] systemd[1]: Listening on udev Kernel Socket.
[   22.478469] systemd[1]: Starting udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   22.489341] systemd[1]: Listening on udev Control Socket.
[   22.495132] systemd[1]: Starting Swap.
[  OK  ] Reached target Swap.
[   22.503215] systemd[1]: Reached target Swap.
[   22.507807] systemd[1]: Expecting device dev-mmcblk0p1.device...
         Expecting device dev-mmcblk0p1.device...
[   22.519037] systemd[1]: Starting Journal Socket.
[  OK  ] Listening on Journal Socket.
[   22.529027] systemd[1]: Listening on Journal Socket.
[   22.534355] systemd[1]: Starting Syslog.
[  OK  ] Reached target Syslog.
[   22.542761] systemd[1]: Reached target Syslog.
[   22.548192] systemd[1]: Started File System Check on Root Device.
[   22.554712] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   22.573637] systemd[1]: Mounted Huge Pages File System.
[   22.579960] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[   22.605119] systemd[1]: Started Apply Kernel Variables.
[   22.633970] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   22.657818] systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[   22.685620] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   22.718127] systemd[1]: Starting udev Kernel Device Manager...
         Starting udev Kernel Device Manager...
[   22.749388] systemd[1]: Started Set Up Additional Binary Formats.
[   22.766292] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[  OK  ] Started Journal Service.
[   22.805806] systemd[1]: Started Journal Service.
[   22.818927] systemd[1]: Started Machine ID first boot configure.
[  OK  ] Mounted Debug File System.
[   22.854429] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started udev Kernel Device Manager.
[   23.041587] systemd-udevd[93]: starting version 196
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Starting Load Random Seed...
[   23.376292] NET: Registered protocol family 10
[  OK  ] Mounted /tmp.
[  OK  ] Started Load Random Seed.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Found device /dev/ttyO0.
[  OK  ] Reached target Sound Card.
[  OK  ] Found device /dev/mmcblk0p1.
         Mounting /boot/uboot...
[  OK  ] Mounted /boot/uboot.
[  OK  ] Reached target Local File Systems.
         Starting Recreate Volatile Files and Directories...
         Starting Trigger Flushing of Journal to Persistent Storage...
[   25.941404] systemd-journald[95]: Received SIGUSR1
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[   26.028773] systemd-journald[95]: File /var/log/journal/6a7eba503e4a44db9ee9277bb3339583/system.journal corrupted or uncleanly shut down, renaming and replacing.
[  OK  ] Started Recreate Volatile Files and Directories.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Connection service...
         Starting Login Service...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
         Starting Kernel Logging Service...
[  OK  ] Started Kernel Logging Service.
         Starting System Logging Service...
[  OK  ] Started System Logging Service.
         Starting Permit User Sessions...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Permit User Sessions.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttyO0...
[  OK  ] Started Serial Getty on ttyO0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Connection service.
[  OK  ] Started Login Service.

.---O---.
|       |                  .-.           o o
|   |   |-----.-----.-----.| |   .----..-----.-----.
|       |     | __  |  ---'| '--.|  .-'|     |     |
|   |   |  |  |     |---  ||  --'|  |  |  '  | | | |
'---'---'--'--'--.  |-----''----''--'  '-----'-'-'-'
                -'  |
                '---'

The Angstrom Distribution beaglebone ttyO0

Angstrom v2012.12 - Kernel 3.8.13-00737-g38e66f2

beaglebone login: root
[   43.383079] nfs: server 192.168.1.122 not responding, still trying


The Angstrom Distribution beaglebone ttyO0

Angstrom v2012.12 - Kernel 3.8.13-00737-g38e66f2

beaglebone login: root
[   43.383079] nfs: server 192.168.1.122 not responding, still trying




[  180.193604] INFO: task kworker/0:1:15 blocked for more than 60 seconds.
[  180.200534] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  180.208720] kworker/0:1     D c038b629     0    15      2 0x00000000
[  180.215404] Kernel panic - not syncing: hung_task: blocked tasks
[  180.221696] [<c0010317>] (unwind_backtrace+0x1/0x8a) from [<c0387b4d>] (panic+0x51/0x14c)
[  180.230246] [<c0387b4d>] (panic+0x51/0x14c) from [<c0061859>] (watchdog+0x151/0x194)
[  180.238335] [<c0061859>] (watchdog+0x151/0x194) from [<c003c975>] (kthread+0x61/0x74)
[  180.246518] [<c003c975>] (kthread+0x61/0x74) from [<c000c4bd>] (ret_from_fork+0x11/0x34)
[  180.254951] drm_kms_helper: panic occurred, switching back to text console

William Hermans

unread,
Mar 26, 2014, 10:47:29 PM3/26/14
to beagl...@googlegroups.com
I am not familiar with how it is done on Ubuntu, but with Debian you need to allow connections to the NFS server. It seems the server is not responding because you do not have this setup correctly. However, as I said I am not too familiar with Ubuntu in this respect, so it is possible I am wrong.

So with Debian . . .

1) Install the NFS server and related packages.
2) sudo nano /etc/hosts.allow and add a line similar to ALL: LOCAL at the end of the file.
3) sudo nano /etc/exports and add a proper and existing export.
     Example:
     /home/username/rootfs xxx.xxx.xxx.xxx(rw,sync,no_root_squash,no_subtree_check)
   
Where username is the normal user you’re logged into, and xxx.xxx.xxx.xxx is the static
    ipaddress you’re going to assign to your Beaglebone Black.
4) sudo exportfs -a
5) sudo nano /etc/default/services and add NFS=1 to the file ( This step may or may not be 
    depreciated ).
6) sudo service nfs-kernel-server start
7) sudo exportfs

Step 7 should give you a print out of all active / correct exports if everything was done correctly.

Again, all the above are necessary steps for setting up a "proper" export on Debian Wheezy. But all of the above are needed for an NFS share to be accessible outside of the server. I am almost 100% sure these steps verbatim will not work on Ubuntu, but there will be similar steps needed to achieve the same goal. Assuming exportfs is an actual NFS tool on Ubuntu, you most certainly can simply start by issuing the command on step 7 to test before going through the whole setup above.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Hermans

unread,
Mar 26, 2014, 11:17:45 PM3/26/14
to beagl...@googlegroups.com
Ah sorry I forgot to mention that you will need to make sure your uEnv.txt file is setup properly for NFS root as well. But as far as I can tell from the above output this seems to be the case already.

Also, I wrote an article on NFS root on my blog site, and talked with someoen who tested it with various distro's. This person told me that Angstrom, Fedora, and Ubuntu all had issues with these procedures. As I mentioned above the exact steps I listed above will probably not work, but serve as a rough guide as to what needs to be done. I suspect Angstrom uses a different services daemon ( system -v type init daemon ) which is the cause. SO you'll need to do some reading, and get a good understanding of the Angstrom distro in this aspect.

John Syn

unread,
Mar 27, 2014, 4:20:29 PM3/27/14
to beagl...@googlegroups.com

From: William Hermans <yyr...@gmail.com>
Reply-To: <beagl...@googlegroups.com>
Date: Wednesday, March 26, 2014 at 7:47 PM
To: <beagl...@googlegroups.com>
Subject: Re: [beagleboard] BBB - mounting rootfs from NFS

I am not familiar with how it is done on Ubuntu, but with Debian you need to allow connections to the NFS server. It seems the server is not responding because you do not have this setup correctly. However, as I said I am not too familiar with Ubuntu in this respect, so it is possible I am wrong.

So with Debian . . .

1) Install the NFS server and related packages.
2) sudo nano /etc/hosts.allow and add a line similar to ALL: LOCAL at the end of the file.
3) sudo nano /etc/exports and add a proper and existing export.
     Example:
     /home/username/rootfs xxx.xxx.xxx.xxx(rw,sync,no_root_squash,no_subtree_check)
   
Where username is the normal user you’re logged into, and xxx.xxx.xxx.xxx is the static
    ipaddress you’re going to assign to your Beaglebone Black.
4) sudo exportfs -a
5) sudo nano /etc/default/services and add NFS=1 to the file ( This step may or may not be 
    depreciated ).
6) sudo service nfs-kernel-server start
7) sudo exportfs

Step 7 should give you a print out of all active / correct exports if everything was done correctly.

Again, all the above are necessary steps for setting up a "proper" export on Debian Wheezy. But all of the above are needed for an NFS share to be accessible outside of the server. I am almost 100% sure these steps verbatim will not work on Ubuntu, but there will be similar steps needed to achieve the same goal. Assuming exportfs is an actual NFS tool on Ubuntu, you most certainly can simply start by issuing the command on step 7 to test before going through the whole setup above.
I can confirm that Ubuntu 13.10 uses the same setup.

Regards,
John

cwrse...@gmail.com

unread,
Mar 29, 2014, 10:43:30 AM3/29/14
to beagl...@googlegroups.com

FWIW, my uEnv.txt is below (I don't know how much of its formatting will survive google groups).

uenvcmd=run findfdt; if test $board_name = A335BNLT; then setenv mmcdev 1; mmc dev ${mmcdev}; if mmc rescan; then setenv mmc1 1; else setenv mmc1 0; fi; fi; setenv mmcdev 0; mmc dev ${mmcdev}; if mmc rescan; then setenv mmc0 1; else setenv mmc0 0; fi; if run loadtftp; then run nfsboot; fi;
mmcroot=/dev/mmcblk0p2 rw
ipaddr=192.168.1.17
serverip=192.168.1.20
loadtftp=tftpboot ${loadaddr} public/zImage; tftpboot ${fdtaddr} public/am335x-boneblack.dtb
nfsargs=setenv bootargs console=ttyO0,115200n8 ${optargs} root=/dev/nfs rw nfsroot=192.168.1.20:/rootfs,vers=4 ip=dhcp
autooff=setenv autoload no
nfsboot=echo booting via TFTP and NFS ...; run autooff; run nfsargs; bootz ${loadaddr} - ${fdtaddr}
loadfdt=ext4load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
loaduimage=if ext4load mmc 0:2 ${loadaddr} /boot/zImage; then setenv mmcdev 0; else setenv mmcdev 1; if test $mmc0 = 1; then setenv mmcroot /dev/mmcblk1p2 rw; fi; ext4load mmc 1:2 ${loadaddr} /boot/zImage; fi;
#optargs=quiet nomodeset capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
#optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=BB-SPIDEV0,BB-SPI1CLK

That's with the BBB as 192.168.1.17, and the server as 192.168.1.20.  The server is running NFS and TFTP servers (and an NTP server, come to that).
You _really_ need to use a serial/FTDI converter on tty0 while testing - it's the only way to find out what's going on.

Will


Mahee

unread,
Mar 29, 2014, 12:52:39 PM3/29/14
to beagl...@googlegroups.com
Thanks William, John & Will.

I made a clean install of my VM and started from scratch. 
Instead of using Angstrom I used Ubuntu and now I'm able to use my rootfs from NFS server.

I'm still not sure what went wrong with Angstrom for now I'm happy for Ubuntu, will visit Angstrom again in a week or so. 
I will update my sequence on web in a day or so.

Mahee
Reply all
Reply to author
Forward
0 new messages