打印

uclinux的romfs地址?

[复制链接]
2299|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
BRUCE198|  楼主 | 2009-5-10 15:01 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
沙发
cpwander| | 2010-1-18 10:19 | 只看该作者
linux-2.4.x/drives/block/blkmem.c中找到这里,
struct arena_t { int rw; unsigned long address; /* Address of memory arena */ unsigned long length; /* Length of memory arena. If -1, try to get size from romfs header */ program_func_t program_func; /* Function to program in one go */ xfer_func_t read_func; /* Function to transfer data to main memory, or zero if none needed */ xfer_func_t write_func; /* Function to transfer data from main memory, zero if none needed */ erase_func_t erase_func; /* Function to erase a block of memory to zeros, or 0 if N/A */ unsigned long blksize; /* Size of block that can be erased at one time, or 0 if N/A */ unsigned long unitsize; unsigned char erasevalue; /* Contents of sectors when erased */ /*unsigned int auto_erase_bits; unsigned int did_erase_bits;*/ /* The following two are filled in by blkmem_init(): */ unsigned int file_system_type; /* file system magic number, or 0 if N/A */ unsigned char file_system_name[8]; /* file system name, or "NONE" if N/A */ } arena[] = {

添加类似这个的就行了
#ifdef CONFIG_ARCH_LPC
{0, 0x80100000, -1}
#endif

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

23

主题

35

帖子

0

粉丝