LS1043ARDB SPI FLASH booting problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1043ARDB SPI FLASH booting problem

2,923 Views
刘刘波
Contributor I

Hello,everyone

         I have a problem about SPI flash. The normal booting information is as below:

 [ 0.268549] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
[ 0.274898] nand: Micron MT29F4G08ABBDAH4
[ 0.278897] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.286727] Bad block table found at page 262080, version 0x01
[ 0.293026] Bad block table found at page 262016, version 0x01
[ 0.299523] fsl,ifc-nand 7e800000.nand: IFC NAND device at 0x7e800000, bank 1
[ 0.307200] m25p80 spi0.0: n25q128a13 (16384 Kbytes)

But my uImage for booting the board is blocking as below:

0.471655] number of CFI chips: 1
[ 0.477025] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
[ 0.483373] nand: Micron MT29F4G08ABBDAH4
[ 0.487377] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.495204] Bad block table found at page 262080, version 0x01
[ 0.501503] Bad block table found at page 262016, version 0x01
[ 0.508480] fsl,ifc-nand 7e800000.nand: IFC NAND device at 0x7e800000, bank 1

What the config for the SPI flash I chose was that:

 <*>   SPI-NOR device support  --->  

<*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...)   

<*> NOR flash on Intel Vermilion Range Expansion Bus CS0

Besides, I choose sw3[8] 1.

SW3[8] SDHC_SPICS SDHC_DAT[4:7] or SPI_CS select
• 0: SDHC
• 1: SPI_CS (default value)

0 Kudos
Reply
4 Replies

2,485 Views
Pavel
NXP Employee
NXP Employee

Send information about your BSP. Is it NXP BSP for the LS1043 board?

Do you see the LS1043 hanging?

What do you see if the "SPI-NOR device support" is not set?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,485 Views
刘刘波
Contributor I

Through see the kernel of your SDK, I find the answer, the patch is:

/drivers/spi/spi-fsl-dspi.c

static const struct regmap_config dspi_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
.max_register = 0x88,
++ #ifdef CONFIG_CPU_BIG_ENDIAN
++ .val_format_endian = REGMAP_ENDIAN_LITTLE,
++ #endi  

0 Kudos
Reply

2,485 Views
Pavel
NXP Employee
NXP Employee

Your message dump does not show information about SPI problem.

What happens if SPI is used?

 

The SDK 2.0 from NXP for the LS1043ARDB board does not have similar setting in kernel menu:

<*> SPI-NOR device support --->

<*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...)

<*> NOR flash on Intel Vermilion Range Expansion Bus CS0

 

Do you use SDK 2.0 on your board?


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,485 Views
刘刘波
Contributor I

I had chose the below choice, I am not use the SDK2.0, but there have no

difference to achieve the goal.

<*> SPI-NOR device support --->

<*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...)

<*> NOR flash on Intel Vermilion Range Expansion Bus CS0

Using little-endian tool chain of kernel print information:

Starting kernel ...

console enabled

console enabled

bootconsole disabled

bootconsole disabled

21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 18,

base_baud = 25000000) is a 16550A

21d0500.serial: ttyS2 at MMIO 0x21d0500 (irq = 19,

base_baud = 25000000) is a 16550A

21d0600.serial: ttyS3 at MMIO 0x21d0600 (irq = 19,

base_baud = 25000000) is a 16550A

Unable to detect cache hierarchy from DT for CPU 0

brd: module loaded

loop: module loaded

ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6

Gbps 0x1 impl platform mode

ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only

pmp fbs pio slum part ccc sds apst

scsi host0: ahci-qoriq

ata1: SATA max UDMA/133 mmio

port 0x100 irq 30

of-flash 60000000.nor: do_map_probe() failed for type

cfi_probe

of-flash 60000000.nor: do_map_probe() failed

nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac

nand: Micron MT29F4G08ABBDAH4

nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048,

OOB size: 64

Bad block table found at page 262080, version 0x01

Bad block table found at page 262016, version 0x01

fsl,ifc-nand 7e800000.nand: IFC NAND device at 0x7e800000,

bank 1

m25p80 spi0.0: n25q128a13 (16384 Kbytes)

libphy: Fixed MDIO Bus: probed

tun: Universal TUN/TAP device driver, 1.6

tun: (C) 1999-2004 Max Krasnyansky <[email protected]>

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

libphy: Freescale XGMAC MDIO Bus: probed

Freescale FM module, FMD API version 21.1.0

Freescale FM Ports module

fsl_mac: fsl_mac: FSL FMan MAC API based driver

fsl_mac 1ae0000.ethernet: FMan MEMAC

fsl_mac 1ae0000.ethernet: FMan MAC address:

00:04:9f:04:4e:6b

fsl_mac 1ae2000.ethernet: FMan MEMAC

fsl_mac 1ae2000.ethernet: FMan MAC address:

00:04:9f:04:4e:6c

fsl_mac 1ae4000.ethernet: FMan MEMAC

fsl_mac 1ae4000.ethernet: FMan MAC address:

00:04:9f:04:4e:6d

fsl_mac 1ae6000.ethernet: FMan MEMAC

fsl_mac 1ae6000.ethernet: FMan MAC address:

00:04:9f:04:4e:6e

fsl_mac 1ae8000.ethernet: FMan MEMAC

fsl_mac 1ae8000.ethernet: FMan MAC address:

00:04:9f:04:4e:6f

fsl_mac 1aea000.ethernet: FMan MEMAC

fsl_mac 1aea000.ethernet: FMan MAC address:

00:04:9f:04:4e:70

fsl_mac 1af0000.ethernet: FMan MEMAC

fsl_mac 1af0000.ethernet: FMan MAC address:

00:04:9f:04:4e:71

fsl_dpa: FSL DPAA Ethernet driver

fsl_dpa: fsl_dpa: Probed interface eth0

fsl_dpa: fsl_dpa: Probed interface eth1

fsl_dpa: fsl_dpa: Probed interface eth2

fsl_dpa: fsl_dpa: Probed interface eth3

fsl_dpa: fsl_dpa: Probed interface eth4

fsl_dpa: fsl_dpa: Probed interface eth5

fsl_dpa: fsl_dpa: Probed interface eth6

fsl_advanced: FSL DPAA Advanced drivers:

ata1: SATA link down (SStatus 0 SControl 300)

fsl_proxy: FSL DPAA Proxy initialization driver

fsl_dpa_shared: FSL DPAA Shared Ethernet driver

fsl_dpa_macless: FSL DPAA MACless Ethernet driver

fsl_oh: FSL FMan Offline Parsing port driver

e1000: Intel(R) PRO/1000 Network Driver - version

7.3.21-k8-NAPI

e1000: Copyright (c) 1999-2006 Intel Corporation.

e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k

e1000e: Copyright(c) 1999 - 2015 Intel Corporation.

sky2: driver version 1.30

VFIO - User Level meta-driver version: 0.3

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

ehci-pci: EHCI PCI platform driver

ehci-platform: EHCI generic platform driver

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

ohci-pci: OHCI PCI platform driver

ohci-platform: OHCI generic platform driver

xhci-hcd xhci-hcd.0.auto: xHCI Host Controller

xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned

bus number 1

xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version

0x100 quirks 0x00010010

xhci-hcd xhci-hcd.0.auto: irq 27, io mem 0x02f00000

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

xhci-hcd xhci-hcd.0.auto: xHCI Host Controller

xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned

bus number 2

usb usb2: We don't know the algorithms for LPM for this

host, disabling LPM.

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 1 port detected

xhci-hcd xhci-hcd.1.auto: xHCI Host Controller

xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned

bus number 3

xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f66d hci version

0x100 quirks 0x00010010

xhci-hcd xhci-hcd.1.auto: irq 28, io mem 0x03000000

hub 3-0:1.0: USB hub found

hub 3-0:1.0: 1 port detected

xhci-hcd xhci-hcd.1.auto: xHCI Host Controller

xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned

bus number 4

usb usb4: We don't know the algorithms for LPM for this

host, disabling LPM.

