LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 01-07-2013, 04:49 AM   #1
ranjana kumari
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Rep: Reputation: Disabled
proc/mtd is empty


when i gave cat /proc/mtd on the target board which has tms320dm368 microcontroller i got following message
dev: size erasesize name

I am not able to see the partitions for bootloader, params, kernel and filesystem..
In the kernel configuration file
CONFIG_JFFS2 =y
please suggest where could be the problem
 
Old 01-07-2013, 08:46 AM   #2
dpdonny
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
What about MTD kernel config parameters? You should have at least the following defined?

CONFIG_MTD
CONFIG_MTD_CHAR
CONFIG_MTD_BLKDEVS
CONFIG_MTD_BLOCK

Does dmesg report any indication of a problem detecting flash?

What kind of flash are you using NOR or NAND? Are the proper config parameters set?
 
Old 01-07-2013, 11:11 PM   #3
ranjana kumari
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
In my kernel config file

CONFIG_MTD = y
CONFIG_MTD_CHAR = y
CONFIG_MTD_BLKDEVS = y
CONFIG_MTD_BLOCK = y

dmesg doesnot report any indication of a problem detecting flash

Iam using Nand flash

when I am using Linux-2.6.32.17-davinci1 as uImage cat/proc/mtd is empty but if I use Linux-2.6.18_pro500-davinci_IPNC cat /proc/mtd displays the partition for bootloader,params,kernel and filesystem.
So please suggest what changes need to be done in kernel - Linux-2.6.32.17-davinci1
to see the partition for different parameters
 
Old 01-08-2013, 09:42 AM   #4
dpdonny
LQ Newbie
 
Registered: Nov 2012
Posts: 3

Rep: Reputation: Disabled
The problem most likely lies in your board file and/or kernel config files. Do a diff of each kernel's .config file. Look for board and/or MTD config differences.

Not sure what board target you are using, but it's probably under arch/arm/mach-davinci/board-*.c.

Here is an example of the MTD NAND partitions being defined on a Davinci board.

#ifdef CONFIG_DA830_UI_NAND
static struct mtd_partition da830_evm_nand_partitions[] = {
[0] = {
.name = "bootloader",
.offset = 0,
.size = SZ_32K,
.mask_flags = MTD_WRITEABLE,
},
...
[3] = {
.name = "filesystem",
.offset = 0,
.size = SZ_32K,
.mask_flags = MTD_WRITEABLE,
},


};
#endif

The above example comes from arch/arm/mach-davinci/board-da830-evm.c in the 3.1.0 distro. Note, da830_evm_nand_partitions is conditionally compiled in based on CONFIG_DA830_UI_NAND. Perhaps you have a similar issue?
 
Old 01-09-2013, 04:01 AM   #5
ranjana kumari
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
ipv6: disagrees about version of symbol module_layout
modprobe: FATAL: Error inserting ipv6 (/lib/modules/2.6.32.17-davinci1/kernel/net/ipv6/ipv6.ko): Invalid module format

Starting syslogd/klogd: done
Starting thttpdipv6: disagrees about version of symbol module_layout
.
ipv6: disagrees about version of symbol module_layout
cmemk: disagrees about version of symbol module_layout
FATAL: Error inserting cmemk (/lib/modules/2.6.32.17-davinci1/kernel/drivers/dsp/cmemk.ko): Invalid module format
irqk: disagrees about version of symbol module_layout
FATAL: Error inserting irqk (/lib/modules/2.6.32.17-davinci1/kernel/drivers/dsp/irqk.ko): Invalid module format
edmak: disagrees about version of symbol module_layout
FATAL: Error inserting edmak (/lib/modules/2.6.32.17-davinci1/kernel/drivers/dsp/edmak.ko): Invalid module format
dm365mmap: disagrees about version of symbol module_layout
FATAL: Error inserting dm365mmap (/lib/modules/2.6.32.17-davinci1/kernel/drivers/dsp/dm365mmap.ko): Invalid module format
BusyBox v1.13.2 (2011-03-24 18:58:44 CDT) multi-call binary

the abobe kernel modules are not laoaded ...so is this the reason for cat /proc/mtd to be empty
 
  


Reply

Tags
embedded, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 14Beta -- /proc is empty AlleyTrotter Slackware 2 07-24-2012 03:39 AM
/proc/<pid>/stat empty? Brian Moffet Linux - Kernel 1 04-27-2008 02:05 AM
many /proc/<id>/cmdline files empty kpachopoulos Linux - General 1 08-25-2006 09:16 AM
dirs in /proc/acpi empty anibis Linux - Laptop and Netbook 1 07-18-2006 01:37 AM
all entries in /proc seems to be empty? tuxfood Linux - Newbie 1 08-01-2004 05:31 AM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration