[embedded]nand write.yaffs: Attempt to write error length data!

2017-4-21 写技术

[ ~nicholas@anycle.com ]# tftp 0x30008000 rootfs.img dm9000 i/o: 0x20000300, id: 0x90000a46 DM9000: running in 16 bit mode MAC: 08:00:3e:26:0a:5b could not establish link Using dm9000 device TFTP from server 192.168.0.52; our IP address is 192.168.0.69 Filename 'rootfs.img'. Load address: 0...

阅读全文>>

标签: embedded

评论(0) 浏览(1991)

[embedded]Wrong of kernel while initialling the NAND flash

2017-4-19 写技术

There is something wrong with the kernel while initialling the NAND flash. brd: module loaded S3C24XX NAND Driver, (c) 2004 Simtec Electronics s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns s3c24xx-nand s3c2440-nand: NAND soft ECC NAND device: Manufacturer I...

阅读全文>>

标签: embedded

评论(0) 浏览(1735)

[embedded]u-boot: Retry count exceeded;starting again

2017-4-19 写技术

@:tftp 0x30008000 rootfs.img Filename 'rootfs.img'. Load address: 0x30008000 Loading: T ##########T T #####################################################T ##T T          #T T T T ###### Retry count exceeded; starting again dm9000 i/o: 0x20000300, id: 0x90000a46 DM9...

阅读全文>>

标签: embedded

评论(0) 浏览(2733)

[embedded]Boot kernel from tftp server

2017-4-14 写技术

1.Change linux kernel image zImage to zImage.img. mkimage -n 'nicholas' -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008040 -d zImage zImage.img There is a information head in zImage.img used to recognised by u-boot. 2.Download to RAM of embedded board. I us...

阅读全文>>

标签: embedded

评论(0) 浏览(1574)

[ubuntu]Install tftp server

2017-4-14 写技术

1.Install tftp-server sudo apt-get install tftpd-hpa sudo apt-get install tftp-hpa  tftp-hpa is client tftpd-hpa is server 2.Config sudo vim /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_ADDRESS="0.0.0.0:69" TFTP_DIRECTORY="tftp director" TFTP_OPTIONS="-l -c -s" 3.Restart ...

阅读全文>>

标签: ubuntu embedded

评论(0) 浏览(1820)

[JS]分级图片加载

2017-4-4 写技术

在页面中使用分级图片加载的方法一个: <script src="jquery.min.js"></script> <script> var acimg = function(ac_style, ac_high){ if(!ac_style){ ac_style="anycle"; } if(!ac_high){ ac_high="high"; } var _ac_filter = "img."+ac_style; $(_ac_filter).each(function(){ _ac_src = $(th...

阅读全文>>

标签: JS

评论(0) 浏览(1992)

[JS]Call functions or values between sub iframe and parent page

2017-3-29 写技术

I always forgotten how to call functions or values between sub iframe and parent page in javascript. Now make a demo to mark it here. Here is parent page: <iframe src="sub.html" style="width:100%; height:500px; border:1px solid gray;"></iframe> <input type="button" v...

阅读全文>>

标签: JS

评论(0) 浏览(2087)

[JS]Change a searching options of a web page

2017-3-28 写技术

There is a function by myself to change a searching options of a web page. function setName(name, val) { var isSet = 0; var url=window.location.search; var search = ""; if(url.length>200){ return 0; } var url_domain = window.location.href; if(url_domain.indexOf("?")!=-...

阅读全文>>

标签: JS

评论(0) 浏览(1955)

[c]数组与字符串长度

2017-3-16 写技术

来看看在C语言里面字符串与数组的长度怎么取得吧,不多说,上代码: char *str="abcdefg"; char strq[10] = "abcdefg"; printf("%d %d\n", sizeof(str), strlen(str)); printf("%d %d\n", sizeof(strq), strlen(strq)); 结果是: 8        7 10       &...

阅读全文>>

标签: C

评论(0) 浏览(1606)

[embedded]ESP8266 Falsh读写异常

2017-3-15 写技术

今天调了一整天ESP8266,发现设备突然不能保存参数到Flash了,明明看到SPI Flash块操作正常运行过了,可是一重启设备,读出来的还是空。 最后的最后,发现原来ESP8266的初始化数据没有烧录,这是一块新板子,坑呀~

阅读全文>>

标签: embedded

评论(0) 浏览(2005)

Powered by anycle 湘ICP备15001973号-1