Aw: crash with CONFIG_OF_LIVE
Frank Wunderlich
frank-w at public-files.de
Wed Aug 5 19:42:18 CEST 2020
Hi
i traced it as far as i can
crash happens in
drivers/net/mtk_eth.c in function mtk_gmac_write (priv->gmac_base = 0xffff)
but root cause is iobase in probe
static int mtk_eth_probe(struct udevice *dev)
{
struct eth_pdata *pdata = dev_get_platdata(dev);
struct mtk_eth_priv *priv = dev_get_priv(dev);
ulong iobase = pdata->iobase; //<<<<<<<<<<<<< 0xffffffff
printf("DEBUG: %s:%d iobase: 0x%0x gmac_base: 0x%0x\n",__FUNCTION__,__LINE__,(u32)iobase, GMAC_BASE);
this crash also happens in 64bit-mode (mt7622_rfb_defconfig + CONFIG_OF_LIVE)
any idea why iobase is wrong here?
regards Frank
> Gesendet: Dienstag, 04. August 2020 um 16:58 Uhr
> Von: "Frank Wunderlich" <frank-w at public-files.de>
> An: "U-Boot-Denx" <u-boot at lists.denx.de>
> Betreff: crash with CONFIG_OF_LIVE
>
> Hi,
>
> i need of_find_property function so i added CONFIG_OF_LIVE.
>
> with this my uboot crash on bpi-r64 (own 32bit-config) before calling anything in my driver (is an ahci-driver which is triggered by "scsi scan"). so only the inclusion of CONFIG_OF_LIVE. do i miss anything or have anyone else this issue?
>
> Just for reference my current tree
> https://github.com/frank-w/u-boot/commits/2020-07-bpi-r64-pciev2
>
> regards Frank
>
>
More information about the U-Boot
mailing list