Nokia IP130
Nokia IP130 is a a x86-based router and VPN appliance using the AMD Geode CPU with a CS5530A chipset
Hardware Highlights
CPU | Ram | Flash | Network | USB | Serial | JTag |
---|---|---|---|---|---|---|
AMD Geode 300 MHz | 256 MB | PATA up to 20 GB | 3 x 100BaseT Ethernet (e100 driver) | No | 2 Ports | No |
Interfaces
IP130 | Openwrt |
---|---|
LAN I | eth0 |
LAN II | eth1 |
LAN III | eth2 |
CONSOLE | /dev/ttyS0 |
AUX | /dev/ttyS1 |
(Unofficial) Ready-built images
Pre-built images for the Nokia IP130 platform are available from http://ip130.cmalton.me.uk/releases/ DEAD LINK --- tmomas 2019/10/14 17:28
They are based from trunk, and the openwrt tree, plus IP130 patches is stored in the repository at http://git.cmalton.me.uk/cgi-bin/gitweb.cgi?p=openwrt.git;a=summary DEAD LINK --- tmomas 2019/10/14 17:28
By default these builds have an 115200 8N1 console on /dev/ttyS0 (CONSOLE port), and eth0 is configured as br-lan with IP 192.168.1.1.
Queries about this build should be sent to chrism+openwrt@cmalton.me.uk
Installation
First, download the sources and update package feeds. Information here: http://kamikaze.openwrt.org/docs/openwrt.html#x1-400002.1
Select the following configuration options:
"Target system": x86 "Subtarget": Nokia IP130 "Target Profile": Generic
Target images
Only a squashfs grub image is needed to boot. For debugging purposes it's good to enable the .tar.gz root filesystem archive.
Console
"Serial port device": ttyS0 "Serial port baud rate": 115200
Set the “Root filesystem partition size” accordingly to your HDD/flashcard size. Keep in mind, that the image will also contain a kernel partition with size “Kernel partition size”.
After the image is built dd it onto a CF card or hard disk.
Enabling the Ethernet ports
The EEPROM checksum stored in Ethernet chips on the board seems to be broken and with a plain image the Ethernet ports are not activated with the following messages logged in dmesg:
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI e100: Copyright(c) 1999-2006 Intel Corporation e100 0000:00:0e.0: found PCI INT A -> IRQ 10 e100 0000:00:0e.0: (unregistered net_device): EEPROM corrupted e100: probe of 0000:00:0e.0 failed with error -11 e100 0000:00:0f.0: found PCI INT A -> IRQ 11 e100 0000:00:0f.0: (unregistered net_device): EEPROM corrupted e100: probe of 0000:00:0f.0 failed with error -11 e100 0000:00:10.0: found PCI INT A -> IRQ 10 e100 0000:00:10.0: (unregistered net_device): EEPROM corrupted e100: probe of 0000:00:10.0 failed with error -11
To fix this you need to edit the /etc/modules.d/50-e100 file to enable a special module flag:
e100 eeprom_bad_csum_allow=1
After this is done the Ethernet ports will be activated after reboot:
root@OpenWrt:/etc/config# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:A0:8E:21:F0:F3 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:A0:8E:21:F0:F4 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth2 Link encap:Ethernet HWaddr 00:A0:8E:21:F0:F5 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Additional information
lspci
root@OpenWrt:~# lspci 00:00.0 Host bridge: Cyrix Corporation PCI Master 00:0d.0 Co-processor: Broadcom Corporation Device 5802 (rev 01) 00:0e.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast Ethernet Controller (rev 10) 00:0f.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast Ethernet Controller (rev 10) 00:10.0 Ethernet controller: Intel Corporation 8255xER/82551IT Fast Ethernet Controller (rev 10) 00:12.0 ISA bridge: Cyrix Corporation 5530 Legacy [Kahlua] (rev 30) 00:12.1 Bridge: Cyrix Corporation 5530 SMI [Kahlua] 00:12.2 IDE interface: Cyrix Corporation 5530 IDE [Kahlua] 00:12.3 Multimedia audio controller: Cyrix Corporation 5530 Audio [Kahlua]
/proc/cpuinfo
root@OpenWrt:~# cat /proc/cpuinfo processor : 0 vendor_id : Geode by NSC cpu family : 5 model : 9 model name : Geode(TM) Integrated Processor by National Semi stepping : 2 cpu MHz : 300.002 cache size : 16 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu tsc msr cx8 cmov mmx cxmmx bogomips : 600.00 clflush size : 32 cache_alignment : 32 address sizes : 32 bits physical, 32 bits virtual power management:
Patch
You need to apply the patch below to add the “Nokia IP130” subtarget in x86. I want this patch to go into mainline and created a forum thread for it: https://forum.openwrt.org/viewtopic.php?id=30223
Signed-off-by: Maciej Grela <maciej.grela@gmail.com> Index: target/linux/x86/ip130/config-default =================================================================== --- target/linux/x86/ip130/config-default (wersja 0) +++ target/linux/x86/ip130/config-default (wersja 0) @@ -0,0 +1,11 @@ +CONFIG_CPU_SUP_AMD=y + +CONFIG_DMI=y +CONFIG_ISA=y +CONFIG_ISA_DMA_API=y +CONFIG_PATA_LEGACY=y +CONFIG_PATA_PLATFORM=y + +# Allow booting from internal CF card or HDD +CONFIG_PATA_CS5530=y + Index: target/linux/x86/ip130/target.mk =================================================================== --- target/linux/x86/ip130/target.mk (wersja 0) +++ target/linux/x86/ip130/target.mk (wersja 0) @@ -0,0 +1,9 @@ +BOARDNAME:=Nokia IP130 +FEATURES:=squashfs pci + +DEFAULT_PACKAGES += kmod-e100 bridge libopenssl \ + ocf-crypto-headers zlib hwclock + +define Target/Description + Build firmware images for Nokia IP130 VPN gateway +endef Index: target/linux/x86/Makefile =================================================================== --- target/linux/x86/Makefile (wersja 27025) +++ target/linux/x86/Makefile (kopia robocza) @@ -10,7 +10,7 @@ BOARD:=x86 BOARDNAME:=x86 FEATURES:=squashfs jffs2 ext4 vdi vmdk pcmcia targz -SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos alix2 thincan +SUBTARGETS=generic olpc xen_domu ep80579 net5501 kvm_guest geos alix2 thincan ip130