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#