From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wong Yee Peng" To: "Gary Thomas" Cc: Subject: Re: [ECOS] How do I restore WinCE image? Date: Thu, 16 Aug 2001 21:55:00 -0000 Message-id: <002701c126d8$fb5975a0$145ea8c0@mospeada> References: X-SW-Source: 2001-08/msg00581.html Hi, I did not save a CF backup of the wince image. however, I did backup the 4 4MB images thru the osloader. So, I tried using the 2nd method u told me. however, I couldn't complete step 1 as redboot complains that it is an invalid image type. By the way, I think in step 1, you meant "load redboot_RAM.bin" instead of "load RedBoot.RAM" as there isn't such a bin file. Anyway, here is a dump of the FIS structure to help you understand my situation. Name flash addr mem addr length entry point (reserved) 0x50000000 0x50000000 0x00040000 0x00000000 RedBoot 0x50040000 0x50040000 0x00040000 0x00000000 RedBoot Config 0x50F80000 0x50F80000 0x00040000 0x00000000 FIS dir 0x50FC0000 0x50FC0000 0x00040000 0x00000000 Linux 0x50080000 0x00100000 0x00080000 0x00000000 JFFS2 ....... (still downloading currently.) As you can see, the table looks very different from the one on http://sources.redhat.com/redboot/ipaq . The Linux partition is before JFFS2 partition becos I loaded and flashed the kernel bef the root image. I believe there should not be any problem with that. Note that all the entry points are 0x00000000. Also the (reserved) partition cannot be removed. I think it is the parrot loader. But why doesn't the web site reflect that? Did they totally removed the parrot loader? Are the entry points very important? If so, how do I "repair" or set their values without deleting the partition and creating a clean one? I believe that is a mistake in http://sources.redhat.com/redboot/ipaq under the section about running the embedded linux demo. It says: <<<<<<>>>>>> The Embedded Linux demo can be run using the commands: RedBoot> fi loa -d Linux RedBoot> ex -b 0x100000 -l 0x280000 -c "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySA0,38400" The demo can be set up to run automatically at boot/reset time: RedBoot> fc Run script at boot: false t Enter script, terminate with empty line >> fi loa -d eCos_demo >> go -w 5 0x20040 >> fi loa -d Linux >> ex -b 0x100000 -l 0x280000 -c "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=ttySA0,38400" -w 5 <<<<<<>>>>>> Shouldn't the length of the kernel image be 0x80000 instead of 0x280000? Will this post a serious problem since the extra memory at the end might override some restricted system areas? Regards Yee Peng ----- Original Message ----- From: "Gary Thomas" To: "Wong Yee Peng" Cc: Sent: Thursday, August 16, 2001 9:30 PM Subject: RE: [ECOS] How do I restore WinCE image? > > On 16-Aug-2001 Wong Yee Peng wrote: > > Hi, > > I managed to permanently install redboot on my ipaq. Then, I > > successfully install the embedded linux kernel and root fs onto the ipaq and > > got it running once. However, later I think I messed up the fis (most > > probably becos of "fis init" twice while testing with the redboot boot > > script). Now, I cannot startup the embedded linux. > > You should be able to restore your Linux environment, without reinstalling > RedBoot. Exactly what problems are you having? Note: this is much preferred > to restoring WinCE as there is a chance that the unit may become [temporarily] > unusable if that operation fails. > > > So, I wanted to restore my CE and reinstall redboot again. However, the > > user guide tells me to refer to the doc in the handhelds.org which does not > > apply to the redboot situation. Can anyone tell me how to restore CE from > > Redboot or the parrot loader? > > Did you make a CF backup using the Parrot loader, prior to installing RedBoot? > If so, just insert the CF card, press reset (or power cycle) while holding > down the "action" button (the joy pad middle button). This will bring up > the CF restore menu which is quite automatic. > > If not, did you make copies of your FLASH by following the HandHelds instructions? > In this case, you'll have 4 data files. You can load these using the RedBoot > 'load' command, either over the serial using Xmodem or via the Ethernet and TFTP. > The basic flow is: > 1. Load & execute RAM version of RedBoot. > RedBoot> load RedBoot.RAM > RedBoot> go > 2. Now load the FLASH contents. > RedBoot> load -r -b 0x00100000 flash_00000000.bin > RedBoot> load -r -b 0x00500000 flash_00400000.bin > RedBoot> load -r -b 0x00900000 flash_00800000.bin > RedBoot> load -r -b 0x00D00000 flash_00c00000.bin > 3. Now the scary part - rewriting the FLASH. > RedBoot> fis unl -f 0x50000000 -l 0x01000000 > RedBoot> fis wr -f 0x50000000 -l 0x01000000 -b 0x00100000 > RedBoot> reset > > Notice: as indicated in the "how to install RedBoot" instructions, we really only > support the first method, i.e. using the Parrot loader. This second method will > work *IF YOU FOLLOW THE DIRECTIONS*, but Red Hat cannot be responsible if there > are any problems. >