Hello,
I've acquired a Ravpower RP-WD02 and will try to have OpenWrt working on it.
I've started recognition phase and before going further, I'll wait for my USB2Serial adapter to arrive in order to have full view on the uBoot logs.
Many information have been gathered already and have been written down to the wiki : http://wiki.openwrt.org/toh/ravpower/rp-wd02
Waiting for the missing hardware to arrive, I'm trying to find a way to identify the GPIO ports but I'm stuck at this step. I've checked the existing doc which recommend to check through /sys/class/gpio the various gpio available and their behaviour.
I do not have such /sys/class/gpio on my device. I've search through the various class on sys and dev but did not found any gpio related one.
What I've found is the /bin/gpio command line utility which got the following documentation :
Usage: gpio w - writing test (output)
gpio r - reading test (input)
gpio i (<gpio>) - interrupt test for gpio number
gpio l <gpio> <on> <off> <blinks> <rests> <times>
- set led on <gpio>(0~24) on/off interval, no. of blinking/resting cycles, times of blinking
Unfortunately, when I try to leverage this tool to identify the gpio, I got either no output or an error message (/dev/gpio: No such device or address).
Looks like this is related to the current kernel of the device which does not provide access to gpio (no gpio driver message seen in the boot log) and potentially, required module are not part of the kernel build.
Potential missing part is related to :
Sysfs Interface for Userspace (OPTIONAL)
========================================
Platforms which use the "gpiolib" implementors framework may choose to
configure a sysfs user interface to GPIOs. This is different from the
debugfs interface, since it provides control over GPIO direction and
value instead of just showing a gpio state summary. Plus, it could be
present on production systems without debugging support.
I'll update this post depending on my progress or any help given by this great community.
One interesting information found in the existing firmware is about the list of vendors/models that looks similar based on RT5350 :
List of VENDORS / MODELS
//IOVST UIS700HD
UIS700HD
//IOVST UIS700HD
PA260s
//IOVST PA520i
PA520i
PA521i
AC01
PA260si
//EAGET 忆捷 样式使用同一个 第一个是HDD 第二个是SD
AirDisk
A86
//POWER7
wifidisk
WiFiSDRJ
WiFiPort
WiFiDGRJ
WiFiMagic
//POWER7 wifi SD
wifisd
DiskNORJ
WiFiDG
//ALZX
WiFimate
//OUO
S60
//Aigo
aigoWiFiDisk
aigoWiFiRouter
aigoWiFiSD
PB106
MiniWiFiRouter
HD816
// 日本 RATOC
// helphtml:"ja_JP_WIFISD1" 本客户中如果使用日文,单独使用独立的帮助文档
WIFISD1
WIFIMSD1
WIFIUSB2
WIFIUSB1
// RATOC的 NTT
SD1D
//德国版本
MWiD25
//德国2 Intenso
M2M
Reader
//SXZ
WI10
//OUO
T30
//MEGAGE
A60
//Leedo
W3000P
//Sarotech WiDisk
WiDisk
//IPR115
IPR115
//西班牙 HWD300
HWD300
//Macally
WIFIHDD
MWiFiSD
//Macway
StorevaXAir
//创世达
TPOSWiFiDisk
//Sabaoth
iStorageII
//Eagletec
HDCWIFI
//Storex
WeZeeDisk
WeZeeCard
//Newsmy
C2
//FANTEC
MWiD25DS
//NEXTAV
H100
D100
//IOGEAR
GWFRSDU
//Verbatim
MediaShare
//Futurepath
WMC_i22
WMC_i21
//Lenovo
LeDisk
//I-O DATA
WFSSR01
WFSCSR01
//Maxwave
EZCH31
//PEARL
PX4854
PX4893
//3Q
WHL220M
//MEDION
WLAN_HDD_N_GO
WLAN_HDD
//TrekStor
DSPA
//IOVST
PA260si_OEM
PA521i_OEM
//Hama
HamaWiFi
//RoitsNine
SVWIFIS250UN
SVWIFID24U
//IVT
S3
//Princeton
WMS1
//POWSON
POWSON
//EDUP
EP3701
//SSK
SSK
HE_W100
//FG1060N
FG1060N
//Onion
iAirDisk
//Sarotech
WFABU2
//Valence
MicroSD
//泽宝RAV
WD01
WD02
//HooToo
TM01
TM02
TM03
TM04
//Choton 中创
WiCloud
//DAHENG 大恒
DH_3000WIFI
//PNY
PNYMediaReader
//Merlin Digital 的 WifiHDD
WifiStorage
//Gigastone
Gigastone
A3
A5
//SAVITMICRO
DataMoreC52
//Essentielb
SoftMouv
Updated on 02/01/2015 :
I used binwalk on the various mtd backups I've made.
Here is the content :
MTD8 (RootFs)
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 Squashfs filesystem, little endian, non-standard signature, version 3.0, size: 5495590 bytes, 1307 inodes, blocksize: 65536 bytes, created: Fri Oct 17 06:01:58 2014
and more interestingly :
MTD1 (u-Boot)
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 uImage header, header size: 64 bytes, header CRC: 0x30C9CE94, created: Wed May 14 06:33:42 2014, image size: 128280 bytes, Data Address: 0x80200000, Entry Point: 0x80200000, data CRC: 0x5FB9F5C9, OS: Linux, CPU: MIPS, image type: Standalone Program, compression type: none, image name: "SPI Flash Image"
14036 0x36D4 LZMA compressed data, properties: 0x5D, dictionary size: 1048576 bytes, missing uncompressed size
104736 0x19920 U-Boot version string, "U-Boot 1.1.3 (May 14 2014 - 12:33:39)"
This provide the info about U-Boot 1.1.3.
I've then extracted uboot and run strings on it and I gathered some information (that I will need to confirm when my USB2Serial will arrived) :
Please choose the operation:
%d: Enter IOVST ui menu.
%d: Load system code to SDRAM via TFTP.
%d: Load system code then write to Flash via TFTP.
%d: Boot system code via Flash (default).
%d: Entr boot command line interface.
%d: Load Boot Loader code then write to Flash via Serial.
%d: Load Boot Loader code then write to Flash via TFTP.
| USB TEST MENU |
| 0 USB reset |
| 1 USB scan |
| q Quit |
| KERNEL BOOTING SETTING |
| 0 Boot kernel |
| with filesystem in RAM |
| 1 Boot kernel |
| with filesystem in SPI |
| ETHERNET TEST MENU |
| 0 Show IP and MAC Address |
| 1 Set IP Address |
| 2 Set Wireless MAC Address |
| 3 Set Server IP |
| 4 Ping |
| a eth init |
| b eth stop |
| s Save Flash |
| GPIO SETTING |
| 0 POWER Interrupt Key |
| 1 WIFI LED ON |
| 2 WIFI LED OFF |
| 3 Internet Blue LED ON |
| 4 Internet Blue LED OFF |
| 5 Internet Red LED ON |
| 6 Internet Red LED OFF |
| 7 Reset key |
| 8 Detect reset Key |
| 9 Get the Battery volume |
| a Check reset key |
| b Power Off |
| c Network mode switch |
| Flush UPGRADE TEST MENU |
| 0 Upgrade Bootloader |
| 1 Upgrade Config |
| 2 Upgrade Factory |
| 3 Upgrade Kernel |
| 4 Upgrade Rootfs |
| 5 Resume Upgrade |
| a Upgrade All Flash |
| e Erase Config partition |
| f Erase Factory partition |
| g Erase User partition |
| PARAM TEST MENU |
| 0 Display bootloader info |
| 1 Display common info |
| 2 Input Vendor |
| 3 Input Product |
| 4 Input Version |
| 5 Input Serial |
| 6 Input XuiLei license |
| 7 Input Modules license |
| 8 Input Cloud license |
| s Save flash |
| e Erase parameters partition |
| u Update license file |
bootcmd=tftp
bootdelay=2
baudrate=57600
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=10.10.10.128
serverip=10.10.10.254
netmask=10.10.10.1
ramargs=setenv bootargs root=/dev/mtdblock8
kernel_addr=BFC40000
Systemic
(Last edited by systemic on 2 Jan 2015, 22:45)