Reflash script v1.09 failed: SOLVED using new v1.11!

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Post Reply
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Reflash script v1.09 failed: SOLVED using new v1.11!

Post 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).
Last edited by offbeatdave on Sun Feb 05, 2012 8:11 pm, edited 4 times in total.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash tool FAILS!

Post 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

Code: Select all

ls /dev
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! ;)
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Reflash tool FAILS!

Post 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!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Reflash tool FAILS!

Post 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?
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash tool FAILS!

Post 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). ;)
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Reflash tool FAILS!

Post 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!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash tool FAILS!

Post 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! :)
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
BuZz
Site Admin
Posts: 1462
Joined: Fri Mar 04, 2011 1:15 am

Re: Reflash tool FAILS!

Post 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
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Reflash tool FAILS - fixed using old version

Post 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!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash tool FAILS!

Post 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!
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash tool FAILS - fixed using old version

Post 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.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Reflash tool FAILS - solved by using older version

Post 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.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash tool FAILS - solved by using older version

Post 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.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash tool FAILS - solved by using older version

Post 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.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Reflash tool FAILS - solved by using older version

Post 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!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
roobarb!
Posts: 1772
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Reflash script v1.09 failed: SOLVED using new v1.11!

Post 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.
BirdsLikeWires - Get fresh builds of Debian Bullseye, Bookworm, and Trixie for OpenFrame with the latest 5.10, 6.1, and 6.12 kernels! 8-)
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Reflash script v1.09 failed: SOLVED using new v1.11!

Post by offbeatdave »

roobarb! wrote:
Tweaked the title of the thread a teeny bit. Hope you don't mind.
Nice one!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
Post Reply