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

2020-01-01 17:38发布

本帖最后由 htjgdw 于 2013-1-22 10:36 编辑

板子是我自己做的,外扩了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

/ #

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
67条回答
htjgdw
1楼-- · 2020-01-09 18:00
闷鱼 发表于 2014-3-19 12:54
对于如何搭建stm32开发环境 很有兴趣 还没成功

楼主可否指点

ST官方有个PDF文档,介绍了如何搭建uclinux的编译环境。我就是按照那个文档做的,你可以去ST的网站找到的。
闷鱼
2楼-- · 2020-01-09 21:15
htjgdw 发表于 2014-3-20 22:15
ST官方有个PDF文档,介绍了如何搭建uclinux的编译环境。我就是按照那个文档做的,你可以去ST的网站找到的 ...

请问您的内核版本是多少的  

我的是 3.11 就一直不成功功过  

最后打path 的时候 老是在那里循环提示  


我不懂是怎么回事

具体描述 已经在开贴求助了 希望楼主有时间帮忙瞅一下

http://www.amobbs.com/forum.php? ... p;page=1#pid7394420

小白 非常感谢
htjgdw
3楼-- · 2020-01-09 22:12
闷鱼 发表于 2014-3-21 03:14
请问您的内核版本是多少的  

我的是 3.11 就一直不成功功过  

谈不上指点。我下载的STM32F103的uclinux内核版本没这么新,2.6.x,具体的我不记得了。
syj0925
4楼-- · 2020-01-10 00:03
 精彩回答 2  元偷偷看……
htjgdw
5楼-- · 2020-01-10 00:09
syj0925 发表于 2016-4-21 14:49
求教,stm32外扩flash,一般是用来存放参数文件等,不知道可以用来作代码空间吗??? ...

可以的。STM32通过FSMC外接NOR FLASH就可以做代码空间执行程序。
xiaowenshao
6楼-- · 2020-01-10 03:24
javabean 发表于 2013-1-24 12:52
不错啊,PCB是4层板吗?
如果整个核心板大概多少钱呢?STM32可以跑linux,很多事情就省事了 ...

能省哪些事呀,很多驱动都不完善

一周热门 更多>