Go to previous topic
Go to next topic
Last Post 07 Apr 2010 11:44 AM by  mtom
Booting from TFTP and NFS
 0 Replies
Author Messages
mtom
New Member
New Member
Posts:


--
07 Apr 2010 11:44 AM
    I recently received my board and went through the QuickStart procedure. Everything works just fine there.

    Now I want to configure my host as an NFS server and boot the u-Boot kernel image (uImage) via TFTP. I had to configure my u-Boot settings to use static IP (not sure why I couldn't get DHCP to work). My boot-up process seems to load the uImage just fine, but stops at the "Sending DHCP requests ..."

    Not sure if I have to reconfigure the kernel or if this is an NFS issue. I am using the OMAP PSP tools from TI, and have used their uImage per these instructions: http://wiki.davincidsp.co..._Target_File_System. I have configured my /etc/exports file and know NFS server is working because I have gotten it working on other ARM and SBC systems. Perhaps someone has some insight?

    I am posting my u-Boot settings and my screen output:

    U-Boot > printenv
    bootdelay=3
    baudrate=115200
    ethaddr=00:08:ee:03:b1:6c
    ethact=
    nfshost=192.168.1.2
    rootpath=/home/mtom/workdir/filesys
    serverip=192.168.1.2
    bootfile=uImage
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 2009.01 (Sep 17 2009 - 17:41:56)
    ipaddr=192.168.1.50
    autoload=no
    bootargs=console=ttyS2,115200n8 noinitrd rw ip=192.168.1.50 root=/dev/nfs nfsroot=192.
    168.1.2:/home/mtom/workdir/filesys,nolock mem=32M
    bootcmd=tftp;bootm

    Environment size: 433/65532 bytes



    U-Boot 2009.01 (Sep 17 2009 - 17:41:56)

    I2C: ready
    DRAM: 64 MB
    In: serial
    Out: serial
    Err: serial
    ARM Clock : 300000000 Hz
    DDR Clock : 150000000 Hz
    Net: Ethernet PHY: GENERIC @ 0x00

    U-Boot > boot
    Using device
    TFTP from server 192.168.1.2; our IP address is 192.168.1.50
    Filename 'uImage'.
    Load address: 0xc0700000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################
    done
    Bytes transferred = 1913044 (1d30d4 hex)
    ## Booting kernel from Legacy Image at c0700000 ...
    Image Name: Linux-2.6.32-rc6
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 1912980 Bytes = 1.8 MB
    Load Address: c0008000
    Entry Point: c0008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux...................................................................
    ........................................................... done, booting the kernel.
    Linux version 2.6.32-rc6 (x0029463@psplinux051) (gcc version 4.3.3 (Sourcery G++ Lite
    2009q1-203) ) #1 PREEMPT Thu Dec 10 01:01:22 IST 2009
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: DaVinci DA850/OMAP-L138 EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci da850/omap-l138 variant 0x0
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
    Kernel command line: console=ttyS2,115200n8 noinitrd rw ip=192.168.1.50 root=/dev/nfs
    nfsroot=192.168.1.2:/home/mtom/workdir/filesys,nolock mem=32M
    PID hash table entries: 128 (order: -3, 512 bytes)
    Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
    Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
    Memory: 32MB = 32MB total
    Memory: 28380KB available (3640K code, 272K data, 152K init, 0K highmem)
    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Hierarchical RCU implementation.
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    DaVinci: 144 gpio irqs
    regulator: core version 0.5
    NET: Registered protocol family 16
    WARNING: both McASP and McBSP are enabled, but they share pins.
    Disable one of them.
    bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    regulator: VDCDC1: 3200 <--> 3300 mV
    regulator: VDCDC2: 1750 <--> 3300 mV
    regulator: VDCDC3: 950 <--> 1300 mV
    regulator: LDO1: 1800 mV
    regulator: LDO2: 1150 <--> 1300 mV
    pca953x 1-0020: failed reading register
    pca953x: probe of 1-0020 failed with error -121
    Switching to clocksource timer0_1
    musb_hdrc: version 6.0, cppi4.1-dma, (host+peripheral), debug=0
    Waiting for USB PHY clock good...
    musb_hdrc: USB OTG mode controller at fee00000 using DMA, IRQ 58
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 1024 (order: 1, 8192 bytes)
    TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    TCP: Hash tables configured (established 1024 bind 1024)
    TCP reno registered
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    EMAC: MII PHY configured, RMII PHY will not be functional
    McBSP:Probed McBSP1
    JFFS2 version 2.2. (NAND) ?© 2001-2006 Red Hat, Inc.
    msgmni has been set to 55
    io scheduler noop registered
    io scheduler anticipatory registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel
    Console: switching to colour frame buffer device 60x34
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
    console [ttyS2] enabled
    brd: module loaded
    ahci ahci: forcing PORTS_IMPL to 0x1
    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci
    ata1: SATA max UDMA/133 irq 67
    m25p80 spi1.0: m25p64 (8192 Kbytes)
    Creating 4 MTD partitions on "m25p80":
    0x000000000000-0x000000040000 : "U-Boot"
    0x000000040000-0x000000050000 : "U-Boot Environment"
    0x000000050000-0x0000007f0000 : "Linux"
    0x0000007f0000-0x000000800000 : "MAC Address"
    Read MAC addr from EEPROM: 00:08:ee:03:b1:6c
    davinci SPI Controller driver at 0xfef0e000 (irq = 56) use_dma=1
    console [netcon0] enabled
    netconsole: network logging started
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci ohci.0: DA8xx OHCI
    ohci ohci.0: new USB bus registered, assigned bus number 2
    ohci ohci.0: irq 59, io mem 0x01e25000
    usb usb2: configuration #1 chosen from 1 choice
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    g_ether gadget: using random self ethernet address
    g_ether gadget: using random host ethernet address
    usb0: MAC 6a:9b:6a:87:7c:77
    usb0: HOST MAC 86:29:f2:44:b5:6b
    g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
    g_ether gadget: g_ether ready
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    i2c /dev entries driver
    watchdog watchdog: heartbeat 60 sec
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    usbcore: registered new interface driver usbhid
    usbhid: v2.6:USB HID core driver
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    No device for DAI tlv320aic3x
    asoc: tlv320aic3x <-> davinci-i2s mapping ok
    ALSA device list:
    #0: DA850/OMAP-L138 EVM (tlv320aic3x)
    TCP cubic registered
    NET: Registered protocol family 17
    Clocks: disable unused emac
    regulator_init_complete: incomplete constraints, leaving LDO2 on
    regulator_init_complete: incomplete constraints, leaving LDO1 on
    regulator_init_complete: incomplete constraints, leaving VDCDC3 on
    regulator_init_complete: incomplete constraints, leaving VDCDC2 on
    regulator_init_complete: incomplete constraints, leaving VDCDC1 on
    ata1: SATA link down (SStatus 0 SControl 300)
    emac-mii: probed
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:00, id=7c0f1)
    Sending DHCP requests .
    PHY: 1:00 - Link is Up - 100/Full
    ..... timed out!
    IP-Config: Retrying forever (NFS root)...
    eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:00, id=7c0f1)
    Sending DHCP requests .
    PHY: 1:00 - Link is Up - 100/Full
    .....


    ---