- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am looking to integrate Cypress NAND S34ML01G2 into Linux Kernel and U-Boot. Please give me the steps as i am new to this. Any pointers will be helpful.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The S34ML01G2 should work out-of-the box under Linux. Just enable the standard NAND driver (drivers/mtd/nand/nand_base.c) and make sure that your controller driver uses 4-bit ECC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The S34ML01G2 should work out-of-the box under Linux. Just enable the standard NAND driver (drivers/mtd/nand/nand_base.c) and make sure that your controller driver uses 4-bit ECC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Same thing for u-boot: All the drivers are available, you should just enable them in your board config file.
Best regards,
Bacem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got that the support already exists in both the Kernel and U-Boot. I didn't understand where to enable the NAND driver and about 4-bit ECC adding to the controller. Where do I do that? I mean I checked out nand_ids.c but I didn't find any place where I need to do that. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The NAND driver you can enable in the kernel configuration menu (Drivers -> MTD -> NAND). Depending on your hardware you will need the corresponding controller driver as well. This driver takes care of driving ALE and CLE e.g. Your BSP provider has probably added such a driver to your Linux tree if it was not already included in the standard version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sir,
We are only responsible for BSP and there will not be another BSP providers. Can u please give me those steps to do it BSP as well. The main reason to ask you this is, I am not finding in the code. What I mean is, I am not finding the right code and how they interact with each other. I have done some googling but didn't find the right answers. If you can tell me about it, it would be a lot of help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
According to you, after enabling in nand_ids.c , S34ML01G2 would use nand_base.c and nand.c files as driver code rt? Is my understanding correct? is this the same case with U-Boot as well as the Kernel? Please answer... Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, that is correct.