This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: help! redboot console


> My Redboot prints its prompt as 'bdeR>too' other than 'Redboot>' in console.
That is, the string is reversed in every 4 chars. Also, if you want to input
some commands such as 'help',  you must type 'pleh', and the output information
is abnormal too.

yeah! and for version, you will need to type srev (srev\0noi), right! ;) give it
a shot.

is your host little endian and you are cross compiling for big-endian target?
looks like you are cross compiling..

have a look at output of "your-toolchain-specific-objdump -s -j .rodata
redboot.elf", does that look normal? if you feel like, please paste only a
couple of lines of the output on the list.

All the strings are stored in .rodata section and so is other readonly data. in
case you find the output of above objdump command is resembling the way you see
things on console, this indicates that your toolchain has done byte swapping (in
a word) uniformly in .rodata section , from starting picking up collection of 4
bytes and considering them representing an integer.

in case objdump output seems normal, culprit could be your setup specific
(intelligent) program loader that might be doing this favour to you. :-)

explore, if you need to pass around some flags/options during
compiling/linking/loading to avoid what's happening currently.

HTH
sandeep



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]