硬件是PXA270的核心板,接了2块 16M的 nor flash。 现在我想读取 flash中的唯一ID。 芯片手册中是这么说的:The Intel StrataFlash® memory (J3) includes a 128-bit Protection Register (PR),The 128-bits of the PR are divided into two 64-bit segments. One of the segments is programmed at the Intel factory with a unique 64-bit number, which is unalterable. The other segment is left blank for customer designers to program as desired. Once the customer segment is programmed, it can be locked to prevent further programming. The Protection Register is read in the identification read mode. The device is switched to this mode by issuing the Read Identifier command (0x90). Once in this mode, read cycles from addresses shown in Table 8 or Table 21 retrieve the specified information. To return to read array mode, write the Read Array command (0xFF). 系统已经启动,在linux下怎么才能读取这个128位的number?操作系统都有保护模式,不能直接对物理地址进行操作。是不是要通过驱动读取?是要自己写读flash的驱动,还是用MTD,CFI的接口?网上说读nor flash 不用写驱动,直接读就可以。 看了几天网上的资料,以前没接触过底层,现在思路比较混乱,不知道该怎么做。 希望大家给个思路,指点一下? 2011-08-18 houchenda2006