SIEMENS / SAGEM Gigaset SX762 / SX763
Supported Versions
| Ver. | S/N | OpenWrt Version Supported | Model Specific Notes |
|---|---|---|---|
| v1 | S30852-H70x-xxxx | no | original firmware version 2.x.x.x |
| v1 | S30852-S70x-xxxx | no | original firmware version 2.x.x.x, see: https://forum.openwrt.org/viewtopic.php?id=36612 |
| v2 | S30852-S70x-xxxx | trunk, backfire with patch | original firmware version 4.x.x.x |
v1 is based on amazon SoC, so we won't talk about that version here.
Beware when buying a SX762 second hand, it might have the correct serial number, but the wrong firmware, see link above
Hardware Highlights
| CPU | Ram | Flash | Network | USB | Serial | UART |
|---|---|---|---|---|---|---|
| Lantiq Xway Danube @333Mhz Dual Core (second core is for voip dsp) | 32MB | 8MB | 4 RJ45 ports | Yes | Yes | Yes |
Openwrt status
- ADSL modem is working with both Annex A & Annex B supported.
- WiFi is working out of the box with trunk. (ath5k)
- FXS works and can be used with owsip daemon.
- USB works with a ugly patch.
- FXO port is not working.
Installation
Flash Layout
Please check out the article Flash Layout. It contains an example and a couple of explanations.
| Default Flash Layout | ||||
|---|---|---|---|---|
| partition | start | end | size | description |
| mtd0 | 0x00000000 | 0x0000e000 | 56KB | first loader |
| mtd1 | 0x0000e000 | 0x00010000 | 8KB | nvram (env) |
| mtd2 | 0x00010000 | 0x00700000 | 7104KB | secondary loader + runtime |
| mtd3 | 0x000f0000 | 0x00700000 | 6208KB | rootfs (squashfs) |
| mtd4 | 0x00700000 | 0x00720000 | 128KB | oops |
| mtd5 | 0x00720000 | 0x00800000 | 896KB | PSA (config) |
| Modified Flash Layout | ||||
|---|---|---|---|---|
| partition | start | end | size | description |
| mtd0 | 0x00000000 | 0x00010000 | 64KB | u-boot |
| mtd1 | 0x00010000 | 0x00020000 | 64KB | u-boot environment |
| mtd2 | 0x00020000 | 0x00800000 | 8064KB | linux |
Installation procedures
The original firmware contains two modified uboot bootloaders. Only the secondary one has a CLI.
- The primary bootloader checks the header checksum (sha256) of the secondary bootloader
- The secondary bootloader does the same thing with the firmware.
- The sha256bit header checksum is generated by a 1024bit RSA private key which is currently unavailable.
Since the checking is only done for first 64Bytes of every 64k block it is possible to edit the secondary bootloader because it's size is less than 64k, by replacing lzma part and replacing it with lzma compressed u-boot. You have two options to install OpenWrt:
Replace only the secondary bootloader
| If for any reason OpenWrt fails to boot, a recovery HTTP server can be started by keeping the reset button underneath pressed, while powering the router on. Note that original fw .img can't be uploaded via recovery HTTP server. |
- download a modified secondary bootloader here
- The modified secondary u-boot bootloader can be flashed from original web interface firmware upgrade section
- after replacing the original secondary bootloader over the original WebInterface with the version provided in the link, you need to reboot the device.
- since there is no OpenWrt in flash yet, after a reboot it will open HTTP server on 192.168.1.1 asking for OpenWrt image.
Replace both the primary and the secondary bootloader
| This is used to flash u-boot as a primary bootloader. There are two methods to flash u-boot as a primary bootloader, first one from a runing openwrt image, and a second one from serial console |
- before replacing the bootloader, make sure that you flashed secondary bootloader as noted above and that you are running openwrt fw from here
- obtain the replacement booloader by selecting it the buildmenu (configuration), or downlaod from snapshot
- if you compiled u-boot you will find the file
u-boot-bootstrap.binin../trunk/bin/uboot-lantiq-gigaSX76X_DDRsamsung166/after compilation. - copy u-boot-bootstrap.bin to /tmp folder inside router filesystem.
- flash env to uboot_env partition with "dd if=/dev/mtdblock3 of=/dev/mtdblock4"
- flash u-boot-bootstrap.bin with "mtd write /tmp/u-boot-bootstrap.bin uboot"
- now reboot, run recovery HTTP server, and flash image from trunk
For the second method you must have a serial TTL interface installed! You need also a TFTP server and new built u-boot-bootstrap.bin in its root folder. |
- U-boot CLI commands:
setenv ipaddr 192.168.1.1 setenv serverip 192.168.1.254 //unprotect sectors protect off 1:0-20 //first copy nvram to new address: era 0xb0010000 0xb001ffff cp.b 0xb000e000 0xb0010000 0x2000 tftpboot 0x816e0000 u-boot-bootstrap.bin era 0xb0000000 0xb000ffff cp.b 0x816e0000 0xb0000000 0x10000 reset
- since there is no OpenWrt in flash yet, first time after reboot the bootloader will open HTTP server on 192.168.0.119 asking for OpenWrt image.
Hardware
Info
| Architecture: MIPS |
| Vendor: Siemens/Sagem |
| Bootloader: uboot |
| System-On-Chip: Lantiq PSB 50702 E v1.3 or (v1.4) (MIPS 24Kc) |
| CPU/Speed 333 Mhz (second core is for voip dsp) |
| Flash-Chip: Spansion S29GL064A10TFIR4 Spansion S29GL064N90TFI04 |
| Flash size: 8 MiB |
| RAM: 32 MiB |
| RAM Chip: Samsung K4H561638H-UCB3 Micron MT46V16M16P-5B |
| Wireless: SX763: Atheros AR2414A b/g/super g SX762: Atheros AR2413 b/g |
| Ethernet: Infineon ADM6996i |
| Internet: ADSL2+ (annex A and B) |
| USB: Yes 1 x 2.0 |
| Serial: Yes |
| JTAG: Yes |
CPU info:
system type : DANUBE processor : 0 cpu model : MIPS 4KEc V4.1 BogoMIPS : 222.00 wait instruction : yes microsecond timers : yes tlb_entries : 16 extra interrupt vector : yes hardware watchpoint : yes VCED exceptions : not available VCEI exceptions : not available
Photos
(More images @ Gigaset)
Opening the case
Note: This will void your warranty!
To get to the board you need:
- unscrew 4 torx-10 screws underneath the cover,
- pull the upper cover which is connected by click.
Serial
→ port.serial.
Serial port is at 3.3V and the bitrate is 115200.
Serial output from default bootloader:
Bootstrap settings
Bootstrap pin funcion table:
X = boot_sel2
Y = boot_sel1
Z = boot_sel0
X Y Z function
===============================================================
0 0 0 External parallel flash
0 0 1 ROM > external parallel flash (default)
0 1 0 ROM > ethernet, MII0
0 1 1 ROM > PCI
1 0 0 ROM > UART1
1 0 1 ROM > serial SPI
1 1 0 ROM > NAND flash
1 1 1 ROM > Reverse MII0
|
Value 1 = 3.3v is connected to that pin
Value 0 = Pin is connected to digital GND
boot_sel2, boot_sel1, boot_sel0 pins location:

