Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:toh:sagem:f_st3864op [2024/02/20 16:36] – [Boot OpenWrt in RAM] rikka0w0 | inbox:toh:sagem:f_st3864op [2024/10/19 06:51] – [Photos] rikka0w0 | ||
|---|---|---|---|
| Line 119: | Line 119: | ||
| ==== Boot OpenWrt in RAM ==== | ==== Boot OpenWrt in RAM ==== | ||
| - | - Open the case and connect serial | + | - Open the case and connect |
| - Power on the device, keep pressing any key until you see the CFE prompt appears. | - Power on the device, keep pressing any key until you see the CFE prompt appears. | ||
| - Set the IPv4, netmask, and gateway of your PC to '' | - Set the IPv4, netmask, and gateway of your PC to '' | ||
| Line 143: | Line 143: | ||
| - You would need to prepare a USB-TTL serial adapter, open the case of the router, and solder the serial headers. | - You would need to prepare a USB-TTL serial adapter, open the case of the router, and solder the serial headers. | ||
| - | - Follow the '' | + | - Follow the [[: |
| - Setup a web server (e.g. '' | - Setup a web server (e.g. '' | ||
| - On the OpenWrt shell, download the OpenWrt firmware to ramdisk ''/ | - On the OpenWrt shell, download the OpenWrt firmware to ramdisk ''/ | ||
| Line 176: | Line 176: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | CPU Pinout: | ||
| + | [[: | ||
| + | |||
| + | ==== Network ==== | ||
| + | This router has 2 switches! The BCM63168D0 SOC has 8 internet interfaces, 3xFE, 1xGE, and 4xRGMII, all from a built-in switch. In this router, the GE port (id=3) is used for WAN RJ45 connection, and the first RGMII (id=4) goes to an external switch (BCM53125?) which then powers all accessible LAN ports. **Why didn't they just simply connect 4 PHYs at the RGMIIs to make 4xGE LAN ports?** | ||
| Note: | Note: | ||
| - | * CFE reports the external switch (BCM53124SKMMLG) as [[https:// | + | * CFE reports the external switch (BCM53124SKMMLG) as [[https:// |
| - | ===== Flash Layout | + | |
| + | ==== Serial | ||
| + | -> [[docs: | ||
| + | |||
| + | There is an unsoldered 4-pin header (J708) near the power jack, which provides an interactive console. You can interrupt the boot process and enter the CFE bootloader console by pressing any key repeatedly, or wait for it boots and then login to the management console using the following credentials: | ||
| + | |||
| + | ^ Credential of an Australian Optus OEM F@ST3864OP || | ||
| + | ^ user | admin | | ||
| + | ^ password | 0ptU%1M5 | | ||
| + | |||
| + | If the above does not work, then try the other keys: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | The management console offers a very limited set of commands, the sh command will drop you to a BusyBox Linux shell. | ||
| + | |||
| + | ^ Serial parameters for Sagem F@ST3864OP || | ||
| + | ^ Baudrate | 115200 | | ||
| + | ^ Setup| 8N1 | | ||
| + | ^ Voltage | 3.3V TTL| | ||
| + | |||
| + | ==== LEDs and buttons ==== | ||
| + | There are three types of LEDs on this device: | ||
| + | - Connected to a serial LED driver which then drives up to 8 LEDs via a 74HC164D. | ||
| + | - Connected to a SoC pin and controlled by a hardware LED control register. | ||
| + | - Connected to a SoC pin and controlled by Linux via gpio-leds. | ||
| + | |||
| + | LED and Button connections: | ||
| + | * WAN Port: Yellow(460+6, | ||
| + | * WLAN Led (D12): (460+4, gpio36) Logic XOR (460+5, gpio37), this is weird! | ||
| + | * Internet Led (D17): Green(480+8, | ||
| + | * DSL Bonding Led (D17): Green(480+9, | ||
| + | * Power Led (D15): Green(480+20, | ||
| + | * DSL (D7): Green(74HC164D@Q3) | ||
| + | * FXS (D11, Foreign Exchange Station, the phone ports, not to be confused with the xDSL port): Green(74HC164D@Q4), | ||
| + | * WPS Led (D13): Green(74HC164D@Q0), | ||
| + | * Reset button (SW5): (460+0, gpio32) | ||
| + | * WPS button (SW3): (460+1, gpio33) | ||
| + | * WLAN button (SW2): (460+2, gpio34) | ||
| + | * Some LEDs are driven by 74HC164D: | ||
| + | * Clock (CP) = gpio0 (/ | ||
| + | * DSA (Data input) = gpio1 (/ | ||
| + | * DSB (AND with DSA), MR(Output Async Reset) are pulled high. | ||
| + | ===== Flash Layout ===== | ||
| + | Stock firmware dump: | ||
| + | https:// | ||
| ==== Stock ==== | ==== Stock ==== | ||
| From OEM Bootlog: | From OEM Bootlog: | ||
| Line 197: | Line 248: | ||
| ^ F@ST3864OP Flash Layout | ^ F@ST3864OP Flash Layout | ||
| ^ Hardware | ^ Hardware | ||
| - | ^ Stock Label | **// | + | ^ Stock Label | **// |
| ^ Stock mtd device name | mtd3 | ^ Stock mtd device name | mtd3 | ||
| | Start | 0x0000000 | | Start | 0x0000000 | ||
| Line 229: | Line 280: | ||
| </ | </ | ||
| ==== Photos ==== | ==== Photos ==== | ||
| - | /* =====>>>>> | + | === PCB === |
| - | /* When uploading photos, **name them** intelligently. Nobody knows what 20100930_000602.jpg is! */ | + | {{:media: |
| - | /* e.g. {{:media:yourbrand:yourbrand_yourmodel_front.jpg? | + | {{:media:sagem:sagem_f_st3864_back_pcb.jpg?400|}} |
| - | /* Thanks, your wiki administration - Oct. 2015 */ | + | |
| - | + | ||
| - | **Insert photo of front of the casing** | + | |
| - | + | ||
| - | **Insert photo of back of the casing** | + | |
| - | + | ||
| - | **Insert photo of backside label** | + | |
| - | + | ||
| - | **Insert photo of PCB** | + | |
| ==== Opening the case ==== | ==== Opening the case ==== | ||
| Line 248: | Line 289: | ||
| </ | </ | ||
| - | ==== Network ==== | ||
| - | This router has 2 switches! The BCM63168D0 SOC has 8 internet interfaces, 3xFE, 1xGE, and 4xRGMII, all from a built-in switch. In this router, the GE port (id=3) is used for WAN RJ45 connection, and the first RGMII (id=4) goes to an external switch (BCM53125?) which then powers all accessible LAN ports. **Why didn't they just simply connect 4 PHYs at the RGMIIs to make 4xGE LAN ports?** | ||
| - | ==== Serial ==== | ||
| - | -> [[docs: | ||
| - | There is an unsoldered 4-pin header (J708) near the power jack, which provides an interactive console. You can interrupt the boot process and enter the CFE bootloader console by pressing any key repeatedly, or wait for it boots and then login to the management console using the following credentials: | ||
| - | ^ Credential of an Australian Optus OEM F@ST3864OP || | ||
| - | ^ user | admin | | ||
| - | ^ password | 0ptU%1M5 | | ||
| - | If the above does not work, then try the other keys: | + | ===== Hardware Mods ===== |
| + | This may apply: | ||
| + | [[: | ||
| - | https:// | + | ==== Spare SPI Flash ==== |
| - | The management console offers a very limited set of commands, | + | There' |
| + | <WRAP bootlog>< | ||
| + | status = " | ||
| - | ^ Serial parameters for Sagem F@ST3864OP || | + | mydev@0{ |
| - | ^ Baudrate | 115200 | | + | compatible = " |
| - | ^ Setup| 8N1 | | + | reg = <0>; |
| - | ^ Voltage | 3.3V TTL| | + | spi-max-frequency = < |
| + | }; | ||
| + | };</ | ||
| + | To use the '' | ||
| - | ==== LEDs and buttons ==== | + | The SPI Flash can be accessed with '' |
| - | There are three types of LEDs on this device: | + | |
| - | | + | |
| - | - Connected to a SoC pin and controlled by a hardware LED control register. | + | |
| - | | + | |
| - | LED and Button connections: | + | <WRAP bootlog>< |
| - | * WAN Port: Yellow(460+6, | + | flashrom v1.2 on Linux 5.4.188 (mips) |
| - | * WLAN Led (D12): (460+4, gpio36) Logic XOR (460+5, gpio37), this is weird! | + | flashrom |
| - | * Internet Led (D17): Green(480+8, gpio8), Red(74HC164D@Q2) | + | |
| - | * DSL Bonding Led (D17): Green(480+9, | + | Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). |
| - | * Power Led (D15): Green(480+20, gpio20), Red(480+15, gpio15) | + | Using default 2000kHz clock. Use ' |
| - | * DSL (D7): Green(74HC164D@Q3) | + | Found Winbond flash chip " |
| - | * FXS (D11, Foreign Exchange Station, the phone ports, not to be confused with the xDSL port): Green(74HC164D@Q4), | + | No operations were specified. |
| - | * WPS Led (D13): Green(74HC164D@Q0), Red(74HC164D@Q1) | + | |
| - | * Reset button (SW5): (460+0, gpio32) | + | root@OpenWrt:/# echo -n -e \\x9F\\xFF\\xFF\\xFF | spi-pipe -d /dev/spidev1.0 -b4 -n1 | hexdump -C |
| - | * WPS button (SW3): (460+1, gpio33) | + | 00000000 |
| - | * WLAN button (SW2): (460+2, gpio34) | + | 00000004< |
| - | * Some LEDs are driven by 74HC164D: | + | |
| - | * Clock (CP) = gpio0 (/sys/class/gpio/ | + | |
| - | | + | |
| - | * DSB (AND with DSA), MR(Output Async Reset) are pulled high. | + | |
| ==== PCIe ==== | ==== PCIe ==== | ||
| Line 422: | Line 454: | ||
| </ | </ | ||
| - | ===== Installation ====== | ||
| - | <WRAP center round alert 60%> | ||
| - | < | ||
| - | Any help or information on this are welcomed. | ||
| - | </ | ||
| - | <WRAP center round important 60%> | ||
| - | < | ||
| - | </ | ||
| - | |||
| - | This section explains a safer way of installing OpenWrt to a F@ST3864OP device. This method does not touch the CFE bootloader, and it is less likely to brick the router. | ||
| - | |||
| - | - You would need to prepare a USB-TTL serial adapter, open the case of the router, and solder the serial headers. | ||
| - | - Follow the '' | ||
| - | - Setup a web server (e.g. '' | ||
| - | - On the OpenWrt shell, download the OpenWrt firmware to ramdisk ''/ | ||
| - | - Use sha256sum to check if the firmware file is intact. | ||
| - | - **Up to this step, you still can reboot the router with the stock firmware untouched.** | ||
| - | - Wipe the stock firmware and create a clean JFF2: '' | ||
| - | - Install OpenWrt firmware permanently to the NAND flash: '' | ||
| - | - Now reboot. If everything goes well, you will get a OpenWrt shell. | ||
| - | - **LuCI sysupgrade can be used from now on.** | ||
| - | |||
| - | Reference: [[: | ||
| - | ===== Hardware Mods ===== | ||
| - | This may apply: | ||
| - | [[: | ||
| - | |||
| - | CPU Pinout: | ||
| - | [[: | ||
| - | |||
| - | ==== Spare SPI Flash ==== | ||
| - | |||
| - | There' | ||
| - | |||
| - | <WRAP bootlog>< | ||
| - | flashrom v1.2 on Linux 5.4.188 (mips) | ||
| - | flashrom is free software, get the source code at https:// | ||
| - | |||
| - | Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). | ||
| - | Using default 2000kHz clock. Use ' | ||
| - | Found Winbond flash chip " | ||
| - | No operations were specified. | ||
| - | |||
| - | root@OpenWrt:/# | ||
| - | 00000000 | ||
| - | 00000004</ | ||
| ===== Bootlogs ===== | ===== Bootlogs ===== | ||
| ==== OEM bootlog ==== | ==== OEM bootlog ==== | ||
| Line 1450: | Line 1436: | ||
| Source code: | Source code: | ||
| - | https:// | + | https:// |
| Before the cferam.000 is merged into '' | Before the cferam.000 is merged into '' | ||