LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 11-20-2012, 12:15 AM   #1
rinky05
LQ Newbie
 
Registered: Aug 2012
Posts: 10

Rep: Reputation: Disabled
Implementation of persistent protection in Spanison flash in Kernel


I am using spansion flash (S29GL256S90FHSS4) in HDK 7111 USING STLinux-2.4
Kernel version is "linux-sh4-2.6.32.59"

I want to use Persistent Protection mode to lock the flash at the kernel level.
I am using lock/unlock function for DYB(Dynamic Protection) .

Given below are the functions I am looking for implementing the same .

Path to file : Linux-sh4-2.6.32.59/include/linux/mtd/mtd.h

int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t
len);

int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf);

int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t
len);

int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf);

int (*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf);

int (*lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len);


Is there any support available for this ?

Thanks and Regards
Rinky
 
  


Reply


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
NVIDIA Geforce FX5200 and USB flash drive with persistent image NetLife Linux - Hardware 2 12-17-2009 02:49 AM
Need help choosing a persistent operating system to be installed on flash drive ghostmachine Linux - Software 7 08-30-2008 08:31 AM
Persistent USB Flash Drive Ubuntu Edgy memoo Ubuntu 4 02-15-2007 09:15 AM
Can't format USB flash drive, write protection krisbitner Linux - Hardware 5 02-07-2007 03:18 PM
Routing implementation in the kernel sidra Programming 0 04-21-2005 04:17 PM


All times are GMT -5. The time now is 12:01 AM.

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