This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x Ethernet over USB, NFS rootfs from 06.00.00.00 template

Other Parts Discussed in Thread: TPS65910, DA8XX

Hi!

I have custom board based on AM335x almost copy of AM335x-EVM-SK the only one big difference on this board absent Ethernet; instead USB is used. USB part is pin-to-pin similar to AM335x-EVM-SDK (UART0, JTAG, USB0 are connected to FT IC and to HUB IC and all these to micro-USB header).

U-Boot is ported and launch fine, HOST is configured and has /tftpboot and /targetNFS folders for upload linux kernel and mount NFS rootfs respectively. From U-Boot I can download kernel from tftp and from NFS folder (the last is just to confirm HOST NFS is work properly). Board has staic IP=10.10.0.2 and HOST IP=10.10.0.1 here is bootargs U-Boot successfully passes to kernel:

console=ttyO0,115200n8 root=/dev/nfs rw ip=10.10.0.2 nfsroot=10.10.0.1:/home/dev/ti-sdk-am335x-evm-06.00.00.00/targetNFS,nolock rw rootfstype=nfs

I've started to port Linux Kernel from 06.00.00.00 SDK from git branch "06.00.00.00-template", all compiled fine and loaded by U-boot from TFTP here is log of booting process since power on time:

U-Boot 2013.01.01-00001-gd5af140-dirty (Jan 31 2014 - 06:21:56)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
Configure interrupts
BackLight Enable
Configure LCD
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, bulk combine, bulk split, 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, bulk combine, bulk split, 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:   usb_ether
Hit any key to stop autoboot:  0
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
4411 bytes read in 3 ms (1.4 MiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
uImage-am335x-evm.bin from server...
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC 00:18:31:e1:d8:b5
HOST MAC de:ad:be:af:00:00
RNDIS ready
musb-hdrc: peripheral reset irq lost!
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
TFTP from server 10.10.0.1; our IP address is 10.10.0.2
Filename 'uImage-am335x-evm.bin'.
Load address: 0x80200000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################
         375 KiB/s
done
Bytes transferred = 3185928 (309d08 hex)
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC 00:18:31:e1:d8:b5
HOST MAC de:ad:be:af:00:00
RNDIS ready
high speed config #2: 2 mA, Ethernet Gadget, using RNDIS
USB RNDIS network up!
Using usb_ether device
host 10.10.0.1 is alive
U-Boot# bootm
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-3.2.0-g9bd25ff-dirty
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3185864 Bytes = 3 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] Linux version 3.2.0-g9bd25ff-dirty (dev@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Tue Feb 4 06:52:42 PST 2014
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: MyCustomAM335x
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES1.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs rw ip=10.10.0.2 nfsroot=10.10.0.1:/home/dev/ti-sdk-am335x-evm-06.00.00.00/targetNFS,nolock rw rootfstype=nfs
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 253296k/253296k available, 8848k 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 : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0595000   (5684 kB)
[    0.000000]       .init : 0xc0595000 - 0xc05d0000   ( 236 kB)
[    0.000000]       .data : 0xc05d0000 - 0xc0638518   ( 418 kB)
[    0.000000]        .bss : 0xc063853c - 0xc0667224   ( 188 kB)
[    0.000000] NR_IRQS:396
[    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: GPTIMER2 at 24000000 Hz
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000122] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[    0.058563] pid_max: default: 32768 minimum: 301
[    0.058685] Security Framework initialized
[    0.058776] Mount-cache hash table entries: 512
[    0.059143] CPU: Testing write buffer coherency: ok
[    0.079589] omap_hwmod: pruss: failed to hardreset
[    0.080718] print_constraints: dummy:
[    0.081085] NET: Registered protocol family 16
[    0.083190] OMAP GPIO hardware version 0.1
[    0.085754] omap_mux_init: Add partition: #1: core, flags: 0
[    0.088226]  omap2_mcspi.1: alias fck already exists
[    0.088439]  omap2_mcspi.2: alias fck already exists
[    0.089447]  edma.0: alias fck already exists
[    0.089477]  edma.0: alias fck already exists
[    0.089508]  edma.0: alias fck already exists
[    0.116302] bio: create slab <bio-0> at 0
[    0.118499] SCSI subsystem initialized
[    0.120178] usbcore: registered new interface driver usbfs
[    0.120483] usbcore: registered new interface driver hub
[    0.120666] usbcore: registered new device driver usb
[    0.122619] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.123718] Switching to clocksource gp timer
[    0.139129] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.139526] NET: Registered protocol family 2
[    0.139709] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.140014] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.140167] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.140258] TCP: Hash tables configured (established 8192 bind 8192)
[    0.140289] TCP reno registered
[    0.140289] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.140319] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.140533] NET: Registered protocol family 1
[    0.140777] RPC: Registered named UNIX socket transport module.
[    0.140777] RPC: Registered udp transport module.
[    0.140808] RPC: Registered tcp transport module.
[    0.140808] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.141052] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.152221] VFS: Disk quotas dquot_6.5.2
[    0.152282] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.152832] msgmni has been set to 494
[    0.155975] alg: No test for stdrng (krng)
[    0.156646] io scheduler noop registered
[    0.156677] io scheduler deadline registered
[    0.156738] io scheduler cfq registered (default)
[    0.158569] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    0.596496] console [ttyO0] enabled
[    0.600708] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    0.608551] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    0.616363] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    0.624145] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    0.631896] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    0.640167] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[    0.656463] brd: module loaded
[    0.664428] loop: module loaded
[    0.667877] i2c-core: driver [tsl2550] using legacy suspend method
[    0.674346] i2c-core: driver [tsl2550] using legacy resume method
[    0.682495] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.689636] omap2-nand driver initializing
[    0.694091] OneNAND driver initializing
[    0.699340] CAN device driver interface
[    0.703338] CAN bus driver for Bosch D_CAN controller 1.0
[    0.709838] usbcore: registered new interface driver zd1201
[    0.715850] usbcore: registered new interface driver cdc_ether
[    0.722076] usbcore: registered new interface driver cdc_eem
[    0.728149] usbcore: registered new interface driver dm9601
[    0.734039] cdc_ncm: 04-Aug-2011
[    0.737548] usbcore: registered new interface driver cdc_ncm
[    0.743469] Initializing USB Mass Storage driver...
[    0.748748] usbcore: registered new interface driver usb-storage
[    0.755004] USB Mass Storage support registered.
[    0.760284] mousedev: PS/2 mouse device common for all mice
[    0.767181] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[    0.774261] am33xx-rtc: already running
[    0.778411] i2c /dev entries driver
[    0.782196] Linux video capture interface: v2.00
[    0.787353] usbcore: registered new interface driver uvcvideo
[    0.793365] USB Video Class driver (1.1.1)
[    0.798614] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    0.805175] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[    0.813873] cpuidle: using governor ladder
[    0.818664] cpuidle: using governor menu
[    0.823364] omap4_aes_mod_init: loading AM33X AES driver
[    0.829040] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[    0.835571] omap4_aes_probe: probe() done
[    0.839965] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[    0.846099] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[    0.857635] omap4_sham_probe: probe() done
[    0.864318] usbcore: registered new interface driver usbhid
[    0.870147] usbhid: USB HID core driver
[    0.874877] usbcore: registered new interface driver snd-usb-audio
[    0.882720] ALSA device list:
[    0.885864]   No soundcards found.
[    0.889404] oprofile: hardware counters not available
[    0.894683] oprofile: using timer interrupt.
[    0.899169] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[    0.905914] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.911590] TCP cubic registered
[    0.914978] NET: Registered protocol family 17
[    0.919616] can: controller area network core (rev 20090105 abi 8)
[    0.926177] NET: Registered protocol family 29
[    0.930816] can: raw protocol (rev 20090105)
[    0.935272] can: broadcast manager protocol (rev 20090105 t)
[    0.941192] Registering the dns_resolver key type
[    0.946197] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.954223] ThumbEE CPU extension supported.
[    0.958740] mux: Failed to setup hwmod io irq -22
[    0.964355] Power Management for AM33XX family
[    0.969177] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    0.975860] Copied the M3 firmware to UMEM
[    0.980224] Cortex M3 Firmware Version = 0x181
[    0.985382] sr_init: platform driver register failed
[    0.993988] clock: disabling unused clocks to save power
[    1.012481] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:48 UTC (946684848)
[   13.135864] VFS: Unable to mount root fs via NFS, trying floppy.
[   13.142211] List of all partitions:
[   13.145904] No filesystem could mount root, tried:  nfs
[   13.151367] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[   13.160003] Backtrace:
[   13.162597] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c0412afc>] (dump_stack+0x18/0x1c)
[   13.171386]  r6:00008000 r5:c04f4ce0 r4:c063b188 r3:c05f200c
[   13.177337] [<c0412ae4>] (dump_stack+0x0/0x1c) from [<c0412cf8>] (panic+0x64/0x194)
[   13.185333] [<c0412c94>] (panic+0x0/0x194) from [<c0595cf8>] (mount_block_root+0x1e4/0x228)
[   13.194061]  r3:cf01df0c r2:00000020 r1:cf01df40 r0:c04f4ce0
[   13.199981]  r7:c04f4d48
[   13.202636] [<c0595b14>] (mount_block_root+0x0/0x228) from [<c0595ef0>] (mount_root+0xc8/0xe8)
[   13.211639] [<c0595e28>] (mount_root+0x0/0xe8) from [<c059607c>] (prepare_namespace+0x16c/0x1c0)
[   13.220794]  r4:c06385a0
[   13.223449] [<c0595f10>] (prepare_namespace+0x0/0x1c0) from [<c05958fc>] (kernel_init+0xf4/0x120)
[   13.232727]  r5:c05cf480 r4:c05cf480
[   13.236480] [<c0595808>] (kernel_init+0x0/0x120) from [<c0040a9c>] (do_exit+0x0/0x65c)
[   13.244720]  r5:c0595808 r4:00000000



And that is all so far, I've passed successfully bootargs to Kernel (highlighted string above) and can't figure out how to include USB/RNDIS or something like this into board files of kernel. As reference I use /arch/arm/mach-omap2/board-am335xevm.c . I've read "sitara_boot_camp_uboot_linux_kernel_board_port.ppt" already, but there is sample how to connect Ethernet, but I need Ethernet over USB for NFS rootfs.

Please show me clear road map how to change board-am335xevm.c (and related sources if necessary) for NFS roofs over USB.

  • Hi,

    Can you please verify that your targetNFS is exported with the correct permissions inside your /etc/exports file?

    Best regards,
    Miroslav

  • Hi Miroslav,

    Thanks for reply, here is /etc/exports file content:

    /home/dev/ti-sdk-am335x-evm-06.00.00.00/targetNFS *(rw,no_root_squash,insecure,no_subtree_check,sync)

    also, as I mentioned above, I can download linux kernel from NFS from U-boot prompt, so seems HOST's settings are correct.

    The main thing is I've started to use the base point in linux git repo: template (06.00.00.00-template), there are no any settings. If i'm correct firstly I should set-up (register some how?) USB and something like RNDIS in source files (like /arch/arm/mach-omap2/board-am335xevm.c). Also, I can't understand where  FDT blob for AM335x is located, may be I should edit it too? I saw in 07.00.00.00 Linux SDK (not available yet from TI official distrib, but present on TI's git repo) there is FDT blob, but in 06.00.00.00 is abscent. So it is not clear to me how to "connect"/tune/install/say to linux kernel to use USB as ethernet.

    Thanks!

  • I'll escalate this to the factory team and see if they can help.

    Best regards,
    Miroslav

  • Miroslav,

    thanks a lot! Can't wait to find solution

  • Vasiliy,


    The standard defconfig has the usb mass storage gadget  built in. You need to change that config to remove the mass storage, and include the ethernet gadget, g_ether. Especially if you want to mount over NFS.

    Hope this helps...

  • Hi Ron,

    Thanks for reply.

    So,

    Steps done in Ubuntu command line:


    ubuntu$ make mrpropper

    ubuntu$ make ARCH=arm am335x_evm_defconfig

    ubuntu$ make ARCH=arm menuconfig


    Steps in kernel config menu:


    (set) Device Drivers  ---> USB support  ---> USB Gadget Support  ---> [*] RNDIS support

    (unset) Device Drivers  ---> USB support  ---> USB Gadget Support  ---> [ ] Mass Storage Gadget

    (unset) Device Drivers  ---> USB support  ---> [ ]USB Mass Storage support


    Is it enough or there is some extra steps? And thanks for help!


    Thanks,

    Vasiliy

  • One more suggestion, make sure you are not building in the CPSW driver since you do not have Ethernet on your board.

    Steve K.

  • Hi Steve,

    Ahh, yes, you are right - thanks a lot for good advise!

    Thanks,

    V

  • No result :(

    I've got clear linux-3.2.0-psp04.06.00.11 to with /mach-omap2/board-am335xevm.c where LCD, gpio, etc. are assigned, then via menuconfig unset CPSW, set ethernet gadget and below is result of linux boot, still no NFS rottfs.

    I've attached .config and board-am335xevm.c  what to change there to mount rootfs  NFS via USB Ethernet?

    Did somebody achieve this goal?

    p.s. also found this theme not solved (NFS mount over usbnet on AM335x)   is it so fantastic task and nobody have never solved it in TI or TI eco system?

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (dev@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 Fri Feb 7 12:18:32 PST 2014
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs rw ip=10.10.0.2 nfsroot=10.10.0.1:/home/dev/ti-sdk-am335x-evm-06.00.00.00/targetNFS,nolock rw rootfstype=nfs
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 256MB = 256MB total
    [    0.000000] Memory: 253220k/253220k available, 8924k 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 : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc058a000   (5640 kB)
    [    0.000000]       .init : 0xc058a000 - 0xc05e3000   ( 356 kB)
    [    0.000000]       .data : 0xc05e4000 - 0xc064b458   ( 414 kB)
    [    0.000000]        .bss : 0xc064b47c - 0xc067a1a4   ( 188 kB)
    [    0.000000] NR_IRQS:396
    [    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: GPTIMER2 at 24000000 Hz
    [    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000122] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058532] pid_max: default: 32768 minimum: 301
    [    0.058654] Security Framework initialized
    [    0.058776] Mount-cache hash table entries: 512
    [    0.059143] CPU: Testing write buffer coherency: ok
    [    0.079620] omap_hwmod: pruss: failed to hardreset
    [    0.080749] print_constraints: dummy:
    [    0.081115] NET: Registered protocol family 16
    [    0.083221] OMAP GPIO hardware version 0.1
    [    0.085784] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.087738]  omap_i2c.1: alias fck already exists
    [    0.088653]  omap2_mcspi.1: alias fck already exists
    [    0.088897]  omap2_mcspi.2: alias fck already exists
    [    0.089813]  edma.0: alias fck already exists
    [    0.089843]  edma.0: alias fck already exists
    [    0.089874]  edma.0: alias fck already exists
    [    0.115905] bio: create slab <bio-0> at 0
    [    0.118103] SCSI subsystem initialized
    [    0.119781] usbcore: registered new interface driver usbfs
    [    0.120086] usbcore: registered new interface driver hub
    [    0.120300] usbcore: registered new device driver usb
    [    0.120605] registerd cppi-dma Intr @ IRQ 17
    [    0.120605] Cppi41 Init Done Qmgr-base(d087a000) dma-base(d0878000)
    [    0.120605] Cppi41 Init Done
    [    0.120635] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.120941] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.122070] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.123901] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.126312] print_constraints: VRTC:
    [    0.127777] print_constraints: VIO: at 1500 mV
    [    0.130096] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [    0.132385] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.133361] print_constraints: VDD3: 5000 mV
    [    0.134796] print_constraints: VDIG1: at 1800 mV
    [    0.136199] print_constraints: VDIG2: at 1800 mV
    [    0.137603] print_constraints: VPLL: at 1800 mV
    [    0.139038] print_constraints: VDAC: at 1800 mV
    [    0.140441] print_constraints: VAUX1: at 1800 mV
    [    0.141876] print_constraints: VAUX2: at 3300 mV
    [    0.143310] print_constraints: VAUX33: at 3300 mV
    [    0.144714] print_constraints: VMMC: at 3300 mV
    [    0.145233] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.146636] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.147766] Switching to clocksource gp timer
    [    0.163208] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.163391] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.163696] MUSB0 controller's USBSS revision = 4ea20800
    [    0.164642] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using DMA, IRQ 18
    [    0.164794] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.165100] MUSB1 controller's USBSS revision = 4ea20800
    [    0.165527] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.165618] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.165740] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.165740] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.165771] usb usb1: Product: MUSB HDRC host driver
    [    0.165771] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.165802] usb usb1: SerialNumber: musb-hdrc.1
    [    0.166564] hub 1-0:1.0: USB hub found
    [    0.166595] hub 1-0:1.0: 1 port detected
    [    0.167114] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using DMA, IRQ 19
    [    0.167541] NET: Registered protocol family 2
    [    0.167724] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.168121] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.168273] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.168365] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.168365] TCP reno registered
    [    0.168395] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.168426] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.168609] NET: Registered protocol family 1
    [    0.168884] RPC: Registered named UNIX socket transport module.
    [    0.168914] RPC: Registered udp transport module.
    [    0.168914] RPC: Registered tcp transport module.
    [    0.168914] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.169158] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.180328] VFS: Disk quotas dquot_6.5.2
    [    0.180389] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.180938] msgmni has been set to 494
    [    0.184051] alg: No test for stdrng (krng)
    [    0.184753] io scheduler noop registered
    [    0.184753] io scheduler deadline registered
    [    0.184844] io scheduler cfq registered (default)
    [    0.186004] Could not set LED4 to fully on
    [    0.187744] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.834075] console [ttyO0] enabled
    [    0.838317] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.846160] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.853973] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.861755] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.869506] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.877746] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.894104] brd: module loaded
    [    0.902160] loop: module loaded
    [    0.905639] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.912109] i2c-core: driver [tsl2550] using legacy resume method
    [    0.918548] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.978363] No daughter card found
    [    0.981964] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.997131] Board name: A335X_SK
    [    1.000518] Board version: 1.2B
    [    1.003784] The board is a AM335x Starter Kit.
    [    1.009216]  omap_hsmmc.0: alias fck already exists
    [    1.014617]  omap_hsmmc.1: alias fck already exists
    [    1.020660]  da8xx_lcdc.0: alias fck already exists
    [    1.026123] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-4.3-ATXI#-T-1 panel
    [    1.042205] Console: switching to colour frame buffer device 60x34
    [    1.057128]  davinci-mcasp.1: alias fck already exists
    [    1.062896] Configure Bluetooth Enable pin...
    [    1.070220] registered am33xx_sr device
    [    1.074462] _regulator_get: 1-0018 supply Vdd not found, using dummy regulator
    [    1.082092] _regulator_get: 1-0018 supply Vdd_IO not found, using dummy regulator
    [    1.110137] lis3lv02d: unknown sensor type 0x87
    [    1.114929] lis3lv02d_i2c: probe of 1-0018 failed with error -22
    [    1.123687] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.130859] omap2-nand driver initializing
    [    1.135314] OneNAND driver initializing
    [    1.140594] CAN device driver interface
    [    1.144622] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.198425] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.204864] davinci_mdio davinci_mdio.0: no live phy, scanning all
    [    1.211669] davinci_mdio: probe of davinci_mdio.0 failed with error -5
    [    1.218841] usbcore: registered new interface driver zd1201
    [    1.224822] usbcore: registered new interface driver cdc_ether
    [    1.231140] usbcore: registered new interface driver cdc_eem
    [    1.237213] usbcore: registered new interface driver dm9601
    [    1.243072] cdc_ncm: 04-Aug-2011
    [    1.246612] usbcore: registered new interface driver cdc_ncm
    [    1.253021] mousedev: PS/2 mouse device common for all mice
    [    1.259826] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
    [    1.268463] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    1.275451] am33xx-rtc: already running
    [    1.279663] i2c /dev entries driver
    [    1.283691] Linux video capture interface: v2.00
    [    1.288848] usbcore: registered new interface driver uvcvideo
    [    1.294860] USB Video Class driver (1.1.1)
    [    1.319396] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.327911] cpuidle: using governor ladder
    [    1.332672] cpuidle: using governor menu
    [    1.341522] omap4_aes_mod_init: loading AM33X AES driver
    [    1.347167] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [    1.353729] omap4_aes_probe: probe() done
    [    1.358154] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [    1.364318] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [    1.376037] omap4_sham_probe: probe() done
    [    1.382751] usbcore: registered new interface driver usbhid
    [    1.388610] usbhid: USB HID core driver
    [    1.393280] tiadc tiadc: attached adc driver
    [    1.401641] usbcore: registered new interface driver snd-usb-audio
    [    1.410247] _regulator_get: 1-001b supply IOVDD not found, using dummy regulator
    [    1.418029] _regulator_get: 1-001b supply DVDD not found, using dummy regulator
    [    1.425750] _regulator_get: 1-001b supply AVDD not found, using dummy regulator
    [    1.433410] _regulator_get: 1-001b supply DRVDD not found, using dummy regulator
    [    1.443969] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [    1.451721] ALSA device list:
    [    1.454803]   #0: AM335X EVM
    [    1.457794] oprofile: hardware counters not available
    [    1.463104] oprofile: using timer interrupt.
    [    1.467590] nf_conntrack version 0.5.0 (3956 buckets, 15824 max)
    [    1.474365] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.480072] TCP cubic registered
    [    1.483428] NET: Registered protocol family 17
    [    1.488067] can: controller area network core (rev 20090105 abi 8)
    [    1.494628] NET: Registered protocol family 29
    [    1.499298] can: raw protocol (rev 20090105)
    [    1.503753] can: broadcast manager protocol (rev 20090105 t)
    [    1.509704] Registering the dns_resolver key type
    [    1.514709] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    1.522705] ThumbEE CPU extension supported.
    [    1.527221] mux: Failed to setup hwmod io irq -22
    [    1.532836] Power Management for AM33XX family
    [    1.537689] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    1.544372] Copied the M3 firmware to UMEM
    [    1.548767] Cortex M3 Firmware Version = 0x181
    [    1.553527] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [    1.561370] smartreflex: probe of smartreflex failed with error -22
    [    1.571533] sr_init: platform driver register failed
    [    1.581756] clock: disabling unused clocks to save power
    [    1.596252] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    1.606811] mmc0: new high speed SD card at address b368
    [    1.613159] mmcblk0: mmc0:b368 00000 1.83 GiB
    [    1.619598]  mmcblk0: p1 p2
    [    1.696807] input: gpio-keys as /devices/platform/gpio-keys/input/input1
    [    1.704437] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 11:35:12 UTC (946726512)
    [    1.732940] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    1.751953] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.758605] mmc1: new SDIO card at address 0001
    [   13.830139] VFS: Unable to mount root fs via NFS, trying floppy.
    [   13.836486] List of all partitions:
    [   13.840209] b300         1920000 mmcblk0  driver: mmcblk
    [   13.845764]   b301           72261 mmcblk0p1 00000000-0000-0000-0000-000000000000
    [   13.853607]   b302         1839442 mmcblk0p2 00000000-0000-0000-0000-000000000000
    [   13.861419] No filesystem could mount root, tried:  nfs
    [   13.866882] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    [   13.875518] Backtrace:
    [   13.878082] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c040a1f8>] (dump_stack+0x18/0x1c)
    [   13.886901]  r6:00008000 r5:c04eb720 r4:c064e188 r3:c0607f0c
    [   13.892852] [<c040a1e0>] (dump_stack+0x0/0x1c) from [<c040a434>] (panic+0x64/0x194)
    [   13.900848] [<c040a3d0>] (panic+0x0/0x194) from [<c058acf8>] (mount_block_root+0x1e4/0x228)
    [   13.909576]  r3:cf01df0c r2:00000020 r1:cf01df40 r0:c04eb720
    [   13.915496]  r7:c04eb788
    [   13.918151] [<c058ab14>] (mount_block_root+0x0/0x228) from [<c058aef0>] (mount_root+0xc8/0xe8)
    [   13.927154] [<c058ae28>] (mount_root+0x0/0xe8) from [<c058b07c>] (prepare_namespace+0x16c/0x1c0)
    [   13.936309]  r4:c064b4e0
    [   13.938964] [<c058af10>] (prepare_namespace+0x0/0x1c0) from [<c058a8fc>] (kernel_init+0xf4/0x120)
    [   13.948242]  r5:c05e2adc r4:c05e2adc
    [   13.951995] [<c058a808>] (kernel_init+0x0/0x120) from [<c004203c>] (do_exit+0x0/0x65c)
    [   13.960266]  r5:c058a808 r4:00000000

  • I'll be looking at this over the weekend and will post my results.

    Steve K.

  • Thank you very much, Steve!

  • You have to build g_ether module into uImage, not as module. Until the rootfs got mounted g_ether.ko cannot be loaded, so NFS failed.

  • Hi Bin

    If I'm correct "M" in menuconfig means module "*" - static. Here is my menuconfig view:

    and here is .config 

    So, seems it is statically compiled, or not?

  • WOW! Bin You were right inside "*" there were marked "M", now after re-compile NFS rootfs work!

    Thanks to all helpers!

  • Hi

    I know that this is an old post, but I am having a similar issue as you did, the RNDIS device doesn't come up when the Kernel starts, even after including the g_ether module, I was wondering whether you can tell me what kernel version are you using?

    Thanks in advance :)

  • Nas Makkiya,

    Based on the config view, this is for a 3.2 based kernel that came with SDK v6.0 and prior. For instructions to get this to work on SDK 7.0, which used a 3.12 based kernel, please see: