ChinaUnix.net
相关文章推荐:

uboot中readline

[code] static ssize_t my_read(int fd, char *ptr) { static int read_cnt = 0; static char *read_ptr; static char read_buf[MAXLINE]; if (read_cnt <= 0) { again: if ( (read_cnt = read(fd, read_buf, sizeof(read_buf))) < 0) { if (errno == EINTR) goto again; return(-1); } else if (read_cnt == 0) return(0); read_ptr = read_buf; } read_cnt--;//为什么要--? *ptr = *read_ptr++;//只...

by dxbh - C/C++ - 2008-05-02 23:12:49 阅读(2100) 回复(1)

相关讨论

[code] else all $(obj)u-boot.hex $(obj)u-boot.srec $(obj)u-boot.bin \ $(obj)u-boot.img $(obj)u-boot.dis $(obj)u-boot \ $(SUBDIRS) version gdbtools updater env depend \ dep tags ctags etags $(obj)System.map: @echo "System not configured - see README" >&2 @ exit 1 endif .PHONY : CHANGELOG CHANGELOG: git log --no-merges U-Boot-1_1_5.. | \ unexpand -a | sed -e 's/\s\s*$$//' > $@ [/cod...

by lthread - 嵌入式开发 - 2011-04-15 08:26:07 阅读(2019) 回复(5)

对于 mini2440_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm920t mini2440 NULL s3c24x0 实际执行: ./mkconfig mini2440 arm arm920t mini2440 NULL s3c24x0 以下分析mkconfig作用: 1. 确定开发板名称 11 APPEND=no # Default: Create new config file 12 BOARD_NAME="" # Name to print in make output 13 14 while [ $# -gt 0 ] ; do 15 case "$1" in 16 --) shift ; ...

by tancotq - Linux文档专区 - 2009-08-08 16:59:51 阅读(1071) 回复(0)

loadb 20000000 //(1) nand erase 0x100000 0x200000 //(2) nand write 0x20000000 0x100000 0x200000 -//(3) nand read 0x20000000 0x100000 0x200000 -//(4) (1) 从串口下载到SDRAM的0x20000000处 (2) 从1M处开始擦写Nand Flash,擦写2M大小的空间 (3) 将SDRAM的0x20000000处开始的内容,烧写到Nand Flash的0x100000处开始的2M空间内 (4) 将Nand Flash的0x100000处开始的2M空间内容,拷贝到SDRA...

by zhang8083 - Linux文档专区 - 2008-03-26 18:48:48 阅读(430) 回复(0)

每次在stdin收到回车时,调用&check将@buf内容拼接起来判断是否为'abc' 问题是:由于上下翻页、插入位置移动等操作导致$buf的内容很难理解 感觉Term::readlinereadline的处理方式应该也是累积$buf,最后回车时判断并返回$cmd,不过不知道如何下手。。。 sub pty_ready { my ($pty) = @_; my $buf = ""; my $rc = $pty->sysread($buf, BUFFER_LENGTH); if (length($input)>0) { if ($input ne '\...

by huhuegg - Perl - 2009-06-24 12:01:20 阅读(1332) 回复(0)

本帖最后由 cskyrain 于 2012-04-15 21:28 编辑 那位对uboot的ddr检测原理比较了解,我只知道一般用mtest进行测试,不知道到底是什么原理。

by cskyrain - 驱动开发 - 2012-04-28 15:19:13 阅读(4035) 回复(4)

最近需要开发一个裸机下的pci程序,想借助一下比较成熟的uboot,发现下面有一些PCI方面的东西了,打开pci的命令,它的帮助文件如下: pci - list and access PCI Configuraton Space, [bus] [long] - short or long list of PCI devices on bus 'bus' pci header b.d.f - show header of PCI device 'bus.device.function' pci display[.b, .w, .l] b.d.f [address] [# of objects] - display PCI conf...

by dorke - 嵌入式开发 - 2009-04-09 23:12:36 阅读(5101) 回复(5)

uboot代码的时候看到两个宏,不清楚是什么意思~跪求答案啊~!! CONFIG_EVT1和CONFIG_FUSED

by fjlhlonng - 嵌入式开发 - 2014-01-22 09:58:25 阅读(1260) 回复(7)

目前我一直在移植uboot的nand驱动,处理器用的是s5pv210,板子用的tiny210V2,我的nand是K9GAG08U0F,它是一个8K/PAGE,2G大小MLC的NAND ,(8k+512)/PAGE.目前我的uboot能从nand启动了,但存在一个很严重的问题,就是执行nand erase.chip,会报告出很多坏块,因为在在对nand操作的时候,例如nand 擦除,写,读,我全部用的4k/page,因为只有这样我烧进去的uboot它才能启动,因为s5pv210在uboot启动的第一阶段会执行ECC校验,它用的16b...

by lihaiping1603 - 嵌入式开发 - 2013-06-18 10:13:30 阅读(1172) 回复(1)

本帖最后由 hezhaoaqiang 于 2012-09-06 11:29 编辑 我从官网上下载了最新的bootloader,在lib_arm下的mmc_initialize()函数跳转到mmc.c,函数如下 /*board.c*/ #ifdef CONFIG_GENERIC_MMC //配置文件有定义 puts("MMC: hezhao test mmc init \n"); mmc_initialize (gd->bd); /* go init the MMC */ #endif /*mmc.c*/ static int __def_mmc_init(bd_t *bis) { puts("def_mmc_init--board_mmc_init\n"); ...

by hezhaoaqiang - 移动操作系统 - 2012-09-06 11:42:52 阅读(2340) 回复(1)

这种方法比较简单,就是利用uboot自带命令usbboot来实现启动,也算是最粗糙的一种。

1.在配置文件添加一系列有关USB的支持。
uboot编译启动后输入
usb start
usbboot 0x30800000 0:1
这里的0是usb设备0,1是第一分区
当然,这里肯定会失败,因为usb storage还没有必须的内核文件呢。

2.usbboot是从指定分区的起始位置拷贝内核文件到指定的地址。
因为没有找到合适的拷贝工具,于是使用uboot自...

by rqzrqh - 移动操作系统 - 2011-12-23 03:03:00 阅读(969) 回复(0)