Hi All,
I have tried to follow the tutorial in Windows CE.net help with the
title "How to Develop a Boot Loader", however i could not pass the
step 12, namely recompilation process. But I get several errors
related with Startup.s. No errors were given related to .c files. The
output likes following:

C:\WINCE420\PLATFORM\MK\Eboot\startup.s(21) : error A0051: unknown
opcode: WRMMU_STATE
WRMMU_STATE r0
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(23) : error A0051: unknown
opcode: WRMMU_AUX_STATE
WRMMU_AUX_STATE r0
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(29) : error A0051: unknown
opcode: WRMMU_FlushTB
WRMMU_FlushTB r0
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(30) : error A0051: unknown
opcode: WRCACHE_FlushIDC
WRCACHE_FlushIDC r0
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(37) : error A0051: unknown
opcode: CPWAIT
CPWAIT
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(54) : error A0034: undefined
symbol: EBOOT
IF EBOOT
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(84) : error A0034: undefined
symbol: EBOOT
IF EBOOT
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(14) : error A0034: undefined
symbol: SVC32Mode
mov r0, #(SVC32Mode :OR: NoINTS)
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(20) : error A0034: undefined
symbol: CP15ControlInit
ldr r0, =CP15ControlInit
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(22) : error A0034: undefined
symbol: CP15AuxControlInit
ldr r0, =CP15AuxControlInit
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(43) : error A0034: undefined
symbol: CPU_SRAM0
ldr sp, =(CPU_SRAM0 + SZ_32K - 4)
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(46) : error A0034: undefined
symbol: disableInts
bl disableInts
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(47) : error A0034: undefined
symbol: initUART
bl initUART ; Or initLEDs ? for debugging.
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(48) : error A0034: undefined
symbol: initClocks
bl initClocks
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(49) : error A0034: undefined
symbol: initStaticMem
bl initStaticMem
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(50) : error A0034: undefined
symbol: initSDRAM
bl initSDRAM
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(51) : error A0034: undefined
symbol: sizeSDRAM
bl sizeSDRAM ; SDRAM size in MB returned in
r0.
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(87) : error A0034: undefined
symbol: OEMAddressTable
adr r0, OEMAddressTable ; r0 = physical address of
OEMMemoryMap
C:\WINCE420\PLATFORM\MK\Eboot\startup.s(89) : error A0034: undefined
symbol: KernelStart
bl KernelStart
romimage boot.bib


What can be the problem? How can I remove these errors?

Any help will be appreciated.

Re: How to Develop a Boot Loader - A Compilation Problem by Sujith

Sujith
Wed Aug 25 02:38:14 CDT 2004

hi,
i have replied ur query in the Microsoft.public.windowsce.embedded
check out that..
sujith
<metin.koc@t-tronics.com.tr> wrote in message
news:1124f484.0408242316.4b423eee@posting.google.com...
> Hi All,
> I have tried to follow the tutorial in Windows CE.net help with the
> title "How to Develop a Boot Loader", however i could not pass the
> step 12, namely recompilation process. But I get several errors
> related with Startup.s. No errors were given related to .c files. The
> output likes following:
>
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(21) : error A0051: unknown
> opcode: WRMMU_STATE
> WRMMU_STATE r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(23) : error A0051: unknown
> opcode: WRMMU_AUX_STATE
> WRMMU_AUX_STATE r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(29) : error A0051: unknown
> opcode: WRMMU_FlushTB
> WRMMU_FlushTB r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(30) : error A0051: unknown
> opcode: WRCACHE_FlushIDC
> WRCACHE_FlushIDC r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(37) : error A0051: unknown
> opcode: CPWAIT
> CPWAIT
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(54) : error A0034: undefined
> symbol: EBOOT
> IF EBOOT
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(84) : error A0034: undefined
> symbol: EBOOT
> IF EBOOT
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(14) : error A0034: undefined
> symbol: SVC32Mode
> mov r0, #(SVC32Mode :OR: NoINTS)
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(20) : error A0034: undefined
> symbol: CP15ControlInit
> ldr r0, =CP15ControlInit
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(22) : error A0034: undefined
> symbol: CP15AuxControlInit
> ldr r0, =CP15AuxControlInit
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(43) : error A0034: undefined
> symbol: CPU_SRAM0
> ldr sp, =(CPU_SRAM0 + SZ_32K - 4)
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(46) : error A0034: undefined
> symbol: disableInts
> bl disableInts
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(47) : error A0034: undefined
> symbol: initUART
> bl initUART ; Or initLEDs - for debugging.
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(48) : error A0034: undefined
> symbol: initClocks
> bl initClocks
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(49) : error A0034: undefined
> symbol: initStaticMem
> bl initStaticMem
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(50) : error A0034: undefined
> symbol: initSDRAM
> bl initSDRAM
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(51) : error A0034: undefined
> symbol: sizeSDRAM
> bl sizeSDRAM ; SDRAM size in MB returned in
> r0.
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(87) : error A0034: undefined
> symbol: OEMAddressTable
> adr r0, OEMAddressTable ; r0 = physical address of
> OEMMemoryMap
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(89) : error A0034: undefined
> symbol: KernelStart
> bl KernelStart
> romimage boot.bib
>
>
> What can be the problem? How can I remove these errors?
>
> Any help will be appreciated.



Re: How to Develop a Boot Loader - A Compilation Problem by Sujith

Sujith
Wed Aug 25 03:38:18 CDT 2004

nope...
to add to that..
your code seems to be copied from an OAL... you shouldn't do that...
well, if you do be careful.. there is some common code, but still
KernelStart
will be called only on OAL, because it does the mmu initialization and all.
otherwise, implement it by yourself....
still you didn't said which CPU you use.. hope it is an ARM processor..
to put it into SVMode I think it is 0x13. also, all the error what is given
are all macros..
check out the code..
regards
Sujith
<metin.koc@t-tronics.com.tr> wrote in message
news:1124f484.0408242316.4b423eee@posting.google.com...
> Hi All,
> I have tried to follow the tutorial in Windows CE.net help with the
> title "How to Develop a Boot Loader", however i could not pass the
> step 12, namely recompilation process. But I get several errors
> related with Startup.s. No errors were given related to .c files. The
> output likes following:
>
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(21) : error A0051: unknown
> opcode: WRMMU_STATE
> WRMMU_STATE r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(23) : error A0051: unknown
> opcode: WRMMU_AUX_STATE
> WRMMU_AUX_STATE r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(29) : error A0051: unknown
> opcode: WRMMU_FlushTB
> WRMMU_FlushTB r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(30) : error A0051: unknown
> opcode: WRCACHE_FlushIDC
> WRCACHE_FlushIDC r0
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(37) : error A0051: unknown
> opcode: CPWAIT
> CPWAIT
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(54) : error A0034: undefined
> symbol: EBOOT
> IF EBOOT
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(84) : error A0034: undefined
> symbol: EBOOT
> IF EBOOT
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(14) : error A0034: undefined
> symbol: SVC32Mode
> mov r0, #(SVC32Mode :OR: NoINTS)
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(20) : error A0034: undefined
> symbol: CP15ControlInit
> ldr r0, =CP15ControlInit
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(22) : error A0034: undefined
> symbol: CP15AuxControlInit
> ldr r0, =CP15AuxControlInit
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(43) : error A0034: undefined
> symbol: CPU_SRAM0
> ldr sp, =(CPU_SRAM0 + SZ_32K - 4)
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(46) : error A0034: undefined
> symbol: disableInts
> bl disableInts
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(47) : error A0034: undefined
> symbol: initUART
> bl initUART ; Or initLEDs - for debugging.
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(48) : error A0034: undefined
> symbol: initClocks
> bl initClocks
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(49) : error A0034: undefined
> symbol: initStaticMem
> bl initStaticMem
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(50) : error A0034: undefined
> symbol: initSDRAM
> bl initSDRAM
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(51) : error A0034: undefined
> symbol: sizeSDRAM
> bl sizeSDRAM ; SDRAM size in MB returned in
> r0.
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(87) : error A0034: undefined
> symbol: OEMAddressTable
> adr r0, OEMAddressTable ; r0 = physical address of
> OEMMemoryMap
> C:\WINCE420\PLATFORM\MK\Eboot\startup.s(89) : error A0034: undefined
> symbol: KernelStart
> bl KernelStart
> romimage boot.bib
>
>
> What can be the problem? How can I remove these errors?
>
> Any help will be appreciated.



Re: How to Develop a Boot Loader - A Compilation Problem by metin

metin
Thu Aug 26 08:20:03 CDT 2004

Dear Sujith,

Thanks for your reply. As i have mentioned before, I have been
following the tutorial step by step and I thought that the sample
codes in the help file would be consistent with each other. However
Since I have searched the symbols in the _WINCEROOT directory and its
subfolders, I did not find any. That's why I could not include/import
any file.

P.S. Im using ARM processor

Thanks for interest

"Sujith" <sujithnospam@nospam.com> wrote in message news:<ecUOg6niEHA.3008@TK2MSFTNGP10.phx.gbl>...
> nope...
> to add to that..
> your code seems to be copied from an OAL... you shouldn't do that...
> well, if you do be careful.. there is some common code, but still
> KernelStart
> will be called only on OAL, because it does the mmu initialization and all.
> otherwise, implement it by yourself....
> still you didn't said which CPU you use.. hope it is an ARM processor..
> to put it into SVMode I think it is 0x13. also, all the error what is given
> are all macros..
> check out the code..
> regards
> Sujith
> <metin.koc@t-tronics.com.tr> wrote in message
> news:1124f484.0408242316.4b423eee@posting.google.com...
> > Hi All,
> > I have tried to follow the tutorial in Windows CE.net help with the
> > title "How to Develop a Boot Loader", however i could not pass the
> > step 12, namely recompilation process. But I get several errors
> > related with Startup.s. No errors were given related to .c files. The
> > output likes following:
> >
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(21) : error A0051: unknown
> > opcode: WRMMU_STATE
> > WRMMU_STATE r0
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(23) : error A0051: unknown
> > opcode: WRMMU_AUX_STATE
> > WRMMU_AUX_STATE r0
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(29) : error A0051: unknown
> > opcode: WRMMU_FlushTB
> > WRMMU_FlushTB r0
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(30) : error A0051: unknown
> > opcode: WRCACHE_FlushIDC
> > WRCACHE_FlushIDC r0
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(37) : error A0051: unknown
> > opcode: CPWAIT
> > CPWAIT
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(54) : error A0034: undefined
> > symbol: EBOOT
> > IF EBOOT
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(84) : error A0034: undefined
> > symbol: EBOOT
> > IF EBOOT
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(14) : error A0034: undefined
> > symbol: SVC32Mode
> > mov r0, #(SVC32Mode :OR: NoINTS)
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(20) : error A0034: undefined
> > symbol: CP15ControlInit
> > ldr r0, =CP15ControlInit
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(22) : error A0034: undefined
> > symbol: CP15AuxControlInit
> > ldr r0, =CP15AuxControlInit
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(43) : error A0034: undefined
> > symbol: CPU_SRAM0
> > ldr sp, =(CPU_SRAM0 + SZ_32K - 4)
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(46) : error A0034: undefined
> > symbol: disableInts
> > bl disableInts
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(47) : error A0034: undefined
> > symbol: initUART
> > bl initUART ; Or initLEDs - for debugging.
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(48) : error A0034: undefined
> > symbol: initClocks
> > bl initClocks
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(49) : error A0034: undefined
> > symbol: initStaticMem
> > bl initStaticMem
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(50) : error A0034: undefined
> > symbol: initSDRAM
> > bl initSDRAM
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(51) : error A0034: undefined
> > symbol: sizeSDRAM
> > bl sizeSDRAM ; SDRAM size in MB returned in
> > r0.
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(87) : error A0034: undefined
> > symbol: OEMAddressTable
> > adr r0, OEMAddressTable ; r0 = physical address of
> > OEMMemoryMap
> > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(89) : error A0034: undefined
> > symbol: KernelStart
> > bl KernelStart
> > romimage boot.bib
> >
> >
> > What can be the problem? How can I remove these errors?
> >
> > Any help will be appreciated.

Re: How to Develop a Boot Loader - A Compilation Problem by Sujith

Sujith
Mon Aug 30 04:57:07 CDT 2004

