{"id":61,"date":"2010-11-02T22:14:37","date_gmt":"2010-11-02T14:14:37","guid":{"rendered":"http:\/\/hewball.com.au\/?p=61"},"modified":"2010-11-02T22:14:37","modified_gmt":"2010-11-02T14:14:37","slug":"open-mesh-firmware-flashing-pico2hp","status":"publish","type":"post","link":"https:\/\/hewball.com.au\/index.php\/2010\/11\/02\/open-mesh-firmware-flashing-pico2hp\/","title":{"rendered":"Open Mesh Firmware Flashing Pico2HP"},"content":{"rendered":"<h2>Flashing a Picostation2 HP with open mesh firmware.<\/h2>\n<p>Problem: The Boot timeout (in the redboot boot loader) is too short to successfully flash the devices with a non Ubiquiti Firmware. So before you can flash a new firmware we need to increase the timeout.<\/p>\n<p>Ingredients: You are going to need the following files in a folder of your choosing<\/p>\n<p>\u00b7 putty.exe \u2013 download from http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html<\/p>\n<p>\u00b7 open-mesh-flash.exe \u2013 downloaded from http:\/\/open-mesh.com\/<\/p>\n<p>\u00b7 breakin.bat and redboot.txt \u2013 grab the text below, Note \u2013 copy everything BETWEEN the denoting lines, but NOT the denoting lines themselves<\/p>\n<p>&#8212; breakin.bat &#8212;<br \/>\necho off<br \/>\n:start<br \/>\nrem &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nping 192.168.1.20 -n 1 -w 1 > NULL<br \/>\necho .<br \/>\nIF ERRORLEVEL 1 goto start<br \/>\nrem &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nbreak<br \/>\nputty.exe telnet:\/\/192.168.1.20:9000 -m redboot.txt<br \/>\n&#8212; end &#8212;<\/p>\n<p>&#8212; redboot.txt &#8212;<br \/>\n^C<br \/>\n&#8212; end &#8212;<\/p>\n<p>Method: The idea behind the script is that it will ping the PicoStation2 until it responds and then it launches a telnet session with putty and sends the Control+C command to stop the boot process and give you a terminal.<\/p>\n<p>With that in mind, fire up a command prompt on your windows machine and start running the breakin.bat script.<\/p>\n<p>Once the script is running, plug your PicoStation2 into the network. It should only take a few seconds for the script to break into the boot process. If after 20 seconds you do not have a putty telnet session window open, unplug the device, wait for 20 seconds and try again.<\/p>\n<p>Now that you have a putty telnet session open, you should see similar to the following:<\/p>\n<p>== Executing boot script in 0.090 seconds &#8211; enter ^C to abort<br \/>\n^C<br \/>\nRedBoot><br \/>\nNow that you have a command prompt, you need to run the fconfig command and change the settings. Note: To delete a character, use Control+H (^H) \u2013 It does not delete the character on screen, but it does delete the character! Note: Use the enter key to get to the next line (setting)<\/p>\n<p>Here is a screen dump of me changing the config on one of the devices<\/p>\n<p>== Executing boot script in 0.090 seconds &#8211; enter ^C to abort<br \/>\n^C<br \/>\nRedBoot> <strong>fconfig<\/strong><br \/>\nRun script at boot: true<br \/>\nBoot script:<br \/>\n.. fis load -l vmlinux.bin.l7<br \/>\n.. exec<br \/>\nEnter script, terminate with empty line<br \/>\n>><br \/>\nBoot script timeout (1000ms resolution): 1<strong>^<\/strong><strong>H2<\/strong><br \/>\nUse BOOTP for network configuration: false<br \/>\nGateway IP address:<br \/>\nLocal IP address: 192.168.1.20<br \/>\nLocal IP address mask: 255.255.255.0<br \/>\nDefault server IP address:<br \/>\nConsole baud rate: 9600<br \/>\nGDB connection port: 9000<br \/>\nForce console for special debug messages: false<br \/>\nNetwork debug at boot time: false<br \/>\nUpdate RedBoot non-volatile configuration &#8211; continue (y\/n)? <strong>y<\/strong><br \/>\n&#8230; Erase from 0xa87e0000-0xa87f0000: .<br \/>\n&#8230; Program from 0x80ff0000-0x81000000 at 0xa87e0000: .<br \/>\nRedBoot> <strong>reset<\/strong><\/p>\n<p>So now you have a PicoStation2 with a two second boot timeout it is time to flash it. Use the following steps to get your device flashed. 1. Determine the interface your device it attached to (run the open-mesh-flash.exe without parameters to see a list)<\/p>\n<p>2. Run the open-mesh-flash.exe specifying your interface<\/p>\n<p>3. Plug your PicoStation2 in<\/p>\n<p>4. Watch the magic happen!<\/p>\n<p>Full instructions can be found at this URL http:\/\/support.open-mesh.com\/activekb\/questions.php?questionid=24<\/p>\n<h2>Other Gotcha&#8217;s<\/h2>\n<h3>Stuck In Redboot<\/h3>\n<p>Run Breakin.bat<\/p>\n<h4>Corect<\/h4>\n<p>== Executing boot script in 0.090 seconds &#8211; enter ^C to abort<br \/>\n^C<br \/>\nRedBoot> <strong>fconfig<\/strong><br \/>\nRun script at boot: true<br \/>\nBoot script:<br \/>\n.. fis load -l vmlinux.bin.l7<br \/>\n.. exec<\/p>\n<h4>Broken<\/h4>\n<p>== Executing boot script in 0.090 seconds &#8211; enter ^C to abort<br \/>\n^C<br \/>\nRedBoot> <strong>fconfig<\/strong><br \/>\nRun script at boot: true<br \/>\nBoot script:<br \/>\n..<\/p>\n<h4>Clearing Device For fresh Reflash<\/h4>\n<p>RedBoot><strong> fis list<\/strong><br \/>\nName              FLASH addr  Mem addr    Length      Entry point<br \/>\nRedBoot           0xA8000000  0xA8000000  0x00030000  0x00000000<br \/>\nlinux             0xA8030000  0x80041000  0x00660000  0x80041000<br \/>\nFIS directory     0xA87E0000  0xA87E0000  0x0000F000  0x00000000<br \/>\nRedBoot config    0xA87EF000  0xA87EF000  0x00001000  0x00000000<br \/>\nRedBoot> <strong>fis init<\/strong><br \/>\nAbout to initialize [format] FLASH image system &#8211; continue (y\/n)? <strong>y <\/strong><br \/>\n*** Initialize FLASH Image System<br \/>\n&#8230; Erase from 0xa87e0000-0xa87f0000: .<br \/>\n&#8230; Program from 0x80ff0000-0x81000000 at 0xa87e0000: .<br \/>\nRedBoot> <strong>fis list <\/strong><br \/>\nName              FLASH addr  Mem addr    Length      Entry point<br \/>\nRedBoot           0xA8000000  0xA8000000  0x00030000  0x00000000<br \/>\nFIS directory     0xA87E0000  0xA87E0000  0x0000F000  0x00000000<br \/>\nRedBoot config    0xA87EF000  0xA87EF000  0x00001000  0x00000000<br \/>\nRedBoot><\/p>\n<p>Attempt a reflash with openmesh<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flashing a Picostation2 HP with open mesh firmware. Problem: The Boot timeout (in the redboot boot loader) is too short to successfully flash the devices with a non Ubiquiti Firmware. So before you can flash a new firmware we need to increase the timeout. Ingredients: You are going to need the following files in a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[29,30,31,32,33,43,45],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-technology","tag-open-mesh","tag-openmesh","tag-pico","tag-pico2hp","tag-picostation","tag-ubiquiti","tag-ubnt"],"_links":{"self":[{"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hewball.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}