Hi
I have a bootloader for wince 3.0 c:\wince300\platform\sa11x0bd\ebootne2k,
this compiled and built for wince 3.0 (had to set up a special command
prompt).

I am trying to build the bootloader under wince.net 4.2 and am overwhelemed
with he amount and type of errors being generated. Running build -cfs in
c:\wince300\platofrm\sa11x0bd\ebootne2k generates the following, this is
only a small fraction of the messages


D:\WINCE420\PLATFORM\SA11X0BD>SET REVCPLUS_MAINBOARD=1

D:\WINCE420\PLATFORM\SA11X0BD>rmdir /S /Q
D:\WINCE420\platform\sa11x0bd\ebootNE2K\obj

D:\WINCE420\PLATFORM\SA11X0BD>if exist D:\WINCE420\ebootNE2K.release\eboot.*
del /Q D:\WINCE420\ebootNE2K.release\eboot.*

D:\WINCE420\PLATFORM\SA11X0BD>if exist D:\WINCE420\ne2k.bat attrib -r
D:\WINCE420\ne2k.bat

D:\WINCE420\PLATFORM\SA11X0BD>if exist D:\WINCE420\ne2k.bat del /Q
D:\WINCE420\ne2k.bat

D:\WINCE420\PLATFORM\SA11X0BD>cd D:\WINCE420\platform\sa11x0bd\ebootNE2K

D:\WINCE420\PLATFORM\SA11X0BD\ebootne2k>build -cf
Build for Windows CE (Release) (Built on Dec 17 2002 13:28:33)
File names: Build.log Build.wrn Build.err Build.dat Build.con
BUILD: Checking for D:\WINCE420\sdk\bin\i386\srccheck.exe.
BUILD: SrcCheck exit code: 0 (dec)
srcgen D:\WINCE420\PLATFORM\SA11X0BD ATLANTA_8000
D:\WINCE420\PUBLIC\ATLANT~1\WINCE420\Intel_SA1110_Assabet\cesysgen
Access is denied.
Access is denied.
BUILD: Compile and Link for ARM.
Master db name is: D:\WINCE420\PLATFORM\SA11X0BD\Build.dat
BUILD: Loading D:\WINCE420\PLATFORM\SA11X0BD\Build.dat... - old version -
recomputing.
BUILD: Computing Include file dependencies:
BUILD: Examining d:\wince420\platform\sa11x0bd\ebootne2k directory for files
to compile.
d:\wince420\platform\sa11x0bd\ebootne2k - 15 source files (4,400 lines)
Master db name is: D:\WINCE420\PLATFORM\SA11X0BD\Build.dat
BUILD: Unable to save the dependency database:
D:\WINCE420\PLATFORM\SA11X0BD\Build.dat
BUILD: Compiling d:\wince420\platform\sa11x0bd\ebootne2k directory
Compiling - d:\wince420\platform\sa11x0bd\ebootne2k\arm\oemboot.c for ARM
d:\wince420\platform\sa11x0bd\ebootne2k\arm\oemboot.c(20) : error C1083:
Cannot open include file: 'windows.h': No such file or directory

\kernel\hal\arm\fwsarm.s(21) : error A0044: can't open file: kxarm.h
D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(68) : error A0051:
unknown opcode: STARTUPTEXT
D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(89) : error A0051:
unknown opcode: LEAF_ENTRY
D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(90) : error A0064:
code inside data section
D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(91) : error A0064:
code inside data section
D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(93) : error A0064:
code inside data section



Its a nightmare, it can't seem to find any of the .h files, and there are
code inside data section errors, my head is about to explode. Any help
advice would be very much appreciated


Regards

Re: Bootloader Nightmare by Ringwood

Ringwood
Tue Feb 10 09:10:00 CST 2004