hi,
first, open a cmd prompt.
go to the driverletter where wince is installed.
type the following...
set _WINCEROOT=E:\WINCE420
cd %_WINCEROOT%\PUBLIC\COMMON\OAK\MISC
wince ARMV4I HLBASE DM320
after these steps, you will reach to e:\wince420
give sysgen.
after that give cd platform\<name>\eboot
build -c
then try the tings which i already gave you.....
regards
Sujith
<metin.koc@t-tronics.com.tr> wrote in message
news:1124f484.0408260520.26e8a083@posting.google.com...
> Dear Sujith,
>
> Thanks for your reply. As i have mentioned before, I have been
> following the tutorial step by step and I thought that the sample
> codes in the help file would be consistent with each other. However
> Since I have searched the symbols in the _WINCEROOT directory and its
> subfolders, I did not find any. That's why I could not include/import
> any file.
>
> P.S. Im using ARM processor
>
> Thanks for interest
>
> "Sujith" <sujithnospam@nospam.com> wrote in message
news:<ecUOg6niEHA.3008@TK2MSFTNGP10.phx.gbl>...
> > nope...
> > to add to that..
> > your code seems to be copied from an OAL... you shouldn't do that...
> > well, if you do be careful.. there is some common code, but still
> > KernelStart
> > will be called only on OAL, because it does the mmu initialization and
all.
> > otherwise, implement it by yourself....
> > still you didn't said which CPU you use.. hope it is an ARM processor..
> > to put it into SVMode I think it is 0x13. also, all the error what is
given
> > are all macros..
> > check out the code..
> > regards
> > Sujith
> > <metin.koc@t-tronics.com.tr> wrote in message
> > news:1124f484.0408242316.4b423eee@posting.google.com...
> > > Hi All,
> > > I have tried to follow the tutorial in Windows CE.net help with the
> > > title "How to Develop a Boot Loader", however i could not pass the
> > > step 12, namely recompilation process. But I get several errors
> > > related with Startup.s. No errors were given related to .c files. The
> > > output likes following:
> > >
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(21) : error A0051: unknown
> > > opcode: WRMMU_STATE
> > > WRMMU_STATE r0
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(23) : error A0051: unknown
> > > opcode: WRMMU_AUX_STATE
> > > WRMMU_AUX_STATE r0
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(29) : error A0051: unknown
> > > opcode: WRMMU_FlushTB
> > > WRMMU_FlushTB r0
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(30) : error A0051: unknown
> > > opcode: WRCACHE_FlushIDC
> > > WRCACHE_FlushIDC r0
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(37) : error A0051: unknown
> > > opcode: CPWAIT
> > > CPWAIT
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(54) : error A0034: undefined
> > > symbol: EBOOT
> > > IF EBOOT
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(84) : error A0034: undefined
> > > symbol: EBOOT
> > > IF EBOOT
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(14) : error A0034: undefined
> > > symbol: SVC32Mode
> > > mov r0, #(SVC32Mode :OR: NoINTS)
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(20) : error A0034: undefined
> > > symbol: CP15ControlInit
> > > ldr r0, =CP15ControlInit
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(22) : error A0034: undefined
> > > symbol: CP15AuxControlInit
> > > ldr r0, =CP15AuxControlInit
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(43) : error A0034: undefined
> > > symbol: CPU_SRAM0
> > > ldr sp, =(CPU_SRAM0 + SZ_32K - 4)
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(46) : error A0034: undefined
> > > symbol: disableInts
> > > bl disableInts
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(47) : error A0034: undefined
> > > symbol: initUART
> > > bl initUART ; Or initLEDs - for debugging.
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(48) : error A0034: undefined
> > > symbol: initClocks
> > > bl initClocks
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(49) : error A0034: undefined
> > > symbol: initStaticMem
> > > bl initStaticMem
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(50) : error A0034: undefined
> > > symbol: initSDRAM
> > > bl initSDRAM
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(51) : error A0034: undefined
> > > symbol: sizeSDRAM
> > > bl sizeSDRAM ; SDRAM size in MB returned in
> > > r0.
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(87) : error A0034: undefined
> > > symbol: OEMAddressTable
> > > adr r0, OEMAddressTable ; r0 = physical address of
> > > OEMMemoryMap
> > > C:\WINCE420\PLATFORM\MK\Eboot\startup.s(89) : error A0034: undefined
> > > symbol: KernelStart
> > > bl KernelStart
> > > romimage boot.bib
> > >
> > >
> > > What can be the problem? How can I remove these errors?
> > >
> > > Any help will be appreciated.