[meta-xilinx] u-boot/UBIFS
Mike Looijmans
mike.looijmans at topic.nl
Wed Sep 23 00:02:39 PDT 2015
On 22-09-15 21:08, Edward Wingate wrote:
> On Mon, Sep 21, 2015 at 12:39 PM, Joe Hershberger
> <joe.hershberger at gmail.com> wrote:
>> #define MTDIDS_DEFAULT "nand0=xilinx_nand"
>
> How do I determine the right string to put in this #define? Looking
> at all the .h files in u-boot-xlnx/include/configs, they vary a lot
> and I didn't see this defined in any of the zynq board configs.
>
> The flash I'm using is two 64MB devices (Spansion S25FL512S) in dual
> stacked configuration.
>
> When I run 'sf probe 0 0 0' from uboot, I get this:
> SF: Detected S25FL512S_256K with page size 512 Bytes, erase size 256
> KiB, total 128 MiB
Hint: Just use "sf probe", do not add the extra "0 0 0". It may result in slow
sf performance.
>
> Linux reports:
> [ 1.010771] m25p80 spi32764.0: s25fl512s (131072 Kbytes)
> [ 1.016024] 3 ofpart partitions found on MTD device spi32764.0
> [ 1.021846] Creating 3 MTD partitions on "spi32764.0":
> [ 1.027054] 0x000000000000-0x000000800000 : "qspi-fsbl-uboot"
> [ 1.033789] 0x000000800000-0x000001c00000 : "qspi-env-itb"
> [ 1.040323] 0x000001c00000-0x000008000000 : "qspi-rootfs"
>
> After some digging, I found this thread that indicates that MTD with
> SPI flash is not supported, but there is experimental MTD translation
> layer driver: http://u-boot.10912.n7.nabble.com/SPI-NOR-MTD-s-td178723.html#a178726
>
> Does this still apply here? Or are there Xilinx patches for this in
> u-boot-xlnx?
Oh, now I remember why I'm not using ubi myself for the QSPI flash. The
problem was that u-boot UBI supports needs an MTD device, and the serial flash
device is NOT considered MTD in u-boot (yet...).
So for now, by far the easiest method is to put the kernel in 'raw' flash (not
a problem for NOR type) and then use ubi from within the kernel only.
Mike.
Kind regards,
Mike Looijmans
System Expert
TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com
Please consider the environment before printing this e-mail
More information about the meta-xilinx
mailing list