RE: Updating bootloader and reinstalling PocketPC

From: Jonathan Duff (jonathan.duff@ntlworld.com)
Date: Tue Apr 23 2002 - 18:34:54 EDT


Thanks for the help Jamey, it worked perfectly.

Your current bootloader, actually keeps you much better informed as to
what is happening than the documentation on most sites.

For anyone who wants to try the same I did the following
Load bootldr
Send bootldr-2.18.39.bin rom the PC via Xmodem
(Take a deep breath!)
Reboot to new loader
Partition reset
(Gives you bootldr and root partions)
Load root
Send wince_image.gz via Xmodem (takes about 50 minutes)
(The bootloader recognised this as a GZ file and automatically verified
it after the transfer was complete which was very reassuring)
Optionally you can now keep the existing handhelds bootloader or switch
back to the original "Parrot" one
I switched back for now as the non parrot ones seem to loose all your
data after a soft reset. A question for the developers here, presumably
this is to allow all the various different operating systems clean
access to the system ram, wouldn't it be possible to add in a bit of
code that detected if you were rebooting to the same OS as you had last
booted to and leave the memory alone in this case, only clearing the ram
if you are switching to a different os?

Jonathan

-----Original Message-----
From: Hicks, Jamey [mailto:Jamey.Hicks@compaq.com]
Sent: 23 April 2002 13:06
To: Jonathan Duff
Cc: David J. Biesack; bootldr@handhelds.org
Subject: RE: [Bootldr] Updating bootloader and reinstalling PocketPC

Jonathan,

You are basically correct.

> -----Original Message-----
> From: Jonathan Duff [mailto:jonathan.duff@ntlworld.com]
> Sent: Monday, April 22, 2002 7:04 PM
> To: bootldr@handhelds.org
> Subject: [Bootldr] Updating bootloader and reinstalling PocketPC
>
>
> Can anyone confirm that this is the correct sequence of steps before I

> create a brick! I want to remove savaJe and reinstall Pocket PC2002 on

> a 3760. I've read as much as I can on both this site and
> savaje.com and am
> still a bit unsure of the exact procedure as there seems to be some
> conflicting information.
>
> Here's what I think I need to do.
>
> Boot> Load bootldr
>
> Send bootldr-2.18.39.bin rom the PC via Xmodem, (is this the
> best loader
> to use or is one of the older ones better?)
>
> Reboot the IPAQ
>
> My Ipaq has partitions bootldr,params,kernel,rt.jar,savaJe and apps.
>
> As I don't have a root partition do I need to execute
>
> Boot> partition reset
>
> Followed by
>
> Boot> load root
> Send wince_image.gz via Xmodem
> I've read elsewhere that the Xmodem command wraps around after 8megs,
is
> this still a problem with the newer bootloaders as my image file is
> 13megs?

It's not that xmodem wraps around, it's that it uses the beginning of
dram to hold the data it is going to write to flash. Most of the
bootldr operates in DRAM from 24-32MB, but it used to sit in DRAM from
8-16MB, which is where the 8MB limit came in. If you loaded more the
8MB, then it overwrite the bootldr runtime structures and crashed. This
limit still comes into play with the H3100, which only has 16MB of DRAM.

> Some sites quote the use of the command "set ymodem 1" to get around
> the 8 meg limit and get a faster transfer, is this only for direct
> load flash commands, using uncompressed files or can it be used with
> load root?

ymodem is almost twice as fast as xmodem but uses the same chunk of DRAM
for buffering the transfer. The bootldr's ymodem implementation only
seems to work with minicom and not hyperterminal.

> Or will the load root command create the partition and load the file
> itself without the partition reset step?

You need to do the partition reset step in order to define the root
partition in flash -- Savaje has partitioned it without a partition
named "root".

Jamey



This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:04 EST