"Tweeeek" <Tariq.Mahmood@nospam.com> wrote in message
news:c0aq68$ft8$1$8302bc10@news.demon.co.uk...
> Hi
> I have a bootloader for wince 3.0 c:\wince300\platform\sa11x0bd\ebootne2k,
> this compiled and built for wince 3.0 (had to set up a special command
> prompt).
>
> I am trying to build the bootloader under wince.net 4.2 and am
overwhelemed
> with he amount and type of errors being generated. Running build -cfs in
> c:\wince300\platofrm\sa11x0bd\ebootne2k generates the following, this is
> only a small fraction of the messages
>
>
> D:\WINCE420\PLATFORM\SA11X0BD>SET REVCPLUS_MAINBOARD=1
>
> D:\WINCE420\PLATFORM\SA11X0BD>rmdir /S /Q
> D:\WINCE420\platform\sa11x0bd\ebootNE2K\obj
>
> D:\WINCE420\PLATFORM\SA11X0BD>if exist
D:\WINCE420\ebootNE2K.release\eboot.*
> del /Q D:\WINCE420\ebootNE2K.release\eboot.*
>
> D:\WINCE420\PLATFORM\SA11X0BD>if exist D:\WINCE420\ne2k.bat attrib -r
> D:\WINCE420\ne2k.bat
>
> D:\WINCE420\PLATFORM\SA11X0BD>if exist D:\WINCE420\ne2k.bat del /Q
> D:\WINCE420\ne2k.bat
>
> D:\WINCE420\PLATFORM\SA11X0BD>cd D:\WINCE420\platform\sa11x0bd\ebootNE2K
>
> D:\WINCE420\PLATFORM\SA11X0BD\ebootne2k>build -cf
> Build for Windows CE (Release) (Built on Dec 17 2002 13:28:33)
> File names: Build.log Build.wrn Build.err Build.dat Build.con
> BUILD: Checking for D:\WINCE420\sdk\bin\i386\srccheck.exe.
> BUILD: SrcCheck exit code: 0 (dec)
> srcgen D:\WINCE420\PLATFORM\SA11X0BD ATLANTA_8000
> D:\WINCE420\PUBLIC\ATLANT~1\WINCE420\Intel_SA1110_Assabet\cesysgen
> Access is denied.
> Access is denied.
> BUILD: Compile and Link for ARM.
> Master db name is: D:\WINCE420\PLATFORM\SA11X0BD\Build.dat
> BUILD: Loading D:\WINCE420\PLATFORM\SA11X0BD\Build.dat... - old version -
> recomputing.
> BUILD: Computing Include file dependencies:
> BUILD: Examining d:\wince420\platform\sa11x0bd\ebootne2k directory for
files
> to compile.
> d:\wince420\platform\sa11x0bd\ebootne2k - 15 source files (4,400
lines)
> Master db name is: D:\WINCE420\PLATFORM\SA11X0BD\Build.dat
> BUILD: Unable to save the dependency database:
> D:\WINCE420\PLATFORM\SA11X0BD\Build.dat
> BUILD: Compiling d:\wince420\platform\sa11x0bd\ebootne2k directory
> Compiling - d:\wince420\platform\sa11x0bd\ebootne2k\arm\oemboot.c for ARM
> d:\wince420\platform\sa11x0bd\ebootne2k\arm\oemboot.c(20) : error C1083:
> Cannot open include file: 'windows.h': No such file or directory
>
> \kernel\hal\arm\fwsarm.s(21) : error A0044: can't open file: kxarm.h
> D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(68) : error A0051:
> unknown opcode: STARTUPTEXT
> D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(89) : error A0051:
> unknown opcode: LEAF_ENTRY
> D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(90) : error A0064:
> code inside data section
> D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(91) : error A0064:
> code inside data section
> D:\WINCE420\PLATFORM\SA11X0BD\kernel\hal\arm\fwsarm.s(93) : error A0064:
> code inside data section
>
>
>
> Its a nightmare, it can't seem to find any of the .h files, and there are
> code inside data section errors, my head is about to explode. Any help
> advice would be very much appreciated
>
>
> Regards
>
>
>

Tools -> Options -> Directories tab



Re: Bootloader Nightmare by Steve

Steve
Tue Feb 10 09:20:23 CST 2004

First you need to run the sysgen phase (from the IDE select Build | Generate
headers) to get all the header files.
Next the output "Access Denied" indicates that you have some intermediate
output files as read only. (Probably from erroneously including them in
version control)

The typical culprits as build.dat, build.log, build.err, build.wrn,
sources.gen
before running build -cf you might try the following:
attrib /s -r build.*
attrib /s -r sources.gen


--
Steve Maillet (eMVP)
Entelechy Consulting
smaillet_AT_EntelechyConsulting_DOT_com



Re: Bootloader Nightmare by Tweeeek

Tweeeek
Thu Feb 12 07:47:55 CST 2004

Thank you for your suggestions, I can now build and run my bootloader.
There were a few funnies, SOURCES was using $(_TGTCPUTYPE) which has now
been replaced with $(_TGTCPUFAMILY).

There was also a file util.s which was using _TGTCPU = "SA1100", replaced
with _TGTCPU = "ARMV4".

Boot.bib had nk.exe eboot.exe EBOOT s
Had to change this to nk.exe
$(_WINCEROOT)\ebootne2k.release\eboot.exe EBOOT s

That all I think

"Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> wrote in message
news:%233Gfel%237DHA.2460@TK2MSFTNGP09.phx.gbl...
> First you need to run the sysgen phase (from the IDE select Build |
Generate
> headers) to get all the header files.
> Next the output "Access Denied" indicates that you have some intermediate
> output files as read only. (Probably from erroneously including them in
> version control)
>
> The typical culprits as build.dat, build.log, build.err, build.wrn,
> sources.gen
> before running build -cf you might try the following:
> attrib /s -r build.*
> attrib /s -r sources.gen
>
>
> --
> Steve Maillet (eMVP)
> Entelechy Consulting
> smaillet_AT_EntelechyConsulting_DOT_com
>
>