Re: Can I overwrite hardware settings in OALStartup.s?



Thanks Elias for your reply.
But I am still confused by the calling sequence.
I think the entry point after hardware reset is
C:\WINCE600\PLATFORM\COMMON\SRC\SOC\PXA27X_MS_V1\OAL\STARTUP\startup.s
Then "bl xlli_GPIO_init" is called to initialize GPIOs.
Then "b OALStartup" is called to jump to
C:\WINCE600\PLATFORM\MyPlatform\SRC\Bootloader\startup.s and never return
back.
Inside "OALStartup " the first function called is "bl Init_HexLeds". And
comments before that function call says that the GPIOs are already
initialized.
That's why I think I can overwrite GPIO settings using my own and I can
build bootloader using "build -c" command.
If I make changes in
C:\WINCE600\PLATFORM\COMMON\SRC\SOC\PXA27X_MS_V1\OAL\STARTUP\startup.s, I
need to build the OS to make my changes inclueded in the bootloader, right?

Please clairfy and thanks again,
James



"James" <James.li@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:OKyqzINnHHA.960@xxxxxxxxxxxxxxxxxxxxxxx
Hi,

I want to build my own bootloader using PB6 for PXA255.
I created a new platform selecting BSP MainstoneIII. Then if I navigate to
c:\wince600\platform\MyPlatform\src\Bootloader using command prompt and
enter "build -c". I can see the eboot.bin and eboot.nb0 in the release
folder.
My questions are:
1. Is
C:\WINCE600\PLATFORM\COMMON\SRC\SOC\PXA27X_MS_V1\OAL\STARTUP\startup.s
the real entry point for bootloader?
2. Is the init_gpio setup in

C:\WINCE600\PLATFORM\COMMON\SRC\SOC\PXA27X_MS_V1\XLLP\SOURCE\xlli_lowlev_ini
t.s?
3. Can I overwrite hardware settings in OALStartup.s?

I found something strange for me and hope your guys can help me out.

Our hardware uses GPIO0 to control on-board led.
1. I built bootloader without any changes and downloaded eboot.nb0 to the
board. After I power on the board, the led is on even if I found settings
in
xlli_mainstone_defs.in and xlli_bulverde_defs.inc showing that GPIO0 is
input. The led on board should be on only when GPIO0 is output and that pi
n
is logic 1.
2. I reset GPIO settings in OALStartup before "bl Init_HexLeds" and
tried
to turn off the led, but failed.

Can anyone tell me what I did wrong?
Thanks a lot,
James




.



Relevant Pages

  • Re: WINCE on ARM PB926:newbie question
    ... I will go ahead with the development of the bootloader. ... should i reference the hardware peripherals ... since MainstoneII is the closest BSP available to me, ... this project is make certain that the image generated using ARM ...
    (microsoft.public.windowsce.platbuilder)
  • Re: opensuse 10.3 und partition =?ISO-8859-1?Q?gr=F6=DFer_als_?= =?ISO-8859-1?Q?2tb?
    ... hab nicht umsonst den Hardware Raid ... einstelle installiert er den Bootloader auch nicht. ... noch Aufgabe des Mainboard-BIOS mit Hilfe dieser Routinen den MBR der ...
    (de.comp.os.unix.linux.misc)
  • Re: Bootloder
    ... BSP covers all the platform dependent part of windows CE that is required to ... be adapted when willing to run WinCE on a specific hardware platforms. ... Bootloader is an OS independent code that performs minimal task to set the ... Windows Embedded Manager ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: A mathematical equation helps explain life processes on all biologicalscales
    ... idiot Androcyst. ... so you are a a many-headed serpent or monster in Greek mythology ... > that was slain by Androcles err.. ...
    (sci.physics)