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 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
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
autotools-dev cpp-4.4 dpkg-dev fakeroot g++ g++-4.4 gcc-4.4 gcc-4.4-base
libgcc1 libgomp1 libgssglue1 libnfsidmap2 librpcsecgss3 libstdc++6
libstdc++6-4.4-dev lrzsz m4 nfs-common patch portmap xz-utils
Suggested packages:
autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool gettext
gcc-4.4-locales debian-keyring debian-maintainers g++-multilib
g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg gcc-4.4-multilib
libmudflap0-4.4-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0
libppl-c2 libppl7 libstdc++6-4.4-doc diffutils-doc
The following NEW packages will be installed:
autoconf automake autotools-dev build-essential dpkg-dev fakeroot g++
g++-4.4 libgssglue1 libncurses5-dev libnfsidmap2 librpcsecgss3
libstdc++6-4.4-dev lrzsz m4 minicom nfs-common nfs-kernel-server patch
portmap tftpd uboot-mkimage xinetd xz-utils
The following packages will be upgraded:
cpp-4.4 gcc-4.4 gcc-4.4-base libgcc1 libgomp1 libstdc++6
6 upgraded, 24 newly installed, 0 to remove and 248 not upgraded.
Need to get 1,763kB/19.2MB of archives.
After this operation, 39.7MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libgcc1 1:4.4.3-4ubuntu5.1 [55.3kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/main autoconf 2.65-3ubuntu1 [772kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/main automake 1:1.11.1-1 [608kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid/main patch 2.6-2ubuntu1 [123kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid/main build-essential 11.4build1 [7,278B]
Get:6 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main portmap 6.0.0-1ubuntu2.2 [38.1kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main nfs-kernel-server 1:1.2.0-4ubuntu4.2 [159kB]
Fetched 1,501kB in 2min 19s (10.8kB/s)
Preconfiguring packages ...
(Reading database ... 122986 files and directories currently installed.)
Preparing to replace gcc-4.4-base 4.4.3-4ubuntu5 (using .../gcc-4.4-base_4.4.3-4ubuntu5.1_i386.deb) ...
Unpacking replacement gcc-4.4-base ...
Setting up gcc-4.4-base (4.4.3-4ubuntu5.1) ...
(Reading database ... 122986 files and directories currently installed.)
Preparing to replace libstdc++6 4.4.3-4ubuntu5 (using .../libstdc++6_4.4.3-4ubuntu5.1_i386.deb) ...
Unpacking replacement libstdc++6 ...
Setting up libstdc++6 (4.4.3-4ubuntu5.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 122986 files and directories currently installed.)
Preparing to replace libgomp1 4.4.3-4ubuntu5 (using .../libgomp1_4.4.3-4ubuntu5.1_i386.deb) ...
Unpacking replacement libgomp1 ...
Preparing to replace cpp-4.4 4.4.3-4ubuntu5 (using .../cpp-4.4_4.4.3-4ubuntu5.1_i386.deb) ...
Unpacking replacement cpp-4.4 ...
Preparing to replace gcc-4.4 4.4.3-4ubuntu5 (using .../gcc-4.4_4.4.3-4ubuntu5.1_i386.deb) ...
Unpacking replacement gcc-4.4 ...
Preparing to replace libgcc1 1:4.4.3-4ubuntu5 (using .../libgcc1_1%3a4.4.3-4ubuntu5.1_i386.deb) ...
Unpacking replacement libgcc1 ...
Processing triggers for man-db ...
Setting up libgcc1 (1:4.4.3-4ubuntu5.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously deselected package m4.
(Reading database ... 122986 files and directories currently installed.)
Unpacking m4 (from .../archives/m4_1.4.13-3_i386.deb) ...
Selecting previously deselected package autoconf.
Unpacking autoconf (from .../autoconf_2.65-3ubuntu1_all.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20090611.1_all.deb) ...
Selecting previously deselected package automake.
Unpacking automake (from .../automake_1%3a1.11.1-1_all.deb) ...
Selecting previously deselected package libstdc++6-4.4-dev.
Unpacking libstdc++6-4.4-dev (from .../libstdc++6-4.4-dev_4.4.3-4ubuntu5.1_i386.deb) ...
Selecting previously deselected package g++-4.4.
Unpacking g++-4.4 (from .../g++-4.4_4.4.3-4ubuntu5.1_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.4.3-1ubuntu1_i386.deb) ...
Selecting previously deselected package xz-utils.
Unpacking xz-utils (from .../xz-utils_4.999.9beta+20091116-1_i386.deb) ...
Selecting previously deselected package patch.
Unpacking patch (from .../patch_2.6-2ubuntu1_i386.deb) ...
Selecting previously deselected package dpkg-dev.
Unpacking dpkg-dev (from .../dpkg-dev_1.15.5.6ubuntu4.9_all.deb) ...
Selecting previously deselected package build-essential.
Unpacking build-essential (from .../build-essential_11.4build1_i386.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.14.4-1ubuntu1_i386.deb) ...
Selecting previously deselected package libgssglue1.
Unpacking libgssglue1 (from .../libgssglue1_0.1-4ubuntu0.1_i386.deb) ...
Selecting previously deselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.7+20090803-2ubuntu3_i386.deb) ...
Selecting previously deselected package libnfsidmap2.
Unpacking libnfsidmap2 (from .../libnfsidmap2_0.23-2_i386.deb) ...
Selecting previously deselected package librpcsecgss3.
Unpacking librpcsecgss3 (from .../librpcsecgss3_0.19-2_i386.deb) ...
Selecting previously deselected package lrzsz.
Unpacking lrzsz (from .../lrzsz_0.12.21-5_i386.deb) ...
Selecting previously deselected package minicom.
Unpacking minicom (from .../minicom_2.4-1_i386.deb) ...
Selecting previously deselected package portmap.
Unpacking portmap (from .../portmap_6.0.0-1ubuntu2.2_i386.deb) ...
Selecting previously deselected package nfs-common.
Unpacking nfs-common (from .../nfs-common_1%3a1.2.0-4ubuntu4.2_i386.deb) ...
Selecting previously deselected package nfs-kernel-server.
Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.0-4ubuntu4.2_i386.deb) ...
Selecting previously deselected package xinetd.
Unpacking xinetd (from .../xinetd_1%3a2.3.14-7ubuntu3_i386.deb) ...
Selecting previously deselected package tftpd.
Unpacking tftpd (from .../tftpd_0.17-17ubuntu1_i386.deb) ...
Selecting previously deselected package uboot-mkimage.
Unpacking uboot-mkimage (from .../uboot-mkimage_0.4build1_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 26 changed 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up libgomp1 (4.4.3-4ubuntu5.1) ...
Setting up cpp-4.4 (4.4.3-4ubuntu5.1) ...
Setting up gcc-4.4 (4.4.3-4ubuntu5.1) ...
Setting up m4 (1.4.13-3) ...
Setting up autoconf (2.65-3ubuntu1) ...
Setting up autotools-dev (20090611.1) ...
Setting up automake (1:1.11.1-1) ...
update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.
Setting up xz-utils (4.999.9beta+20091116-1) ...
Setting up patch (2.6-2ubuntu1) ...
Setting up dpkg-dev (1.15.5.6ubuntu4.9) ...
Setting up fakeroot (1.14.4-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
Setting up libgssglue1 (0.1-4ubuntu0.1) ...
Setting up libncurses5-dev (5.7+20090803-2ubuntu3) ...
Setting up libnfsidmap2 (0.23-2) ...
Setting up librpcsecgss3 (0.19-2) ...
Setting up lrzsz (0.12.21-5) ...
Setting up minicom (2.4-1) ...
Setting up portmap (6.0.0-1ubuntu2.2) ...
portmap start/running, process 7812
Setting up nfs-common (1:1.2.0-4ubuntu4.2) ...
Creating config file /etc/idmapd.conf with new version
Creating config file /etc/default/nfs-common with new version
Adding system user `statd' (UID 115) ...
Adding new user `statd' (UID 115) with group `nogroup' ...
Not creating home directory `/var/lib/nfs'.
statd start/running, process 8038
gssd stop/pre-start, process 8061
idmapd stop/pre-start, process 8087
Setting up nfs-kernel-server (1:1.2.0-4ubuntu4.2) ...
Creating config file /etc/exports with new version
Creating config file /etc/default/nfs-kernel-server with new version
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
Setting up xinetd (1:2.3.14-7ubuntu3) ...
* Stopping internet superserver xinetd [ OK ]
* Starting internet superserver xinetd [ OK ]
Setting up tftpd (0.17-17ubuntu1) ...
Note: xinetd currently is not fully supported by update-inetd.
Please consult /usr/share/doc/xinetd/README.Debian and itox(8).
Setting up uboot-mkimage (0.4build1) ...
Setting up libstdc++6-4.4-dev (4.4.3-4ubuntu5.1) ...
Setting up g++-4.4 (4.4.3-4ubuntu5.1) ...
Setting up g++ (4:4.4.3-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode.
Setting up build-essential (11.4build1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
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)
Ensure that complete path is provided, otherwise NFS path in bootargs might be incomplete
[ /root/targetfs ]
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This step will extract the target filesystem to /root/targetfs
Note! This command requires you to have administrator priviliges (sudo access)
on your host.
Press return to continue
Successfully extracted ezsdk-dm816x-evm-rootfs.tar.gz to /root/targetfs
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This step will update the EXEC_DIR variables in the Rules.make file
This will facilitate the SDK to install (with make install) rebuilt binaries in
/root/targetfs/home/root/dm816x-evm
The files will be available from /home/root/dm816x-evm on the target.
This setting can be changed later by editing Rules.make and changing the
EXEC_DIR variable.
Press return to continueRules.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
* 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
Successfully copied uImage-dm816x-evm.bin to tftp root directory /tftpboot
/etc/xinetd.d/tftp successfully created
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 ]
Configuration saved to /root/.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.
Autodetected the following ip address of your host, correct it if necessary
[ 192.168.153.131 ]
Select Linux kernel location:
1: TFTP
2: SD card
[ 1 ]
Select root file system location:
1: NFS
2: SD card
[ 1 ]
Available kernel images in /tftproot:
uImage-dm816x-evm.bin
Which kernel image do you want to boot from TFTP?
[ uImage-dm816x-evm.bin ]
Resulting u-boot variable settings:
setenv bootdelay 4
setenv baudrate 115200
setenv bootargs console=ttyO2,115200n8 rootwait rw mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=192.168.153.131:/root/targetfs ip=dhcp
setenv bootcmd 'dhcp;setenv serverip 192.168.153.131;tftpboot;bootm'
setenv autoload no
setenv serverip 192.168.153.131
setenv bootfile uImage-dm816x-evm.bin
--------------------------------------------------------------------------------
Would you like to create a minicom script with the above parameters (y/n)?
[ y ]
/opt/ezsdk /opt/ezsdk
Welcome to minicom 2.4
OPTIONS: I18n
Compiled on Jan 25 2010, 06:49:09.
Port /dev/ttyS0
Press CTRL-A Z for help on special keys
--------------------------------------------------------------------------待装完