Page 1 of 1
Reflash script v1.09 failed: SOLVED using new v1.11!
Posted: Sat Feb 04, 2012 12:45 pm
by offbeatdave
Here's one for you...
Having been messing around on one of my Jogglers getting PnP Mk II up and running, the latest reflash tool from birdslikewires fails!
On boot 1 it says something about a date in the future and reboots before the reflash script kicks in.
On boot 2 the reflash script kicks in and says:
Code: Select all
failed.
Internal memory does not seem to exist.
This Joggler does not appear to have working internal flash memory.
You may have a faulty internal flash memory chip. You will still be able to boot this Joggler
from USB devices, but it is uncertain whether you will be able to use the original operating
system. Visit the Joggler Forums (http://www.jogglerwiki.com/forums) for help.
and shuts down. If I power back up it then goes back to the boot 1 symptoms and so on.
HOWEVER, what is weird is that I can reflash the internals using a previously backup up image in Ubuntu, or by booting Ubuntu and
Code: Select all
sudo mkdir /backup
sudo chmod a+rwx /backup
cd /backup
sudo wget http://dl.dropbox.com/u/24506919/Joggler/Partitions/part_table
cat part_table | sudo sfdisk /dev/mmcblk0
sudo wget http://dl.dropbox.com/u/24506919/Joggler/Partitions/mmcblk0.img
sudo dd if=/backup/mmcblk0.img of=/dev/mmcblk0 bs=1M
thing. The Joggler then works again, but any further attempt to reflash still displays the above symptoms. I've also tried 'blanking' the Joggler using
Code: Select all
sudo dd if=/dev/zero of=/dev/mmcblk0 bs=10M
but still no joy.
Any ideas what is going on and if there is a way to get the Reflash tool going on my test Joggler (it's a little easier than the Ubuntu approach although I may just create a shortcut to a script on the desktop).
Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 4:04 pm
by roobarb!
offbeatdave wrote:Having been messing around on one of my Jogglers getting PnP Mk II up and running, the latest reflash tool from birdslikewires fails!
Did it work before you started messing around?
offbeatdave wrote:
On boot 1 it says something about a date in the future and reboots before the reflash script kicks in.
Yeah, it has file system checking switched on. No harm there.
offbeatdave wrote:
On boot 2 the reflash script kicks in and says:
Code: Select all
Internal memory does not seem to exist.
Any ideas what is going on and if there is a way to get the Reflash tool going on my test Joggler (it's a little easier than the Ubuntu approach although I may just create a shortcut to a script on the desktop).
That is interesting. You should only get that message if the internal flash memory is not detected (and therefore not present in /dev).
Try removing the reflash script from the
reflash folder on the boot partition and then boot the system with a keyboard attached. It'll load a little message, then drop to a login. Use the usual 'joggler' username and password, then
Have a look at the output. Is the mmcblk0 device there in any way? If yes, then I may just need to add a delay to the reflash script. If it's not... Hmm, who knows!

Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 5:23 pm
by offbeatdave
Try removing the reflash script from the reflash folder on the boot partition and then boot the system with a keyboard attached.
I did this, booted on the Joggler in question (which did the boot 1 thing above). It then rebooted, went to the birdslikewires screen, gave me the spiel about needing the reflash script, gave me a countdown and switched off!
Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 5:55 pm
by offbeatdave
Quick update: Futher to the above, I've just tried the reflashing tool on a robust Joggler and it is now exhibiting the behaviour described above. There's nothing amiss in the current version of the reflashing script is there?
Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 6:17 pm
by roobarb!
offbeatdave wrote:Quick update: Futher to the above, I've just tried the reflashing tool on a robust Joggler and it is now exhibiting the behaviour described above. There's nothing amiss in the current version of the reflashing script is there?
Ooh, I hope not. I've had a couple of success reports on the site since the latest version was posted.
I'll fetch it and give it a test when I next get a few minutes (and find a USB stick I've not already crammed with Joggler junk).

Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 6:26 pm
by offbeatdave
I've just tried the latest jogglerflash.sh script using the old USB image ubuntuserverlucid.img (960Mb from around June 2011). This gets me straight into the reflash process and lets it check the integrity of the image but still has a problem not detecting internal flash.
When you get a chance, do you have an older version of the jogglerflash.sh script I can try on the old USB image? I think I got rid of any old versions when I updated the other day.
Thanks for the responses so far!
Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 6:39 pm
by roobarb!
offbeatdave wrote:I've just tried the latest jogglerflash.sh script using the old USB image ubuntuserverlucid.img (960Mb from around June 2011). This gets me straight into the reflash process and lets it check the integrity of the image but still has a problem not detecting internal flash.
Means the image isn't at fault then. Thank goodness, they're a bit of a chew to rebuild.
offbeatdave wrote:When you get a chance, do you have an older version of the jogglerflash.sh script I can try on the old USB image? I think I got rid of any old versions when I updated the other day.
I keep the old versions online for a little while, so they're here:
http://birdslikewires.co.uk/download/jo ... e/reflash/
The one called 'jogglerflash107.sh' was the previous version.
offbeatdave wrote:Thanks for the responses so far!
No problem!

Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 6:51 pm
by BuZz
in regards to e2fsck complaining about fs date, a workaround is /etc/e2fsck.conf with
Code: Select all
[options]
broken_system_clock = true
Re: Reflash tool FAILS - fixed using old version
Posted: Sat Feb 04, 2012 6:57 pm
by offbeatdave
Yipee! After much faffing today (as usual) jogglerflash106.sh works perfectly 1st time on the old image! For some reason v1.09 doesn't like the 2 jogglers I tried it on and the latest smaller file system doesn't like them either!
Thank you!
Re: Reflash tool FAILS!
Posted: Sat Feb 04, 2012 9:59 pm
by roobarb!
BuZz wrote:in regards to e2fsck complaining about fs date, a workaround is /etc/e2fsck.conf with
Code: Select all
[options]
broken_system_clock = true
Thanks, BuZz - I thought I'd put that in there, but obviously I forgot!
Re: Reflash tool FAILS - fixed using old version
Posted: Sat Feb 04, 2012 10:00 pm
by roobarb!
offbeatdave wrote:Yipee! After much faffing today (as usual) jogglerflash106.sh works perfectly 1st time on the old image! For some reason v1.09 doesn't like the 2 jogglers I tried it on and the latest smaller file system doesn't like them either!
Thank you!
Version 1.06 worked? Did v1.07 not work? There's virtually no difference between those two.
Also, did you try the troubleshooting I mentioned before (ls /dev)? If there's a genuine fault here I'd like to get to the bottom of it.
Re: Reflash tool FAILS - solved by using older version
Posted: Sat Feb 04, 2012 10:12 pm
by offbeatdave
Haven't tried v1.07 yet. Jumped in back at v1.06 and it behaved impeccably!
The latest version wouldn't even present me with an option to get in to do the ls /dev stuff.
I did exactly what you asked on the 2 jogglers in question (1 o2, 1 openpeak)
Boot 1 did what it did before with the date thing being in the future.
They then rebooted, went to the birdslikewires screen, gave me the spiel about needing the reflash script, gave me a countdown and switched off! No option to log in or anything.
They then reverted to boot 1 symptom etc. etc.
Re: Reflash tool FAILS - solved by using older version
Posted: Sat Feb 04, 2012 10:24 pm
by roobarb!
offbeatdave wrote:Haven't tried v1.07 yet. Jumped in back at v1.06 and it behaved impeccably!
Looking back at my change log, if v1.06 worked for you with that system, then v1.07 may well not have. The reflash files got moved in v1.07, so it wouldn't be able to find them on that version of the 'System' you have.
offbeatdave wrote:The latest version wouldn't even present me with an option to get in to do the ls /dev stuff.
I did exactly what you asked on the 2 jogglers in question (1 o2, 1 openpeak)
Boot 1 did what it did before with the date thing being in the future.
They then rebooted, went to the birdslikewires screen, gave me the spiel about needing the reflash script, gave me a countdown and switched off! No option to log in or anything.
They then reverted to boot 1 symptom etc. etc.
Hehe - thinking about it, yes - I think that's the correct behaviour (to shutdown if no reflash script is found). I'll add a keypress to drop to a login prompt in the next version (because if you want a login, you'll need to have a keyboard attached anyway). The rest of the scripts are deliberately not interactive. I'll bin the filesystem check too (or at least check I included the e2fsck.conf file) as this isn't a run-every-day type of install.
Re: Reflash tool FAILS - solved by using older version
Posted: Sun Feb 05, 2012 7:10 pm
by roobarb!
Reflash Tool and System have both been updated (System v1.07, Script v1.11). Tested on all the Jogglers in the house and it's working great for me.
Re: Reflash tool FAILS - solved by using older version
Posted: Sun Feb 05, 2012 7:51 pm
by offbeatdave
I'll give it a go later (on a different stick to the one that I know works!)
EDIT: New version (reflash script v1.11 and system image v1.07) worked perfectly out of the box on the Jogglers above.
I have attempted to change the thread title to reflect this.
Thanks again for all your hard work!
Re: Reflash script v1.09 failed: SOLVED using new v1.11!
Posted: Sun Feb 05, 2012 11:31 pm
by roobarb!
No problem - I like to have it working properly.
Tweaked the title of the thread a teeny bit. Hope you don't mind.
Re: Reflash script v1.09 failed: SOLVED using new v1.11!
Posted: Mon Feb 06, 2012 7:53 am
by offbeatdave
roobarb! wrote:
Tweaked the title of the thread a teeny bit. Hope you don't mind.
Nice one!