LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-21-2014, 08:11 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
Is it needed to build target kernel with MTD when i am having these for my board?


Hi,

For my board if I am having the following:

1) Uboot bootloader with that I can partition the NAND memory, required for kernel,root filesystem, filesystem for user data.
2) If I can erase the memory using boot loader commands and write data/image files using boot loader commands specifying the address.
3) If I can use serial port to transfer any files in user filesystem using terminal emulators like Kermit-C, cu, minicom.
4) If I can flash the bootloader used for these tasks with Jtag Flasher provided with the vendor.
5) If I have udev/mdev in installed in target board's root filesystem.

things provided above,

a) do I have to build my target kernel for my board with MTD support?
b) do I have to create device entries in /dev folder of target root filesystem with names /dev/mtdX (char device entries),or /dev/nftlLN ( Nand Flash Translation Layer device entries)?

Please reply!

Last edited by ayyasprings; 11-21-2014 at 08:16 AM.
 
Old 11-25-2014, 11:29 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Kernel needs access to data stored in NAND memory for example root file system to load "init", so obviously it needs driver for that: "mtd". You do not create /dev/mtd* nodes. Kernel should create it automatically during creation of MTD partitions.
 
Old 11-26-2014, 02:17 AM   #3
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
As you mentioned like this

Code:
You do not create /dev/mtd* nodes. Kernel should create it automatically during creation of MTD partitions.
I am referring the Building Embedded Linux Systems book by Karim Yaghmour.In that it shows some scripts to create nodes to populate root filesystem unless we are using udev/mdev.

Please clarify that.

And also when will the NAND flash translation layer nodes will be required. Is it mandatory like /dev/mtd* ?

Please reply!
 
Old 11-26-2014, 09:36 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Yes, if your system does not use udev or mdev, etc. then you need to create it that way. Nodes in /dev need to be created somehow. You can create it staticaly by mknod and scripts or it could be created dynamically using udev/mdev or kernel can create it by itself using devtmpfs or other method. NFTL as the name suggest is a transation layer for flash memory, it is not needed if you do not need access flash like regular hard disk, "mtd" is sufficient to read data by system.
 
Old 11-27-2014, 03:44 AM   #5
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Hi,

Do the uboot's nand flash related commands like nandinfo,nandbad, nandwrite, nanderase,etc,.. use Nand Flash Translation Layer driver to access the flash memory, ie) will those commands see flash memory as /dev/nftlLN devices?

Please reply!
 
Old 11-28-2014, 04:27 AM   #6
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
No, these are special tools to write memory and use mtd. You most probably do not want or need NFTL.
 
Old 11-28-2014, 05:58 AM   #7
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Hi,

If there any source of reference to check where NFTL,INFTL, FTL, RFD FTL, and SmartMedia FTL are applicable please share that.

I could not find those details in the following link dedicated for MTD:

http://www.linux-mtd.infradead.org/source.html

I want to have ideas about that by exploring where they are applicable.

Please reply!
 
Old 12-05-2014, 04:27 AM   #8
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
It depends on what you want to do with flash memory. If you want to store there bootloader, kernel and system and not need to very often change contents that cannot be cached in RAM then you do not need any FTL.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Needed: build kernel in android xlu2000 Linux - Kernel 0 05-20-2013 01:44 PM
how can we install bridge-utils to our target board kernel sumitnegi Linux - Embedded & Single-board computer 0 09-14-2012 07:00 AM
Kernel security and maintenance advice needed. Recompile existing or build latest? holister Linux - Security 7 12-12-2011 11:13 PM
build linux kernel to target Atom230 lithlith Linux - Newbie 1 06-24-2009 05:53 PM
Will rfs change when kernel image is built(for a target board) LN85 Linux - Kernel 3 07-04-2007 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:53 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