public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* Broken u-boot on n900 hw (possibly CONFIG_POSITION_INDEPENDENT)
@ 2022-10-09 19:33 Pali Rohár
  2022-10-10 21:30 ` [maemo-leste] " Sicelo
  0 siblings, 1 reply; 11+ messages in thread
From: Pali Rohár @ 2022-10-09 19:33 UTC (permalink / raw)
  To: Merlijn Wajer, Ivaylo Dimitrov, Pavel Machek, maemo-leste, u-boot

Hello!

Current u-boot from master branch does not work on n900 hw. It does not
show anything on display, there just nokia logo.

In qemu it is working fine and all tests are passing. Also in qemu is
display working without any problem.

Could you help me to debug it? Maybe something is printed to serial
console? Or maybe serial console could be used for printf-debugging?

I just figured out that disabling CONFIG_POSITION_INDEPENDENT u-boot
option make it working again. But it requires to restoring older version
of lowlevel_init.S file which does not depend on POSITION_INDEPENDENT:

    git checkout 7c4ad9821758f98db127e9d6864671c906c02d3b -- board/nokia/rx51/lowlevel_init.S

And also setting CONFIG_SYS_TEXT_BASE=0x80008000 (to some value in RAM).

I'm looking at the POSITION_INDEPENDENT usage and seems that only few
boards have it enabled and even less of them are 32-bit ARM.

So it is possible that there is bug in POSITION_INDEPENDENT code? I just
do not understand how it is possible that u-boot binary is working fine
in qemu, but not on the real HW...

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-11-20 16:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-09 19:33 Broken u-boot on n900 hw (possibly CONFIG_POSITION_INDEPENDENT) Pali Rohár
2022-10-10 21:30 ` [maemo-leste] " Sicelo
2022-10-20 20:06   ` Pali Rohár
2022-10-21 19:09     ` Pali Rohár
2022-11-02  0:08       ` Pali Rohár
2022-11-09 20:33         ` Pali Rohár
2022-11-19 14:38           ` Ashish Shah
2022-11-19 18:24             ` Sicelo
2022-11-19 21:13           ` Pali Rohár
2022-11-20 15:33             ` Tom Rini
2022-11-20 16:13               ` Pali Rohár

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox