Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux: How to add MTD Partition for additional NAND Flash in Linux Device Tree for OMAPL138 SoC

$
0
0

Tool/software: Linux

Hi there, 

I have gone through the user guide on how to add partition and the link of the user guide is 

I have made the changes in the device tree to add addition NAND Flash with different Chip Select (CS2) and different register. When I look at the following command after Linux boot up:

root@omapl138-lcdk:/proc/device-tree/aemif@68000000# ls -al
-r--r--r-- 1 root root 4 Jul 25 13:50 #address-cells
-r--r--r-- 1 root root 4 Jul 25 13:50 #size-cells
drwxr-xr-x 4 root root 0 Jul 25 13:50 .
drwxr-xr-x 11 root root 0 Jul 25 13:49 ..
-r--r--r-- 1 root root 15 Jul 25 13:50 compatible
drwxr-xr-x 3 root root 0 Jul 25 13:50 cs2
drwxr-xr-x 3 root root 0 Jul 25 13:50 cs3
-r--r--r-- 1 root root 6 Jul 25 13:50 name
-r--r--r-- 1 root root 4 Jul 25 13:50 pinctrl-0
-r--r--r-- 1 root root 8 Jul 25 13:50 pinctrl-names
-r--r--r-- 1 root root 32 Jul 25 13:50 ranges
-r--r--r-- 1 root root 8 Jul 25 13:50 reg
-r--r--r-- 1 root root 5 Jul 25 13:50 status
root@omapl138-lcdk:/proc/device-tree/aemif@68000000#

Does look like the nand flash cs2 has been created but can see it in the followinf MTD command:

root@omapl138-lcdk:/proc/device-tree/aemif@68000000# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00020000 "u-boot env"
mtd1: 00080000 00020000 "u-boot"
mtd2: 1ff60000 00020000 "free space"

Do I need to add any other logic other than updating the device-tree and rebuild the kernel? 

Please let me know. Thanks in advance.

The SDK version is 4.0.0.4


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>