Table of Contents

ITian Square One SQ201

 ITian SQ201

The ITian Square One SQ201 is a combined 4+1 router and NAS with space for an internal 3.5“ SATA hard drive. It also has three USB ports, external SATA connector, two external antenna connectors.

Supported Versions

Hardware Highlights

Installation

Quick Installation Procedure

Obtain the latest snapshot image and extract the actual image files:

 cd /var/lib/tftpboot
 curl http://downloads.openwrt.org/snapshots/targets/gemini/generic/openwrt-gemini-itian_sq201-squashfs-factory.bin | tar xvz

This should download and extract the files zImage, rd.gz and hddapp.tgz into /var/lib/tftpboot. This is just an example, but to install the images you will need a TFTP server and this is the most common location of the TFTP file server directory.

For background and details about TFTP see the generic OpenWrt TFTP instructions.

Don't mind the fact that these files are not at all what they say they are: in the original firmware this is indeed a zImage and initial ramdisk etc. In OpenWrt the kernel is split upp between zImage and rd.gz, and hddapp.tgz is the actual root filesystem.

These files can be installed using a UART console and interactive TFTP if you have a UART console (see below) using the RedBoot commands Y, R and A for zImage, rd.gz and hddapp.tgz. But there is also a way to just install it directly from TFTP:

Now OpenWrt is installed on your router, and you can proceed to basic configuration.

The same method with the same named files from a stock firmware recovery image can be used to revert back to the original firmware.

Hardware

PCB photos

PCB Top PCB Bottom

Identified electronics

Mounting UART serial port

For background and generic information see the generic serial console documentation.

I connected a serial port after some simple tinkering. There is a helpful header named “console” for the UART and even another helpful header named “JTAG” for the JTAG. The port is 115200 baud.

In the PCB image above you can see some wires connected to the UART connector. These are:

YELLOW   power +5V
ORANGE   in RX
RED      GND
GREEN    out TX

For this device I used an Embed Inc RSLink2 RS232 adapter, but any standard UART adapter should work fine.

Serial console hacking

If you boot to the default system image you can log in with admin/admin

At boot after pressing the button on the front, press CTRL+C and you will be dropped into the boot loader which is called “PLATO” which is a variant of the RedBoot boot loader.

Typing 5 takes you to a command line interface where it is possible to load a kernel over Xmodem or TFTP

Load the kernel with Xmodem to 0x01600000 (use for example minicom's CTRL+A then S) and execute it with:

 sl-boot> load -m xmodem -b 0x1600000
 sl-boot> go 0x1600000

If you instead set up a TFTP server (which I recommend, because it is faster) you need to set up the IP address in the PLATO menu to be for example 169.254.1.2, plug the ethernet crossed cable into one of the LAN ports (not the WAN port!) and then you can use:

  sl-boot> load -m tftp -b 0x1600000
  TFTP Server IP Address: 169.254.1.1
  Image Path and name(e.g. /images/zImage): zImage
  TFTP Download zImage from 169.254.1.1 .......................................
  Successful to download by TFTP! Size=4646107
  sl-boot> go 0x1600000

This should boot the kernel.

Tags