[ECOS] Problem flashing WinCE

Stefano Mora smora@eos.pr.it
Fri Mar 12 17:32:00 GMT 2010


> Hello all,
> I'm working a board based on Freewscale iMX25.
> The original board has RedBoot + Linux but I need to switch
> to RedBoot + WinCE.
> I init the Flash memory to delete the Linux partition and
> create the WinCE one.
>
> RedBoot> fis list
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> Name              FLASH addr  Mem addr    Length      Entry point
> RedBoot           0x00000000  0x00000000  0x00080000  0x00000000
> FIS directory     0x00100000  0x00100000  0x0007F000  0x00000000
> RedBoot config    0x0017F000  0x0017F000  0x00001000  0x00000000
> kernel            0x00180000  0x00100000  0x00500000  0x00100000
> rootfs            0x00680000  0x00100000  0x10000000  0x00100000
> userfs            0x10680000  0x00100000  0x6F980000  0x00100000
> RedBoot>
> RedBoot> fis init
> About to initialize [format] FLASH image system - continue (y/n)? y
> *** Initialize FLASH Image System
> ... Erase from 0x00100000-0x00180000:
> Erase 0x00100000: .
> ... Program from 0x03e80000-0x03f00000 at 0x00100000: ..
> RedBoot>
> RedBoot> fis create -b 0x0 -f 0x180000 -l 0x1f00000 wince
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> ... Erase from 0x00180000-0x02080000:
> Erase 0x00180000: ................................
> Erase 0x01180000: ..............................
> ... Program from 0x00000000-0x01f00000 at 0x00180000:
> ...............................................................
> ... Erase from 0x00100000-0x00180000:
> Erase 0x00100000: .
> ... Program from 0x03e80000-0x03f00000 at 0x00100000: ..
> RedBoot>
> RedBoot> fis list
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> Name              FLASH addr  Mem addr    Length      Entry point
> RedBoot           0x00000000  0x00000000  0x00080000  0x00000000
> FIS directory     0x00100000  0x00100000  0x0007F000  0x00000000
> RedBoot config    0x0017F000  0x0017F000  0x00001000  0x00000000
> wince             0x00180000  0x00000000  0x01F00000  0xFFFFFFFF
> RedBoot>
>
> Now I download the image and write it into the Flash partition:
>
> RedBoot> load -h 192.168.0.12 -b 0x0 -r nk.bin
> Using default protocol (TFTP)
> Specified address (0x00000000) is not believed to be in RAM -
> continue (y/n)? n
> RedBoot>
> RedBoot> load -h 192.168.0.12 -b 0x180000 -r nk.bin
> Using default protocol (TFTP)
> Raw file loaded 0x00180000-0x00e2ab6e, assumed entry at 0x00180000
> RedBoot>
> RedBoot> fis create wince
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> An image named 'wince' exists - continue (y/n)? y ... Erase
> from 0x00180000-0x02080000:
> Erase 0x00180000: ................................
> Erase 0x01180000: ..............................
> ... Program from 0x00180000-0x00e2ab6f at 0x00180000:
> ...........................
> ... Erase from 0x00100000-0x00180000:
> Erase 0x00100000: .
> ... Program from 0x03e80000-0x03f00000 at 0x00100000: ..
> RedBoot>
> RedBoot> reset
> ....
> ....
> Clock input is 24 MHz
> Booting from [NAND flash]
> [0x80000000 bytes]: 4096 blocks of 128 pages of 4096 bytes each.
>
> RedBoot(tm) bootstrap and debug environment [ROMRAM]
> Non-certified release, version FSL 200933 - built 12:17:49,
> Jan 27 2010
>
> Platform: MX25 3-Stack (Freescale i.MX25 based) PASS 1.1 [x32
> DDR] Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
> Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
>
> RAM: 0x00000000-0x03f00000, [0x00095310-0x03e71000] available
> FLASH: 0x00000000 - 0x80000000, 4096 blocks of 0x00080000 bytes each.
> ....
> ....
> RedBoot> fis load wince
> ... Read from 0x03e80000-0x03eff000 at 0x00100000: ..
> ... Read from 0x00180000-0x00e2ab6f at 0x00180000:
> ...........................
> RedBoot> go
> $T050f:60001800;0d:f00fe703;#87$T050f:60001800;0d:f00fe703;#87
> $T050f:60001800;0d:f00fe703;#87$T050f:60001800;0d:f00fe703;#87
> $T050f:60001800;0d:f00fe703;#87$T050f:60001800;0d:f00fe703;#87
> $T050f:60001800;0d:f00fe703;#87$T050f:60001800;0d:f00fe703;#87
> $T050f:60001800;0d:f00fe703;#87
> $T050f:60001800;0d:f00fe703;#87++Searching for BBT table in
> the flash ...
>
> The image doesn't start by 'go' command.
> If i run 'exec' command i have:
>
> RedBoot> exec
> entry=0x80008000, target=0x80008000
> Using base address 0x00180000 and length 0x00caab70
> ++Searching for BBT table in the flash ...
> .
> Found version 1 Bbt0 at block 4095 (0x7ff80000) Total bad
> blocks: 0 ... Read from 0x03e80000-0x03f00000 at 0x00100000: ..
> ... Read from 0x03e73000-0x03e74000 at 0x0017f000: .
> Turning on PMIC regulators: 1,2,3,4,5
> [Warning] FEC not connect right PHY: ID=20005ce1
> FEC: [ HALF_DUPLEX ] [ disconnected ] [ 10M bps ]:
> Ethernet mxc_fec: MAC address 00:21:f3:06:02:83
> IP: 192.168.0.220/255.255.255.0, Gateway: 192.168.0.1 Default
> server: 192.168.0.15 hardware reset by WDOG
>
> ....
> ....
>
> Where is the fault? Why the iamge doesn't start?
>
> Thanks,
> regards
> ________________________________
>
> Ing. Stefano Mora

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list