Results 1 to 4 of 4
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. ...
- 10-20-2010 #1Just Joined!
- Join Date
- Oct 2010
- Posts
- 3
How can I setup the NAND Partitions for s3c6410?
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, apparently an old method, to setup NAND partitions:
My question is, how can I setup the NAND Partitions using the new linux build?Code: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, } };
I've tried the following u-boot environment variables in DNW:
Nothing seems to happen. Instead, I still get the following error message:Code:mtdparts=s3c2410-nand:0x00100000(Bootloader),0x00200000(Kernel),0x03000000(Root-Jffs2),-(FileSystem) bootargs=mtdparts=\$mtdparts root=/dev/mtdblock2 rootfstype=jffs2 console=ttySAC0,115200 init=/linuxrc
VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)Last edited by MikeTbob; 10-22-2010 at 01:18 AM. Reason: Added code tags
- 10-21-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
The 2.6.36 kernel is fresh off the presses and ARM support is still a work-in-progress according to The Linux Foundation news flash. Of course, I'm just assuming that this is an ARM board...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 10-21-2010 #3Just Joined!
- Join Date
- Oct 2010
- Posts
- 3
Thanks for the reply.
Yes, I noticed the new build. I had downloaded and built 2.6.36 this morning.The processor is a s3c6410; it is an ARM. I still can't load the file system.
- 10-21-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,961
Then you might want to drop back to 2.6.34 or .35 instead. As I mentioned, I don't think that ARM and MIPS processor support is quite yet there.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
