Activate NFS Support on QNAP TS-209 II

The QNAP TS-209 II and TS-209 Pro II have the same hardware specifications, however, the firmwares are slightly different, the main differences are: NFS and ADS support are only available on TS-209 Pro II. Afte some investigation, I found it’s easy to enable NFS on TS-209 II. This post describes the way to achieve it.

SSH to TS-209 II and then take the following steps:

1. Enable NFS support in system configuration

setcfg NFS Enable 1

This will create an NFS section in system configuration file (/etc/config/uLinux.conf) and add an item under the section which enables NFS during bootstrap.

2. Create user for NFS

TS-209 II defaults to run NFS with UID=500 and GID=20, so let’s create a user for it:

addgroup -g 20 nfsgroup
adduser -u 500 -G nfsgroup nfs

Read More »

Product Development Diagram

An interesting picture from javaeye.com:

My Hanlin V3 Was Broken

UPDATE: After replacing the screen, it works again. The replacement cost about US$175, half the price of V3.

I bought a Hanlin V3 eReader two weeks ago, it utilises e-ink technologies (vizplex), it has a 6″ screen, 512M memory, 800×600 resolution, 4 gray scales, and handles 13 file formats. It’s a product of Jinke. The device worked great, but yesterday it was broken when it hit to the ground from about 30 feet high (caused by my dog, last time he pushed my iPhone down to the ground).

The screen no longer reacts, here’s a photo of what it looks like now:

Before I sent it for screen replacement, I managed to take a look at what’s inside it, so I disassembled it and took some photos:

Read More »

Mails From A Fraud Victim

I have nothing to do with your purchase. I have nothing to do with any site that sells iLiberty+ or other unlocking applications. My official domain is: insideiphone.com (I no longer use zjlotto.com since May 2008).

Recently I have received quite some emails complaining about their puchases. In short, they didn’t know iLiberty+ is freeware and bought it from some fraud site (one of which is www.unlocksiphone.com) and thougt I’m the owner of that fraud site. The following is one of the mails I have received:

From: George Mindrinos

the program try to go to recovery mode and
stuck.i have 3g iphone v.2.
the site says can unlockit and i paid.then the site redirects to you.finally can you help me or
is a cheat.
thanks in advance
george

My reply:

Sigh……Why can’t people read properly ? I have put a clear
clarification on my blog which says iLiberty+ can NOT
jailbreak/activate/unlock 3G/2.0.

Read More »

A Seczone Filled With 0xFF

I’ve been sort of busy doing some Python stuffs so this blog has not been updated for days, besides I’m lazy sometimes :) Okay, this is a story about what has happened to my 1st-gen iPhone, the story may prevent you from doing stupid things like me :)

Last week, I was trying the firmware 2.0 on my 1st-gen iPhone (bootloader 3.9, firmware 1.1.4), after some successful “normal” operations, I decided to try some “abnormal” situations, so I messed my iPhone in the following manner:

Restore to 2.0
Restore to 1.1.4
Downgrade baseband
Erase baseband
Activate
Unlock the AnySim way
Unlock the IPSF way

The above operations were taken multiple times and might not be in the displayed order (I couldn’t recall the exact steps I took), I used the following tools during the above operations:

Read More »

Donations Sent To Red Cross

Although I’m eager to own a MacBook Pro and have been saving for it, and I’m accepting donations for it as well, I feel people in Wen Chuan County (Sichuan Province) who have suffered huge loss in the recent earthquake (happened on May 12) need more support, so I have donated the donations I have received so far to China’s Red Cross Organization.

A big “Thank You!” to all the people who have donated:

Anestis Georgiadis
Neil Baldwin
Oktay Oeztueter
Eddy Tjondronegoro
Abner Cesaire
Severo Acevedo Ceballos
Terje Saether
Angel Barra Madrigal
Velimir Ljubic
Patrick Van Glabeke
Youssef Francis
Robert Olson
Lou Bragg
Rob Raab
Spyros Sklavos
Wing Yeu Michael Wu
David Perez

Snapshots from various forums:

Read More »

gzDecryptor, A Small Firmware Tool

UPDATE: In firmware 2.0.5A258f, the ramdisk is no longer a 8900 file, it’s just a normal ramdisk (slightly prepended/appened), so this tool will not work (currently) on 2.0.5A258f has been updated to support the latest firmware 2.0 5A258f. UPDATE: Works on 5A274d as well.

UPDATE: Fixed a bug that causes decryption failure if there are spaces in path/filename.

UPDATE: Added a routine to fix the generated DMG.

This is a small tool to simplify some firmware related jobs. Normally, you will take the following steps when you’ve got a new firmware:

1. Decompress firmware
2. Decrypt ramdisk
3. Extract rootfs decryption key
4. Decrypt rootfs
5. Extract important files

If you are on Mac OS X, you are lucky because you can easily find all the needed tools for the above jobs, and you can write an easy wrapper script to automate these jobs, but on Windows, there seems no such a tool yet, that’s why I write this small tool, gzDecryptor, check the following snapshot:

Read More »

First Chinese Handwriting IME On iPhone

Chinese mobile device users must know HWPen, a famous Chinese handwriting IME, it’s a very good input method, and offers the easiest Chinese input experience on a mobile device. Before I switch to iPhone, my favorite mobile phone was Dopod, and I always use HWPen as my first choice for Chinese input on my Dopod.

Ever since I switched to iPhone, I found I was in a situation that there’s no handwriting IME for me to input Chinese, so my favorite Chinese input method became iCosta Pinyin, a small and fast IME. I even wrote an article about it several weeks ago (check This Link) and analyzed some of the technique behind it. Basically, it overrides some system calls to implement the Chinese input.

The situation is changing, now HWPen has come to iPhone, as a former supporter I of course gave it a try. I downloaded the package (HWPen.zip) and extracted it, there’s no executables in it, so I was not expecting an application to setup parameters/environment for it, a quick check on its installation plist showed it interposes the libHWIME.dylib before SpringBoard is loaded, so it uses the similar technique just like other IMEs (e.g. iCosta). The scan on libHWIME.dylib showed it utilizes Korean keyboard, so it’ll not conflict with other IMEs that also use internal keyboards because other IMEs often utilize Japanese keyboard.

Read More »

New Features In Firmware 2.0 Build 5A240d

I’m usually not interested in betas, but I’m boring today, so I decided to give 2.0.5A240d a try and see if there’s interesting changes in it. So I restored with iTunes then activated it. Since I’m not interested in using it, so I just looked around trying to find out what’s new, the following is what I found:

Better Chinese Support

In old versions, when you switch to Chinese, you won’t notice any differences in GUI until you put the Chinese resource files into proper folder. But in 2.0 these resource files are bundled, when I try switching to Chinese, the SpringBoard and related settings immediately switch to new language.

MobileMail

In 2.0, MobileMail seems supporting more encodings. In old versions, it always uses UTF-8 encoding, so some mails written in other encodings (e.g. GB2312) are not readable, this has changed in 2.0. Now MobileMail correctly detects my GB2312-encoded mails.

SIM Contacts

Now you can import contacts from SIM into iPhone, but there seems no export function. The import function is in Settings -> Phone.

Parent Control

There’s a new item in Settings -> General, the Parent Control. You can control iTunes, Safari, YouTube, iTuneStore and App Store.

Others

There’re some minor changes in Settings.

2.0版固件的改进及新增功能

今天闲来无事,决定试试新版的固件(尽管拿到手很久了,但是从来没有兴趣装,因为对Beta版不是特别感兴趣)。虽然2.0版固件迄今还没有正式发布,不过从内部测试版本通常也能看出一些发展趋势来,于是立即动手把机器升级到了2.0版,因为没打算实际使用,所以仅仅随便看了看,连解锁都没有进行,只是看了看SpringBoard部分,不过还是让我看到了一些让人感到高兴的改进。

改进一: 多语言环境

在之前的版本中,即使切换了语言环境,仍然需要自行提供相应的语言包,才能在SpringBoard等处看到中文。在2.0中,资源文件已经随带了,一旦切换语言环境,相应的菜单,界面等立即同时切换语言,这下彻底省去了所谓的“汉化”工作了,相信不少人会感到非常高兴。

改进二: 邮件程序

之前版本的MobileMail在读取邮件时都是使用UTF-8识别邮件编码的,因此对于使用其他编码的邮件往往显示乱码,相信国人对GB2312中文乱码邮件一定不陌生。而在2.0中,这个问题似乎已经解决了,现在终于可以自动正确识别出编码了,GB2312中文邮件显示不再是让人头痛的问题。

改进三: 联系人

在2.0版固件的电话设置部分多了一个功能,就是将SIM卡联系人导入iPhone,再也不需要专门的软件来导入了,不过没有看到导出联系人到SIM卡的功能。

改进四: 家长控制

现在多出来一个家长控制配置,老外好像特别关心孩子,很多软件都有家长控制这个功能。

2.0或许还有其他的重要改进,不过我不是很关心,所以也就不再继续钻研了,相信等正式版出来一定会有惊喜的。

Geohot Linux Driver And iBooter

You may have known that I took some time reversing iBooter, trying to find out the magics behind it. After reading Geohot’s iPhone USB Linux Driver and client sample code, compared with what I have found by reversing iBooter, I have to say I feel a little disappointed about iBooter. It’s just a wrap to Geohot’s code, and there’s no secret behind it.

I’ll try to explain here what iBooter has done to Geohot’s code. The best way to explain is an example, let me start from the very beginning of the program: the main, be prepared, this is a long post :)

Snippet 1: main entry

In Geohot’s client code:

	FILE *ipk;
	drvcmd *send=malloc(sizeof(drvcmd));
	drvcmd *rcv=malloc(sizeof(drvcmd));
	send->constant=0x1234;
	send->size=0;
	send->unknown=0;
	char line[8192];
	int rcvd,rcvdmax;
	send->cmdcode=0x0;
	hexdump((unsigned char *)send, sizeof(drvcmd));
	sendctrl(send, rcv);
	hexdump((unsigned char *)rcv, sizeof(drvcmd));
 
	usleep(200000);
	readusb();

Read More »

Site hosted by