SECN 2.0 RC4 on Stock Dragino with Openwrt

271 views
Skip to first unread message

C Scott

unread,
Apr 6, 2014, 7:18:10 PM4/6/14
to village-...@googlegroups.com
I have a few stock Dragino MS14-S boxes that I would like to use as MP 2.0 appliances. When I try to flash SECN 2 RC4 using their (YUN) Web GUI flash. I get a "IMAGE FORMAT INVALID" error. I used the -F switch and believe I bricked one of my boards. Is there any way to do this safely or are there significant differences in the HW. I also managed to flash the root FS on the stock version but could not flash the kernel before I destroyed it by trying to force flash the systemupgrade.bin. Any suggestions to help transition I really would like to donate these to a friend in Africa.

T Gillett

unread,
Apr 6, 2014, 10:33:07 PM4/6/14
to village-telco-dev
Hi Craig

Th MS-14 hardware is 100% compatible with the VT SECN firmware.

The easiest way to reflash the units is probably to connect to the unit with ssh, then use scp to copy the SECN 2.0 RC4 sysupgrade firmware file to the /tmp directory on the device.

Once the file is copied, then execute 'sysupgrade -n -v'  command from the command line on the MS-14.


Download the firmware file from here:



The sequence would look something like the following, assuming you are working from a Ubuntu or similar Linux PC...

Start a terminal session on your PC and check that you can log in with ssh. 
(If the root password has not been set on the MS14, connect with telnet, and set the password)

$ ssh root@<IP address of MS-14>
 Enter root password when prompted.

Once you are logged in, change to the /tmp directory:
# cd /tmp

Start a second terminal session to copy the file across to the tmp directory:
$ scp root@<IP address of MS-14>:/tmp
 Enter root password when prompted.

When the file has been copied, change back to the first terminal session to run sysupgrade.
Don't forget to use the -n flag!
# sysupgrade -n -v

The firmware will be upgraded and the device will restart and appear on the default SECN IP address of 10.130.1.20

Possible Bricks

The OpenWrt system is quite resistant to real bricking, so you can probably recover from your bad flash process.

If you are unable to log in to the command line on the MS-14, you should be able to get into the OpenWrt Failsafe mode by operating the Reset pushbutton on the MS-14 as it is powered up. 
The process is described on the VT Wiki page here:


From Failsafe mode you should be able to reset the IP address to a known value and then restart the device so that you can access it with ssh and reflash the firmware as above.

Please post back to let us know how you get on with the recovery and reflash.

Regards
Terry


On Mon, Apr 7, 2014 at 9:18 AM, C Scott <craig...@morgan.edu> wrote:
I have a few stock Dragino MS14-S boxes that I would like to use as MP 2.0 appliances. When I try to flash SECN 2 RC4 using their (YUN) Web GUI flash. I get a "IMAGE FORMAT INVALID" error. I used the -F switch and believe I bricked one of my boards. Is there any way to do this safely or are there significant differences in the HW. I also managed to flash the root FS on the stock version but could not flash the kernel before I destroyed it by trying to force flash the systemupgrade.bin. Any suggestions to help transition I really would like to donate these to a friend in Africa.

--
You received this message because you are subscribed to the Google Groups "Village Telco Development Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to village-telco-...@googlegroups.com.
To post to this group, send email to village-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/village-telco-dev/0cdb235a-6268-4934-a5c2-dd1c5413900e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

C Scott

unread,
Apr 7, 2014, 12:32:19 AM4/7/14
to village-...@googlegroups.com
Terry thanks for getting back to me so soon! Okay I tried the sequence you suggested but the systemupgrade command gives me a Image check 'platform_check_image' failed error. I am using the binary you suggested. 

T Gillett

unread,
Apr 7, 2014, 12:48:13 AM4/7/14
to village-telco-dev
Craig

That sounds unusual. 

So the 'sysupgrade' command gave that error - is that correct? 

And the command line is working ok in other respects - is that correct?

Can you identify exactly what firmware is running on the MS-14 please?
There is probably a splash page when you connect with ssh.

Is there a web page running on the original firmware?
If so what does it identify itself as?

You can also try to flash the generic OpenWrt trunk snapshot for the Dragino from the Openwrt downloads site here:


If that flashes OK then it will come up on the default OpenWrt IP of 192.168.1.1

Terry


hkwill...@gmail.com

unread,
Apr 7, 2014, 1:07:40 AM4/7/14
to village-...@googlegroups.com
Also, if you can login per Terry's instructions, please do:

# cat /proc/cpuinfo

The entry for Machine should be "Dragino Dragino v2".

Let us know what it shows.

Cheers,

Keith
Sent via BlackBerry by AT&T

From: T Gillett <tgil...@gmail.com>
Date: Mon, 7 Apr 2014 14:48:13 +1000
To: village-telco-dev<village-...@googlegroups.com>
Subject: Re: [vt-dev] SECN 2.0 RC4 on Stock Dragino with Openwrt

C Scott

unread,
Apr 7, 2014, 1:28:31 AM4/7/14
to village-...@googlegroups.com
Hey Terry
1) yes that was the sysupgrade command as shown below:

root@Arduino:/tmp# sysupgrade -n -v openwrt-MP02-RC4-squashfs-sysupgrade.bin
Invalid image type.
Image check 'platform_check_image' failed.

2) I was able to flash with ms14-arduino-yun-squashfs-sysupgrade-RC1.2.bin

3) here is the system info:

Model Arduino Yun
Firmware Version Linino Barrier Breaker devel / LuCI Trunk (svn-r9945)
Kernel Version 3.8.3

4) the second bin you listed gives the same error!! 
root@Arduino:/tmp# sysupgrade -n -v openwrt-ar71xx-generic-dragino2-squashfs-sys
upgrade.bin
Invalid image type.
Image check 'platform_check_image' failed.

Is it some kind if platform inconsistency? Their  Images flash but others don't work...

edwin

unread,
Apr 7, 2014, 1:34:48 AM4/7/14
to village-...@googlegroups.com

Hi, Craig,

 

This is Edwin from Dragino Technology

 

The Yun firmware is under the linino distribution which use different flash layout and boot address.

 

In this case, the sysupgrade doesn’t work.  We plan to provide a middleware so you can upgrade from YUN firmware to SECN without using the UART connection.  It should be finished in 1~2 days and will post the instruction here.

 

Best Regards,

Edwin

 

发件人: village-...@googlegroups.com [mailto:village-...@googlegroups.com] 代表 T Gillett
发送时间: 201447 12:48
收件人: village-telco-dev
主题: Re: [vt-dev] SECN 2.0 RC4 on Stock Dragino with Openwrt

C Scott

unread,
Apr 7, 2014, 1:36:33 AM4/7/14
to village-...@googlegroups.com, hkwill...@gmail.com
Hi Keith
Not quite but there is a AR9331 on it (visual) and it came with a M32 Board

root@Arduino:/tmp# cat /proc/cpuinfo
system type             : Atheros AR9330 rev 1
machine                 : Arduino Yun
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 265.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0f           f8, 0x0ff8]
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available



On Monday, April 7, 2014 1:07:40 AM UTC-4, Keith Williamson wrote:
Also, if you can login per Terry's instructions, please do:

# cat /proc/cpuinfo

The entry for Machine should be "Dragino Dragino v2".

Let us know what it shows.

Cheers,

Keith
Sent via BlackBerry by AT&T

From: T Gillett <tgil...@gmail.com>
Date: Mon, 7 Apr 2014 14:48:13 +1000
To: village-telco-dev<village-telc...@googlegroups.com>

hkwill...@gmail.com

unread,
Apr 7, 2014, 1:45:36 AM4/7/14
to C Scott, village-...@googlegroups.com
Hi Craig,

I assume you have seen Edwin's response. I would wait for his solution.

The sysupgrade utility does a platform check that compares the machine type of the current image (/proc/cpuinfo) with the machine type defined in the new image. If they aren't the same, sysupgrade refuses to do the reflash.

The SECN sysupgrade images are defined with machine entry of "Dragino Dragino v2". Your current image has "Arduino Yun", thus the failure.


Cheers,

Keith
Sent via BlackBerry by AT&T

From: C Scott <craig...@morgan.edu>
Date: Sun, 6 Apr 2014 22:36:33 -0700 (PDT)

C Scott

unread,
Apr 7, 2014, 1:49:34 AM4/7/14
to village-...@googlegroups.com
Thanks Edwin
So if I had a UART board U-Boot would work?
Is there any hope for the board I forced? I tried getting in using the YunSerialTerminal, as well as trying to ping it while hitting the reset button to put it in failsafe mode. It seems to be spewing out packets from its old ip configuration.
I'll be waiting...thanks...my sanity is returning :)

edwin

unread,
Apr 7, 2014, 2:22:06 AM4/7/14
to village-...@googlegroups.com

Hi, Craig,

 

If you have a UART to RS232 board, you can change the firmware from Yun to SECN in u-boot as mentioned here:

http://wiki.dragino.com/index.php?title=Upgrade_Firmware_ms14

 

Best Regards,

Edwin

 

发件人: village-...@googlegroups.com [mailto:village-...@googlegroups.com] 代表 C Scott
发送时间: 201447 13:50
收件人: village-...@googlegroups.com
主题: Re: 答复: [vt-dev] SECN 2.0 RC4 on Stock Dragino with Openwrt

edwin

unread,
Apr 8, 2014, 8:58:32 AM4/8/14
to village-...@googlegroups.com

Hi, Craig,

 

Middleware is ready, you can download it from http://www.dragino.com/downloads/index.php?dir=motherboards/ms14/Firmware/Yun/middleware.1/

Upload the Yun firmware to middleware, then ssh it and run:

 

root@Arduino:~# mtd write /etc/uboot_for_dragino_v2_ms14.bin u-boot

Unlocking u-boot ...

Writing from /etc/uboot_for_dragino_v2_ms14.bin to u-boot ...    

root@Arduino:~# reboot

 

The ms14 will reboot to have a Web-FailSafe u-boot. Then you can upgrade to SECN in u-boot. Reference link is here: http://wiki.dragino.com/index.php?title=Web_FailSafe_Uboot

 

Best Regards,

Edwin

 

 

发件人: village-...@googlegroups.com [mailto:village-...@googlegroups.com] 代表 C Scott
发送时间: 201447 13:50
收件人: village-...@googlegroups.com
主题: Re: 答复: [vt-dev] SECN 2.0 RC4 on Stock Dragino with Openwrt

C Scott

unread,
Apr 8, 2014, 11:50:43 PM4/8/14
to village-...@googlegroups.com
Thank You! I'll try it out and post the results.

C Scott

unread,
Apr 9, 2014, 1:46:32 AM4/9/14
to village-...@googlegroups.com
I am happy to say it worked like a charm! 
I upgraded my board with the sysupgrade Middleware bin using the Web GUI. After connecting using ssh, running the MTD command and rebooting, I was able to reflash to SECN firmware using the fail-safe mode web GUI. Many many thanks to all who helped...this group is awesome!!

T Gillett

unread,
Apr 9, 2014, 2:12:11 AM4/9/14
to village-telco-dev
Craig

Thanks for the feedback.

Please let us know if we can assist with getting the SECN firmware correctly configured for your use.

Regards
Terry


Reply all
Reply to author
Forward
0 new messages