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.

NFS problem on Dm355 using GIT kernel



Hello ,

I am using Dm355 EVM and GIT kernel.

I have created a fresh filesystem as described here :

http://wiki.davincidsp.com/index.php/Creating_a_Root_File_System_for_Linux_on_OMAP35x

I have tested tftpboot as well as NFS-server with my Monta-Vista,it works perfect.

But now when I am trying to boot from TFTP using my own file system on NFS ...I am getting following errors....

I have checked the uImage configurations and root path they are ok...

Here is my log:

UBL: detected valid U-Boot magic number
UBL: booting to U-Boot


U-Boot 1.2.0 (Feb  2 2008 - 23:52:10)

DRAM:  128 MB
NAND:  NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V
8-bit)
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
2048 MiB
In:    serial
Out:   serial
Err:   serial
ARM Clock :- 216MHz
DDR Clock :- 171MHz
Hit any key to stop autoboot:  0
DM355 EVM #  setenv bootcmd 'dhcp;bootm'
DM355 EVM # setenv serverip 192.168.2.2
DM355 EVM # setenv bootfile uImage
DM355 EVM # setenv rootpath /home/digant/FS/target
DM355 EVM # setenv nfshost 192.168.2.2
DM355 EVM # setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev
/nfs nfsroot=$(nfshost):$(rootpath),nolock mem=116M
DM355 EVM # printenv
bootdelay=3
baudrate=115200
filesize=248448
fileaddr=82000000
stdin=serial
stdout=serial
stderr=serial
videostd=ntsc
bootcmd=dhcp;bootm
serverip=192.168.2.2
bootfile=uImage
rootpath=/home/digant/FS/target
nfshost=192.168.2.2
bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.16
8.2.2:/home/digant/FS/target,nolock mem=116M

Environment size: 350/16380 bytes
DM355 EVM # boot
BOOTP broadcast 1
DHCP client bound to address 192.168.2.229
TFTP from server 192.168.2.2; our IP address is 192.168.2.229
Filename 'uImage'.
Load address: 0x80700000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############################
done
Bytes transferred = 2146816 (20c200 hex)
## Booting image at 80700000 ...
   Image Name:   Linux-2.6.30-davinci1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2146752 Bytes =  2 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
.......................................................................... done,
 booting the kernel.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Linux version 2.6.30-davinci1 (digant@digant-desktop) (gcc versio
n 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #3 Wed Jul 15 10:16:29 IST 2009
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: DaVinci DM355 EVM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] DaVinci dm355 variant 0x0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 29464
[    0.000000] Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=dhcp r
oot=/dev/nfs nfsroot=192.168.2.2:/home/digant/FS/target,nolock mem=116M
[    0.000000] NR_IRQS:224
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.020000] Memory: 116MB = 116MB total
[    0.020000] Memory: 112924KB available (3924K code, 594K data, 112K init, 0K
highmem)
[    0.020000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, N
odes=1
[    0.020000] Calibrating delay loop... 107.31 BogoMIPS (lpj=536576)
[    0.250000] Security Framework initialized
[    0.250000] SELinux:  Disabled at boot.
[    0.250000] Mount-cache hash table entries: 512
[    0.250000] Initializing cgroup subsys ns
[    0.250000] Initializing cgroup subsys cpuacct
[    0.250000] CPU: Testing write buffer coherency: ok
[    0.260000] DaVinci: 104 gpio irqs
[    0.260000] net_namespace: 1028 bytes
[    0.260000] NET: Registered protocol family 16
[    0.320000] bio: create slab <bio-0> at 0
[    0.340000] NET: Registered protocol family 8
[    0.340000] NET: Registered protocol family 20
[    0.350000] NET: Registered protocol family 2
[    0.350000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.350000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.360000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.360000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.360000] TCP reno registered
[    0.360000] NET: Registered protocol family 1
[    0.360000] audit: initializing netlink socket (disabled)
[    0.360000] type=2000 audit(0.360:1): initialized
[    0.540000] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.550000] JFS: nTxBlock = 883, nTxLock = 7067
[    0.550000] msgmni has been set to 220
[    0.560000] alg: No test for stdrng (krng)
[    0.560000] io scheduler noop registered
[    0.560000] io scheduler anticipatory registered
[    0.560000] io scheduler deadline registered
[    0.560000] io scheduler cfq registered (default)
[    1.750000] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.770000] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[    1.770000] console [ttyS0] enabled
[    2.040000] serial8250 serial8250.0: unable to register port at index 1 (IO0
MEM1c20400 IRQ41): -22
[    2.050000] serial8250 serial8250.0: unable to register port at index 2 (IO0
MEM1e06000 IRQ14): -22
[    2.110000] brd: module loaded
[    2.110000] SSFDC read-only Flash Translation layer
[    2.120000] mice: PS/2 mouse device common for all mice
[    2.130000] cpuidle: using governor ladder
[    2.140000] cpuidle: using governor menu
[    2.150000] RPC: Registered udp transport module.
[    2.150000] RPC: Registered tcp transport module.
[    2.170000] registered taskstats version 1
[    2.170000] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.180000] VFS: Cannot open root device "nfs" or unknown-block(0,255)
[    2.190000] Please append a correct "root=" boot option; here are the availab
le partitions:
[    2.190000] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,255)
[    2.200000] Backtrace:
[    2.210000] [<c00283d4>] (dump_backtrace+0x0/0x10c) from [<c03173b4>] (dump_s
tack+0x18/0x1c)
[    2.210000]  r6:c042368c r5:00008000 r4:c6c1bf58
[    2.220000] [<c031739c>] (dump_stack+0x0/0x1c) from [<c0317404>] (panic+0x4c/
0x13c)
[    2.230000] [<c03173b8>] (panic+0x0/0x13c) from [<c0008f14>] (mount_block_roo
t+0x188/0x2c8)
[    2.240000]  r3:00000000 r2:c6c7e1ac r1:c6c1bf58 r0:c03a3f2c
[    2.240000] [<c0008d8c>] (mount_block_root+0x0/0x2c8) from [<c00090a8>] (moun
t_root+0x54/0x6c)
[    2.250000] [<c0009054>] (mount_root+0x0/0x6c) from [<c00091d0>] (prepare_nam
espace+0x110/0x1d0)
[    2.260000]  r5:c002283c r4:c0423284
[    2.260000] [<c00090c0>] (prepare_namespace+0x0/0x1d0) from [<c0008478>] (ker
nel_init+0xd0/0xfc)
[    2.270000]  r6:c0020fb0 r5:c0020c58 r4:c0020fb0
[    2.280000] [<c00083a8>] (kernel_init+0x0/0xfc) from [<c003acfc>] (do_exit+0x
0/0x6ac)
[    2.290000]  r6:00000000 r5:00000000 r4:00000000

Please help...if any one has readymade filesystem with minimum configuration please give it to me or any place where I can find the method to create my own filesystem fot DM355 +GIT ..

Thank you .

  • After git-pull , I had the linux kernel 2.6.30 and after rebuilding all the File system over NFS is mounted successfully.

    but this time after mounting the file system created using busybox,  it was giving error like it was requesting module and there isn't any ...

    So, I did

    make modules_install

    and copied the module files in to the  directory  /lib/modules of the target shared file system.

    But still its not working ...please help

     

  • after doing 'make modules_install', did you see any modules (*.ko files) being copied over to your targets /lib/modules directory?  Which modules in specific is the system trying to load?

  • Thank ypu for a reply...

    Yes, I have got all *.ko files as per my configurations in my ubuntu's  /lib/modules folder...and I copied them in to target  file system (/lib/moudules)shared with the DM355 over network  ..

    here is my log ....

     

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    U-Boot 1.2.0 (Feb  2 2008 - 23:52:10)

     

    DRAM:  128 MB

    NAND:  NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V

    8-bit)

    Bad block table found at page 524224, version 0x01

    Bad block table found at page 524160, version 0x01

    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)

    Bad block table found at page 524224, version 0x01

    Bad block table found at page 524160, version 0x01

    2048 MiB

    In:    serial

    Out:   serial

    Err:   serial

    ARM Clock :- 216MHz

    DDR Clock :- 171MHz

    Hit any key to stop autoboot:  0

    DM355 EVM # setenv bootcmd 'dhcp;bootm'

    DM355 EVM # setenv serverip 192.168.2.2

    DM355 EVM # setenv bootfile uImage

    DM355 EVM # setenv rootpath /home/digant/FS/target

    DM355 EVM # setenv nfshost 192.168.2.2

    DM355 EVM # setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev

    /nfs nfsroot=$(nfshost):$(rootpath),nolock mem=116M

    DM355 EVM # boot

    BOOTP broadcast 1

    DHCP client bound to address 192.168.2.229

    TFTP from server 192.168.2.2; our IP address is 192.168.2.229

    Filename 'uImage'.

    Load address: 0x80700000

    Loading: #################################################################

             #################################################################

             #################################################################

             #################################################################

             ######################

    done

    Bytes transferred = 1439724 (15f7ec hex)

    ## Booting image at 80700000 ...

       Image Name:   Linux-2.6.30-davinci1Digant_def-

       Image Type:   ARM Linux Kernel Image (uncompressed)

       Data Size:    1439660 Bytes =  1.4 MB

       Load Address: 80008000

       Entry Point:  80008000

       Verifying Checksum ... OK

    OK

     

    Starting kernel ...

     

    Uncompressing Linux.............................................................

    ................................. done, booting the kernel.

    Linux version 2.6.30-davinci1Digant_def-06006-g9d43500-dirty (digant@digant-desk

    top) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #2 PREEMPT Thu Jul 16 15

    :29:01 IST 2009

    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

    CPU: VIVT data cache, VIVT instruction cache

    Machine: DaVinci DM355 EVM

    Memory policy: ECC disabled, Data cache writeback

    DaVinci dm355 variant 0x0

    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 29464

    Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nf

    sroot=192.168.2.2:/home/digant/FS/target,nolock mem=116M

    NR_IRQS:224

    PID hash table entries: 512 (order: 9, 2048 bytes)

    Console: colour dummy device 80x30

    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

    Memory: 116MB = 116MB total

    Memory: 114488KB available (2652K code, 290K data, 120K init, 0K highmem)

    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

    Calibrating delay loop... 107.31 BogoMIPS (lpj=536576)

    Mount-cache hash table entries: 512

    CPU: Testing write buffer coherency: ok

    DaVinci: 104 gpio irqs

    net_namespace: 928 bytes

    NET: Registered protocol family 16

    MUX: initialized INT_EDMA_CC

    MUX: Setting register INT_EDMA_CC

               INTMUX (0x00000018) = 0x00000000 -> 0x00000004

    bio: create slab <bio-0> at 0

    dm355evm_msp 1-0025: firmware v.A5, imager as video-in

    NET: Registered protocol family 2

    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

    TCP established hash table entries: 4096 (order: 3, 32768 bytes)

    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

    TCP: Hash tables configured (established 4096 bind 4096)

    TCP reno registered

    NET: Registered protocol family 1

    msgmni has been set to 223

    io scheduler noop registered

    io scheduler anticipatory registered (default)

    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled

    serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A

    console [ttyS0] enabled

    serial8250 serial8250.0: unable to register port at index 1 (IO0 MEM1c20400 IRQ4

    1): -22

    serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1e06000 IRQ1

    4): -22

    brd: module loaded

    dm9000 Ethernet Driver, V1.31

    eth0 (dm9000): not using net_device_ops yet

    eth0: dm9000a at c7814000,c7818002 IRQ 65 MAC: 00:0e:99:02:c7:66 (eeprom)

    console [netcon0] enabled

    netconsole: network logging started

    i2c /dev entries driver

    TCP cubic registered

    NET: Registered protocol family 17

    RPC: Registered udp transport module.

    RPC: Registered tcp transport module.

    Clocks: disable unused vpss_master

    Clocks: disable unused vpss_slave

    Clocks: disable unused mjcp

    Clocks: disable unused uart1

    Clocks: disable unused uart2

    Clocks: disable unused asp0

    Clocks: disable unused asp1

    Clocks: disable unused mmcsd0

    Clocks: disable unused mmcsd1

    Clocks: disable unused spi0

    Clocks: disable unused spi1

    Clocks: disable unused spi2

    Clocks: disable unused pwm0

    Clocks: disable unused pwm1

    Clocks: disable unused pwm2

    Clocks: disable unused pwm3

    Clocks: disable unused timer1

    Clocks: disable unused timer3

    Clocks: disable unused rto

    Clocks: disable unused usb

    eth0: link down

    eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

    Sending DHCP requests ., OK

    IP-Config: Got DHCP answer from 192.168.2.2, my address is 192.168.2.229

    IP-Config: Complete:

         device=eth0, addr=192.168.2.229, mask=255.255.255.0, gw=192.168.2.1,

         host=192.168.2.229, domain=example.org, nis-domain=(none),

         bootserver=192.168.2.2, rootserver=192.168.2.2, rootpath=

    Looking up port of RPC 100003/2 on 192.168.2.2

    Looking up port of RPC 100005/1 on 192.168.2.2

    VFS: Mounted root (nfs filesystem) on device 0:13.

    Freeing init memory: 120K

    request_module: runaway loop modprobe binfmt-464c

    request_module: runaway loop modprobe binfmt-464c

    request_module: runaway loop modprobe binfmt-464c

    request_module: runaway loop modprobe binfmt-464c

    request_module: runaway loop modprobe binfmt-464c

     

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Can you please explain me the systematic approch to design a file system ..I am new to this and I am using

    open source kernel git tree verion 2.6.30...over tftp

    Cross compiling tool chain  : Code sourcery ,

    and busy box to generate file system.

    Thank you

  • have you got the solution to this problem i am also having same problem . please guide me

     

  • Did anyone solve the:

    request_module: runaway loop modprobe binfmt-464c

    problem?


    ~Stephen