Part Number: AM3352
Tool/software: Linux
Hi
I am working with a design that's based on the BeagleBoneBlack and using the latest SDK & tools for the am3352?
Can anyone advise me how I should enable support for an m25p80 SPI flash chip in my kernel?
I have had a look through previously posted questions and followed what examples I have been able to find, but I am not having much luck.
I can access the chip from u-boot and have used it to read my kernel and DTB.
I have defined the flash in the DTS as
&spi0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
spi-flash@0 {
compatible = "micron,n25q256a", "m25p80";
spi-max-frequency = <48000000>;
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "SPL";
reg = <0x00000000 0x00020000>;
};
partition@20000 {
label = "u-boot";
reg = <0x00020000 0x00066000>;
};
partition@86000 {
label = "dtb";
reg = <0x00086000 0x00010000>;
};
partition@96000 {
label = "kernel";
reg = <0x00960000 0x0050a000>;
};
partition@5a0000 {
label = "-";
reg = <0x005a0000 0x01a60000>;
};
};
};
Within my .config I can see that I have
# # Self-contained MTD device drivers # # CONFIG_MTD_PMC551 is not set # CONFIG_MTD_DATAFLASH is not set CONFIG_MTD_M25P80=y # CONFIG_MTD_SST25L is not set # CONFIG_MTD_SLRAM is not set # CONFIG_MTD_PHRAM is not set # CONFIG_MTD_MTDRAM is not set CONFIG_MTD_BLOCK2MTD=y # # LPDDR & LPDDR2 PCM memory drivers # # CONFIG_MTD_LPDDR is not set # CONFIG_MTD_LPDDR2_NVM is not set CONFIG_MTD_SPI_NOR=y CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_LIMIT=20 # CONFIG_MTD_UBI_FASTMAP is not set # CONFIG_MTD_UBI_GLUEBI is not set # CONFIG_MTD_UBI_BLOCK is not set CONFIG_DTC=y
Once the kernel is running however there are no /dev/mtd* devices.
There is nothing in /proc/mtd nor sys/class/mtd
Thanks for any suggestions for how I might big deeper
Kind regards,
Richard