Note: boot_sel2 and boot_sel1 are by default on 0 and boot_sel0 is on 1.
UART
To enable uart mode, short pins at boot_sel2 (see picture) and connect boot_sel0 to gnd. Than you can send u-boot.asc(downlaod here) to serial port.
For example if your serial port is ttyUSB0 than do:
"cat u-boot.asc > /dev/ttyUSB0" and wait until u-boot starts.
UART mode looks like this:
ROM VER: 1.0.3 CFG 04 Read EEPROMX X UART
USB POWER
SX763 uses a DC/DC switching regulator for 5V USB power, and unfortunately the chip is disabled by OpenWRT and other unofficial firmware (as of april 2013). The chip that provides 5V for USB has enable pin (number 7 to be exact), and the original firmware pulls the enable pin from 0.3V to 3.3V about two seconds before the relay makes a click sound.
According to datasheet, enable pin can be unconnected if we want the chip to auto-start, and that is exactly what we want. Therefore, we just need to disconnect the pin number 7 and SX763 will have 5V at USB connector all the time.
Note: When sx76x support gets back to trunk, there will be usb power by default so this hack wont be needed.
Another close-up is available at :http://pljusak.com/papuk/RSCN1314.JPG
The good sides of this hack are: 1) if you break the pin on the chip no harm is done, and 2) there are no side-effects in possible overloading the other 5V regulator that is used if you bring the 5V from another DC/DC regulator, as in hack that follows.
Previous version of 5V-USB hack follows:
Here is example of added usb power (5.05V measured) over simple pin solder so devices can be recognized on boot. You can even use WIFI dongles as from Attitude Adjustment 12.09-RC1 it works just fine. USB Dongle tested and working: Edimax EW-7722UnD a/b/g/n - Tested in 40mhz HT mode. Max speed measured (TCP): 20mbit (dirty conditions). Over USB hub you could add few more which makes this even a very good base station.
On USB port - solder first pin from top.
More info can be found on: http://linux.jezgra.net/2013/02/sx763-hack/
Please note that side-effects of this power mod are unknown. (Probably there should be no 'ugly-usb-patch' added anymore, so it doesn't give power on already powered pin.)
Source code
There is a tarball with basic code at http://opensource.sagemcom.com/index.php?id=54
Tags
toh/gigaset/sx76x.txt · Last modified: 2013/04/09 17:08 by delboy







