All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] sf probe failed on Intel DNV-NS platform
@ 2019-06-04 10:35 Hilbert Tu(杜睿哲_Pegatron)
  2019-06-05 13:45 ` Bin Meng
  0 siblings, 1 reply; 6+ messages in thread
From: Hilbert Tu(杜睿哲_Pegatron) @ 2019-06-04 10:35 UTC (permalink / raw)
  To: u-boot

Hi,

I got following error message when using U-Boot as payload of Coreboot on Intel DNV-NS platform. I am checking if my dts file was incorrect configured for SPI flash device. Can anyone help? Thanks.
Errors:
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
====================================
My dts dump:
    aliases {
        serial0 = &serial;
        spi0 = &spi0;
    };
    config {
        silent_console = <0>;
    };
    chosen {
        stdout-path = "/serial";
    };
    tsc-timer {
        clock-frequency = <1000000000>;
    };
    pci {
        compatible = "pci-x86";
        u-boot,dm-pre-reloc;
        pch at 1f,0 {
             reg = <0x0000f800 0 0 0 0>;
             compatible = "intel,pch9";
             u-boot,dm-pre-reloc;
             #address-cells = <1>;
             #size-cells = <1>;
             spi0: spi {
                 #address-cells = <1>;
                 #size-cells = <0>;
                 compatible = "intel,ich9-spi";
                 intel,spi-lock-down;

                 spi-flash at 0 {
                     reg = <0>;
                     compatible = "winbond,w25q128bv", "spi-flash";
                     memory-map = <0xff800000 0x00800000>;
                 };
             };
        };
    };
    coreboot-fb {
        compatible = "coreboot-fb";
    };

Following is the dump of command “dm tree”
=> dm tree
Class      Probed  Driver      Name
----------------------------------------
root       [ + ]   root_drive  root_driver
rsa_mod_ex [   ]   mod_exp_sw  |-- mod_exp_sw
serial     [ + ]   ns16550_se  |-- serial
keyboard   [ + ]   i8042_kbd   |-- keyboard
sysreset   [   ]   x86-sysres  |-- reset
rtc        [   ]   rtc_mc1468  |-- rtc
timer      [ + ]   tsc_timer   |-- tsc-timer
pci        [ + ]   pci_x86     |-- pci
pci_generi [   ]   pci_generi  |   |-- pci_0:0.0
pci_generi [   ]   pci_generi  |   |-- pci_0:4.0
pci_generi [   ]   pci_generi  |   |-- pci_0:5.0
pci        [ + ]   pci_bridge  |   |-- pci_0:9.0
pci        [ + ]   pci_bridge  |   |-- pci_0:e.0
pci_generi [   ]   pci_generi  |   |   `-- pci_2:0.0
pci        [ + ]   pci_bridge  |   |-- pci_0:10.0
pci_generi [   ]   pci_generi  |   |-- pci_0:12.0
ahci       [   ]   ahci_pci    |   |-- ahci_pci
scsi       [   ]   ahci_scsi   |   |   `-- ahci_scsi
usb        [ + ]   xhci_pci    |   |-- xhci_pci
usb_hub    [ + ]   usb_hub     |   |   `-- usb_hub
pci        [ + ]   pci_bridge  |   |-- pci_0:16.0
pci_generi [   ]   pci_generi  |   |   |-- pci_4:0.0
pci_generi [   ]   pci_generi  |   |   `-- pci_4:0.1
pci        [ + ]   pci_bridge  |   |-- pci_0:17.0
pci_generi [   ]   pci_generi  |   |   |-- pci_5:0.0
pci_generi [   ]   pci_generi  |   |   `-- pci_5:0.1
pci_generi [   ]   pci_generi  |   |-- pci_0:18.0
pci_generi [   ]   pci_generi  |   |-- pci_0:1a.0
pci_generi [   ]   pci_generi  |   |-- pci_0:1a.1
pci_generi [   ]   pci_generi  |   |-- pci_0:1a.2
mmc        [ + ]   pci_mmc     |   |-- pci_mmc
blk        [   ]   mmc_blk     |   |   `-- pci_mmc.blk
pci_generi [   ]   pci_generi  |   |-- pci_0:1f.0
pci_generi [   ]   pci_generi  |   |-- pci_0:1f.2
pci_generi [   ]   pci_generi  |   |-- pci_0:1f.4
pci_generi [   ]   pci_generi  |   `-- pci_0:1f.5
video      [   ]   coreboot_v  `-- coreboot-fb

-Hilbert
This e-mail and its attachment may contain information that is confidential or privileged, and are solely for the use of the individual to whom this e-mail is addressed. If you are not the intended recipient or have received it accidentally, please immediately notify the sender by reply e-mail and destroy all copies of this email and its attachment. Please be advised that any unauthorized use, disclosure, distribution or copying of this email or its attachment is strictly prohibited.
本電子郵件及其附件可能含有機密或依法受特殊管制之資訊,僅供本電子郵件之受文者使用。台端如非本電子郵件之受文者或誤收本電子郵件,請立即回覆郵件通知寄件人,並銷毀本電子郵件之所有複本及附件。任何未經授權而使用、揭露、散佈或複製本電子郵件或其附件之行為,皆嚴格禁止。

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

* [U-Boot] sf probe failed on Intel DNV-NS platform
  2019-06-04 10:35 [U-Boot] sf probe failed on Intel DNV-NS platform Hilbert Tu(杜睿哲_Pegatron)
@ 2019-06-05 13:45 ` Bin Meng
  2019-06-11  6:40   ` Hilbert Tu(杜睿哲_Pegatron)
  0 siblings, 1 reply; 6+ messages in thread
From: Bin Meng @ 2019-06-05 13:45 UTC (permalink / raw)
  To: u-boot

Hi Hilbert,

On Tue, Jun 4, 2019 at 7:18 PM Hilbert Tu(杜睿哲_Pegatron)
<Hilbert_Tu@pegatroncorp.com> wrote:
>
> Hi,
>
> I got following error message when using U-Boot as payload of Coreboot on Intel DNV-NS platform. I am checking if my dts file was incorrect configured for SPI flash device. Can anyone help? Thanks.
> Errors:
> Invalid bus 0 (err=-19)
> Failed to initialize SPI flash at 0:0 (error -19)

Which U-Boot version is this? Could you retest with latest u-boot/master?

Regards,
Bin

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

* [U-Boot] sf probe failed on Intel DNV-NS platform
  2019-06-05 13:45 ` Bin Meng
@ 2019-06-11  6:40   ` Hilbert Tu(杜睿哲_Pegatron)
  2019-06-11  6:47     ` Bin Meng
  0 siblings, 1 reply; 6+ messages in thread
From: Hilbert Tu(杜睿哲_Pegatron) @ 2019-06-11  6:40 UTC (permalink / raw)
  To: u-boot

Hi Bin

I got following errors when using latest U-Boot version. I am not sure if I have made wrong configuration as attached file. Do you have any idea?
======================================================
arch/x86/cpu/built-in.o: In function `cpu_init_r':
/home/hilbert/poky-sumo-19.0.1/SDK/u-boot/arch/x86/cpu/cpu.c:253: undefined reference to `syscon_get_by_driver_data'
Makefile:1566: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
======================================================

Thanks.
-Hilbert

-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Wednesday, June 05, 2019 9:45 PM
To: Hilbert Tu(杜睿哲_Pegatron)
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] sf probe failed on Intel DNV-NS platform

Hi Hilbert,

On Tue, Jun 4, 2019 at 7:18 PM Hilbert Tu(杜睿哲_Pegatron)
<Hilbert_Tu@pegatroncorp.com> wrote:
>
> Hi,
>
> I got following error message when using U-Boot as payload of Coreboot on Intel DNV-NS platform. I am checking if my dts file was incorrect configured for SPI flash device. Can anyone help? Thanks.
> Errors:
> Invalid bus 0 (err=-19)
> Failed to initialize SPI flash at 0:0 (error -19)

Which U-Boot version is this? Could you retest with latest u-boot/master?

Regards,
Bin
This e-mail and its attachment may contain information that is confidential or privileged, and are solely for the use of the individual to whom this e-mail is addressed. If you are not the intended recipient or have received it accidentally, please immediately notify the sender by reply e-mail and destroy all copies of this email and its attachment. Please be advised that any unauthorized use, disclosure, distribution or copying of this email or its attachment is strictly prohibited.
本電子郵件及其附件可能含有機密或依法受特殊管制之資訊,僅供本電子郵件之受文者使用。台端如非本電子郵件之受文者或誤收本電子郵件,請立即回覆郵件通知寄件人,並銷毀本電子郵件之所有複本及附件。任何未經授權而使用、揭露、散佈或複製本電子郵件或其附件之行為,皆嚴格禁止。
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ATT54772.config
Type: application/octet-stream
Size: 23556 bytes
Desc: ATT54772.config
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190611/e2051776/attachment-0001.obj>

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

