tag 标签: uclinux

相关博文
  • 热度 18
    2013-4-27 15:28
    1244 次阅读|
    0 个评论
    是时候发布Blackfin上的ucosII详解了! 详细见:http://www.openadsp.com/bbs/topic.asp?id=1470boardid=3tb=1
  • 热度 18
    2013-3-7 09:52
    4755 次阅读|
    0 个评论
    上周引导uClinux kernel启动成功确实让人兴奋了一下。 http://bbs.ednchina.com/BLOG_ARTICLE_3010701.HTM 但是光有内核和根文件系统(只读的)还是不够的,一个linux系统至少需要一个可读写的文件系统和与外界交互的通信接口才有实用价值要不然只能作为Demo演示。这周经过努力终于突破了这两个难点,我的uClinux系统成功加载了可读写的jffs2分区(可存取文件,可执行程序),在根文件件系统里集成了rx命令实现了从PC机下载文件到jffs2分区。 1. JFFS2文件系统加载    在ST官方提供的源码包中编译uClinux只能生成一个只读的rootfs.img.bin根文件系统镜像,里面放置的是事先配置好的内容。为了增加jffs2分区需要做这几件事:    一、在linux2.6.x/drivers/mtd/map目录下找到flash的分区设置文件,然后根据自己的需要追加一些分区,最后编译;    二、使用mkfs.jffs2这个工具制作生成一个jffs2分区镜像;    三、将上面生成的image文件烧写到STM32外扩的NOR FLASH里面,启动linux后挂载就可以了; 2. rx命令    这是uClinux包中busybox下面的一个小程序,可以用它来通过串口下载文件到开发板上,有了rx就可以让STM32核心板在没有网络的环境下与PC机交换文件了。 完成了这两个重要的工作,以后使用这个平台的朋友就可以转向驱动和应用程序的开发了。 1 小时前 上传 下载附件 (44.7 KB) 我自己写的bootloader     1 小时前 上传 下载附件 (59.31 KB) 启动uClinux     1 小时前 上传 下载附件 (67.03 KB) 启动完成,ls目录(jffs2挂载在tmp下)     1 小时前 上传 下载附件 (66.37 KB) 执行hello world程序     1 小时前 上传 下载附件 (58.9 KB) 创建文件夹rx_data     1 小时前 上传 下载附件 (55.61 KB) 使用rx命令接收一个文件     1 小时前 上传 下载附件 (77.07 KB) 显示接收文件的内容     uClinux启动视频:http://v.youku.com/v_show/id_XNTIzMTMzMTE2.html  
  • 热度 32
    2013-1-23 15:47
    9944 次阅读|
    8 个评论
    板 子是我自己做的,外扩了flash和大容量pSRAM(4M Byte)。FSMC的片选按照ST3210E-EVAL设计的,使用了ST官方发布的uClinux针对我的板子进行修改。只是苦于ST提供的 bootloader没有源码,为了启动我修改后的uClinux费了不少功夫,最后分析上网搜索linux的启动步骤,自己写了一个 bootloader,顺利的启动了uClinux。虽然还有些小问题,别的不说了先上启动信息(后面有板子的照片) Linux version 2.6.26-uc0 (root@localhost.localdomain) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-46) ) #18 Mon Jan 21 14:36:20 CST 2013 CPU: ARMv7-M Processor revision 1 (ARMv?(11)M) Machine: STM3210E-EVAL SRAM Config: bank @ 0x68000000 (size: 4096KB) - bank @ 0x20000000 (size: 64KB). Ignoring unrecognised tag 0x00000000 Ignoring unrecognised tag 0x00000000 Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 1016 Kernel command line: noinitrd root=mtd1 rootfstype=jffs2 init=/linuxrc console=ttyS0 PID hash table entries: 16 (order: 4, 64 bytes) console enabled Dentry cache hash table entries: 1024 (order: 0, 4096 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory: 4MB 0MB = 4MB total Memory: 4052KB available (492K code, 56K data, 8K init) Mount-cache hash table entries: 512 JFFS2 version 2.2. 漏 2001-2006 Red Hat, Inc. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. kobject_add_internal failed for P/ with -EEXIST, don't try to register things with the same name in the same directory. simple-gpio: now handling 16 GPIOs: 0 - 15 ttyS0 at MMIO 0x40013800 (irq = 37) is a STM32 USART1 Port Probed and found the STM3210E-EVAL NOR flash chip Creating 4 MTD partitions on "S29GL064N NOR FLASH": 0x00000000-0x00100000 : "Kernel raw data" 0x00100000-0x00160000 : "rootfs" 0x00160000-0x00190000 : "rawdata" 0x00190000-0x001c0000 : "cramfs_partition" rtc-stm3210e_eval rtc-stm3210e_eval.0: rtc core: registered rtc-stm3210e_eval as rtc0 rtc-stm3210e_eval rtc-stm3210e_eval.0: setting system clock to 1970-01-01 00:00:00 UTC (0) VFS: Mounted root (jffs2 filesystem) readonly. Bad page state in process 'swapper' page:68001040 flags:0x00000000 mapping:00000000 mapcount:1 count:0 Trying to fix it up, but a reboot is needed Backtrace: Bad page state in process 'swapper' page:68001060 flags:0x00000000 mapping:00000000 mapcount:1 count:0 Trying to fix it up, but a reboot is needed Backtrace: Freeing init memory: 8K Mounting proc fs Mounting sysfs Welcome to        ____ _  _       /  __| ||_| _   _| |  | | _ ___   _   _ _    _ | | | | |  | || |  _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/    \ | ___ \____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ http://www.st.com/stm32 / #  
相关资源