[U-Boot] sf probe failed on Intel DNV-NS platform

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@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@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. 本電子郵件及其附件可能含有機密或依法受特殊管制之資訊,僅供本電子郵件之受文者使用。台端如非本電子郵件之受文者或誤收本電子郵件,請立即回覆郵件通知寄件人,並銷毀本電子郵件之所有複本及附件。任何未經授權而使用、揭露、散佈或複製本電子郵件或其附件之行為,皆嚴格禁止。

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

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@gmail.com] Sent: Wednesday, June 05, 2019 9:45 PM To: Hilbert Tu(杜睿哲_Pegatron) Cc: u-boot@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. 本電子郵件及其附件可能含有機密或依法受特殊管制之資訊,僅供本電子郵件之受文者使用。台端如非本電子郵件之受文者或誤收本電子郵件,請立即回覆郵件通知寄件人,並銷毀本電子郵件之所有複本及附件。任何未經授權而使用、揭露、散佈或複製本電子郵件或其附件之行為,皆嚴格禁止。

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

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. 本電子郵件及其附件可能含有機密或依法受特殊管制之資訊,僅供本電子郵件之受文者使用。台端如非本電子郵件之受文者或誤收本電子郵件,請立即回覆郵件通知寄件人,並銷毀本電子郵件之所有複本及附件。任何未經授權而使用、揭露、散佈或複製本電子郵件或其附件之行為,皆嚴格禁止。

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
participants (2)
-
Bin Meng
-
Hilbert Tu(杜睿哲_Pegatron)