[juliantec_list] Re: 请问如何读取Intel flash 的Protection Register?

  • From: "Yihe Chen" <yihect@xxxxxxxxxxxxxx>
  • To: "houchenda2006" <houchenda2006@xxxxxxx>, "linux-kernel-driver" <linux-kernel-driver@xxxxxxxxxxxxxx>
  • Date: Thu, 18 Aug 2011 17:49:57 +0800

欢迎新朋友加入这个列表。参与讨论
最好使用纯文本格式,相关注意事项
请参考:
http://www.juliantec.info/mlist/mail-lists.html#something-must-to-know

系统已经启动,在linux下怎么才能
读取这个128位的number?
操作系统都有保护模式,不能直接
对物理地址进行操作。是不是要通过
驱动读取?


是通过MTD子系统的驱动去读的,不过
并不需要你自己去写驱动程序。
Intel 的这种芯片内核树中已经有代码
实现了。

是要自己写读flash的驱动,还是用MTD,
CFI的接口?网上说读nor flash 不用
写驱动,直接读就可以。


像这种数据在应用层的话,就是打开文件
用 read 或者 ioctl 就可以。至于使用
ioctl 的什么命令,你可以去hacking内核
的相关代码。具体的目录在:

.../drivers/mtd/

看了几天网上的资料,以前没接触过底层,
现在思路比较混乱,不知道该怎么做。




Learning, Just As Your Favourite Thing!

Maillist, See http://www.juliantec.info/mlist/mail-lists.html
JulBlog, See http://www.juliantec.info/julblog/summary.php
JulWiki, See http://www.juliantec.info/wiki/


Other related posts: