Category Archives: archived

Default openNAS Startup


::sysinit:/bin/mount -n -t proc proc /proc

::sysinit:/bin/hostname -F /etc/hostname






1. mount proc


echo " *** Load Config ***>> "

/sbin/expand /ramfs.img /dev/ram1
/sbin/expand /ramfs.img /dev/ram0

/bin/mount -n -t ext2 /dev/ram0 /var
/bin/rm -r /var/lost+found

/bin/mount -n -t ext2 /dev/ram1 /flash
/bin/rm -r /flash/lost+found

/bin/cp -a /etc/* /flash > /dev/null 2>&1
/bin/umount /flash

/bin/mount -n -t ext2 /dev/ram1 /etc

/bin/dd if=/dev/mtd3 of=/var/etc.tgz >/dev/null 2>&1
cd /var;/bin/gunzip etc.tgz;tar -xf etc.tar -C / > /dev/null 2>&1 || echo "   *** Restore Config failed ***>>"
rm /var/etc.tar

3. set hostname from /etc/hostname



/bin/mkdir /var/log
/bin/mkdir /var/lock
/bin/mkdir /var/run
/bin/mkdir /var/tmp
/bin/mkdir /var/sm
/bin/mkdir /var/state
/bin/touch /var/sm/sm.bak
/bin/touch /var/run/xtab
/bin/touch /var/run/etab
/bin/touch /var/run/rmtab

5. /etc/init.d/rcS – start scripts in init.d by default:

# Start all init scripts in /etc/init.d
# executing them in numerical order.
for i in /etc/init.d/S??* ;do

	 # Ignore dangling symlinks (if any).
	 [ ! -f "$i" ] && continue

	 case "$i" in
	    # Source shell script for speed.
		trap - INT QUIT TSTP
		set start
		. $i
	    # No sh extension, so fork subprocess.
	    $i start

echo " *** Start User Init ***>>"
/mnt/user/ || echo "   *** Can't start! ***>>"


NH-220 (Longshine 8220/AdsTech NAS-806-EF)

Most of this information came from searching the internet and the openNAS wiki. Also with a little help from Google Translator. These are rebranded Netronix NAS units.

What is Not Inside

The unit comes without a hard drive. I have installed a 320 GIG drive successfully, so this works. I have read that it will work with up to a 400 GIG hard drive but I have not tried this myself.

What is Inside

There are two NH-220 versions, one has 32MB RAM (Allnet, Flepo) and the other 64MB RAM (Longshine 8220, ADS) main memory. I have an ADS version so this is the type I am concerned and will cover.

The NAS runs an embedded version of Linux. Some of the major components:

PMC-Sierra (MSP2006 MIPS) MSP (Multi Service Processor) SoC 
(acquired from Brecis Communications)

Core: MIPS 4Km
Speed: 167 MHz Max
Interfaces: (2) 10/100, PCI SDRAM, local bus, UARTs, SPI/MPI 2-wire serial
PMC site has additional CPU specs
This CPU does not have a Memory Management Unit (MMU). 

ITE 8211F IDE Controller

  • Compatible with the ATA/ATAPI-6 specification
  • 512 bytes FIFO for data transfer per IDE channel
  • Supports Scatter/Gather function for DMA/UDMA transfer
  • Supports pre-fetch and post-write function for PIO mode per IDE channel

IC Plus Corp.

  • Single Port 10/100 Fast Ethernet Transceiver

BOTHHAND 10/100 Base Pulse Transformers

ProMOS Technologies Inc.
SDR Synchronous DRAM

  • Density 256 MegaBit (2 Chips on ADS = 64 Meg Bytes)
  • Organization 16M x 16
  • Voltage 3.3V
  • Refresh 8K
  • Part Number V54C3256164VD
  • Package T
  • Speed 7 (143MHz@CL3)

Macronix International (MX)
Boot Sector Flash

  • Density 32 MegaBit (4 Meg Bytes of 8 bits)
  • Part Number MX29LV320ABTC-90
  • Access Time 90 ns

Board Connections

J1: NAS power supply in connection
J2: Power connection for IDE hard drive
J3: NAS internal fan connection
J4: COM1
J5: 10/100Mbps RJ-45 Ethernet port
J6: COM2 (?)

JP1: JTAG (?)
JP2: IDE interface

SW1: NAS Power ON/OFF switch 
SW2: Reset Switch

LD1: Power LED
LD3: Network LED


PART II: Up and Running with openNAS

I have a 320 gig Maxtor ATA with 16 meg cache installed. The output of hdparm:

~ # hdparm /dev/hda

 multcount      =  0 (off)
 IO_support     =  0 (default 16-bit)
 unmaskirq      =  0 (off)
 using_dma      =  1 (on)
 keepsettings   =  0 (off)
 readonly       =  0 (off)
 readahead      =  8 (on)
 geometry       = 38913/255/63, sectors = 625142448, start = 0
~ # hdparm -Tt /dev/hda

 Timing cached reads:   148 MB in  2.02 seconds = 73.27 MB/sec
 Timing buffered disk reads:  36 MB in  3.05 seconds = 11.80 MB/sec

 Timing cached reads:   152 MB in  2.01 seconds = 75.62 MB/sec
 Timing buffered disk reads:  36 MB in  3.04 seconds = 11.84 MB/sec



J1: Power pack
J2: Current supply of the non removable disk
J3: Current supply of the exhaust
J4: COM1
J5: Net socket
J6: COM2 (?)
JP1: JTAG (?)
JP2: IDE interface
SW1: In/circuit breaker
SW2: RESET tracer
LD1: Power LED
LD3: Net traffic LED

In the Netronix NH-220 NAS devices the BRECIS MSP2006 MIPS32 4Km processor is blocked. Here it concerns one on 170Mhz clocked MIPS CCU. As is the case for others embedded/NAS here a MMU is missing to systems to the store management.
The CCU is accessible over a JTAG interface.

Load Firmware extensions
To enable the Unicode and UPNP function for the device, you have to install the "ntx_libra.tgz" file to the device before any configuration.

To install the file,
1. Insert the included CD and click the "Browse" button.
Note: The Install Menu may auto run. Click "EXIT" to close it.
2. Select your CD-Rom drive. Select Firmware Extensions Gigabit SATA NAS with USB folder. Select the "ntx_libra.tgz" file and click "Open" to browse the file.
3. Click "Apply" to perform installation.
4. It takes a few seconds to perform installing, please wait upon installation.