News:

Apachefoorumi.net
Admin tarjoaisi kävijöille kahvit, mutta huomasi ettei serveri tykkää nesteistä.

Main Menu

Reset Zyxel P-2812HNU-F1 OpenWRT Using Serial Console Access

Started by Lexa, Sun 19.02.2017 11:48:03 (UTC+0200)

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Lexa

Virheistä oppii :psp:

Ajattelin jakaa oppimani.


https://youtu.be/r9PlyP4AdrM

OpenWRT is a very flexible piece of firmware, but it also makes it very easy to screw up and lock yourself out of your own router.
Here's a quick demonstration on how to revert changes you've made, on a Zyxel P-2812HNU-F1 router, using ( USB-TTL ) serial access directly to console.

For the purpose of this video, I disabled the LAN connection that is normally used to access the GUI in OpenWRT, but the exact same routine works for any unintended changes in configuration, such as forgotten root passwords.

The commands used in the terminal are firstboot ( reverting all changes made since install - Only on SquashFS installs though! )
and reboot ( rebooting the device ). If you are not using SquashFS, you can still use the serial connection to save your box, but you need to reflash the firmware - That's a topic for another video. ;)

Please turn on annotations - I have tried to explain the routine step by step using them.

NOTE:
Do NOT connect power -pin.
The pins on my USB-TTL cable are Black: GRND, Green: TXD, White: RXD, Red: 5V DC, and they are connected in that order, starting from the one pin on the motherboard that is slightly separated from the 3 others. You do not need the 5V DC though, and there is a chance that connecting it will fry your board, so do not connect that one.
"Lexa on koko Apache foorumin nettipoliisien PÄÄLLIKKÖ!" -Arto Lauri

The future unknown, but is there ever time to find out...?

Like what I do? Buy me a beer!

Tule mukaan Apachefoorumin Discord-kanavalle!

=Juku=

Tehokkaammin voisi toistaa tuon tekemäsi virheen jos muutamin sanoin kuvailisit mitä kulloinkin teet  ::hihsmoke

Me first (rules of traffic)

Lexa

Toi on vaan nopea läpikäynti, mutta:

1) Kirjaudun sisään OpenWRT:n ohjauspaneeliin
2) Poistan kokonaan kaikki Ethernet-yhteydet OpenWRT:stä, eli katkaisen yhteyteni purkkiin.
3) Puran purkin, ja saan esiin emolevyn suorat liitännät.
4) Lyön emolevyyn kiinni USB-TTL kaapelin, ja avaan terminaaliyhteyden ( Teraterm )
5) Käynnistän modeemin, odotan että sen käynnistysrutiini on ohi.
6) Terminaalin kautta annan komennot "firstboot" (palauttaa OpenWRT SquashFS:n asetukset alkuperäisiksi) ja sen jälkeen "reboot" (käynnistää modeemin uusiksi)
7) Odotan että modeemin käynnistysrutiinit on ohi, lyön kaapelin kiinni ja kirjaudun uudestaan ohjauspaneeliin todetakseni että homma OK.

::hihsmoke
"Lexa on koko Apache foorumin nettipoliisien PÄÄLLIKKÖ!" -Arto Lauri

The future unknown, but is there ever time to find out...?

Like what I do? Buy me a beer!

Tule mukaan Apachefoorumin Discord-kanavalle!

=Juku=

Siinä saattaisi olla sormi normaalikäyttäjällä niin syvällä suussa, että kynnen alla olisi ruskeaa, jos tuollainen sattuisi "vahingossa".

Me first (rules of traffic)

Lexa

Juu, monella modeemimallilla toi oiskin käytännössä SER-jäte -tuomio laitteelle.
"Lexa on koko Apache foorumin nettipoliisien PÄÄLLIKKÖ!" -Arto Lauri

The future unknown, but is there ever time to find out...?

Like what I do? Buy me a beer!

Tule mukaan Apachefoorumin Discord-kanavalle!


Lexa

"Lexa on koko Apache foorumin nettipoliisien PÄÄLLIKKÖ!" -Arto Lauri

The future unknown, but is there ever time to find out...?

Like what I do? Buy me a beer!

Tule mukaan Apachefoorumin Discord-kanavalle!

=Juku=


Me first (rules of traffic)

Quick Reply

Warning: this topic has not been posted in for at least 356 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it has been approved by a moderator.

Name:
Verification:
Please leave this box empty:

What is the name of this forum?:
What is the most visible color in our forum?:
Shortcuts: ALT+S post or ALT+P preview