This script will set up your development host for dvsdk development.
Parts of this script require administrator priviliges (sudo access).
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Verifying Linux host distribution
Ubuntu 10.04 LTS found successfully, 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
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/jianghui/ti-sdk-am335x-evm-05.05.00.00/targetNFS ]
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This step will extract the target filesystem to /home/jianghui/ti-sdk-am335x-evm-05.05.00.00/targetNFS
Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue
/home/jianghui/ti-sdk-am335x-evm-05.05.00.00/targetNFS already exists
(r) rename existing filesystem (o) overwrite existing filesystem (s) skip filesystem extraction
[r] o
Old /home/jianghui/ti-sdk-am335x-evm-05.05.00.00/targetNFS removed
Successfully extracted tisdk-rootfs-am335x-evm.tar.gz to /home/jianghui/ti-sdk-am335x-evm-05.05.00.00/targetNFS
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This step will set up the SDK to install binaries in to:
/home/jianghui/ti-sdk-am335x-evm-05.05.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/jianghui/ti-sdk-am335x-evm-05.05.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... exportfs: Warning: fsystem does not exist
[ 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 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/jianghui/.minirc.dfl to /home/jianghui/.minirc.dfl.old
Configuration saved to /home/jianghui/.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
[ ]
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...
--------------------------------------------------------------------------------
uEnv.text has been saved to the boot partition. uEnv.txt contains:
serverip=
rootpath=/home/jianghui/ti-sdk-am335x-evm-05.05.00.00/targetNFS
bootfile=uImage-am335x-evm.bin
ip_method=dhcp
tftp_nfs_boot=echo Booting from network...; dhcp ${loadaddr} ${bootfile}; run net_args; 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
am335x-evm login: init 6
INIT:B��э����������Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid
2337)
dropbear.
Stopping telnet daemon.
Stopping Hardware abstraction layer hald
Stopping system message bus: stopped process in pidfile '/var/run/dbus/pid' (pid
2231)
dbus.
Stopping network benchmark server: netserverstopped /usr/sbin/netserver (pid 234
9)
.
Stopping thttpd.
ALSA: Storing mixer settings...
Stopping PVR
Deconfiguring network interfaces... done.
Stopping Lighttpd Web Server: stopped /usr/sbin/lighttpd (pid 2423)
lighttpd.
Stopping syslogd/klogd: stopped syslogd (pid 2354)
stopped klogd (pid 2356)
done
Stopping Matrix GUI application.
[ 2138.550201] musb-hdrc musb-hdrc.0: remove, state 1
[ 2138.555236] usb usb2: USB disconnect, device number 1
[ 2138.561157] 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
Where 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... [ 2147.542510] musb-hdrc musb-hdrc.1: remove, state 1
[ 2147.547607] usb usb1: USB disconnect, device number 1
[ 2147.553436] musb-hdrc musb-hdrc.1: USB bus 1 deregistered
[ 2147.559509] Restarting system.