Hi,
The following are the basic steps for installing and building the RidgeRun SDK properly in your host machine.
The SDK is supported for Ubuntu 9.04 and 9.10 in 32 bits.
1) Installing the basic packages in your host machine:
* For the SDK 781811
DM355SDK-781811-Linux-x86-Install.bin
dvsdk_setuplinux_2_00_00_22.bin.
(User registration is required, download from: http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_2_00/latest/index_FDS.html)
xdctools_setuplinux_3_10_03.bin
(Download from: http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/rtsc/xdctools_3_10/xdctools_3_10_03/index_external.html)
* For the SDK 789311 or 840402. This SDK is about to release.
LeopardSDK-789311-Linux-x86-Install.bin
LeopardSDK-840402-Linux-x86-Install.bin
dvsdk_setuplinux_2_00_00_22.bin
xdctools_setuplinux_3_10_05_61.bin
(User registration is required, download dvsdk and xdc from: http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_2_00/latest/index_FDS.html)
2) Install the packages:
All the packages should be installed in the default patch which is the home directory. The SDK also installs the toolchain at the opt directory.
3) Configure the TFTP and the NFS server in your host machine (Debian/Ubuntu):
a) TFTP server:
You need to install the following packages:
$ sudo apt-get install tftp tftpd xinetd
Create the TFTP directory used by the SDK:
$ sudo mkdir -p /srv/tftp
$ sudo chmod -R 777 /srv/tftp
$ sudo chown -R nobody /srv/tftp
You should create the following file /etc/xinetd.d/tftp with this contents:
service tftp{protocol = udpport = 69socket_type = dgramwait = yesuser = nobodyserver = /usr/sbin/in.tftpdserver_args = /srv/tftpdisable = no}
If you are using Ubuntu 9.10 the following file will be created automatically with tftp directory configuration:
/etc/inetd.conf:tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
Finally you should restart the TFTP server:
$ sudo /etc/init.d/xinetd restart
b) NFS server:
Install the NFS server packages:
sudo apt-get install nfs-kernel-server nfs-common portmap
Modify the /etc/exports file adding at the end of this file the following line:
/home/ *(rw,insecure,no_root_squash,no_subtree_check)
Finally restart the NFS server:
$ sudo /etc/init.d/nfs-kernel-server restart
4) Compiling the SDK:
When you compile the SDK for first time a system called oscheck will check if your host system has all the required packages by the SDK.
For example:
~/DM355SDK786811$ makeThe system is ubuntu-8.04 running in a 32 bit architectureSYSID: ubuntu-8.04_32Checking for host packages required by the SDK build system: buildsystem (build-essential) is installed libtool (libtool) is installed make (make) is installed ncurses (libncurses5-dev) is installed texinfo (texinfo) is installed minicom (minicom) is installed perl (perl) is installed quilt (quilt) is installed dc (dc) is installed quilt (quilt) is installed libusb (libusb-dev) is installed perl-expect (libexpect-perl) is installed mono (mono-common) is installed gmcs (mono-gmcs) is installed ...
If your host machine lacks of some package the oscheck will show which is the missing one, so in that case you should install the missing package:
~/DM355SDK786811$ makeThe system is ubuntu-8.04 running in a 32 bit architectureSYSID: ubuntu-8.04_32Checking for host packages required by the SDK build system: buildsystem (build-essential) is installed libtool (libtool) is installed make (make) is installed ncurses (libncurses5-dev) is installed texinfo (texinfo) is installed >> minicom (minicom) is NOT installed perl (perl) is installed quilt (quilt) is installed dc (dc) is installed quilt (quilt) is installed libusb (libusb-dev) is installed perl-expect (libexpect-perl) is installed mono (mono-common) is installed gmcs (mono-gmcs) is installedThere are missing packages, please install them: apt-get install minicommake: *** [.oscheck] Error 1
After checking the host packages the build process starts. The main stages of the building process are:
a)Toolchain configuration.
b) Kernel.
c) File system, its structure and its contents (apps, libraries, scripts, etc).
d) Bootloader.
The following is an example of a complete build process:
~/DM355SDK786811$ make Ridgerun Linux SDK Board configuration: Leopard Board Processing toolchain... Build complete Processing kernel...<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented<stdin>:1321:2: warning: #warning syscall pselect6 not implemented<stdin>:1325:2: warning: #warning syscall ppoll not implemented<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Build complete Processing fs... Checking for host packages required by the SDK target applications... Host machine has all required packages. Entering host-apps... Entering apps... Checking dependencies for alsa-lib-1.0.21 Compiling and installing alsa-lib-1.0.21... Checking dependencies for alsa-utils-1.0.21 Checking dependencies for ncurses-5.6 Compiling and installing ncurses-5.6... Compiling and installing alsa-utils-1.0.21... Checking dependencies for busybox-1.14.2 Compiling and installing busybox-1.14.2... Checking dependencies for DarwinStreamingSrvr6.0.3 Compiling and installing DarwinStreamingSrvr6.0.3... Checking dependencies for freetype-2.3.1 Compiling and installing freetype-2.3.1... Checking dependencies for gettext-0.16 Compiling and installing gettext-0.16... Checking dependencies for glib-2.16.5 Checking dependencies for libiconv-1.11 Compiling and installing libiconv-1.11... Compiling and installing glib-2.16.5... Checking dependencies for gst-plugins-bad-0.10.13 Checking dependencies for gstreamer-0.10.23 Checking dependencies for zlib-1.2.3 Compiling and installing zlib-1.2.3... Checking dependencies for libxml2-2.6.27 Compiling and installing libxml2-2.6.27... Compiling and installing gstreamer-0.10.23... Checking dependencies for liboil-0.3.15 Compiling and installing liboil-0.3.15... Checking dependencies for gst-plugins-base-0.10.23 Compiling and installing gst-plugins-base-0.10.23... Compiling and installing gst-plugins-bad-0.10.13... Checking dependencies for gst-plugins-good-0.10.14 Compiling and installing gst-plugins-good-0.10.14... Checking dependencies for gst-plugins-ugly-0.10.11 Checking dependencies for libid3tag-0.15.1b Compiling and installing libid3tag-0.15.1b... Checking dependencies for libmad-0.15.1b Compiling and installing libmad-0.15.1b... Compiling and installing gst-plugins-ugly-0.10.11... Checking dependencies for jpeg-6b Compiling and installing jpeg-6b... Checking dependencies for libpng-1.2.8 Compiling and installing libpng-1.2.8... Checking dependencies for mtdutils-1.0.0 Compiling and installing mtdutils-1.0.0... Checking dependencies for psplash Compiling and installing psplash... Checking dependencies for sysvinit Compiling and installing sysvinit... Entering /home/miguel/DM355SDK786811/toolchain... Build complete Entering arch... Checking dependencies for base Compiling and installing base... Entering mach... Checking dependencies for base Compiling and installing base... Entering proprietary_src... Checking dependencies for dvsdk_2_00_00 Checking dependencies for xdctools_3_10_05 Compiling and installing xdctools_3_10_05... Compiling and installing dvsdk_2_00_00... Checking dependencies for gst-dmai-plugins Compiling and installing gst-dmai-plugins... Entering myapps... Checking dependencies for calculator Compiling and installing calculator... Installing proprietary code Installing overlay Building file system target image(s) Generating file system nfsroot... Selected NFS root filesystem... Please check the directory /home/miguel/DM355SDK786811/fs/fs is on your nfs-server exports file Build complete Processing bootloader... Building UBL Building uncompress uImages for bootloader TFTP directory found at /srv/tftp, loading components there Build complete Processing installer...
Now the SDK is built and the resultants images are inside the ~/DM355SDK840402/images directory and inside /srv/tftp for TFTP installation method to the Leopard Board.
The last step is to deploy the software built by the SDK on the Leopard Board, please refer to the post "Installing the bootloader, kernel and file system built by the RR SDK into the Leopard Board" at http://designsomething.org/leopardboard/f/22/p/103/178.aspx#178.
-- Miguel AguilarEmbedded Software EngineerRidgeRun Embedded Solutions