* [U-Boot] sf probe failed on Intel DNV-NS platform
  2019-06-11  6:40   ` Hilbert Tu(杜睿哲_Pegatron)
@ 2019-06-11  6:47     ` Bin Meng
  2019-06-13  1:59       ` Hilbert Tu(杜睿哲_Pegatron)
  0 siblings, 1 reply; 6+ messages in thread
From: Bin Meng @ 2019-06-11  6:47 UTC (permalink / raw)
  To: u-boot

Hi Hilbert,

On Tue, Jun 11, 2019 at 2:40 PM Hilbert Tu(杜睿哲_Pegatron)
<Hilbert_Tu@pegatroncorp.com> wrote:
>
> Hi Bin
>
> I got following errors when using latest U-Boot version. I am not sure if I have made wrong configuration as attached file. Do you have any idea?
> ======================================================
> arch/x86/cpu/built-in.o: In function `cpu_init_r':
> /home/hilbert/poky-sumo-19.0.1/SDK/u-boot/arch/x86/cpu/cpu.c:253: undefined reference to `syscon_get_by_driver_data'
> Makefile:1566: recipe for target 'u-boot' failed
> make: *** [u-boot] Error 1
> ======================================================
>

Did you redo the configure process via 'make oldconfig', or simply
'make coreboot_defconfig'?

Please check whether you included CONFIG_SYSCON.

Regards,
Bin

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

* [U-Boot] sf probe failed on Intel DNV-NS platform
  2019-06-11  6:47     ` Bin Meng
@ 2019-06-13  1:59       ` Hilbert Tu(杜睿哲_Pegatron)
  2019-06-13  2:11         ` Bin Meng
  0 siblings, 1 reply; 6+ messages in thread
From: Hilbert Tu(杜睿哲_Pegatron) @ 2019-06-13  1:59 UTC (permalink / raw)
  To: u-boot

Hi Bin,

I have just tried 'make coreboot_defconfig' and I can boot into U-Boot from Coreboot now. But "sf probe" still failed with same error:
----------------------------------------------------------
=> sf probe
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
----------------------------------------------------------
I saw there was uclass 72,73,74 for spi by "dm uclass" command but I cannot see any spi information from "dm tree". Do you have any idea about this?

Thanks.
-Hilbert
This e-mail and its attachment may contain information that is confidential or privileged, and are solely for the use of the individual to whom this e-mail is addressed. If you are not the intended recipient or have received it accidentally, please immediately notify the sender by reply e-mail and destroy all copies of this email and its attachment. Please be advised that any unauthorized use, disclosure, distribution or copying of this email or its attachment is strictly prohibited.
本電子郵件及其附件可能含有機密或依法受特殊管制之資訊,僅供本電子郵件之受文者使用。台端如非本電子郵件之受文者或誤收本電子郵件,請立即回覆郵件通知寄件人,並銷毀本電子郵件之所有複本及附件。任何未經授權而使用、揭露、散佈或複製本電子郵件或其附件之行為,皆嚴格禁止。

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

* [U-Boot] sf probe failed on Intel DNV-NS platform
  2019-06-13  1:59       ` Hilbert Tu(杜睿哲_Pegatron)
@ 2019-06-13  2:11         ` Bin Meng
  0 siblings, 0 replies; 6+ messages in thread
From: Bin Meng @ 2019-06-13  2:11 UTC (permalink / raw)
  To: u-boot

Hi Hilbert,

On Thu, Jun 13, 2019 at 10:00 AM Hilbert Tu(杜睿哲_Pegatron)
<Hilbert_Tu@pegatroncorp.com> wrote:
>
> Hi Bin,
>
> I have just tried 'make coreboot_defconfig' and I can boot into U-Boot from Coreboot now. But "sf probe" still failed with same error:
> ----------------------------------------------------------
> => sf probe
> Invalid bus 0 (err=-19)
> Failed to initialize SPI flash at 0:0 (error -19)
> ----------------------------------------------------------
> I saw there was uclass 72,73,74 for spi by "dm uclass" command but I cannot see any spi information from "dm tree". Do you have any idea about this?

Is this DNV SPI controller supported in ich-spi driver? If not, you
may see such issue. Can you debug a little bit?

Regards,
Bin

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

end of thread, other threads:[~2019-06-13  2:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-04 10:35 [U-Boot] sf probe failed on Intel DNV-NS platform Hilbert Tu(杜睿哲_Pegatron)
2019-06-05 13:45 ` Bin Meng
2019-06-11  6:40   ` Hilbert Tu(杜睿哲_Pegatron)
2019-06-11  6:47     ` Bin Meng
2019-06-13  1:59       ` Hilbert Tu(杜睿哲_Pegatron)
2019-06-13  2:11         ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.