Reference8:Configuration/LINUX/General

From innovaphone-wiki

Jump to: navigation, search
There are other versions of this article: Reference8 (this version) | Reference9

The fundamental operating modes of Linux are configured on this page. The Linux OS can be startet on selected platforms as a secondary operating system that runs application specific tasks. Linux and the innovaphone OS coexist on the device and share the resources like memory and cpu time.

 Note: LINUX is only as Beta for experimental use at V8 available


Contents

Supported platforms

Linux is currently supported as a beta on the IP6000 in big or little-endian. The default endian of the IP6000 is big-endian.

IP6000 little-endian

Common Linux distributions run in little-endian, the IP6000 CPU usually runs in big-endian. To support little-endian Linux a little-endian IP6000 firmware is available. To install this firmware the LDAP directory and the VARS need to be changed to little-endian format. The procedure to install the little-endian IP6000 firmware version is:

  • Backup configuration
  • Install latest boot code that allows to boot little-endian IP6000 firmware.
  • Install latest IP6000 firmware that supports migration to littleendian
  • clear the flash memory with http://addr/!mod+cmd+FLASHMAN0+reset+all+erase
  • Upload the little endian firmware to DRAM ( ip6000-le.bin )
  • Now the little-endian code is running...
  • Upload ip6000-le.bin to flash.
  • Restore configuration

The IP6000 little-endian version has some restrictions: boot code update is not possible, certificate key invalidation is not supported.

To install the big-endian over the little-endian version it is also needed to clear the flash, upload the big-endian version to DRAM, and then flash the big-endian version.

Memory partitioning

The innovaphone OS can reserve memory for Linux and switches the Linux menus on. This is done with the commands

http://addr/!config+flags+L...

http://addr/!config+write

http://addr/!reset

Configuration

ETH2 - virtual network connction for Linux

  • DHCP: Mode Server
  • IP: IP Address z.B. 172.16.14.253
  • IP: IP Network Mask z.B 255.255.255.252
  • IP: Proxy ARP enable, also for outgoing network interface ETH0 or ETH1
  • DHCP-Server: First Address and Last Address e.g. 172.16.14.254
  • DHCP-Server: Network Mask 255.255.0.0
  • DHCP-Server: Default Gateway 172.16.0.1

Start Linux

For starting Linux a kernel binary must be uploaded or be provided via the compact flash (CF) card. Via the kernel command line you tell the kernel where the root file system is. This can be uploaded or be available via the CF card. It will be used as temporary RAM disk, or as whole partition on the CF card.

Linux with root file system starting in a RAM disk

  • Linux kernel file: e.g. ip6000-linux-2.6.28.2-BE.bin
  • Linux initrd file: e.g. ip6000-rootfs-BE.ext2.gz
  • Kernel command line: root=/dev/ram0
  • Ramdisk size in kBytes: 11040

Image:Linux-menu.png

Linux with root file system on the compact flash card

  • Linux kernel file: e.g. ip6000-linux-2.6.28.2-BE.bin
  • Linux initrd file:
  • Kernel command line: root=/dev/sda2
  • Ramdisk size in kBytes:

Copy Linux to the compact flash card

The root system shows a file system on the CF card. Linux will be started with the root file system in the RAM disk. With telnet you can connect to the Linux system:

telnet 172.16.14.253

Loginname: default No password.

Mounting of the CF card and copy the data:

su (no password)
mount /dev/sda /mnt
cp /mnt/ip6000-linux-2.6.28.2-BE.ext2.gz /tmp/ip6000-linux-2.6.28.2-BE.ext2.gz
umount /dev/sda

Build a partition on the CF card:

fdisk /dev/sda

The first primary partition can be a WIN95 (LBA), the second a Linux partition. A swap partition will be initialized searched on the fourth position.

Format partition, mounting and copy the root file system:

mkfs.ext2 /dev/sda2
gunzip /tmp/ip6000-linux-2.6.28.2-BE.ext2.gz
mkdir /tmp/root
mount /tmp/ip6000-linux-2.6.28.2-BE.ext2 /tmp/root -o loop
mount /dev/sda2 /mnt
cp -r /tmp/root /mnt
umount /tmp/ip6000-linux-2.6.28.2-BE.ext2
umount /dev/sda2
Personal tools