Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




206 posts

Master Geek
+1 received by user: 13

Subscriber

Topic # 245422 2-Feb-2019 23:40
4 people support this post
Send private message

im not too sure what value this would bring but thought i could make down the step just in case anyone needs to do the same but with really limited knowledge to CLI like mine. there is other place on internet has something like this, but might not be baby step as this one.

 

some background:my ERL started having Error 500 after login, after asking abit of question here on GZ forum, I found out that the usb stick was dead and i could not reset the router, while im saving up for a Edgerouter 4, i have to fix it as the short term fix.

 

To complete the replacement, you need the following.

 

1.PuTTY - this is used for monitor what is going on inside the router.

 

2.console cable - mine is RJ45 to usb, and it for the connect router to your PC so you could use PuTTY. console cable plug in console port in router and the other end goes to my PC

 

3.Tftpd64 - this software would make up a place so the router could boot without the firmware.

 

4.a ftp server - this is to let the router to download EdgeOS, in my case I use the Synology NAS. but you should be able to find tones of software so you could use your PC to host one.

 

5.emrk-0.9c.bin - this is used for boot the router, download from http://0.uk.mirrors.vyos.net/tools/emrk/

 

6.EdgeOS.tar - download from the ubnt.com, in my case i downloaded and renamed as ERL.tar, put in my NAS, you might need to download them and place it in the FTP server.

 

6.a working router (optional) - i need to use NAS as FTP server so i set up my old router. PC, ERL (eth0) both conect to router, 

 

7.a usb that is small enough to fit in ERL, plug it in the ERL, i use Kingston SE9 16g (cost my 8 dollors, online review said it should work, and it is cheap)

 

 

 

do NOT connect power to ERL just yet.

 

 

 

-----I learned it only by googleing, some terminology might not be accurate.--------

 

1. plug console cable into your PC and found out which COM your console cable is, to do this you need to go to devices manager, it is under [COM and LPT]

 

2.set up Fftp64, current Directory should be the place you save ermk-0.9c.bin, server interfaces should be my PC's IP, because in my case i need to use the NAS.

 

 

3. set up PuTTY, you need to change connection type to [Serial], serial line should be match COM of the console cable, mine is COM5, speed should be set as 115200. then hit open. 

 

 

4, connect power to ERL, keep press keyboard on PuTTY, not too sure the theoy behind it, but once the router is ready you will see the stuff you enter, simply just delete all the entery. Then you will have the screen below

 

 

5. set all the configure to boot from tftp64.

 

  • set ipaddr x.x.x.x (in my case i set 192.168.178.40, this is going back to using NAS so i have to set it like this so my router will recongise it later on. )
  • set netmask 255.255.255.0 (or whatever mask you want)
  • set serverip y.y.y.y (this is the ip address on tftp, in my case it would be 192.168.178.20)
  • set bootfile emrk-0.9c.bin
  • set gatewayip z.z.z.z (my default gateway is 192.168.178.1)
  • tftpboot (once hit Enter, the window will run)

 

when it stop running, enter bootoctlinux $loadaddr . it will run again.

 

 

it will ask you whether you know what you are doing and whether you want to procee, key in yes, then hit enter (even i dont know what im doing :P)

 

 

it then asks you about DHCP, cos my ERL is connected to the working router as a device, so i need to do this in order to let ERL access my NAS.

 

 

once it is all done, you should see [Emrk>] in the window,

 

6.install edgeOS, enter emrk-reinstall (like second line from Pic below), once hit Enter, it will ask you for the url of edgerOS tar. you should enter the ftp address of the tar file you download, i could not figure how to download from the interent directly, hence the dummy way.

 

 

7.once download completed, it will install, once finish installing, it will ask you the reboot, you should have a workable ERL once reboot.

 

then you could go the Michael turorial and follow the step to set it up.

 

DONE:)

 

 

 

just a update, I have done this 3 times already, the last usb i put in die 2 days later. when I found it out, the ERL still works just could not login (error 500) maybe it has something to do with system setting on usb reset time or something like it. hope this SE would last longer, if anyone know what is casuing the dying usb, please teach me how to fix.....

 

 

 

hope this small tutorial can help someone :)

 

 

 

S.

 

 


Create new topic
5355 posts

Uber Geek
+1 received by user: 1830


  Reply # 2172077 3-Feb-2019 08:42
Send private message quote this post

Thanks for your efforts @iamsammajor


Create new topic


Donate via Givealittle


Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Amazon introduces new Kindle with adjustable front light
Posted 21-Mar-2019 20:14


A call from the companies providing internet access for the great majority of New Zealanders, to the companies with the greatest influence over social media content
Posted 19-Mar-2019 15:21


Two e-scooter companies selected for Wellington trial
Posted 15-Mar-2019 17:33


GeForce GTX 1660 available now
Posted 15-Mar-2019 08:47


Artificial Intelligence to double the rate of innovation in New Zealand by 2021
Posted 13-Mar-2019 14:47


LG demonstrates smart home concepts at LG InnoFest
Posted 13-Mar-2019 14:45


New Zealanders buying more expensive smartphones
Posted 11-Mar-2019 09:52


2degrees Offers Amazon Prime Video to Broadband Customers
Posted 8-Mar-2019 14:10


D-Link ANZ launches D-Fend AC2600 Wi-Fi Router Protected by McAfee
Posted 7-Mar-2019 11:09


Slingshot commissions celebrities to design new modems
Posted 5-Mar-2019 08:58


Symantec Annual Threat Report reveals more ambitious, destructive and stealthy attacks
Posted 28-Feb-2019 10:14


FUJIFILM launches high performing X-T30
Posted 28-Feb-2019 09:40


Netflix is killing content piracy says research
Posted 28-Feb-2019 09:33


Trend Micro finds shifting threats require kiwis to rethink security priorities
Posted 28-Feb-2019 09:27


Mainfreight uses Spark IoT Asset Tracking service
Posted 28-Feb-2019 09:25



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.