User Tools

Site Tools


toh:petatel:psr-680w

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
toh:petatel:psr-680w [2013/04/13 10:31]
toh:petatel:psr-680w [2015/12/22 12:04] (current)
tmomas [Tags] 4flash added
Line 1: Line 1:
 +====== Petatel PSR-680W ======
 +Wireless CDMA 450 MHz Router
  
 +
 +===== Hardware Highlights =====
 +^ CPU ^ Ram ^ Flash ^ Internet ^ WiFi ^ Ethernet ^ USB ^ Serial ^ JTag ^ RUIM card ^
 +| Ralink RT3052 | 32MiB | 4MiB | EV-DO Rev.A 450MHz | 11 bgn | 4 x 1 | No | Yes | No | Yes |
 +
 +
 +===== Obtaining Firmware =====
 +
 +| First trunk support ​ | [[https://​dev.openwrt.org/​changeset/​32450/​trunk|r32450]] |
 +| First stable support | 12.09 |
 +
 +=== Specific Howtos ===
 +  - -> [[doc:​howto:​obtain.firmware]]
 +  - -> [[doc:​howto:​build]]
 +
 +
 +
 +Firmware image is obtained by compiling source from the latest development branch (trunk)
 +
 +If you use LuCI, you may want to install following packages before compiling
 +<​code>​
 +./​scripts/​feeds install luci
 +./​scripts/​feeds install luci-proto-ppp
 +./​scripts/​feeds install luci-proto-3g
 +</​code>​
 +
 +When performing "make menuconfig"​ select
 +<​code>​
 +CONFIG_TARGET_ramips=y
 +CONFIG_TARGET_ramips_rt305x=y
 +CONFIG_PACKAGE_kmod-usb-acm=y
 +</​code>​
 +
 +If you use LuCI, additionally select
 +<​code>​
 +CONFIG_PACKAGE_luci=y
 +CONFIG_PACKAGE_luci-proto-3g=y
 +</​code>​
 +
 +To install OpenWrt for the first time on a router with factory firmware you will need OpenWrt image in the standard “uImage” format.
 +To compile such image, when performing "make menuconfig"​ select Target Images - ramdisk
 +<​code>​
 +CONFIG_TARGET_ROOTFS_INITRAMFS=y
 +</​code>​
 +
 +After OpenWrt is successfully installed, it is recommended to perform sysupgrade to squashfs firmware.
 +To compile such image, when performing "make menuconfig"​ select Target Images - squashfs
 +<​code>​
 +CONFIG_TARGET_ROOTFS_SQUASHFS=y
 +</​code>​
 +
 +===== Installation =====
 +
 +=== Specific Howtos ===
 +  - -> [[doc:​howto:​generic.flashing|Install OpenWrt]]
 +  - -> [[doc:​howto:​generic.flashing.tftp]]
 +
 +In PSR-680W factory firmware the bootloader menu is disabled.
 +\\ Fortunately,​ bootloader contains TFTP client which is enabled by default and can be used for firmware upload.
 +\\ The bootloader TFTP client expects firmware in the standard “uImage” format with file name "​rt305x_image.bin"​.
 +\\ Install TFTP server software on your PC, and give your PC static IP address 192.168.10.4 with network mask 255.255.255.0
 +\\ Make sure the firmware file is “uImage” type, is renamed to rt305x_image.bin,​ and is located in the directory which TFTP server uses to upload files.
 +\\ Connect your PC with the router using Ethernet cable.
 +\\ Power cycle the router. You may have to repeat power off-on cycle several times till you see that file transfer is actually taking place.
 +
 +==== Flash Layout ====
 +
 +PSR-680W with OpenWrt firmware installed has following flash layout:
 +<​code>​
 +6 cmdlinepart partitions found on MTD device physmap-flash.0
 +Creating 6 MTD partitions on "​physmap-flash.0":​
 +0x000000000000-0x000000030000 : "​u-boot"​
 +0x000000030000-0x000000040000 : "​u-boot-env"​
 +0x000000040000-0x000000050000 : "​factory"​
 +0x000000050000-0x000000130000 : "​kernel"​
 +0x000000130000-0x000000400000 : "​rootfs"​
 +mtd: partition "​rootfs"​ set to be root filesystem
 +mtd: partition "​rootfs_data"​ created automatically,​ ofs=2F0000, len=110000
 +0x0000002f0000-0x000000400000 : "​rootfs_data"​
 +0x000000050000-0x000000400000 : "​firmware"​
 +</​code>​
 +
 +==== Upgrading OpenWrt ====
 +->  [[doc:​howto:​generic.sysupgrade]]
 +
 +If you have already installed OpenWrt and like to reflash for e.g. upgrading to a new OpenWrt version you can upgrade using the mtd command line tool. It is important that you put the firmware image into the ramdisk (/tmp) before you start flashing.
 +
 +=== LuCI Web Upgrade Process ===
 +
 +  * Browse to http://​192.168.1.1/​cgi-bin/​luci/​mini/​system/​upgrade/​ LuCI Upgrade URL
 +  * Upload image file for sysupgrade to LuCI
 +  * Wait for reboot
 +
 +=== Terminal Upgrade Process ===
 +
 +  * Login as root via SSH on 192.168.1.1
 +  * Use the following commands to upgrade.
 +
 +<​code>​
 +cd /tmp/
 +wget http://​downloads.openwrt.org/​snapshots/​trunk/​XXX/​xxx.abc
 +sysupgrade /​tmp/​xxx.abc
 +</​code>​
 +
 +
 +===== Basic configuration =====
 +-> [[doc:​howto:​basic.config|Basic configuration]] After flashing, proceed with this.\\
 +Set up your Internet connection, configure wireless, configure USB port, etc.
 +
 +
 +===== Specific Configuration =====
 +==== Interfaces ====
 +
 +When OpenWrt is installed, by default there is no network interface for CDMA and Wi-Fi is disabled.
 +
 +To add CDMA interface using LuCI:
 +  * Go to Network - Interfaces - Add new interface...
 +  * On the General Setup tab select:
 +
 +^ Protocol ​   | UMTS/​GPRS/​EV-DO ​         |
 +^ Modem device ​   | /​dev/​ttyACM0 ​ |
 +^ Service Type    | EV-DO          |
 +^ PAP/CHAP username ​   | Provided by your network operator ​         |
 +^ PAP/CHAP password ​   | Provided by your network operator ​         |
 +
 +  * On the Firewall Settings tab select "​wan"​.
 +
 +Resulting configuration may look like this:
 +<​code>​
 +network.CDMA=interface
 +network.CDMA.proto=3g
 +network.CDMA.device=/​dev/​ttyACM0
 +network.CDMA.service=evdo
 +network.CDMA.username=mobile
 +network.CDMA.password=internet
 +</​code>​
 +
 +To enable Wi-Fi using LuCI:
 +  * Go to Network - Wifi and press Enable.
 +
 +
 +==== Buttons ====
 +-> [[doc:​howto:​hardware.button]] on howto use and configure the hardware button(s).
 +
 +The Petatel PSR-680W has one "​Reset"​ button at the bottom. Here, we merely name the button, so we can use it in the above Howto:
 +^ BUTTON ^ Event ^
 +| Reset | reset | 
 +
 +
 +===== Hardware =====
 +==== Info ====
 +| **[[wp>​Instruction set|Architecture]]:​** ​   | [[wp>​Ralink]] ​ |
 +| **[[doc:​techref:​Bootloader]]:​** ​    | [[doc:​techref:​bootloader:​uboot|U-Boot]] ​ |
 +| **[[doc:​hardware:​soc|System-On-Chip]]:​** ​ | Ralink RT3052 SoC  |
 +| **Flash-Chip:​** ​     | NOR SAMSUNG K8P3215UQB ​ |
 +| **Flash size:​** ​     | 4 MiB  |
 +| **RAM:​** ​            | 32 MiB   |
 +| **Wireless:​** ​       | 2.4GHz 802.11bgn ​ |
 +| **Ethernet:​** ​       | 1 WAN port and 4 LAN ports 10/​100Mbps ​ |
 +| **Internet:​** ​       | EVDO Rev.A 450 MHz (Internal Qualcomm MSM6800A mini PCI express module) ​ |
 +| **USB:​** ​            | No     |
 +| **[[doc:​hardware:​port.serial|Serial]]:​** ​         | [[#​Serial|Yes]] ​ |
 +| **[[doc:​hardware:​port.jtag|JTAG]]:​** ​           | No  |
 +
 +==== Serial ====
 +-> [[doc:​hardware:​port.serial]] general information about the serial port, serial port cable, etc.
 +
 +How to connect to the Serial Port of this specific device:
 +
 +Serial console is the 4-pin header on the upper side of the board marked as "​J10"​.
 +\\ Device case should be opened to access the pins.
 +\\ The pins are marked as "GND, RX, TX, 3.3V".
 +\\ Actually, the pins are GND, TX, RX, V3.3 (TX pin sending signal from the router to the PC).
 +\\ The voltage is 3.3V TTL.
 +\\ Baud rate is 115200.
 +
 +On device side, there are two serial ports which show up as following device nodes:
 +\\ /dev/ttyS0 (UARTF) is used for communication with CDMA module using vendor-specific AT commands.
 +\\ /dev/ttyS1 (UARTL) is used for the console.
 +
 +===== Tags =====
 +For some Help with the Tags, please have a look here: [[meta/​tags]]
 +
 +{{tag>​ramips rt3052 FastEthernet 5Port DetachableAntenna 4flash 32RAM MIPS 802.11bgn Serial 4Ant}}