![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
嵌入式uClinux
frankyzjl
这个作者很懒,什么都没留下…
展开
-
blackfin可执行文件的格式
BLACKFIN:Executable file formatsFiles can be in two basic formats in the Blackfin Linux world:FLAT Binary Flat files commonly known as BFLT, are a relatively simple and lightweight e原创 2009-04-27 14:22:00 · 513 阅读 · 0 评论 -
Linux下DM9000网卡驱动实验(一)
1.1 硬件系统介绍1.1.1 网络驱动程序的特点 网络驱动程序是介于硬件和内核之间传送数据包,不是面向流的设备,不能象/dev/tty1那样简单的映射到文件系统的节点上。 Linux调用这些接口的方式是给他们分配一个独立的名字(如eth0)。这样的名字在文件系统中并没有对应项。内核和网络设备驱动程序 之间的通信与字符设备驱动程序和转载 2009-04-27 14:50:00 · 751 阅读 · 0 评论 -
Linux下DM9000网卡驱动实验(二)
首先熟悉以下重要的数据结构,然后对照DM9000的驱动程序,察看具体数据结构的用法。保存网络设备信息的结构体net_devicenet_device结构存储了网络设备的操作方法和其他信息。其定义如下面的清单。仅仅列出了部分常用的成员,对于普通的网络设备驱动程序已足够。想详细了解的结构体参考LDD(Linux Device Driver)或内核源码/include/linux/netdevi原创 2009-04-27 14:51:00 · 360 阅读 · 0 评论 -
Linux下DM9000网卡驱动实验(三)
1.1.1 步骤四:分析DM9000的网卡驱动程序驱动程序共包含三个文件dm9000x.c ,dm9000.c 和dm9000.h,都存放在drivers/net/目录下,其中dm9000x.c 主要包括以下函数: 底层硬件操作函数:这些函数与硬件相关,与驱动程序编写相关不大。 void outb(unsigned转载 2009-04-27 14:52:00 · 512 阅读 · 0 评论 -
设置开发板和uboot命令
bf537> setenv ipaddr 192.168.139.157bf537> setenv serverip 192.168.139.152bf537> saveenvSaving Environment to Flash...Un-Protected 1 sectorsErasing Flash...Erasing Flash locations, Please Wait.E原创 2009-04-27 14:55:00 · 335 阅读 · 0 评论 -
在开发板上加入log
在顶层的Makefile的310行加入 $(ROMFSINST) -s /var/tmp/log /dev/log。root:/etc> cat inittab#ttyS0::respawn:/bin/getty -L ttyS0 57600 vt100slog:unknown:/bin/syslogd -nklog:unknown:/bin/klogd -n中修改klog的级原创 2009-04-27 15:09:00 · 220 阅读 · 0 评论 -
交叉编译helloworld
1、源文件:[franky@franky ~]$ cat hello.c #include #include int main(){ printf("hello world/n"); exit(0);}2、在RHEL5下编译:[franky@franky ~]$ gcc -o helloworld -c hello.c -elf2flat原创 2009-04-27 14:21:00 · 314 阅读 · 0 评论 -
u-boot命令介绍及烧写程序实例
Printenv 打印环境变量。Uboot> printenvbaudrate=115200ipaddr=192.168.1.1ethaddr=12:34:56:78:9A:BCserverip=192.168.1.5Environment size: 80/8188 bytesSetenv 设置新的变量Uboot> setenv myboard AT91RM9200原创 2009-04-27 14:26:00 · 668 阅读 · 0 评论 -
Uboot基本命令
Basic Command TestsU-Boot provides a set of commands to operate the resources, such as RAM, FLASH, serial port, and ethernet, on the board before the kernel is executed. The below tests原创 2009-04-27 14:29:00 · 785 阅读 · 2 评论 -
修改后的stamp.c
/* * File: arch/blackfin/mach-bf533/stamp.c * Based on: arch/blackfin/mach-bf533/ezkit.c * Author: Aidan Williams * * Created: 2005 * Description: Board Info File原创 2009-04-27 14:31:00 · 528 阅读 · 0 评论 -
Linux 2.6.11 MTD驱动情景分析
最近几天为了熟悉linux的驱动开发,我选择了其MTD驱动做了一些研究。我能找到的文章中我觉得有些部分不够细致,所以我还是自己写了一部分分析,希望对别人也能有所帮助,也做为自己的一个备忘,。蓝色文字的部分是从网络上摘录的。 一个嵌入式系统经常会使用NOR flash 或NAND flash来存放bootload,内核和文件系统等等。下面是网络上找到的linux下的mtd驱动的分析:转载 2009-04-27 14:38:00 · 403 阅读 · 0 评论 -
I cannot mount JFFS2 and see "Magic bitmask 0x1985 not found" messages
http://www.linux-mtd.infradead.org/faq/jffs2.htmlI cannot mount JFFS2 and see "Magic bitmask 0x1985 not found" messagesIf you cannot mount your JFFS2 file system and you see many messages原创 2009-04-27 14:42:00 · 3190 阅读 · 0 评论 -
设置简单uboot命令
sipsys>setenv n networksipsys>setenv f run n upfs //可能需要将文件系统改名为jffs2.imgsipsys>setenv k run n upkernel原创 2009-04-27 14:45:00 · 201 阅读 · 0 评论 -
交叉编译驱动-helloworld
1:程序代码:#include #include static int hello_init(void)//被装载时调用{ printk(KERN_ALERT "Hello, world/n"); //KERN_ALERT定义了消息的优先级,只是个字符串,如,防止在某些情况下内核不输出该消息 return 0;}static v原创 2009-04-27 14:58:00 · 777 阅读 · 0 评论 -
加入自己的driver
1、在drivers下建立testzjl的文件夹,内含helloworld.c和Makefile:# drivers/testzjl/Makefile## Makefile for Helloworld. 2008/11/27 Zhang jinglei.#obj-$(CONFIG_HELLOWORLD) += helloworld.o ;2、将Kconfig写入该文件夹:#原创 2009-04-27 15:04:00 · 202 阅读 · 0 评论 -
从105更新系统
1、进入var目录;2、wget http://192.168.1.105:8010/installs/install.sh3、chmod +x install.sh4、./install.sh 会给出提示信息5、./install.sh 192.168.1.105:8010 537 nologo 6o2s 080926原创 2009-04-27 15:06:00 · 139 阅读 · 0 评论 -
加入DM9000A的驱动
5、修改:(1)arch/blackfin/mach-bf533/boards/stamp.c, line 411//#if defined(CONFIG_DM9000) &DM9000_02_device, &DM9000_01_device,//#endifline 56://#if defined(CONFIG_DM9000原创 2009-04-27 14:48:00 · 906 阅读 · 0 评论 -
高手进阶 Linux系统下MTD/CFI驱动介绍
某些Intel的FLASH芯片(如StrataFlash系列)支持多分区,也就是各个分区可以同时进行操作。应该说这是不错的特性,但是也会带来些问题。记得当初移植Linux-2.4.21,挂JFFS2文件系统的时候,经常会报一些"Magic bitmask not found"之类的错误,跟进去发现FLASH读出来的都是些0x80之类的数据,查看资料发现该款FLASH有分区原创 2009-04-27 14:39:00 · 259 阅读 · 0 评论 -
black创建库文件
Creating LibrariesWhen writing your own libraries, you need to know what format you wish to support. On Blackfin, we support a few different types of libraries:FLAT staticF原创 2009-04-27 14:24:00 · 416 阅读 · 0 评论 -
第一次烧写内核
1、打开Windows下的tftpd32.exe,设置IP为10.0.0.151;2、将uImage.initramfs从虚拟机中拷到tftpd32.300文件夹下;3、设置IP地址:sipsys>setenv ipaddr 192.168.139.159sipsys>setenv serverip 192.168.139.157sipsys>saveenvSaving Envir原创 2009-04-27 14:27:00 · 269 阅读 · 0 评论 -
对g729a和g729ab的优化结果
g729a 经过优化不经过优化前后对比 EncoderDecoderEncoderDecoderEncoderDecoder单位:MIPS21.73827.61原创 2009-04-27 14:28:00 · 933 阅读 · 0 评论 -
烧录文件系统和内核
1、烧文件系统sipsys>networksipsys>tftp 0x01000000 rootfs.jffs2dm9000 i/o: 0x20320300, id: 0x90000a46MAC: 02:80:ad:20:31:b8operating at 100M full duplex modeTFTP from server 192.168.139.157; our IP a原创 2009-04-27 14:30:00 · 316 阅读 · 0 评论 -
关于g729测试文件
src.orig/libg729.a : flat mode lib src.simgot/libg729.a : simulated GOT flat mode lib (used for development) src.fdpic/libg729.a : fdpic static lib src.fdpic/libg729.so : fdpic share原创 2009-04-27 14:36:00 · 427 阅读 · 0 评论 -
nand flash相关配置
const static struct mtd_partition partition_info[] = { { .name = "root file system", .offset = 0, .size = 4*1024*1024,//4M, 0x400000, mtdblock3 }, { .name = "file system", .offse原创 2009-04-27 14:44:00 · 341 阅读 · 0 评论 -
启动出错:BF5xx flash: Found no STM MW320D compatible device at location zero
chips/stm_mw320db.c文件需要修改, line 247 mfr_id: 0x20, dev_id: 0x57, name: "EN29LV320AB", size: 0x00400000, numeraseregions: 1, regions: { { offset: 0x000000, erasesize: 0x原创 2009-04-27 14:46:00 · 231 阅读 · 0 评论 -
DMA API
Dynamic DMA mapping using the generic device ============================================ James E.J. Bottomley James.Bottomley@HansenPartnership.com>This document describ转载 2009-04-27 14:52:00 · 378 阅读 · 0 评论 -
Real Time Clock Driver for Linux
Real Time Clock Driver for Linux ================================All PCs (even Alpha machines) have a Real Time Clock built into them.Usually they are built into the chipset of the computer, bu转载 2009-04-27 14:54:00 · 276 阅读 · 0 评论 -
Starting Kernel at = 1000后停止
系统启动到:Starting Kernel at = 1000后就会打印乱码字符然后停止,原因:晶振的频率不对,从25000000改为11059200即可。原创 2009-04-27 14:55:00 · 298 阅读 · 0 评论 -
编译06版自带的ntp出错
在头文件中注释掉://extern struct clktype clktypes[];然后在报错的ntpdc/ntpdc_ops.c中加入上面这句话。原创 2009-04-27 15:07:00 · 221 阅读 · 0 评论 -
修改nand flash的地方
文件:/linux-2.6.x/drivers/mtd/nand/bfin_nand.c const static struct mtd_partition partition_info[] = { { // modify by xxx .name = "file system",原创 2009-04-27 15:10:00 · 226 阅读 · 0 评论 -
linux下的库
Windows下的库有两种:静态库(.lib)和动态链接库(.dll)。 Linux下的库有两种:静态库(.a)和共享库(.so)。 Windows下的库与Linux下的库的异同 Linux的共享库(.so)就象Windows的动态链接库(.dll),它里面包含有很多程序常用的函数。为了方便程序开发和减少程序的冗余,程序当中就不用包含每个常用函数的拷贝,只是在需要时调用共享库中常转载 2009-04-27 15:17:00 · 447 阅读 · 0 评论 -
blackfin toolchain的区别
Blackfin Toolchain TargetsThe Blackfin toolchain supports a variety of binary executable formats and C libraries. Each format is used in different contexts, and usually has an associated t原创 2009-04-27 14:23:00 · 484 阅读 · 0 评论 -
系统启动信息
Linux version 2.6.22.18-ADI-2008R1-svn (root@ippbx) (gcc version 4.1.2 (ADI svn)) #88 Tue Aug 19 10:48:40 CST 2008Hardware Trace Off and DisabledBlackfin support (C) 2004-2007 Analog Devices, Inc.原创 2009-04-27 14:25:00 · 413 阅读 · 0 评论 -
原系统启动信息
U-Boot 1.1.6-svn (ADI-2007R1) (Sep 24 2008 - 16:33:43)CPU: ADSP BF537 Rev.: 0.2Board: ADI BF537 stamp board Support: http://blackfin.uclinux.org/Clock: VCO: 564 MHz, Core: 564 MHz, S原创 2009-04-27 14:37:00 · 292 阅读 · 0 评论 -
关于g729 make产生问题的解决方法
关于g729 make产生:bfin-linux-uclibc-ld: lpc.o: cannot link fdpic object file into non-fdpic executablebfin-linux-uclibc-ld: failed to merge target specific data of file lpc.o等错误的解决办法:编辑g729/src.fdpic/Make原创 2009-04-27 15:44:00 · 804 阅读 · 1 评论