Recent Linux on the Itian SquareOne
(Last boot on 2019-08-20 using v4.19 OpenWRT)

SQ201
SQ201 top view
SQ201 bottom view

ITian SquareOne SQ201

I have moved the basic use and set-up of the device to the corresponding OpenWrt ITian SQ201 page where it is properly maintained by the community. This page is just my own musings and tricks, and a bit of history.

This is a pretty funny gemini-based router and NAS. All references on the Internet (almost) are in polish, but the FCC documentation seems to come from people in Taiwan. So it seems like a polish company partnered with a Taiwanese electronics producer to make a home router and NAS for the polish market, using the Gemini SL3516 chip. ITian has not been heard from for the last ten years or so.

Serial Port

There are serial port connectors on the PCB.

The serial port uses 115200N8 unlike other Gemini platforms that usually use 19200N8.

Pre-built kernels

SQ201-Specifics: Getting SQ201 RT2561s wireless going

Analyzing the Firmware

Log into the vendor-supplied firmware with admin/admin.

bootlog.txt

  cat /proc/interrupts
  CPU0
  1:          0   eth1
  2:         21   eth0
  4:        116   ide1
  8:          0   sl2312 pci int
  15:      35981   SL2312 Timer Tick
  18:       2118   sl2312
  22:          0   GPIO1
  23:          0   GPIO2
  25:          0   cir
  64:          0   uhci_hcd:usb2
  65:          0   uhci_hcd:usb3
  66:          0   ehci_hcd:usb1
  67:       7350   ra0
  Err:          0

  cat /proc/iomem
  00000000-07ffffff : System RAM
  00025000-0033e5d3 : Kernel text
  00340000-004759bf : Kernel data
  42000000-4200004f : serial_sl2312
  58000000-58007fff : 0000:00:0c.0
  58008000-580080ff : ehci_hcd
  63000000-63000040 : lepus-sata0
  63400000-63400040 : lepus-sata
  68000000-68000fff : ehci-hcd-FOTG2XX
  69000000-69000fff : ehci-hcd-FOTG2XX-1
  f4800000-f4800038 : irq_handler

  cd /sys/bus/platform/devices && ls -al
  lrwxrwxrwx    1 root     root            0 Dec 31 16:09 lepus-sata -> ../../../devices/platform/lepus-sata
  lrwxrwxrwx    1 root     root            0 Dec 31 16:09 lepus-sata0 -> ../../../devices/platform/lepus-sata0
  lrwxrwxrwx    1 root     root            0 Dec 31 16:09 ehci-hcd-FOTG2XX -> ../../../devices/platform/ehci-hcd-FOTG2XX
  lrwxrwxrwx    1 root     root            0 Dec 31 16:09 ehci-hcd-FOTG2XX-1 -> ../../../devices/platform/ehci-hcd-FOTG2XX-1

  cd /sys/bus/usb/devices && ls -al
  lrwxrwxrwx    1 root     root            0 Dec 31 16:11 usb1 -> ../../../devices/pci0000:00/0000:00:09.2/usb1
  lrwxrwxrwx    1 root     root            0 Dec 31 16:11 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:09.2/usb1/1-0:1.0
  lrwxrwxrwx    1 root     root            0 Dec 31 16:11 usb2 -> ../../../devices/pci0000:00/0000:00:09.0/usb2
  lrwxrwxrwx    1 root     root            0 Dec 31 16:11 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:09.0/usb2/2-0:1.0
  lrwxrwxrwx    1 root     root            0 Dec 31 16:11 usb3 -> ../../../devices/pci0000:00/0000:00:09.1/usb3
  lrwxrwxrwx    1 root     root            0 Dec 31 16:11 3-0:1.0 -> ../../../devices/pci0000:00/0000:00:09.1/usb3/3-0:1.0

Source code from other vendors suggest things like this for the MDIO GPIO pins to talk to the Vitesse switch and the PHY searching for the keyword VITESSE_G5SWITCH:

Kernel TODO

OpenWrt TODO

Fix installation procedure and flash layout.

Testing

Bring up interfaces:

  ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
  ifconfig eth1 169.254.1.2 netmask 255.255.255.0 up
  ifconfig lan1 up

Testing jumboframes:

  ifconfig lan1 mtu 9000
  ifconfig eth1 mtu 9000
  ifconfig eth0 mtu 9000
  ping -s 8000 <ip>

Links