RE: Bootldr problems fixed
"Schweizer Walter" <[email protected]> Thu, 29 Jul 2004 09:32:45 +0200
| Newsgroups | gmane.comp.handhelds.simpad.linux |
|---|---|
| Message-ID | <5C2CECE89B47624C88640D7B9ABB1683359E3E@zrhae01a.ch001.siemens.net> |
Hi Guylhem, See below Walter > -----Original Message----- > From: Guylhem Aznar [mailto:[email protected]] > Sent: Thursday, July 29, 2004 1:18 AM > To: Nils Faerber > Cc: Schweizer Walter; Florian Boor; Simpad List > Subject: Re: [Simpad-general] Bootldr problems fixed > > > On Wed, Jul 28, 2004 at 08:58:11PM +0200, Nils Faerber wrote: > > > Yes, the bootldr now runs only on Simpads with 32MB Flash. > > > Maybe it works on the Simpads with only 16 MB but it will still > > > assume 32 MB and fail while flashing. > > This can be corrected at compile time - I guess it is a simple problem > of #ifdef since latest one worked with 16M. Yes, it is a compile time option. Undefine the IPCOM stuff and you get a Bootldr for 16 MB Flash. It would be nice to autodetect the Flash though. > > > > You create the JFFS2 image with mkfs.jffs2 > > > > What is the exact eraseblocksize that should be used with > the used intel > > flash chips? Is it 256k? > The blocksize is 128K = 0x20000. > Here I run : > mkfs.jffs2 --output root-jffs2.flash --root ./root/ > --pad=0xd80000 --eraseblock=0x20000 > > Problem is the root-jffs2.flash is *not* accepted by the simpad - > serload submits a download request, but it never even downloads. > This happens with 2.5.3 and regardless of which serload (win or linux) > or the reset sequence (reset, reset+enter) - I tried every combination > of the above, so until I got that fixed I guess my efforts to create a > jffs2 image for the new kernel will be futile. Bootloader 2.5.3 accepts only files with the correct header. That is created with "gen_boot". You cannot flash the rootdisk only. You have concatenate the kernel and the jffs to one large image. See the "dd" tricks how to do this. Bootldr is different! > > The strangest thing is the kernel created by the following > script is accepted: > > cp zImage /tmp/$$.tmp || exit 1 > set X`ls -l /tmp/$$.tmp` > filelen=$5 > loader_start="0xc0208000" > loader_entry="0xc0208000" > echo "File: kernel.toflash Exec: $loader_entry $filelen " > ./gen_boot -d3 $loader_entry 1 $loader_start $filelen >bheader > cat bheader /tmp/$$.tmp >kernel.flash > rm -f /tmp/$$.tmp bheader > exit 0 > > I am certainly missing something very simple. The abdsence of gen_boot > and loader_start in mkfs.jffs2 bothers me. > > Bien à vous - Best regards, > Guylhem P. Aznar > > -- > *@externe.net http://externe.net Périmé/Deprecated: @oeil.qc.ca, @metalab.unc.edu, @ibiblio.org, @7un.org GPG: 92EB37C1 DD11C9C9 20519D01 E8FA1B11 42975AF7 http://externe.net/pubkey ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click