[U-Boot] gcc 4.3.5 and uboot 1.1.4.54 not working, uboot crashed

George Wang georgewhr at gmail.com
Tue May 13 18:18:40 CEST 2014


Hello.

I just compiled uboot from gcc 4.3.5. When the uboot is running, it crashed
at ath_reg_wr_nf(), which is the SPI register write function. If I comment
it out, the uboot will keep going until it crashed again at
ath_pci_write_config(), which is PCI register write. Both of two call
#define ath_reg_wr(_phys, _val) do {    \
        ath_reg_wr_nf(_phys, _val);     \
        ath_reg_rd(_phys);              \


 #define ath_reg_wr_nf(_phys, _val) \
    ((*(volatile ath_reg_t *)KSEG1ADDR(_phys)) = (_val))


However When I use gcc 4.2.4 to compile the same uboot code, it works fun.
Any idea about what's going on here? I assume it must be related to BUS
configuration issue...

Thanks,

-George


More information about the U-Boot mailing list