hub 4-0:1.0: USB hub found

hub 4-0:1.0: 1 port detected

xhci-hcd xhci-hcd.2.auto: xHCI Host Controller

xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned

bus number 5

xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f66d hci version

0x100 quirks 0x00010010

xhci-hcd xhci-hcd.2.auto: irq 29, io mem 0x03100000

hub 5-0:1.0: USB hub found

hub 5-0:1.0: 1 port detected

xhci-hcd xhci-hcd.2.auto: xHCI Host Controller

xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned

bus number 6

usb usb6: We don't know the algorithms for LPM for this

host, disabling LPM.

hub 6-0:1.0: USB hub found

hub 6-0:1.0: 1 port detected

usbcore: registered new interface driver usb-storage

mousedev: PS/2 mouse device common for all mice

i2c /dev entries driver

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

sdhci-esdhc 1560000.esdhc: No vmmc regulator found

sdhci-esdhc 1560000.esdhc: No vqmmc regulator found

mmc0: SDHCI controller on 1560000.esdhc

using ADMA 64-bit

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

Freescale USDPAA process driver

fsl-usdpaa: no region found

Freescale USDPAA process IRQ driver

Initializing XFRM netlink socket

NET: Registered protocol family 10

sit: IPv6 over IPv4 tunneling driver

NET: Registered protocol family 17

NET: Registered protocol family 15

8021q: 802.1Q VLAN Support v1.8

9pnet: Installing 9P2000 support

Key type dns_resolver registered

registered taskstats version 1

fsl_generic: FSL DPAA Generic Ethernet driver

hctosys: unable to open rtc device (rtc0)

Freeing unused kernel memory: 5740K (ffff800000c11000 -

ffff8000011ac000)

Freeing alternatives memory: 80K (ffff8000011ac000 -

ffff8000011c0000)

usb usb5-port1: over-current condition

usb usb6-port1: over-current condition

Processing /etc/profile... Done

Using big-endian tool chain of kernel print information:

Starting kernel ...

console enabled

console enabled

bootconsole disabled

bootconsole disabled

21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 18,

base_baud = 25000000) is a 16550A

21d0500.serial: ttyS2 at MMIO 0x21d0500 (irq = 19,

base_baud = 25000000) is a 16550A

21d0600.serial: ttyS3 at MMIO 0x21d0600 (irq = 19,

base_baud = 25000000) is a 16550A

Unable to detect cache hierarchy from DT for CPU 0

brd: module loaded

loop: module loaded

ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6

Gbps 0x1 impl platform mode

ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only

pmp fbs pio slum part ccc sds apst

scsi host0: ahci-qoriq

ata1: SATA max UDMA/133 mmio

port 0x100 irq 30

60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank.

Manufacturer ID 0x000089 Chip ID 0x00227e

Amd/Fujitsu Extended Query Table at 0x0040

Amd/Fujitsu Extended Query version 1.3.

number of CFI chips: 1

nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac

nand: Micron MT29F4G08ABBDAH4

nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048,

OOB size: 64

Bad block table found at page 262080, version 0x01

Bad block table found at page 262016, version 0x01

fsl,ifc-nand 7e800000.nand: IFC NAND device at 0x7e800000,

bank 1

ata1: SATA link down (SStatus 0 SControl 300)

发件人: Pavel <[email protected]>

收件人: 刘波 刘 <[email protected]>,

日期: 2016/11/17 15:37

主题: Re: - Re: LS1043ARDB SPI FLASH

booting problem

NXP Community

Re: LS1043ARDB SPI FLASH booting problem

reply from Pavel Chubakov in QorIQ Processing Platforms - View the full

discussion

Your message dump does not show information about SPI problem.

What happens if SPI is used?

The SDK 2.0 from NXP for the LS1043ARDB board does not have similar

setting in kernel menu:

<*> SPI-NOR device support --->

<*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...)

<*> NOR flash on Intel Vermilion Range Expansion Bus CS0

Do you use SDK 2.0 on your board?

Have a great day,

Pavel Chubakov

0 Kudos
Reply