LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2010, 01:00 PM   #1
Aglets
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
Question How can I setup NAND partitions for a s3c6410 CPU?


I am trying to use the Idea6410 board for developing SPI applications.
Unfortunately, the software was built using the s3c2410 SPI Drivers instead of the s3c6410 SPI drivers using linux_2.6.24. The problem is that this version doesn't contain a s3c6410 version of spidev. So I built a new kernel using linux-2.6.36-rc8. However, the arch/arm/plat-samsung directory does not contain equivalent methods of setting up NAND partitions.

The /arch/arm/plat-s3c24xx/common-smdk.c file contains the following code to setup NAND partitions:

struct mtd_partition s3c_partition_info[] = {
{
.name = "Bootloader",
.offset = 0,
.size = (1*SZ_1M),
.mask_flags = MTD_CAP_NANDFLASH,
},
{
.name = "Kernel",
.offset = (1*SZ_1M), /* Block number is 0x10 */
.size = (3*SZ_1M) - (1*SZ_1M),
.mask_flags = MTD_CAP_NANDFLASH,
},
{
.name = "Root-Cramfs",
.offset = (3*SZ_1M), /* Block number is 0x80 */
.size = (48*SZ_1M),
},
{
.name = "File System",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
}
};

My question is, how can I setup the NAND Partitions using the new linux build?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup partitions to allow for new distro in the future fenrisW0lf Linux - Newbie 3 07-14-2009 06:34 PM
S3C6410 single board computer ported with 4 OS lykmyn Linux - Newbie 1 07-14-2009 05:44 AM
Problem with LCD when porting linux 2.6.28.rc4 on MV6410 (ARM-S3c6410) huymq85 Linux - Kernel 0 05-30-2009 12:29 AM
Slackware 12.0 setup cannot find linux partitions to install too after fdisk setup . TDurden1937 Slackware - Installation 1 10-25-2008 08:18 PM
How to setup MySQL and PHP servers in different partitions? manofwax Linux - Networking 4 08-18-2004 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration