原创 我的STM32核心板启动uClinux成功了

2013-1-23 15:47 9940 24 32 分类: MCU/ 嵌入式

板 子是我自己做的,外扩了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 [411fc231] revision 1 (ARMv?(11)M)
Machine: STM3210E-EVAL
SRAM Config: bank[0] @ 0x68000000 (size: 4096KB) - bank[1] @ 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 [ttyS0] 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

/ #
 

20130123154705542.jpg

20130123154733792.jpg

文章评论8条评论)

登录后参与讨论

用户1708715 2015-6-22 13:28

楼主下功夫了,我们都应该向楼主学习,提升自身能力及中国工程师整体水平。

用户1731397 2015-4-14 17:50

很不错啊啊

用户377235 2014-12-31 10:20

那个移植应该还有点问题吧,有一段总是显示在一目录下不能注册相同的名字,希望可以交流交流,1151057728@qq.com

用户412121 2013-3-5 13:39

我的开发环境是linux虚拟机FC4(fedora core 4),安装codesourcery的arm工具链arm-2011.03-46-arm-uclinuxeabi.bin,在网上搜搜就可以下载到,免费的。

用户377235 2013-2-25 22:04

你好 我想问下 你的开发环境是如何搭建的呢????谢谢了!

用户377235 2013-1-24 22:46

很不错呦

用户377235 2013-1-24 22:45

很不错呦

用户1627145 2013-1-24 21:11

恭喜啊

用户161698 2008-7-23 12:49

是,现在因为没有把握它AD的特性,一直没有敢改变原来产品所用的芯片。 呵呵,公司在别的片子上有技术积累,不是那么轻易改变方案啊

用户391779 2008-7-17 10:54

用在电力系统中的吧
相关推荐阅读
用户412121 2015-09-11 09:59
我今年的作品:智能家居物联网实验板(STM32+ESP8266)
去年就开始关注物联网和智能家居了。一开始看到不少用路由器方案做的智能插座,感觉太浪费芯片资源了。直到有一天无意中看到了ESP8266,感觉这是一个适合单片机的wifi解决方案,应该可以做不少好玩的...
用户412121 2013-10-29 11:41
STM32迷你核心板运行ST emWin + FreeRTOS成功
新板子做好后受到了很多人的关注, 比如板上有哪些资源,有哪些例程等等。有的人还会问是否能外接LCD等等,对于我这些,我的板子都预留了接口肯定是没有问题的。但是口说无凭还是实实在在 的测一次才能令人信服...
用户412121 2013-10-15 14:11
新版STM32迷你核心板做好了
之前也跟大家多多少少介绍过了,这次做的新版就是对前一版不满意地方的小修补(比如印字,焊盘尺寸等等),另外对外扩IO做了微调,可以保证F407的每 种外设都可以扩展(之前是按照F103设计的兼容407但...
用户412121 2013-09-22 22:58
在STM32上运行FreeRTOS操作系统(基于STM32 V3.5.0固件库)
很久以前就想实用FreeRTOS了,优点就不必说了,网上可以搜到一大堆它和ucos-ii以及其他几种嵌入式操作系统的比较。最重要的一点它是免费的,不想ucos那样商业使用需要收费。只是之前本人比较忙而...
用户412121 2013-08-13 11:00
华美A5无线3G路由器升级内存,flash,刷openwrt成功
Hame A5(华美A5)号称最小的3G无线路由器,可惜只有16M SDRAM, 4M FLASH虽然理论上可以刷openwrt,但是限于硬件资源太少运行起来很卡,到最后几乎死机。 于是我尝试给...
用户412121 2013-05-08 17:29
我的STM32核心板升级到F4了(目前可以运行u-boot)
年初做的这个可以跑uCLinux的STM32核心板用的是STM32F103ZET6(http://bbs.ednchina.com/BLOG_ARTICLE_3010701.HTM),当时已经考虑...
我要评论
8
24
关闭 站长推荐上一条 /2 下一条