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.

Unable to boot from TFTP - AM335x Starter Kit

Other Parts Discussed in Thread: TPS65910, DA8XX

Hi,

now I have another problem - AM335x Starter KIt is trying to boot from my router's IP address (192.168.1.1) - that is wrong - It should be my computer's IP address which is 192.168.1.103. AM335x is 192.168.1.101 (ETH0). Router DHCP is enabled.

I have seen few topics about this problem but I am not sure, what is a clear/final solution (where is a bug, what should I do, is anybody from TI working on this problem?).

Complete listing (after running script setup.sh):

edo@edo-desktop:~$ cd ti-sdk-am335x-evm-05.06.00.00
edo@edo-desktop:~/ti-sdk-am335x-evm-05.06.00.00$ sudo ./setup.sh
[sudo] password for edo:

--------------------------------------------------------------------------------
TISDK setup script

This script will set up your development host for SDK development.
Parts of this script require administrator priviliges (sudo access).
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Verifying Linux host distribution
Ubuntu 10.04 LTS or Ubuntu 12.04 LTS is being used, continuing..
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will make sure you have the proper host support packages installed
using the following command: sudo apt-get install xinetd tftpd nfs-kernel-server minicom build-essential libncurses5-dev uboot-mkimage autoconf automake

Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue

Branje seznama paketov... Narejeno
Gradnja drevesa odvisnosti        
Branje podatkov o stanju... Narejeno
Najnovejša različica xinetd je že nameščena.
Najnovejša različica tftpd je že nameščena.
Najnovejša različica nfs-kernel-server je že nameščena.
Najnovejša različica minicom je že nameščena.
Najnovejša različica build-essential je že nameščena.
Najnovejša različica libncurses5-dev je že nameščena.
Najnovejša različica uboot-mkimage je že nameščena.
Najnovejša različica autoconf je že nameščena.
Najnovejša različica automake je že nameščena.
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.32-38 linux-headers-2.6.32-38-generic
Uporabite 'apt-get autoremove' za njihovo odstranitev.
0 nadgrajenih, 0 na novo nameščenih, 0 bo odstranjenih in 8 ne nadgrajenih.

Package verification and installation successfully completed
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
In which directory do you want to install the target filesystem?(if this directory does not exist it will be created)
[ /home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS ]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will extract the target filesystem to /home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS

Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue
/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS already exists
(r) rename existing filesystem (o) overwrite existing filesystem (s) skip filesystem extraction
[r] o
Old /home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS removed

Successfully extracted tisdk-rootfs-image-am335x-evm.tar.gz to /home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will set up the SDK to install binaries in to:
    /home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS/home/root/am335x-evm

The files will be available from /home/root/am335x-evm on the target.

This setting can be changed later by editing Rules.make and changing the
EXEC_DIR or DESTDIR variable (depending on your SDK).

Press return to continue
Rules.make edited successfully..
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will export your target filesystem for NFS access.

Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue
/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS already NFS exported, skipping..

 * Stopping NFS kernel daemon                                                                                                                                                                                                      [ OK ]
 * Unexporting directories for NFS kernel daemon...                                                                                                                                                                    [ OK ]
 * Exporting directories for NFS kernel daemon...                                                                                                                                                                         [ OK ]
 * Starting NFS kernel daemon                                                                                                                                                                                                         [ OK ]
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Which directory do you want to be your tftp root directory?(if this directory does not exist it will be created for you)
[ /tftpboot ]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will set up the tftp server in the /tftpboot directory.

Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue

/tftpboot already exists, not creating..

/tftpboot/uImage-am335x-evm.bin already exists. The existing installed file can be renamed and saved under the new name.
(r) rename (o) overwrite (s) skip copy
[r] o

Successfully overwritten uImage-am335x-evm.bin in tftp root directory /tftpboot

/etc/xinetd.d/tftp already exists..
/tftpboot already exported for TFTP, skipping..

Restarting tftp server
 * Stopping internet superserver xinetd                                                                                                                                                                                            [ OK ]
 * Starting internet superserver xinetd                                                                                                                                                                                              [ OK ]
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will set up minicom (serial communication application) for
SDK development


For boards that contain a USB-to-Serial converter on the board (BeagleBone),
the port used for minicom will be automatically detected. By default Ubuntu
will not recognize this device. Setup will add a udev rule to
/etc/udev/ so that from now on it will be recognized as soon as the board is
plugged in.

For other boards, the serial will defualt to /dev/ttyS0. Please update based
on your setup.
--------------------------------------------------------------------------------


NOTE: For boards with a built-in USB to Serial adapter please press
      ENTER at the prompt below.  The correct port will be determined
      automatically at a later step.  For all other boards select
      the serial port that the board is connected to
Which serial port do you want to use with minicom?
[ /dev/ttyS0 ]

Copied existing /home/edo/.minirc.dfl to /home/edo/.minirc.dfl.old

Configuration saved to /home/edo/.minirc.dfl. You can change it further from inside
minicom, see the Software Development Guide for more information.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This step will set up the u-boot variables for booting the EVM.
Becuase the not all AM335x devices have a NAND, the u-boot variables will
be stored in uEnv.txt on the boot partition. U-boot will read this
file on boot.

Autodetected the following ip address of your host, correct it if necessary
[ 192.168.1.103 ]

Select Linux kernel location:
 1: TFTP
 2: SD card

[ 1 ] 1

Select root file system location:
 1: NFS
 2: SD card

[ 1 ] 1

Available kernel images in /tftproot:
    uImage-am335x-evm.bin

Which kernel image do you want to boot from TFTP?
[ uImage-am335x-evm.bin ]


This SDK supports both the AM335x EVM and the BeagleBone/EVM-SK.
A BeagleBone/EVM-SK has been detected as attached to your host system
Are you wanting to configure u-boot for this device?  An
answer of 'n' will configure u-boot for the AM335x EVM instead
(y/n) y
Copying uEnv.txt to boot partition...
Detecting connection to board...


--------------------------------------------------------------------------------
uEnv.text has been saved to the boot partition. uEnv.txt contains:
serverip=192.168.1.103
rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS
bootfile=uImage-am335x-evm.bin
ip_method=dhcp
tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}
uenvcmd=run tftp_nfs_boot

On the next boot, the BeagleBone will boot with these settings.
Would you like to restart now (y/n)?
[ y ]y


Welcome to minicom 2.4

OPTIONS: I18n
Compiled on Jan 25 2010, 06:49:09.
Port /dev/ttyUSB1

Press CTRL-A Z for help on special keys


 _____                    _____           _         _   
|  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
|     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
|__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
              |___|                    |___|            

Arago Project http://arago-project.org am335x-evm ttyO0

Arago 2012.10 am335x-evm ttyO0

am335x-evm login: init 6
INIT: Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 1384)5x-evm:~#                                                  
dropbear.                                                                                                                           
Stopping telnet daemon.                                                                                                             
Stopping system message bus: dbus.                                                                                                  
Stopping network benchmark server: netserverstopped /usr/sbin/netserver (pid 1438)                                                  
.
Stopping syslogd/klogd: stopped syslogd (pid 1441)
stopped klogd (pid 1443)
done
Stopping thttpd.
ALSA: Storing mixer settings...
Deconfiguring network interfaces... done.
Stopping PVR
Stopping Lighttpd Web Server: stopped /usr/sbin/lighttpd (pid 1503)
lighttpd.
Stopping Matrix GUI application.
[  305.681335] musb-hdrc musb-hdrc.0: remove, state 1
[  305.686370] usb usb2: USB disconnect, device number 1
[  305.692291] musb-hdrc musb-hdrc.0: USB bus 2 deregistered
***************************************************************
***************************************************************
NOTICE: This file system contains the followin GPLv3 packages:
        binutils-symlinks
        binutils
        gdbserver

If you do not wish to distribute GPLv3 components please remove
the above packages prior to distribution.  This can be done using
the opkg remove command.  i.e.:
    opkg remove <package>
Where <package> is the name printed in the list above

NOTE: If the package is a dependency of another package you
      will be notified of the dependent packages.  You should
      use the --force-removal-of-dependent-packages option to
      also remove the dependent packages as well
***************************************************************
***************************************************************
Sending all processes the TERM signal...
Error VT_WAITACTIVE failed
: Interrupted system call
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
Rebooting... [  314.097625] musb-hdrc musb-hdrc.1: remove, state 1
[  314.102691] usb usb1: USB disconnect, device number 1
[  314.108581] musb-hdrc musb-hdrc.1: USB bus 1 deregistered
[  314.114654] Restarting system.
 CTRL-A Z for help |115200 8N1 | NOR | script resetBo | VT102 |      Offline                                                                                                                                                                

/home/edo/ti-sdk-am335x-evm-05.06.00.00
--------------------------------------------------------------------------------

Listing of printenv:

U-Boot# printenv
baudrate=115200
bootargs=console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.1.103:/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS,nolock rw ip=dhcp
bootargs_defaults=setenv bootargs console=${console} ${optargs}
bootcmd=if mmc rescan ${mmcdev}; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run lo
aduimagefat; then run mmcboot;elif run loaduimage; then run mmcboot;else echo Cound not find ${bootfile} ;fi;else run nandboot;fi;
bootdelay=3
bootenv=uEnv.txt
bootfile=uImage-am335x-evm.bin
console=ttyO0,115200n8
dfu_alt_info=SPL part 0 1;SPL.backup1 part 0 2;SPL.backup2 part 0 3;SPL.backup3 part 0 4;u-boot part 0 5;kernel part 0 7;rootfs part 0 8
ethact=cpsw
ethaddr=d4:94:a1:87:0f:6c
fdtaddr=0x80F80000
filesize=103
importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr $filesize
ip_method=dhcp
kloadaddr=0x80007fc0
loadaddr=0x80200000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
loaduimage=ext2load mmc ${mmcdev}:2 ${kloadaddr} /boot/${bootfile}
loaduimagefat=fatload mmc ${mmcdev} ${kloadaddr} ${bootfile}
mmcargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${mmcroot} rootfstype=${mmcrootfstype} ip=${ip_method}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${kloadaddr}
mmcdev=0
mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext3 rootwait
mtdids=nand0=omap2-nand.0
mtdparts=mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),128k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),-(rootfs)
nandargs=run bootargs_defaults;setenv bootargs ${bootargs} root=${nandroot} noinitrd rootfstype=${nandrootfstype} ip=${ip_method}
nandboot=echo Booting from nand ...; run nandargs; nand read.i ${kloadaddr} ${nandsrcaddr} ${nandimgsize}; bootm ${kloadaddr}
nandimgsize=0x500000
nandroot=ubi0:rootfs rw ubi.mtd=7,2048
nandrootfstype=ubifs rootwait=1
nandsrcaddr=0x280000
netargs=run bootargs_defaults;setenv bootargs ${bootargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${kloadaddr} ${bootfile}; run netargs; bootm ${kloadaddr}
nfsopts=nolock
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr}
ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M
ramrootfstype=ext2
rdaddr=0x81000000
rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS
serverip=192.168.1.103
spiargs=run bootargs_defaults;setenv bootargs ${bootargs} rootfstype=${spirootfstype} ip=${ip_method}
spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${kloadaddr} ${spisrcaddr} ${spiimgsize}; bootm ${kloadaddr}
spibusno=0
spiimgsize=0x362000
spiroot=/dev/mtdblock4 rw
spirootfstype=jffs2
spisrcaddr=0x80000
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial
stdin=serial
stdout=serial
tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}
uenvcmd=run tftp_nfs_boot
usbnet_devaddr=d4:94:a1:87:0f:6c
ver=U-Boot 2012.10 (Dec 16 2012 - 13:54:10)

Environment size: 3446/131068 bytes
U-Boot#
 CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.4    | VT102 |      Offline                                                                                                                                                                



Thanks,

Edo















































Welcome to minicom 2.4

OPTIONS: I18n
Compiled on Jan 25 2010, 06:49:09.
Port /dev/ttyUSB1

Press CTRL-A Z for help on special keys

 0
SD/MMC found on device 0
reading uEnv.txt

