This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: RedBoot + Configuration tool 2.11 question
- From: "G.Muruganandam" <gmuruga at gdatech dot com>
- To: Jonathan Larmour <jifl at eCosCentric dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 07 Aug 2003 16:07:04 -0700
- Subject: Re: [ECOS] RedBoot + Configuration tool 2.11 question
- References: <5.2.1.1.0.20030730112246.023ad850@192.168.200.112><5.2.1.1.0.20030730101642.023bbb58@192.168.200.112><5.2.1.1.0.20030730093911.023a2358@192.168.200.112><5.2.1.1.0.20030729150907.023957f8@192.168.200.112><5.2.1.1.0.20030729123923.023ae088@192.168.200.112><5.2.1.1.0.20030729115126.00ac1038@192.168.200.112><5.2.1.1.0.20030729115126.00ac1038@192.168.200.112><5.2.1.1.0.20030729123923.023ae088@192.168.200.112><5.2.1.1.0.20030729150907.023957f8@192.168.200.112><5.2.1.1.0.20030730093911.023a2358@192.168.200.112><5.2.1.1.0.20030730101642.023bbb58@192.168.200.112><5.2.1.1.0.20030730112246.023ad850@192.168.200.112>
Hi Jonathan,
I have tried the redboot with the tool chain the Intel has tested with.
Now I am seeing the different address for the CMD_TAB. I have pasted below the
out put of the command below.
xscale-elf-nm redboot.elf
00040870 D __RedBoot_CMD_TAB_END__
00040780 D __RedBoot_CMD_TAB__
00040964 D __RedBoot_IDLE_TAB_END__
00040960 D __RedBoot_IDLE_TAB__
00040970 D __RedBoot_INIT_TAB_END__
00040964 D __RedBoot_INIT_TAB__
It looks same as yours.
Now the redboot boots through half way and stops at a point in main.c in
/packages/redboot/version/src
for (init_entry = __RedBoot_INIT_TAB__; init_entry !=
&__RedBoot_INIT_TAB_END__; init_entry++) {
printf("Init_entry %x, %x \n",init_entry,&__RedBoot_INIT_TAB_END__ );
(*init_entry->fun)();
====================== hanging point
mon_write_char(0x34);
}
I have included a debug statements and printed the value for the table
addresses after commenting the line
(*init_entry->fun)();
Init_entry 40964, 40970
4Init_entry 40968, 40970
4Init_entry 4096c, 40970
But if the statement (*init_entry->fun)() is there then the system hangs at
the function pointer line.
Please let me know what is the function, function pointer should point to?
Could you please go through and let me know your thoughts.
regards
G.Muruganandam
At 10:23 PM 7/30/2003 +0100, Jonathan Larmour wrote:
G.Muruganandam wrote:
Hi Jonathan
I am making the build every time after deleting the build dir using the
script file below.
Please let me know if you find any thing wrong with this script file.
export TOPDIR=`pwd`
export ECOS_REPOSITORY=${TOPDIR}/packages
export VERSION=v1_24
rm -rf build
mkdir ${TOPDIR}/build
cd ${TOPDIR}/build
${TOPDIR}/ecosconfig new ixdp2400 redboot
${TOPDIR}/ecosconfig import
${ECOS_REPOSITORY}/hal/arm/ixdp2400/${VERSION}/misc/redboot_ROMRAM.ecm
${TOPDIR}/ecosconfig tree
make
Looks fine assuming they put in ecosconfig in TOPDIR which they must have
otherwise more than this would be wrong :).
I'll also try with the new tool chain as indicated in your mail and let
you know.
To test whether it would work more simply, do an arm-elf-nm of redboot.elf
or redboot.img and grep for RedBoot_CMD_TAB. There should be something like:
0000168c D __RedBoot_CMD_TAB__
0000183c D __RedBoot_CMD_TAB_END__
with different addresses.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss