Differences

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

toh:gigaset:sx76x [2013/01/26 23:34]
delboy
toh:gigaset:sx76x [2014/06/21 16:54] (current)
mijzelf
Line 13: Line 13:
===== Hardware Highlights ===== ===== Hardware Highlights =====
^ CPU ^ Ram ^ Flash ^ Network ^ USB ^ Serial ^ UART ^ ^ CPU ^ Ram ^ Flash ^ Network ^ USB ^ Serial ^ UART ^
-| Lantiq Xway Danube @333Mhz Dual Core | 32MB | 8MB | 4 RJ45 ports | Yes | Yes | Yes |+| Lantiq Xway Danube @333Mhz Dual Core (second core is for voip dsp) | 32MB | 8MB | 4 RJ45 ports | Yes | Yes | Yes |
Line 24: Line 24:
===== Installation ===== ===== Installation =====
-  - -> [[doc:howto:obtain.firmware]]+  - -> [[doc:howto:obtain.firmware]] for latest trunk image (potentially unstable) just [[http://downloads.openwrt.org/snapshots/trunk/lantiq/openwrt-lantiq-xway-ARV4525PW-squashfs.image|click here]].
  - -> [[doc:howto:generic.flashing|Install OpenWrt (generic explanation)]]   - -> [[doc:howto:generic.flashing|Install OpenWrt (generic explanation)]]
Line 63: Line 63:
  - The modified secondary u-boot bootloader can be flashed from original web interface firmware upgrade section   - 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.   - 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. +  - since there is no OpenWrt in flash yet, after a reboot it will open HTTP server on **192.168.1.1** (tho it might be some other IP, such as **192.168.2.1**; it probably depends on the IP preset in your nvram) asking for OpenWrt image. 
- + 
 +|{{:meta:icons:tango:48px-dialog-warning.svg.png?nolink}} | The secondary_boot.img in the link above has broken networking. After flashing it uploading through the HTTP server won't work. You have to use the serial interface and UART method afterwards as described below. |
Line 99: Line 100:
 +=== Installation procedure for Barrier Breaker (BB) ===
 +(Thanks to **snk** for supporting and make it work) \\
 +Since the bootloader for AA is broken and there are not yet any BB-ready images, this will give you a temporary installation for BB.
 +All BB images needed for installation can be found [[http://www.wilsoft.nl/download|here]]. \\
 +This procedure uses a tftp server on your system. See the Wiki for detailed information.
 +Set the computers IP address to 192.168.1.2. This is the serverip from which the router loads the images.
 +
 +Follow the next steps for installation
 +  - Download, sx762.img, sx762-fw.bin, u-boot.bin and place them into your tftp directory. The sx762-fw.bin contains the MAC address of your WIFI. \\ Modify the bytes 22-27 (0x16-0x1b) of this file to contain your MAC address.
 +  - Download u-boot.asc and place it in your local home directory.
 +  - Set the router in UART mode and setup a serial link to your router (see below for detailed description).
 +  - Copy the file u-boot.asc from your local home directory to the router ( "cat u-boot.asc > /dev/ttyUSB0") and wait until the transfer is completed
 +  - Because this bootloader is in RAM only we need to load the bootloader into ROM <code>
 +run update-uboot-nor
 +</code>
 +  - After this is completed we can powerdown the router and remove the UART strippings. Leave the serial connection in place!
 +  - Next power up the system and interrupt the bootproces with [space].
 +  - Now we load the firmware into flash <code>
 +tftp sx762_fw.bin
 +protect off 0xb07f0000 +$filesize
 +erase 0xb07f0000 +$filesize
 +cp.b $fileaddr 0xb07f0000 $filesize
 +protect on 0xb07f0000 +$filesize
 +</code>
 +  - Load the image into flash <code>
 +tftp sx762.img
 +protect off $kernel_addr +$filesize
 +erase $kernel_addr +$filesize
 +cp.b $fileaddr $kernel_addr $filesize
 +</code>
 +  - Reboot with the command: [reset].
 +  - Enable wifi and of you go.
===== Hardware ===== ===== Hardware =====
Line 107: Line 140:
| **Bootloader:** [[doc:techref:bootloader:uboot]] | | **Bootloader:** [[doc:techref:bootloader:uboot]] |
| **System-On-Chip:** Lantiq PSB 50702 E  v1.3 or (v1.4) (MIPS 24Kc) | | **System-On-Chip:** Lantiq PSB 50702 E  v1.3 or (v1.4) (MIPS 24Kc) |
-| **CPU/Speed** 333 Mhz |+| **CPU/Speed** 333 Mhz (second core is for voip dsp)|
| **Flash-Chip:** \\ [[http://www.spansion.com/Support/Datasheets/s29gl-a_00_a12_e.pdf|Spansion S29GL064A10TFIR4]] \\ [[http://www.spansion.com/Support/Datasheets/s29gl-n_01.pdf|Spansion S29GL064N90TFI04]] | | **Flash-Chip:** \\ [[http://www.spansion.com/Support/Datasheets/s29gl-a_00_a12_e.pdf|Spansion S29GL064A10TFIR4]] \\ [[http://www.spansion.com/Support/Datasheets/s29gl-n_01.pdf|Spansion S29GL064N90TFI04]] |
| **Flash size:** 8 MiB | | **Flash size:** 8 MiB |
Line 120: Line 153:
CPU info: CPU info:
-<code> +| **system type**             : DANUBE | 
-system type            : DANUBE +| **processor**               : 0 | 
-processor              : 0 +| **cpu model**               : MIPS 4KEc V4.1 | 
-cpu model              : MIPS 4KEc V4.1 +| **BogoMIPS**               : 222.00 | 
-BogoMIPS                : 222.00 +| **wait instruction**       : yes | 
-wait instruction        : yes +| **microsecond timers**     : yes | 
-microsecond timers      : yes +| **tlb_entries**             : 16 | 
-tlb_entries            : 16 +| **extra interrupt vector** : yes | 
-extra interrupt vector  : yes +| **hardware watchpoint**     : yes | 
-hardware watchpoint    : yes +| **VCED exceptions**         : not available | 
-VCED exceptions        : not available +| **VCEI exceptions**         : not available | 
-VCEI exceptions        : not available +
-</code>+
==== Photos ==== ==== Photos ====
Line 154: Line 186:
Pinout:\\ Pinout:\\
-{{serialv2_sx76x_danube.jpg?200}}+{{serialv2_sx76x_danube.jpg?400}} {{:media:serialv2_sx76x_danube_zoom.jpg?400}} 
 + 
 +If your serial cable requires a Vcc, you can use the lower-right pad (i.e. not the one just below the two GND pads, but the one below that).
Serial port is at 3.3V and the bitrate is 115200.\\ Serial port is at 3.3V and the bitrate is 115200.\\
Line 331: Line 365:
=== UART === === 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 [[http://downloads.openwrt.org/snapshots/trunk/lantiq/uboot-lantiq-gigaSX76X_DDRsamsung166_ramboot/|here]]) to serial port.\\+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 [[http://downloads.openwrt.org/snapshots/trunk/lantiq/uboot-lantiq-gigasx76x_ram/openwrt-lantiq-gigasx76x_ram-u-boot.asc|here]]) to serial port.\\
For example if your serial port is ttyUSB0 than do: For example if your serial port is ttyUSB0 than do:
"cat u-boot.asc > /dev/ttyUSB0" and wait until u-boot starts. "cat u-boot.asc > /dev/ttyUSB0" and wait until u-boot starts.
Line 345: Line 379:
</code> </code>
 +==== 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.
 +
 +{{:media:sx763-5v-usb-hack-medium.jpg|}}
 +A close-up:
 +
 +{{:media:sx763-5v-usb-hack-closeup.jpg|}}
 +
 +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.
 +
 +{{:media:sx763_whole.jpg?300}}
 +{{:media:sx763_usb5v_pin.jpg?300}}
 +{{:media:sx763_5v_pin.jpg?300}}
 +
 +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 ==== ==== Source code ====
Line 350: Line 420:
===== Tags ===== ===== Tags =====
-{{tag>fxo ADSL2plus}}+{{tag>fxo ADSL2+ lantiq danube usb 64Mb mod}}

Back to top

toh/gigaset/sx76x.1359239683.txt.bz2 · Last modified: 2013/01/26 23:34 by delboy