259 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
Booting from network...
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 192.168.1.101
Using cpsw device
TFTP from server 192.168.1.1; our IP address is 192.168.1.101
Filename 'uImage-am335x-evm.bin'.
Load address: 0x80200000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
reading uImage-am335x-evm.bin

** Unable to read "uImage-am335x-evm.bin" from mmc 0:1 **
Loading file "/boot/uImage-am335x-evm.bin" from mmc device 0:2
** File not found /boot/uImage-am335x-evm.bin
ext2load - load binary file from a Ext2 filesystem

Usage:
ext2load <interface> <dev[:part]> [addr] [filename] [bytes]
    - load binary file 'filename' from 'dev' on 'interface'
      to address 'addr' from ext2 filesystem
Cound not find uImage-am335x-evm.bin
U-Boot#

  • If you are able to please use your host machine to read from the SD card and post the contents of uEnv.txt on the boot partition here.

  • Hi from Slovenia (EU),

    file uEnv.txt contains:

    serverip=192.168.1.103

    rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS

    bootfile=uImage-am335x-evm.bin ip_method=dhcp

    tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}

    uenvcmd=run tftp_nfs_boot 

    This is a listing after restart of AM335x board:

     0 SD/MMC found on device 0 reading uEnv.txt
    259 bytes read Loaded environment from uEnv.txt Importing environment from mmc ... Running uenvcmd ... Booting from network... link up on port 0, speed 100, full duplex BOOTP broadcast 1 DHCP client bound to address 192.168.1.101 Using cpsw device TFTP from server 192.168.1.1 <- this is not OK, it should be 192.168.1.103; our IP address is 192.168.1.101 Filename 'uImage-am335x-evm.bin'. Load address: 0x80200000 Loading: * TFTP error: 'File not found' (1) Not retrying... Wrong Image Format for bootm command ERROR: can't get kernel image! reading uImage-am335x-evm.bin
    ** Unable to read "uImage-am335x-evm.bin" from mmc 0:1 ** Loading file "/boot/uImage-am335x-evm.bin" from mmc device 0:2 ** File not found /boot/uImage-am335x-evm.bin ext2load - load binary file from a Ext2 filesystem
    Usage: ext2load <interface> <dev[:part]> [addr] [filename] [bytes]     - load binary file 'filename' from 'dev' on 'interface'       to address 'addr' from ext2 filesystem Cound not find uImage-am335x-evm.bin U-Boot#

    192.168.1.1 <- this is IP of my Router, my computer/TFTP server is 192.168.1.103, AM335x-SK board is 192.168.1.101. Router has enabled DHCP server, IP addresses are leased by MAC addr.

    Thanks for help,

    Edo

  • Edvard

    If you are using autoload to download images from server then DHCP server has to contain your images, If you need to change the TFTP server from DHCP server then can you to set autoload no and try tftp command to download the images.

    Regards
    Mugunthan V N

  • Hi,

    Please, give me more informations:

    - what is a purpose of uEnv.txt - serverip=192.168.1.103

    - why is AM335x by default trying to boot from router (192.168.1.1) - my router doesn't have image (is it possible to copy image to my router - what router should I have?)

    - what should I do - where should I set autoload to no (srcript?)

    - where is TFT server - router, my computer ??

    - what is a purpose usb connection - is it also used for code download to target board

    - any simple guide - how to connect AM335x kit to PC, install development tools, start Code Composer Studio and write a simple "Hello world" application?

    I'm very confused and disappointed - setup of development environment with AM335x Kit is not as simple as advertised - default settings simply don't work.

    Edo.

  • Edo,

    The purpose of the serverip line is to define where the dhcp command in u-boot should look for a TFTP server and attempt to load an image from. The DHCP protocol itself allows for various options and it seems your router may support one that allows the dhcp server to specify the ip address of a TFTP server, which overwrites the serverip u-boot environment variable. What sort of router is it? The setup script included with the SDK runs a TFTP server on your computer, so you will want serverip to point to this address. You can manually override this in uEnv.txt by changing the tftp_nfs_boot line to this:

    tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} 192.168.1.103:${bootfile}; run netargs; bootm ${loadaddr}

    Which should force u-boot to look at 192.168.1.103 The USB cable is not used for the download of any files in this process, only to provide you serial console access to the target board.

    A large amount of documentation and user guides for our Linux SDK can be found on our processors wiki, in particular on this page: http://processors.wiki.ti.com/index.php/Sitara_Linux_Software_Developer’s_Guide


    Regards,

    Dave

     

     

  • Hi,

    now I have the following problem - AM335x boots from TFTP server but then suddenly stops (VFS: Unable to mount root fs via NFS, trying floppy, VFS: Cannot open root device "nfs" or unknown-block(2,0), Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)).

    Is it possible to develop Linux applications for AM335x kit with options: kernel location - SD card, filesystem location - SD card. When to choose option SD card and when TFTP for kernel, when to choose option SD card and when TFTP for filesystem?

    Content of uEnv.txt:

    serverip=192.168.1.103
    rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS
    bootfile=uImage-am335x-evm.bin
    ip_method=dhcp
    tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} 192.168.1.103:${bootfile}; run netargs; bootm ${loadaddr}
    uenvcmd=run tftp_nfs_boot

    Listing - boot from TFTP:

    Welcome to minicom 2.4

    OPTIONS: I18n
    Compiled on Jan 25 2010, 06:49:09.
    Port /dev/ttyUSB1

    Press CTRL-A Z for help on special keys

     0
    SD/MMC found on device 0
    reading uEnv.txt

    273 bytes read
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    Booting from network...
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 192.168.1.101
    Using cpsw device
    TFTP from server 192.168.1.103; our IP address is 192.168.1.101
    Filename 'uImage-am335x-evm.bin'.
    Load address: 0x80200000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###################################
    done
    Bytes transferred = 3169408 (305c80 hex)
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Arago/3.2.0-psp05.06.00.00/am335
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3169344 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 (jenkins@sdit-build02) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Sun Dec 16 13:55:55 CST 2012
    [    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 nfsroot=192.168.1.1:/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS,nolock rw ip=dhcp
    [    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: 253248k/253248k available, 8896k 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 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc05de000   ( 248 kB)
    [    0.000000]       .data : 0xc05de000 - 0xc0646448   ( 418 kB)
    [    0.000000]        .bss : 0xc064646c - 0xc0673324   ( 180 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.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058929] pid_max: default: 32768 minimum: 301
    [    0.059051] Security Framework initialized
    [    0.059173] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.080047] omap_hwmod: pruss: failed to hardreset
    [    0.081146] print_constraints: dummy:
    [    0.081512] NET: Registered protocol family 16
    [    0.083618] OMAP GPIO hardware version 0.1
    [    0.086212] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.088134]  omap_i2c.1: alias fck already exists
    [    0.089080]  omap2_mcspi.1: alias fck already exists
    [    0.089324]  omap2_mcspi.2: alias fck already exists
    [    0.090270]  edma.0: alias fck already exists
    [    0.090301]  edma.0: alias fck already exists
    [    0.090332]  edma.0: alias fck already exists
    [    0.116760] bio: create slab <bio-0> at 0
    [    0.119018] SCSI subsystem initialized
    [    0.120635] usbcore: registered new interface driver usbfs
    [    0.120941] usbcore: registered new interface driver hub
    [    0.121124] usbcore: registered new device driver usb
    [    0.121276] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.121582] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.122680] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.124542] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.126922] print_constraints: VRTC:
    [    0.128387] print_constraints: VIO: at 1500 mV
    [    0.130676] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [    0.132995] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.134002] print_constraints: VDD3: 5000 mV
    [    0.135406] print_constraints: VDIG1: at 1800 mV
    [    0.136810] print_constraints: VDIG2: at 1800 mV
    [    0.138244] print_constraints: VPLL: at 1800 mV
    [    0.139648] print_constraints: VDAC: at 1800 mV
    [    0.141082] print_constraints: VAUX1: at 1800 mV
    [    0.142517] print_constraints: VAUX2: at 3300 mV
    [    0.143920] print_constraints: VAUX33: at 3300 mV
    [    0.145355] print_constraints: VMMC: at 3300 mV
    [    0.145843] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.147064] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.148193] Switching to clocksource gp timer
    [    0.163482] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.163665] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.163970] MUSB0 controller's USBSS revision = 4ea20800
    [    0.164611] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using PIO, IRQ 18
    [    0.164764] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.165069] MUSB1 controller's USBSS revision = 4ea20800
    [    0.165222] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.165313] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.165435] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.165466] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.165466] usb usb1: Product: MUSB HDRC host driver
    [    0.165466] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.165496] usb usb1: SerialNumber: musb-hdrc.1
    [    0.166290] hub 1-0:1.0: USB hub found
    [    0.166320] hub 1-0:1.0: 1 port detected
    [    0.166870] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using PIO, IRQ 19
    [    0.167266] NET: Registered protocol family 2
    [    0.167449] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.167755] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.167907] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.167999] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.167999] TCP reno registered
    [    0.168029] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.168060] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.168304] NET: Registered protocol family 1
    [    0.168579] RPC: Registered named UNIX socket transport module.
    [    0.168579] RPC: Registered udp transport module.
    [    0.168579] RPC: Registered tcp transport module.
    [    0.168609] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.168853] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.180084] VFS: Disk quotas dquot_6.5.2
    [    0.180145] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.180694] msgmni has been set to 494
    [    0.183837] alg: No test for stdrng (krng)
    [    0.184509] io scheduler noop registered
    [    0.184509] io scheduler deadline registered
    [    0.184600] io scheduler cfq registered (default)
    [    0.185760] Could not set LED4 to fully on
    [    0.187500] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.811187] console [ttyO0] enabled
    [    0.815429] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.823272] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.831085] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.838897] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.846649] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.854888] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.871215] brd: module loaded
    [    0.879211] loop: module loaded
    [    0.882659] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.889129] i2c-core: driver [tsl2550] using legacy resume method
    [    0.895568] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.958740] No daughter card found
    [    0.962341] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.977508] Board name: A335X_SK
    [    0.980895] Board version: 1.2B
    [    0.984161] The board is a AM335x Starter Kit.
    [    0.989562]  omap_hsmmc.0: alias fck already exists
    [    0.994995]  omap_hsmmc.1: alias fck already exists
    [    1.000976]  da8xx_lcdc.0: alias fck already exists
    [    1.006439] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-4.3-ATXI#-T-1 panel
    [    1.021697] Console: switching to colour frame buffer device 60x34
    [    1.034515]  davinci-mcasp.1: alias fck already exists
    [    1.040252] Configure Bluetooth Enable pin...
    [    1.045654] registered am33xx_sr device
    [    1.050048] _regulator_get: 1-0018 supply Vdd not found, using dummy regulator
    [    1.057678] _regulator_get: 1-0018 supply Vdd_IO not found, using dummy regulator
    [    1.086120] lis3lv02d: 8 bits 3DLH sensor found
    [    1.179199] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [    1.190887] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.198028] omap2-nand driver initializing
    [    1.202514] OneNAND driver initializing
    [    1.207794] CAN device driver interface
    [    1.211822] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.258819] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.265258] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
    [    1.273529] davinci_mdio.0: probed
    [    1.277099] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    1.284454] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    [    1.292175] usbcore: registered new interface driver zd1201
    [    1.298156] usbcore: registered new interface driver cdc_ether
    [    1.304412] usbcore: registered new interface driver cdc_eem
    [    1.310485] usbcore: registered new interface driver dm9601
    [    1.316345] cdc_ncm: 04-Aug-2011
    [    1.319885] usbcore: registered new interface driver cdc_ncm
    [    1.325805] Initializing USB Mass Storage driver...
    [    1.331115] usbcore: registered new interface driver usb-storage
    [    1.337402] USB Mass Storage support registered.
    [    1.342651] mousedev: PS/2 mouse device common for all mice
    [    1.349639] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input1
    [    1.358154] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    1.365203] am33xx-rtc: already running
    [    1.369384] i2c /dev entries driver
    [    1.373382] Linux video capture interface: v2.00
    [    1.378509] usbcore: registered new interface driver uvcvideo
    [    1.384521] USB Video Class driver (1.1.1)
    [    1.390930] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.399475] cpuidle: using governor ladder
    [    1.404235] cpuidle: using governor menu
    [    1.413024] omap4_aes_mod_init: loading AM33X AES driver
    [    1.418670] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [    1.425292] omap4_aes_probe: probe() done
    [    1.429962] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [    1.436096] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [    1.447570] omap4_sham_probe: probe() done
    [    1.457702] usbcore: registered new interface driver usbhid
    [    1.463592] usbhid: USB HID core driver
    [    1.468200] usbcore: registered new interface driver snd-usb-audio
    [    1.479797] _regulator_get: 1-001b supply IOVDD not found, using dummy regulator
    [    1.487579] _regulator_get: 1-001b supply DVDD not found, using dummy regulator
    [    1.495269] _regulator_get: 1-001b supply AVDD not found, using dummy regulator
    [    1.502960] _regulator_get: 1-001b supply DRVDD not found, using dummy regulator
    [    1.513397] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [    1.521209] ALSA device list:
    [    1.524291]   #0: AM335X EVM
    [    1.527313] oprofile: hardware counters not available
    [    1.532592] oprofile: using timer interrupt.
    [    1.537078] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
    [    1.543853] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.549530] TCP cubic registered
    [    1.552886] NET: Registered protocol family 17
    [    1.557525] can: controller area network core (rev 20090105 abi 8)
    [    1.564086] NET: Registered protocol family 29
    [    1.568725] can: raw protocol (rev 20090105)
    [    1.573181] can: broadcast manager protocol (rev 20090105 t)
    [    1.579132] Registering the dns_resolver key type
    [    1.584106] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    1.592132] ThumbEE CPU extension supported.
    [    1.596618] mux: Failed to setup hwmod io irq -22
    [    1.602142] Power Management for AM33XX family
    [    1.606994] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    1.613677] Copied the M3 firmware to UMEM
    [    1.618164] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [    1.626007] smartreflex: probe of smartreflex failed with error -22
    [    1.633148] sr_init: platform driver register failed
    [    1.643157] clock: disabling unused clocks to save power
    [    1.661987] Detected MACID=d4:94:a1:87:f:6c
    [    1.667480] cpsw: Detected MACID = d4:94:a1:87:0f:6d
    [    1.673095] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    1.683105] input: gpio-keys as /devices/platform/gpio-keys/input/input2
    [    1.690460] mmc0: new high speed SDHC card at address aaaa
    [    1.696990] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    [    1.701995] omap_rtc am33xx-rtc: setting system clock to 2012-12-17 06:55:36 UTC (1355727336)
    [    1.716369] net eth0: CPSW phy found : id is : 0x4dd074
    [    1.726745]  mmcblk0: p1 p2
    [    1.733215] net eth1: CPSW phy found : id is : 0x4dd074
    [    1.853454] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    1.872558] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.879211] mmc1: new SDIO card at address 0001
    [    3.710327] PHY: 0:00 - Link is Up - 100/Full
    [    3.749389] Sending DHCP requests ., OK
    [    3.769866] IP-Config: Got DHCP answer from 192.168.1.1, my address is 192.168.1.101
    [    3.780181] IP-Config: Complete:
    [    3.783538]      device=eth0, addr=192.168.1.101, mask=255.255.255.0, gw=192.168.1.1,
    [    3.791473]      host=192.168.1.101, domain=, nis-domain=(none),
    [    3.797760]      bootserver=192.168.1.1, rootserver=192.168.1.1, rootpath=
    [   38.889587] VFS: Unable to mount root fs via NFS, trying floppy.
    [   38.896362] VFS: Cannot open root device "nfs" or unknown-block(2,0)
    [   38.903045] Please append a correct "root=" boot option; here are the available partitions:
    [   38.911804] b300         3872256 mmcblk0  driver: mmcblk
    [   38.917358]   b301           72261 mmcblk0p1 00000000-0000-0000-0000-000000000mmcblk0p1
    [   38.925720]   b302         3791340 mmcblk0p2 00000000-0000-0000-0000-000000000mmcblk0p2
    [   38.934082] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    [   38.942718] Backtrace:
    [   38.945281] [<c0017978>] (dump_backtrace+0x0/0x110) from [<c0423c5c>] (dump_stack+0x18/0x1c)
    [   38.954101]  r6:cf93c000 r5:c05cf3ac r4:c0647488 r3:c0600788
    [   38.960021] [<c0423c44>] (dump_stack+0x0/0x1c) from [<c0423ccc>] (panic+0x6c/0x1a0)
    [   38.968017] [<c0423c60>] (panic+0x0/0x1a0) from [<c05a0cb4>] (mount_block_root+0x184/0x228)
    [   38.976745]  r3:c0600788 r2:00000000 r1:cf81df58 r0:c0500a10
    [   38.982666]  r7:00008000
    [   38.985290] [<c05a0b30>] (mount_block_root+0x0/0x228) from [<c05a0f1c>] (mount_root+0xd8/0xe0)
    [   38.994293] [<c05a0e44>] (mount_root+0x0/0xe0) from [<c05a10bc>] (prepare_namespace+0x198/0x1d4)
    [   39.003448]  r4:c06464e0
    [   39.006103] [<c05a0f24>] (prepare_namespace+0x0/0x1d4) from [<c05a090c>] (kernel_init+0x124/0x130)
    [   39.015472]  r5:c05dd654 r4:c05dd654
    [   39.019226] [<c05a07e8>] (kernel_init+0x0/0x130) from [<c0041724>] (do_exit+0x0/0x67c)
    [   39.027496]  r5:c05a07e8 r4:00000000

    Thanks,

    Edo

  • Edo

    Can you verify your NFS setup in 192.168.1.1 by mounting the same filesystem on another Linux system.

    Regards
    Mugunthan V N

  • Hi,

    192.168.1.1 is not my PC, it is IP address of my router - that is the problem.

    My computer is 192.168.1.103, AM335x kit is 192.168.1.101 (ETH0), 192.168.1.102 (ETH1, cable is not connected to this connector).

    IP addresses are determined by routers DHCP server (MAC lease).

    Regards,

    Edo

  • Edo,

    Please modify your uEnv.txt file to this:

     

    serverip=192.168.1.103

    rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS

    bootfile=uImage-am335x-evm.bin

    bootargs=console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.1.103:${rootpath},nolock rw ip=dhcp

    ip_method=dhcp

    tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} 192.168.1.103:${bootfile}; run netargs; bootm ${loadaddr}

    uenvcmd=run tftp_nfs_boot

     

    Note that I have removed the run netargs; portion from the tftp_nfs_boot line and added a bootargs line to manually configure the bootargs for the board. This issue is again attributed to the router dhcp server overwriting the serverip variable in u-boot which the default bootargs configuration (found in netargs) used. Manually overriding it this way should fix your problem.  

  • Hi,

    thank you for suggested solution - i will try it tomorrow.

    Is it possible to develop Linux applications for AM335x kit with kernel and filesystem location on SD card?

    Please, give me advice - when to choose option SD card and when TFTP for kernel, when to choose option SD card and when NFS for filesystem (setup.sh):

    Select Linux kernel location: 1: TFTP 2: SD card
    [ 1 ]    <-- when to choose 1, when to choose 2 (advantages and disadvantages of each option)?
    Select root file system location: 1: NFS 2: SD card
    [ 1 ]    <-- when to choose 1, when to choose 2 (advantages and disadvantages of each option)?

    Can I expect the same ethernet related communication problems also with debugging?

    Thanks,

    Edo

  • Edo,

    The largest advantage of using TFTP and NFS is that your kernel and target root file system are stored on your host machine so development is faster because you have direct access to uImage and to the root file system without shutting down the board and moving the sd card back and forth. However, if you have both the target and your host machine on the same network you are able to use scp to do network file transfers with ease so this helps to eliminate the need to move the sd card.

    If you wish to use boot from the SD Card directly you can simply remove the uEnv.txt file from the boot partition of the SD Card and then the kernel and root file system will both come from the card by default. You shouldn't see any of the problems you are having by storing your kernel and root file system on the sd card.

    Regards,

    Dave

  • Hi,

    is it possible to solve problems by static IP addressing - by disabling routers DHCP server?

    How to set static IP of AM335x?

    Regeards,

    Edo

  • Hi,

    sorry, suggested solution doesn't work. I will use SD card as target for kernel and filesystem. Please, do something about this problem - many people have the same problem.

    uEnv.txt (from SD card)

    serverip=192.168.1.103
    rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS
    bootfile=uImage-am335x-evm.bin
    bootargs=console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.1.103:${rootpath},nolock rw ip=dhcp
    ip_method=dhcp
    tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} 192.168.1.103:${bootfile}; bootm ${loadaddr}
    uenvcmd=run tftp_nfs_boot

    Restart log:

    Welcome to minicom 2.4

    OPTIONS: I18n
    Compiled on Jan 25 2010, 06:49:09.
    Port /dev/ttyUSB1

    Press CTRL-A Z for help on special keys

     0
    SD/MMC found on device 0
    reading uEnv.txt

    358 bytes read
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    Booting from network...
    link up on port 0, speed 100, full duplex
    BOOTP broadcast 1
    DHCP client bound to address 192.168.1.101
    Using cpsw device
    TFTP from server 192.168.1.103; our IP address is 192.168.1.101
    Filename 'uImage-am335x-evm.bin'.
    Load address: 0x80200000
    Loading: #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             #################################################################
             ###################################
    done
    Bytes transferred = 3169408 (305c80 hex)
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Arago/3.2.0-psp05.06.00.00/am335
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3169344 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 (jenkins@sdit-build02) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Sun Dec 16 13:55:55 CST 2012
    [    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 nfsroot=192.168.1.103:${rootpath},nolock rw ip=dhcp
    [    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: 253248k/253248k available, 8896k 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 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc05de000   ( 248 kB)
    [    0.000000]       .data : 0xc05de000 - 0xc0646448   ( 418 kB)
    [    0.000000]        .bss : 0xc064646c - 0xc0673324   ( 180 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.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058959] pid_max: default: 32768 minimum: 301
    [    0.059051] Security Framework initialized
    [    0.059173] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.080017] omap_hwmod: pruss: failed to hardreset
    [    0.081146] print_constraints: dummy:
    [    0.081481] NET: Registered protocol family 16
    [    0.083648] OMAP GPIO hardware version 0.1
    [    0.086212] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.088165]  omap_i2c.1: alias fck already exists
    [    0.089080]  omap2_mcspi.1: alias fck already exists
    [    0.089324]  omap2_mcspi.2: alias fck already exists
    [    0.090270]  edma.0: alias fck already exists
    [    0.090270]  edma.0: alias fck already exists
    [    0.090301]  edma.0: alias fck already exists
    [    0.116790] bio: create slab <bio-0> at 0
    [    0.119049] SCSI subsystem initialized
    [    0.120666] usbcore: registered new interface driver usbfs
    [    0.120971] usbcore: registered new interface driver hub
    [    0.121185] usbcore: registered new device driver usb
    [    0.121337] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.121612] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.122711] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.124542] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.126922] print_constraints: VRTC:
    [    0.128387] print_constraints: VIO: at 1500 mV
    [    0.130706] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [    0.132995] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.134002] print_constraints: VDD3: 5000 mV
    [    0.135406] print_constraints: VDIG1: at 1800 mV
    [    0.136810] print_constraints: VDIG2: at 1800 mV
    [    0.138214] print_constraints: VPLL: at 1800 mV
    [    0.139648] print_constraints: VDAC: at 1800 mV
    [    0.141052] print_constraints: VAUX1: at 1800 mV
    [    0.142486] print_constraints: VAUX2: at 3300 mV
    [    0.143920] print_constraints: VAUX33: at 3300 mV
    [    0.145324] print_constraints: VMMC: at 3300 mV
    [    0.145812] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.147064] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.148193] Switching to clocksource gp timer
    [    0.163452] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.163635] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.163940] MUSB0 controller's USBSS revision = 4ea20800
    [    0.164581] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using PIO, IRQ 18
    [    0.164733] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.165039] MUSB1 controller's USBSS revision = 4ea20800
    [    0.165191] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.165283] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.165405] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.165435] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.165435] usb usb1: Product: MUSB HDRC host driver
    [    0.165466] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.165466] usb usb1: SerialNumber: musb-hdrc.1
    [    0.166259] hub 1-0:1.0: USB hub found
    [    0.166290] hub 1-0:1.0: 1 port detected
    [    0.166839] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using PIO, IRQ 19
    [    0.167236] NET: Registered protocol family 2
    [    0.167419] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.167724] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.167877] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.167968] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.167999] TCP reno registered
    [    0.167999] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.168029] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.168182] NET: Registered protocol family 1
    [    0.168548] RPC: Registered named UNIX socket transport module.
    [    0.168548] RPC: Registered udp transport module.
    [    0.168548] RPC: Registered tcp transport module.
    [    0.168579] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.168823] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.180053] VFS: Disk quotas dquot_6.5.2
    [    0.180145] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.180664] msgmni has been set to 494
    [    0.183807] alg: No test for stdrng (krng)
    [    0.184478] io scheduler noop registered
    [    0.184478] io scheduler deadline registered
    [    0.184570] io scheduler cfq registered (default)
    [    0.185729] Could not set LED4 to fully on
    [    0.187469] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.807891] console [ttyO0] enabled
    [    0.812133] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.819976] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.827728] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.835540] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.843322] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.851562] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.867767] brd: module loaded
    [    0.875762] loop: module loaded
    [    0.879272] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.885711] i2c-core: driver [tsl2550] using legacy resume method
    [    0.892150] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.958740] No daughter card found
    [    0.962341] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.977508] Board name: A335X_SK
    [    0.980895] Board version: 1.2B
    [    0.984161] The board is a AM335x Starter Kit.
    [    0.989562]  omap_hsmmc.0: alias fck already exists
    [    0.994995]  omap_hsmmc.1: alias fck already exists
    [    1.000976]  da8xx_lcdc.0: alias fck already exists
    [    1.006408] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-4.3-ATXI#-T-1 panel
    [    1.021667] Console: switching to colour frame buffer device 60x34
    [    1.034454]  davinci-mcasp.1: alias fck already exists
    [    1.040222] Configure Bluetooth Enable pin...
    [    1.045623] registered am33xx_sr device
    [    1.050018] _regulator_get: 1-0018 supply Vdd not found, using dummy regulator
    [    1.057647] _regulator_get: 1-0018 supply Vdd_IO not found, using dummy regulator
    [    1.086059] lis3lv02d: 8 bits 3DLH sensor found
    [    1.179199] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input0
    [    1.190917] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.198059] omap2-nand driver initializing
    [    1.202545] OneNAND driver initializing
    [    1.207824] CAN device driver interface
    [    1.211853] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.258789] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.265258] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
    [    1.273559] davinci_mdio.0: probed
    [    1.277099] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    1.284484] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    [    1.292175] usbcore: registered new interface driver zd1201
    [    1.298187] usbcore: registered new interface driver cdc_ether
    [    1.304443] usbcore: registered new interface driver cdc_eem
    [    1.310516] usbcore: registered new interface driver dm9601
    [    1.316375] cdc_ncm: 04-Aug-2011
    [    1.319915] usbcore: registered new interface driver cdc_ncm
    [    1.325805] Initializing USB Mass Storage driver...
    [    1.331146] usbcore: registered new interface driver usb-storage
    [    1.337402] USB Mass Storage support registered.
    [    1.342681] mousedev: PS/2 mouse device common for all mice
    [    1.349670] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input1
    [    1.358184] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    1.365234] am33xx-rtc: already running
    [    1.369415] i2c /dev entries driver
    [    1.373443] Linux video capture interface: v2.00
    [    1.378570] usbcore: registered new interface driver uvcvideo
    [    1.384582] USB Video Class driver (1.1.1)
    [    1.390991] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.399505] cpuidle: using governor ladder
    [    1.404266] cpuidle: using governor menu
    [    1.413085] omap4_aes_mod_init: loading AM33X AES driver
    [    1.418731] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [    1.425354] omap4_aes_probe: probe() done
    [    1.430023] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [    1.436157] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [    1.447692] omap4_sham_probe: probe() done
    [    1.457794] usbcore: registered new interface driver usbhid
    [    1.463684] usbhid: USB HID core driver
    [    1.468292] usbcore: registered new interface driver snd-usb-audio
    [    1.479888] _regulator_get: 1-001b supply IOVDD not found, using dummy regulator
    [    1.487670] _regulator_get: 1-001b supply DVDD not found, using dummy regulator
    [    1.495361] _regulator_get: 1-001b supply AVDD not found, using dummy regulator
    [    1.503051] _regulator_get: 1-001b supply DRVDD not found, using dummy regulator
    [    1.513488] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [    1.521301] ALSA device list:
    [    1.524383]   #0: AM335X EVM
    [    1.527374] oprofile: hardware counters not available
    [    1.532684] oprofile: using timer interrupt.
    [    1.537139] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
    [    1.543914] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.549591] TCP cubic registered
    [    1.552947] NET: Registered protocol family 17
    [    1.557586] can: controller area network core (rev 20090105 abi 8)
    [    1.564147] NET: Registered protocol family 29
    [    1.568786] can: raw protocol (rev 20090105)
    [    1.573242] can: broadcast manager protocol (rev 20090105 t)
    [    1.579193] Registering the dns_resolver key type
    [    1.584167] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    1.592163] ThumbEE CPU extension supported.
    [    1.596679] mux: Failed to setup hwmod io irq -22
    [    1.602203] Power Management for AM33XX family
    [    1.607055] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    1.613739] Copied the M3 firmware to UMEM
    [    1.618194] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [    1.626068] smartreflex: probe of smartreflex failed with error -22
    [    1.633178] sr_init: platform driver register failed
    [    1.643218] clock: disabling unused clocks to save power
    [    1.662017] Detected MACID=d4:94:a1:87:f:6c
    [    1.667510] cpsw: Detected MACID = d4:94:a1:87:0f:6d
    [    1.673126] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    1.683135] input: gpio-keys as /devices/platform/gpio-keys/input/input2
    [    1.690521] mmc0: new high speed SDHC card at address aaaa
    [    1.697113] omap_rtc am33xx-rtc: setting system clock to 2012-12-17 07:49:19 UTC (1355730559)
    [    1.706451] mmcblk0: mmc0:aaaa SU04G 3.69 GiB
    [    1.716430] net eth0: CPSW phy found : id is : 0x4dd074
    [    1.726898]  mmcblk0: p1 p2
    [    1.733398] net eth1: CPSW phy found : id is : 0x4dd074
    [    1.853454] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    1.872558] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    1.879211] mmc1: new SDIO card at address 0001
    [    3.710327] PHY: 0:00 - Link is Up - 100/Full
    [    3.749389] Sending DHCP requests ., OK
    [    3.769866] IP-Config: Got DHCP answer from 192.168.1.1, my address is 192.168.1.101
    [    3.780181] IP-Config: Complete:
    [    3.783538]      device=eth0, addr=192.168.1.101, mask=255.255.255.0, gw=192.168.1.1,
    [    3.791473]      host=192.168.1.101, domain=, nis-domain=(none),
    [    3.797760]      bootserver=192.168.1.1, rootserver=192.168.1.103, rootpath=
    [    3.811096] VFS: Unable to mount root fs via NFS, trying floppy.
    [    3.817840] VFS: Cannot open root device "nfs" or unknown-block(2,0)
    [    3.824523] Please append a correct "root=" boot option; here are the available partitions:
    [    3.833282] b300         3872256 mmcblk0  driver: mmcblk
    [    3.838836]   b301           72261 mmcblk0p1 00000000-0000-0000-0000-000000000mmcblk0p1
    [    3.847198]   b302         3791340 mmcblk0p2 00000000-0000-0000-0000-000000000mmcblk0p2
    [    3.855560] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    [    3.864196] Backtrace:
    [    3.866760] [<c0017978>] (dump_backtrace+0x0/0x110) from [<c0423c5c>] (dump_stack+0x18/0x1c)
    [    3.875579]  r6:cf93c000 r5:c05cf3ac r4:c0647488 r3:c0600788
    [    3.881500] [<c0423c44>] (dump_stack+0x0/0x1c) from [<c0423ccc>] (panic+0x6c/0x1a0)
    [    3.889495] [<c0423c60>] (panic+0x0/0x1a0) from [<c05a0cb4>] (mount_block_root+0x184/0x228)
    [    3.898223]  r3:c0600788 r2:00000000 r1:cf81df58 r0:c0500a10
    [    3.904144]  r7:00008000
    [    3.906799] [<c05a0b30>] (mount_block_root+0x0/0x228) from [<c05a0f1c>] (mount_root+0xd8/0xe0)
    [    3.915771] [<c05a0e44>] (mount_root+0x0/0xe0) from [<c05a10bc>] (prepare_namespace+0x198/0x1d4)
    [    3.924957]  r4:c06464e0
    [    3.927612] [<c05a0f24>] (prepare_namespace+0x0/0x1d4) from [<c05a090c>] (kernel_init+0x124/0x130)
    [    3.936950]  r5:c05dd654 r4:c05dd654
    [    3.940734] [<c05a07e8>] (kernel_init+0x0/0x130) from [<c0041724>] (do_exit+0x0/0x67c)
    [    3.948974]  r5:c05a07e8 r4:00000000

     CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.4    | VT102 |      Offline                                                                                                                                                                

    Regards,

    Edo

  • Edo,

    It seems the issues with this script all stem from using variables in the u-boot configuration. I will suggest to the development team that things are hardcoded so that this problem can be avoided in the future. As you can see below I have moved the nfs path in place of the variable inside of uEnv.txt.

    serverip=192.168.1.103

    rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS

    bootfile=uImage-am335x-evm.bin

    bootargs=console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.1.103:/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS,nolock rw ip=dhcp

    ip_method=dhcp

    tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} 192.168.1.103:${bootfile}; bootm ${loadaddr}

    uenvcmd=run tftp_nfs_boot

     

    Also to answer the post previous to this adding the line

    ipaddr=<DESIRED IP ADRESS>

    and removing the ip_method line will allow you to statically configure an ip address for u-boot.

    If you are able to please share any information you have about your router so that we can work towards preventing this sort of issue in the future.

  • Dave,

    please, can you prepare me complete and "clean" script uEnv.txt for static IP adressing (AM335x: 192.168.1.101, my computer: 192.168.1.103, router: 192.168.1.1, DHCP will be disabled).

    Original no-working script is:

    serverip=192.168.1.103
    rootpath=/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS
    bootfile=uImage-am335x-evm.bin
    ip_method=dhcp
    tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} ${bootfile}; run netargs; bootm ${loadaddr}
    uenvcmd=run tftp_nfs_boot

    I will give you information about router model (it is Linksys router) tomorrow - it is almost midnight in my country.

    Thanks,

    Edo

  • Hi,

    router is Linksys, WRT150N Wireless-N Home Router (2-3 years old).

    Regards,

    Edo

  • Edo,
    Thank you for the information on your router. Below is a comploete uEnv.txt file with everything hardcoded for you to boot. Please confirm that the ip addresses below reflect your current configuration. I have forwarded these issues to the development team so that we can prevent this from happening in the future.

     

    bootargs=console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.1.103:/home/edo/ti-sdk-am335x-evm-05.06.00.00/targetNFS,nolock rw ip=dhcp

    ip_method=none

    ipaddr=192.168.1.101

    gatewayip=192.168.1.1

    netmask=255.255.255.0

    tftp_nfs_boot=echo Booting from network...; tftpboot 0x80200000 192.168.1.103:uImage-am335x-evm.bin;bootm 0x80200000

    uenvcmd=run tftp_nfs_boot

  • Dave,

    IP addresses are OK, I will test this script tomorrow.

    Thank you,

    Edo