Temat: Problem z UART

Witam ponownie,

Mam przez pomyłkę uwalonego Xiaomi 3G MIR3G, po uruchomieniu objawy ma takie, że uruchamia się (diody zaczynają na pomarańczowo) chwilę pojawia się ruch na lan, ale nie przydziela IP i jest restart. Być może jest to bootloop. No więc wlutowałem mu piny w seriala i próbuję coś zobaczyć przez CP2102, ale po podpięciu router w ogóle się nie uruchamia.. zero diód czy czegokolwiek. Dzieje się tak tylko przy podpięciu przez WaveShare USB A CP2102 UART oraz przez Konwenter CN CP2102 USB RS232. Takie dwa z alle. Nie wiem co źle robię...
Parametry 115200 8 1 none none. Podpinam tylko gnd tx i rx.
Co lepsze.. do działającego mir3g również wlutowałem i jest podobnie...nawet zrobiłem tak z WDR4300 i identycznie...

2

Odp: Problem z UART

Źle podłączasz konwerter?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Problem z UART

UART w obu routerach działa na napięciu 3,3V. Prawdopodobnie masz ustawione na konwerterach napięcie 5V (w waveshare jest zworka od tego).

4

Odp: Problem z UART

Lub wlutowując piny zrobiłeś zwarcie. Bez podłączonego konwertera router uruchamia się normalnie? Jeżeli tak to po uruchomieniu podłącz konwerter, zobacz czy ruter nadal żyje i można z nim gadać.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez encholex 2021-09-19 14:55:43)

Odp: Problem z UART

Dziękuję za szybki odzew.
Tak, z podłączonym konwerterem do routera, router nie chciał startować a z wypiętym startował i miał tego bootloopa.
Tak, waveshare ma zworkę do VCCIO, ale miałem ją wypiętą na wszelki wypadek i nie używałem tego wyjścia.
Na szybko spróbowałem odpalić router z wypiętymi tx i rx i podłączyć się nimi już po uruchomieniu routera i nagle wszystko było widać na putty... Także luty chyba ok.. podpinanie dopiero po uruchomieniu routera pomogło.
A z routerem oczywiście kernel panic, ale tu od razu tutoriale ze strony openwrt.org:
1 - debrick

Using Serial Interface for R3G
Use this if failsafe etc fail..

You need

usb 3.3v to serial adapter
tftp server (preferably on 192.168.31.100)
kernel0.bin (https://mega.nz/#!PI0VUKhA!OVoBm8rj6m9mMrpKfRDPzXEldGN8VzG8lLpjoMU9s3A)
stock firmware (cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/r3g/miwifi_r3g_firmware_12f97_2.25.124.bin) renamed to miwifi.bin on fat32 formatted usb stick
To debrick

Access serial console (use 3.3v adapter) and terminal emulator such as putty
Flash the kernel0.bin file using option 2 flash using TFTP option in the U-Boot menu. Note: when selecting the boot source (2 for firmware flashing), it may be necessary to not send any line ending.
Connect usb stick press reset button and router will flash itself with stock firmware. The progress will be shown in the serial console.
You can re-install openwrt as per original procedure

i instalacja Openwrt:
2 - instalacja

Installation using UART and a USB drive for R3G
Open the router and connect a 3.3 V UART adapter to the pins with the following settings: 115200 baud, 8 data bits, no parity, 1 stop bits
Power on the router and when it asks for the boot mode on the serial console, select 4: Enter boot command line interface. It may be necessary not to send any line ending after the number.
Enable UART console for the default firmware with the command setenv uart_en 1. You may also enable SSH for the default firmware using the command setenv ssh_en 1.
Save the changes with the command saveenv. Boot (or reboot?) the router to the default firmware using boot command.
The following steps are identical to installing over SSH, but are performed over the UART console.
Download the kernel1 and rootfs0 images to a FAT32 USB drive and connect the USB drive to the router. The following have been confirmed to work:
https://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt7621/openwrt-18.06.2-ramips-mt7621-mir3g-squashfs-kernel1.bin
https://downloads.openwrt.org/releases/18.06.2/targets/ramips/mt7621/openwrt-18.06.2-ramips-mt7621-mir3g-squashfs-rootfs0.bin
On the firmware run:
cd /extdisks/sda1
mtd write mir3g-squashfs-kernel1.bin kernel1
mtd write mir3g-squashfs-rootfs0.bin rootfs0
nvram set flag_try_sys1_failed=1
nvram commit
reboot
The router should now boot to OpenWrt

Gdzieś mi umknęło że trzeba się podłączać dopiero po uruchomieniu.
Bardzo dziękuję za pomoc w przywróceniu do życia.