Re: Can I overwrite hardware settings in OALStartup.s?
- From: "James" <James.li@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 09:17:17 -0700
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,C:\WINCE600\PLATFORM\COMMON\SRC\SOC\PXA27X_MS_V1\OAL\STARTUP\startup.s
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
the real entry point for bootloader?C:\WINCE600\PLATFORM\COMMON\SRC\SOC\PXA27X_MS_V1\XLLP\SOURCE\xlli_lowlev_ini
2. Is the init_gpio setup in
t.s?in
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
xlli_mainstone_defs.in and xlli_bulverde_defs.inc showing that GPIO0 isn
input. The led on board should be on only when GPIO0 is output and that pi
is logic 1.tried
2. I reset GPIO settings in OALStartup before "bl Init_HexLeds" and
to turn off the led, but failed.
Can anyone tell me what I did wrong?
Thanks a lot,
James
.
- Follow-Ups:
- Re: Can I overwrite hardware settings in OALStartup.s?
- From: Elias Radi
- Re: Can I overwrite hardware settings in OALStartup.s?
- References:
- Prev by Date: Re: How to save settings into HIVE
- Next by Date: USB Bluetooth dongle support
- Previous by thread: Re: Can I overwrite hardware settings in OALStartup.s?
- Next by thread: Re: Can I overwrite hardware settings in OALStartup.s?
- Index(es):
Relevant Pages
|