[U-Boot-Users] {Patch]: A small bug in PCI command

Vladimir Gurevich vag at paulidav.org
Wed Mar 12 04:27:41 CET 2003


Hello,

I've just noticed that "pci" command (or pci header)
fails to show the device class properly.

The problem is that the function pci_classes_str
uses an array of pointers to strings to connvert the 
class and these pointers don't get relocated after
u-boot is moved into RAM. Thus they still point
to some addresses in FLASH, which is not correct.

Is it only my problem or other people have similar
experience?

We can either do manual relocation (same way how
cmd_tbl is relocated in board_init_r()) or
replace this table with a (ugly?) switch statement.
That's the patch attached.

Thanks,
Vladimir
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cmd_pci.diff
Url: http://lists.denx.de/pipermail/u-boot/attachments/20030311/6e6dd733/attachment.txt 


More information about the U-Boot mailing list