u-boot (sc520_cdp) compile problem!
I want to port U-boot to my custom Pentium 2 board, so I do a test compile of sc520_cdp config first, but can not pass when linking.
OS: Redhat 7.3 on X86 gcc: 2.96-110 binutils: 2.11.93
step:
make distclean
make sc520_cdp_config
make
ERROR:
ld: section .data [387f6e00 -> 387f7fa3] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d]
ld: section .realmode [387f7fa4 -> 387f8109] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d]
ld: section .bios [387f810a -> 387f831b] overlaps section .rodata.str1.1 [387f6e00 -> 387f868d]
make: *** [u-boot] Error 1
why? how to correct this problem?? thanks a lot!!!!
_________________________________________________________
Do You Yahoo!?
?????KTV, ????????OK~~
http://rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com//chat/index.html
Quoted 3 lines · On 2003.04.10 03:30 ?? ? wrote:
I want to port U-boot to my custom Pentium 2 board, so I do a test compile of
sc520_cdpconfig first, but can not pass when linking.
Wellcome, ?? ?, you are the first user of the i386 port, besides myself, that I have
heard of.
Quoted 3 lines
OS: Redhat 7.3 on X86 gcc: 2.96-110 binutils: 2.11.93
I use the following (which is close to what you're using, but you could try to ditch the RH gcc 2.96 compiler I think it is known to be no good.)
gcc version 2.95.4 20011002 (Debian prerelease) GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
Quoted 13 lines
step:
make distclean
makesc520_cdp_config
make
ERROR:
ld: section .data [387f6e00->387f7fa3] overlaps section .rodata.str1.1 [387f6e00->387f868d]
ld: section .realmode [387f7fa4->387f8109] overlaps section .rodata.str1.1 [387f6e00->387f868d]
ld: section .bios [387f810a->387f831b] overlaps section .rodata.str1.1 [387f6e00->387f868d]
make: *** [u-boot] Error 1
Quoted 1 line
why? how to correct this problem?? thanks a lot!!!!
What is the .rodata.str1.1 section for?
I think you'll need to modify board/sc520_cdp/u-boot.lds to take this section in account.
If you're serius about using the i386 port you'll want to get another patch from me which
fixes a few problem I have found. Un-fortunatly we have a deadline before Easter so
I dont think that I'll be able to provide this patch before we have deliverted.
Drop me an email after the Easter holidays and I'll try to produce the patch for you.
/Daniel
Quoted 4 lines · In message <[email protected]> you wrote:
Drop me an email after the Easter holidays and I'll try to produce the=20 patch for you.
Please include me and/or the mailing list in the Cc:
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de No man knows what true happiness is until he gets married. By then, of course, its too late.
[U-Boot-Users] Re: U-boot i386 port
In reply to a message not in the archiveOn 2003.04.29 16:12 Tony Chu wrote:
Tony,
(I am re-adding the U-boot list beacuse this might interest other people trying to use the i386 port of U-boot).
Quoted 1 line
I found the reason why my board halt when boot linux:
Good.
Quoted 6 lines
our custom Pentium 2 board is based on IBM PC arch. so. the address A0000-FFFFF is readonly.
but u-boot install the realmode interrupt handler at F0000. so... actually. the handler can not be copy to there. so when excute int xx
insetup.S, my board halt.
This is really a small BIOS emulator, it lives in shadow RAM at 0xf0000 because it is the space where the BIOS would have been if we had one.
Quoted 2 lines
I am now wonder this feature(A0000-FFFFF readonly) is a problem to boot linux kernel or not???
You should be able to use 0xf0000-0xfffff with any modern chipset, you only have to use the BIOS shadow feature in the chip-set to map ram into that region, before you use it. The ability to enable shadow ram is required in the PCI spec.
Quoted 3 lines
and now, I plan to move the realmod interrupt handler to address: 98000(at 90000 +
MAX_SETUP_SIZE. any problem???
This area is used by the BIOS for the extended BIOS data area on a standard PC, the only use that I think linux make of the space is to read the PS/2 equipment word or something like this. Using this space for the BIOS emulation code should work unless you want to implement full BIOS compatability (to boot Windows for example).
/Daniel