Reference9:Linux/General: Difference between revisions

From innovaphone wiki
Jump to navigation Jump to search
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The fundamental operating modes of Linux are configured on this page.
The innovaphone OS and the Linux Application Platform coexist on the device. The Linux Application Platform uses the second CPU core and reserved memory. With enabled Linux support the necessary memory is reserved during the device reboot.
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
 
 
==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
 
<nowiki>http://addr/!config+flags+L...</nowiki>
<nowiki>http://addr/!config+write</nowiki>
<nowiki>http://addr/!reset</nowiki>


== Configuration ==
== Configuration ==
The Linux OS is in a non-local network. To access it with devices that have no proper routing configuration for it, '''Proxy ARP''' in the source network interface on this device must be enabled.


=== ETH2 - virtual network connction for Linux ===
{|
 
|valign=top nowrap=true|'''Linux kernel file:'''
* DHCP: Mode Server
| The Linux kernel file name on the CF card. For the Linux Application Platform it must be set to:
* IP: IP Address z.B. 172.16.14.253
:IPxx10 hardware: <code>Image-6010-3.4.10</code>
* IP: IP Network Mask z.B 255.255.255.252
:IPx11 hardware: <code>Image-IPx11-4.4.0</code>
* 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
|valign=top nowrap=true|'''Linux initrd file:'''
* DHCP-Server: Network Mask 255.255.0.0
| The Linux initrd file name on the CF card if used. Not used for the innovaphone Linux Application Platform.
* DHCP-Server: Default Gateway 172.16.0.1
|-
 
|valign=top nowrap=true|'''Kernel command line:'''
=== Start Linux ===
| The kernel command line which is set at start-up. For a new innovaphone Linux Application Platform it must be set to ''root=/dev/sda2''. After a successful installation it is changed to ''root=/dev/sda4'' by the installation script.
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.
|-
 
|valign=top nowrap=true|'''Ramdisk size:'''
==== Linux with root file system starting in a RAM disk  ====
| The size of the RAM disk in kBytes if used. Not used for the innovaphone Linux Application Platform.
* Linux kernel file: e.g. ip6000-linux-2.6.28.2-BE.bin
|-
* Linux initrd file: e.g. ip6000-rootfs-BE.ext2.gz
|valign=top nowrap=true|'''Autostart Linux:'''
* Kernel command line: root=/dev/ram0
| If ticked, Linux is started automatically if the device reboots and Linux is not running.
* 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.
== Start ==
For starting Linux a kernel binary must be uploaded or be provided via the compact flash (CF) card. Via the kernel command line the kernel is informed where the root file system is found. It can be uploaded as temporary RAM disk (initrd) or be available on the CF card as whole partition.


Format partition, mounting and copy the root file system:
The Linux Application Platform [http://download.innovaphone.com/ image] includes both the Linux Kernel and the root file system. The image can be uploaded to the CF card with the [http://wiki.innovaphone.com/index.php?title=Reference9:General/Compact-Flash/Image CF image page].


mkfs.ext2 /dev/sda2
== Related Articles ==
gunzip /tmp/ip6000-linux-2.6.28.2-BE.ext2.gz
[http://wiki.innovaphone.com/index.php?title=Reference9:Concept_Linux_Application_Platform Concept Linux Application Platform]
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

Latest revision as of 17:15, 12 February 2018

The innovaphone OS and the Linux Application Platform coexist on the device. The Linux Application Platform uses the second CPU core and reserved memory. With enabled Linux support the necessary memory is reserved during the device reboot.

Configuration

The Linux OS is in a non-local network. To access it with devices that have no proper routing configuration for it, Proxy ARP in the source network interface on this device must be enabled.

Linux kernel file: The Linux kernel file name on the CF card. For the Linux Application Platform it must be set to:
IPxx10 hardware: Image-6010-3.4.10
IPx11 hardware: Image-IPx11-4.4.0
Linux initrd file: The Linux initrd file name on the CF card if used. Not used for the innovaphone Linux Application Platform.
Kernel command line: The kernel command line which is set at start-up. For a new innovaphone Linux Application Platform it must be set to root=/dev/sda2. After a successful installation it is changed to root=/dev/sda4 by the installation script.
Ramdisk size: The size of the RAM disk in kBytes if used. Not used for the innovaphone Linux Application Platform.
Autostart Linux: If ticked, Linux is started automatically if the device reboots and Linux is not running.

Start

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

The Linux Application Platform image includes both the Linux Kernel and the root file system. The image can be uploaded to the CF card with the CF image page.

Related Articles

Concept Linux Application Platform