OggStreamer XportPro SDK RC1

Georg Ottinger

OggStreamerSDK-RC1 integrates for the first time all the Files needed for the complete OggStreamer Firmware

Still installing the OggStreamer XportPro SDK is a multi step process.
As it is based on Lantronix 2.0.0.3 Xport Pro SDK you first have to download this file

!!!! Stick to the proposed order !!!!!

1. Download the original Lantronix XPortPro SDK and Patches

You can download the ISO File from:
http://www.lantronix.com/ftp/Linux_SDK/SDK2_0_0_3/linux_sdk_2_0_0_3.iso
or from this mirror:
https://data.otelocloud.org/public.php?service=files&t=0d2b02aecb27ada811195d97d1912589

the following two files are needed for OggStreamer specific patches:

LantronixSDK2.0.0.3-to-OggStreamerSDK-RC1-20131020.patch.bz2
LantronixSDK2.0.0.3-to-OggStreamerSDK-RC1-binaries-20131020.tar.bz2

direct links:
https://sourceforge.net/p/oggstreamer/patches/ci/master/tree/LantronixSDK2.0.0.3-to-OggStreamerSDK-RC1-20131020.patch.bz2
https://sourceforge.net/p/oggstreamer/patches/ci/master/tree/LantronixSDK2.0.0.3-to-OggStreamerSDK-RC1-binaries-20131020.tar.bz2

The patches are located in the git repo:
https://sourceforge.net/p/oggstreamer/patches/ci/master/tree/

2. Needed tools

Check that your linux provides the following packages:

  • build-essential
  • python
  • sudo
  • libacl1-dev
  • tftpd or tftpd-hpa
  • patch
  • libtasn1-3-dev
  • zlib1g-dev
  • rsync
  • ssh
  • nfs-kernel-server
  • libncurses5-dev (for the ncurses-based configuration utility)
  • git

the above mentioned packages are installed automatically via the Lantronix Installer when needed - but be sure you also have automake installed

  • automake
  • cmake

If you want to play around with the STM8 Firmware, you will also have to install SDCC (for RC1 the version #8894 is used)

you can get SDCC via SVN with the following command

svn checkout svn://svn.code.sf.net/p/sdcc/code/trunk sdcc-code

you might need to revert to #8894

cd sdcc-code
svn up -r 8894

IMPORTANT: If you are compiling on 64Bit make sure to get the libc6 Files for i386 (32bit)

for example on Debian like distros:

apt-get install libc6-i386

IMPORTANT: Make sure you are using BASH

rm /bin/sh
ln -s /bin/bash /bin/sh

3. Install the Lantronix SDK in your home folder

you can mount the ISO-Image using the '-o loop' option

for example

sudo mount -o loop ~/Downloads/linux_sdk_2_0_0_3.iso /media/CDROM

create a install dir in your home dir

cd ~
mkdir OggStreamerSDK-RC1

go to this directory and start the install process

cd OggStreamerSDK-RC1
/media/CDROM/install.sh

4. Patching Lantronix SDK to OggStreamerSDK

make sure you are in the "OggStreamerSDK-RC1" directory

patch the Lantronix SDK with the following command

bzip2 -d -c ~/Downloads/LantronixSDK2.0.0.3-to-OggStreamerSDK-RC1-20131020.patch.bz2 | patch -p 1

and add additional files

bzip2 -d -c ~/Downloads/LantronixSDK2.0.0.3-to-OggStreamerSDK-RC1-binaries-20131020.tar.bz2 | tar x

5. Fix permissions

chmod +x fixpermissions
./fixpermissions

5. rerun the config

set the needed environment variables
. env_m68k-uclinux

start make config

make config

now select "XPort_Pro_16MB" and "AUFS" as targets. For the other options just hit enter

*
* Select the Product you wish to target
*
Lantronix Products
> 1. XPort_Pro_16MB (DEFAULTS_LANTRONIX_XPORT_PRO_16MB) (NEW)
  2. XPort_Pro (DEFAULTS_LANTRONIX_XPORT_PRO) (NEW)
  3. MatchPort_AR (DEFAULTS_LANTRONIX_MATCHPORT_AR) (NEW)
  4. EDS2100 (DEFAULTS_LANTRONIX_EDS2100) (NEW)
  5. EDS1100 (DEFAULTS_LANTRONIX_EDS1100) (NEW)
choice[1-5]: 1
Configuration Profile
> 1. DEFAULT (LTRX_PROFILE_DEFAULT) (NEW)
  2. DEVELOPMENT (LTRX_PROFILE_DEVELOP) (NEW)
  3. NO_IPV6 (LTRX_PROFILE_NO_IPV6) (NEW)
  4. COMPACT (LTRX_PROFILE_COMPACT) (NEW)
  5. AUFS (LTRX_PROFILE_AUFS) (NEW)
  6. SHARED (LTRX_PROFILE_SHARED) (NEW)
choice[1-6?]: 5

6. Build the OggStreamer Firmware

make

now wait for a few minutes ...

7. Generate OggStreamer Firmware packages

cd oggstreamer-OggStreamerPackage/
./genfromcsv.sh

8. You can now upload the Firmware to the OggStreamer

upload_firmware.sh update.tgz IPADDR

9. Integrating the GIT Repo

you can use the scripte integrate_git_ro.sh for readonly git acess or integrate_git_rw.sh


Related

Wiki: Linux Software