[meta-xilinx] Linux qspi support/4.4 kernel/zedaboard
Nathan Rossi
nathan at nathanrossi.com
Wed Feb 17 06:25:31 PST 2016
On Thu, Feb 11, 2016 at 8:20 PM, <gmane at reliableembeddedsystems.com> wrote:
> Hi,
>
> Did someone here manage to get qspi work for the 4.4 kernel?
>
> On some older xilinx kernel I see:
>
> [ 0.492965] dma-pl330 f8003000.ps7-dma: Loaded driver for PL330
> DMAC-267056
> [ 0.492982] dma-pl330 f8003000.ps7-dma: DBUFF-128x8bytes Num_Chans-8
> Num_Peri-4 Num_Events-16
> [ 0.494411] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> [ 0.497546] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 82,
> base_baud = 3124999) is a xuartps
> [ 0.915469] console [ttyPS0] enabled
> [ 0.918613] xdevcfg f8007000.ps7-dev-cfg: ioremap 0xf8007000 to e0866000
> [ 0.928884] brd: module loaded
> [ 0.938215] loop: module loaded
> [ 0.945848] m25p80 spi32764.0: found s25fl256s1, expected n25q128
> [ 0.950794] m25p80 spi32764.0: s25fl256s1 (32768 Kbytes)
> [ 0.954763] 4 ofpart partitions found on MTD device spi32764.0
> [ 0.959304] Creating 4 MTD partitions on "spi32764.0":
> [ 0.963060] 0x000000000000-0x000000100000 : "qspi-fsbl-uboot"
> [ 0.969413] 0x000000100000-0x000000600000 : "qspi-linux"
> [ 0.975163] 0x000000600000-0x000000620000 : "qspi-device-tree"
> [ 0.981612] 0x000000620000-0x000001000000 : "qspi-rootfs"
>
> root at zedboard-zynq7:~# cat /proc/version
> Linux version 3.14.2-xilinx-00002-g80bd109 (builduser at localhost.localdomain)
> (gcc version 4.9.1 (GCC) ) #23 SMP PREEMPT Tue Aug 11 11:01:48 BST 2015
> root at zedboard-zynq7:~#
>
> root at zedboard-zynq7:~# cat /proc/mtd
> dev: size erasesize name
> mtd0: 00100000 00010000 "qspi-fsbl-uboot"
> mtd1: 00500000 00010000 "qspi-linux"
> mtd2: 00020000 00010000 "qspi-device-tree"
> mtd3: 009e0000 00010000 "qspi-rootfs"
> root at zedboard-zynq7:~#
>
> ----
>
> On my 4.4.1 kernel /proc/mtd is empty;)
>
> The device tree indicates:
>
> compatible = "spansion,s25fl256s0", "jedec,spi-nor";
This compat string is fine, although really you only need the "jedec,spi-nor".
>
> And I think I do have the right CONFIG_MTD_xxx drivers included.
If you are using the default meta-xilinx configs you should have it
all setup as needed.
>
> I will try to build the latest meta-xlinx stuff as soon as I'm back in the
> lab next week.
>
> Any ideas?
Post your kernel log, or the segment when the m25p80 driver tries to
setup the flash, that will indicate what is going wrong.
Regards,
Nathan
>
> Regards,
>
> Robert
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
More information about the meta-xilinx
mailing list