ChinaUnix.net
相关文章推荐:

nand read 速度

project : dessect nand read from Vivi instruction : dessect nand read from ViVi step by step. (1) the below fragment from ViVi is represent for reading nand flash to memory. int nand_read_ll(unsigned char *buf, unsigned long start_addr, int size) { int i, j; if ((start_addr & nand_BLOCK_MASK) || (size & nand_BLOCK_MASK)) { return -1; /* invalid alignment */ } nand_CH...

by vincent-cws - Linux文档专区 - 2010-06-23 19:39:54 阅读(2048) 回复(1)

相关讨论

问下大家,为什么在这里nand read 等待了10秒,从哪可以修改?哪位大神指点指点

by 小o雄 - 嵌入式开发 - 2011-10-08 11:53:14 阅读(2411) 回复(4)

本帖最后由 sourxsunny 于 2011-01-19 23:03 编辑 我已经把kernel放在nand的0x6000位置,但当我在u_boot环境下nand read之后出错 为什么会变成nand from offset 6000ffffffff的? 还有我想问一下 #define CONFIG_BOOTARGS "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0" #define CONFIG_BOOTCOMMAND "nand read 0x30008000 0x00060000 0x00500000;bootm" 这样对吗?

by sourxsunny - 驱动开发 - 2011-01-19 23:01:42 阅读(2791) 回复(0)

初学驱动,有两个问题一直没搞明白。请知道的人抽空指点一下,谢谢! 1. 在S3C2410中,可以设置bank的Tacs, Tcos等参数的大小,这些参数是在哪里使用的? flash的驱动程序里面不用关心么? 2. 下面的代码中 for(i=0;i

by spt_zeus - 嵌入式开发 - 2008-04-05 13:13:00 阅读(2092) 回复(3)

#include config.h> #define __REGb(x) (*(volatile unsigned char *)(x)) #define __REGi(x) (*(volatile unsigned int *)(x)) #define NF_BASE 0x4e000000 #define NFCONF __REGi(NF_BASE + 0x0) #define NFCMD __REGb(NF_BASE + 0x4) #define NFADDR __REGb(NF_BASE + 0x8) #define NFDATA __REGb(NF_BASE + 0xc) #define NFSTAT __REGb(NF_BASE + 0x10) 细心的人肯定会发...

by coolcoolrain - Linux文档专区 - 2010-01-16 00:19:15 阅读(1273) 回复(0)

[code] if(read(fd,buf,MAXLINE) == -1 ); { printf("%s\n",buf); perror(NULL); Close(fd); exit(1); }[/code]为什么read返回的是 -1 但是perror却是success

by lcyjlu - Linux环境编程 - 2014-03-25 20:02:48 阅读(765) 回复(3)

read怎么使用

by yizhikuaile1990 - Linux新手园地 - 2012-03-10 18:18:21 阅读(864) 回复(1)

int n = read(fd, buf, len), 当fd为一socket descriptor时,read在哪几种情况下会返回?

by TomTang - C/C++ - 2006-08-21 23:09:11 阅读(909) 回复(2)

#!/bin/sh sleep 3 echo "input a:" read a if [ "$a" == y ]; then echo $a else echo no fi 问题: 如果在shell sleep 的过程敲很多次回车 例如3次 现象为 [root@localhost]#./filename input a: no [root@localhost]# [root@localhost]# [root@localhost]# _ 也就是说shell记住了你敲的这3次回车 怎么能达到这种效果: 不管敲几次回车 只捕捉input a: 出现后的那一次输入 [root@localhost]#./filename i...

by lovec - Shell - 2006-05-17 17:24:49 阅读(1893) 回复(12)

请问“read"在shell scripts上是不是表示从标准输入上读出字符?

by x518889 - Linux论坛 - 2004-04-16 13:48:15 阅读(592) 回复(1)