Upgrade failure

jcwren
 
Posts: 1
Joined: Sat Nov 15, 2014 3:04 am

Upgrade failure

Sat Nov 15, 2014 3:10 am

Got three VoCores today. Decided to upgrade the system image. Grabbed openwrt-ramips-rt305x-vocore-squashfs-sysupgrade.bin, dated 14-Nov-2014 22:00. Uploaded image, flashed it. Unit seems to be booting, advertises the VoCore SSID, but won't issue an IP address, and isn't DHCPing from the LAN (I had previously edited /etc/config/network to DHCP from the LAN).

I imagine I can connect up the serial port and recover it, but that's a nuisance. Why did it fail? Is this a bad build? Is there something I'm missing in the rather vague instructions?

Peter H
 
Posts: 58
Joined: Wed Nov 12, 2014 10:24 pm

Re: Upgrade failure

Sun Nov 16, 2014 1:14 am

Can I ask where you got the image from? I 've been looking for a copy of the original image that my VoCore shipped with so I can revert to a known good state if I mess something up in future, but I haven't seen it anywhere. (I haven't built OpenWrt before. I see that it has a VoCore configuration, which I thought was a nice touch, but I haven't managed to build it yet. I must admit that I found the instructions in http://vocore.io/wiki/index/id:15 rather vague about the exact configuration needed.)

Pyrofer
 
Posts: 61
Joined: Tue Oct 21, 2014 11:35 am

Re: Upgrade failure

Sun Nov 16, 2014 10:52 am

How are you flashing the image?

If you do it from uboot I am sure it overwrites everything. However if you do it from commandline with sysupgrade I think it leaves config files such as network config alone.

Both methods wipe any manually installed kmods etc.

bobpaul
 
Posts: 6
Joined: Mon Nov 17, 2014 11:48 pm

Re: Upgrade failure

Tue Nov 18, 2014 9:57 pm

Peter H wrote:I 've been looking for a copy of the original image that my VoCore shipped with so I can revert to a known good state if I mess something up in future, but I haven't seen it anywhere.


I think we can use dd to read the contents from flash and then later restore with mtd. This is sort of described on the OpenWRT wiki, though I'm having trouble groking it. The wiki talks about an "art" partition, which we don't have. My VoCore looks like this:

Code: Select all
root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "uboot"
mtd1: 00010000 00010000 "uboot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 00fb0000 00010000 "firmware"
mtd4: 00eafa61 00010000 "rootfs"
mtd5: 00c30000 00010000 "rootfs_data"


So I think we would want to backup mtd2, mtd3, mtd4, and mtd5. Something like:
Code: Select all
# dd if=/dev/mtd2 of=/tmp/factory.img
# scp factory.img user@othercomputer:~/


I'm not sure how to create a trx image that could be applied from the web interface, though.

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 32 guests