htjgdw 发表于 2013-1-22 10:34:29

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

本帖最后由 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 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

/ #

xi_liang 发表于 2013-1-22 10:36:29

顶下,4M PSRAM可以做很多事情了

Excellence 发表于 2013-1-22 10:39:18

顶。
不错。

zgxcom123 发表于 2013-1-22 10:43:54

这个BGA太霸气了!!!

手工可以焊接吗?

htjgdw 发表于 2013-1-22 10:47:30

zgxcom123 发表于 2013-1-22 10:43 static/image/common/back.gif
这个BGA太霸气了!!!

手工可以焊接吗?

可以手工焊接的。

zgxcom123 发表于 2013-1-22 10:52:25

htjgdw 发表于 2013-1-22 10:47 static/image/common/back.gif
可以手工焊接的。



是这种封装的吗?
感觉LZ的layout功底很强悍……………………

sgzzour 发表于 2013-1-22 10:59:57

楼主的焊接倒是灰常霸气。。。

lyz1900 发表于 2013-1-22 11:39:57

楼主应该直接上F407啊。。那个配置到楼主这个水平可以直接替代arm9了

htjgdw 发表于 2013-1-22 11:40:29

zgxcom123 发表于 2013-1-22 10:52 static/image/common/back.gif
是这种封装的吗?
感觉LZ的layout功底很强悍……………………

您真是内行。

zgxcom123 发表于 2013-1-22 11:49:55

htjgdw 发表于 2013-1-22 11:40 static/image/common/back.gif
您真是内行。

=,=有时候觉得taobao这玩意确实好用……………………

overheat 发表于 2013-1-22 11:51:59

楼主有没有研究过不外扩sram能不能跑uclinux?

另外弱弱的问一句cortex-m3的这套系统比arm9的方案好在哪里?更低成本吗?

ShawnLinson 发表于 2013-1-22 11:56:11

焊接是霸气侧漏啊!!!

danju 发表于 2013-1-22 12:04:56

大容量pSRAM(4M Byte),大概的价格是多少呀?

honami520 发表于 2013-1-22 12:35:12

牛叉啊,一直想知道怎么焊接BGA

htjgdw 发表于 2013-1-22 12:53:28

手工焊接BGA的话就是热风枪了,就是焊接时得仔细。

error_dan 发表于 2013-1-22 12:57:45

牛.            

t2008101037 发表于 2013-1-22 13:00:09

很霸气,,,,,,,,,,,,,,

hyz_avr 发表于 2013-1-22 13:01:41

danju 发表于 2013-1-22 12:04 static/image/common/back.gif
大容量pSRAM(4M Byte),大概的价格是多少呀?

同问.

liuhengpeng123 发表于 2013-1-22 13:16:31

楼主强悍

liangws201 发表于 2013-1-22 13:25:44

{:victory:} uclinux

jordonwu 发表于 2013-1-22 13:57:02

uclinux启动后,还剩多少资源呢(RAM)?

htjgdw 发表于 2013-1-22 14:00:31

jordonwu 发表于 2013-1-22 13:57 static/image/common/back.gif
uclinux启动后,还剩多少资源呢(RAM)?

还有3M多。


/ # free
            total         used         free       shared      buffers
Mem:         4060          624         3436            0            0
/ #

tomyoct 发表于 2013-1-22 14:36:46

板子不错,有卖么?

channe 发表于 2013-1-22 15:00:13

很好,很强大。

jordonwu 发表于 2013-1-22 15:02:41

htjgdw 发表于 2013-1-22 14:00 static/image/common/back.gif
还有3M多。




有配套底板吗?有兴趣搞块玩玩

htjgdw 发表于 2013-1-22 15:23:47

本帖最后由 htjgdw 于 2013-1-22 15:28 编辑

底板还没有,况且人们的需求真的是千差万别,STM32有很多功能是复用IO的,所以底板还是根据用户自己的需要专门设计比较好。
这也是我先做核心板的原因。

angler12 发表于 2013-1-22 17:45:46

楼主的有什么好的做锡球的工具吗?

richards 发表于 2013-1-22 17:58:42

MCP    有感觉哦   具体型号有木有呢?

cf88 发表于 2013-1-22 20:23:20

有才,有才,佩服佩服!

microcreat 发表于 2013-1-22 21:45:40

请问这个psram多少钱?什么型号?

bbosliyang 发表于 2013-1-22 21:47:51

LZ,这是上次很相中你的核心板的那个ID,记得上次你说这块核心板试运UCLinux成功后会考虑出售核心板,现在俺是终于等到了,怎么样,还有打算出售么现在?

htjgdw 发表于 2013-1-22 22:11:10

现在uClinux是成功启动了,但是启动信息里有错误。我觉得怎么也得把这些bug去掉才好吧。

myouravr 发表于 2013-1-22 23:18:54

同求PSRAM的信号和价格

oped001 发表于 2013-1-23 09:37:10

lyz1900 发表于 2013-1-22 11:39
楼主应该直接上F407啊。。那个配置到楼主这个水平可以直接替代arm9了

F4的cpu没有cache,速度远不如ARM9。。。

htjgdw 发表于 2013-1-23 10:00:05

本帖最后由 htjgdw 于 2013-1-23 10:09 编辑

oped001 发表于 2013-1-23 09:37 static/image/common/back.gif
F4的cpu没有cache,速度远不如ARM9。。。

是的,据我所知cortex-m的mcu绝大多数都没有cache,速度肯定无法与ARM9相比了。
STM32和ARM9相比唯一的亮点就是大大降低硬件的复杂度,降低了跑linux的门槛。

kangbazi2012 发表于 2013-1-23 10:35:18

弱弱的请教一下,UcLinux和Linux最大的区别在哪里呢?

bbosliyang 发表于 2013-1-24 09:54:53

htjgdw 发表于 2013-1-22 22:11 static/image/common/back.gif
现在uClinux是成功启动了,但是启动信息里有错误。我觉得怎么也得把这些bug去掉才好吧。 ...

这样子啊,那也行,继续等你,希望能能快点完成。不过软件上的跑系统,和硬件上的核心板,有什么直接关系么?资源够跑得好迟早的事吧~~~我只是想买LZ的核心板而已~~~哈哈

htjgdw 发表于 2013-1-24 12:21:59

bbosliyang 发表于 2013-1-24 09:54 static/image/common/back.gif
这样子啊,那也行,继续等你,希望能能快点完成。不过软件上的跑系统,和硬件上的核心板,有什么直接关系 ...

好的,等我完善了硬件测试程序后,测好一块核心板通知你。

javabean 发表于 2013-1-24 12:52:08

不错啊,PCB是4层板吗?
如果整个核心板大概多少钱呢?STM32可以跑linux,很多事情就省事了

bbosliyang 发表于 2013-1-25 00:08:02

htjgdw 发表于 2013-1-24 12:21 static/image/common/back.gif
好的,等我完善了硬件测试程序后,测好一块核心板通知你。

好的,你研究吧,敬候佳音

ksws0482846 发表于 2013-1-31 20:49:05

htjgdw 发表于 2013-1-22 10:47 static/image/common/back.gif
可以手工焊接的。

啊,什么是BGA,看上去好像是QFN的

kroah 发表于 2013-2-2 04:03:50

楼主的bootloader是什么思路?

htjgdw 发表于 2013-2-2 23:50:29

引导linux系统都需要bootloader的。你可以把它与pc的bios画等号

feixiang1990 发表于 2013-2-3 00:01:54

虽然还没学到 但是感觉LZ还是很强大的样子 顶

htjgdw 发表于 2013-2-20 09:57:16

楼上过奖了,谢谢!

szszjdb 发表于 2013-2-21 11:40:13

这么小体积,楼主太棒了!用到BGA,是4层板吗?
另外,BGA芯片是什么型号呢?

seazhui 发表于 2013-2-21 11:54:20

kangbazi2012 发表于 2013-1-23 10:35 static/image/common/back.gif
弱弱的请教一下,UcLinux和Linux最大的区别在哪里呢?

uCLinux主要是针对目标处理器没有存储管理单元MMU(Memory Management Unit)的嵌入式系统而设计的
----转自度娘

mage99 发表于 2013-2-21 12:56:10

关注中~

htjgdw 发表于 2013-2-21 14:19:51

szszjdb 发表于 2013-2-21 11:40 static/image/common/back.gif
这么小体积,楼主太棒了!用到BGA,是4层板吗?
另外,BGA芯片是什么型号呢? ...

如果是4层的就没什么难度了,不是4层的。

htjgdw 发表于 2013-2-21 14:22:22

seazhui 发表于 2013-2-21 11:54 static/image/common/back.gif
uCLinux主要是针对目标处理器没有存储管理单元MMU(Memory Management Unit)的嵌入式系统而设计的
---- ...

前些年S3C44B0流行的时候,uCLinux曾经活跃过一段时间。后来随着Cortex-M3代替ARM7, uClinux也就沉寂了,原因是芯片厂商推出的带外部总线的MCU少了,没有大一点的存储器uClinux是跑不了的。

zishiquan 发表于 2013-5-2 11:03:17

板卖吗联系我

yangliu212 发表于 2013-5-2 12:07:01

不错不错,想要想要。

htjgdw 发表于 2013-5-6 10:03:57

zishiquan 发表于 2013-5-2 11:03 static/image/common/back.gif
板卖吗联系我

联系我请看我的签名。

htjgdw 发表于 2013-5-6 10:04:18

yangliu212 发表于 2013-5-2 12:07 static/image/common/back.gif
不错不错,想要想要。

联系我请看我的签名。

javabean 发表于 2013-5-6 10:52:33

不知道速度咋样啊,特别是接入以太网以后

htjgdw 发表于 2013-5-6 14:32:54

javabean 发表于 2013-5-6 10:52 static/image/common/back.gif
不知道速度咋样啊,特别是接入以太网以后

这需要做以太网的扩展板(一般用DM9000A)然后再移植驱动测试才能知道。。。

liangbmw 发表于 2013-12-25 17:26:19

手工焊接BGA。。pitch多大呀

max-men 发表于 2013-12-25 20:26:39

按键在背面?

chaplin1999 发表于 2013-12-25 20:29:53

MCP型号是什么,楼主说下尼

闷鱼 发表于 2014-3-19 12:54:37

htjgdw 发表于 2013-1-22 15:23
底板还没有,况且人们的需求真的是千差万别,STM32有很多功能是复用IO的,所以底板还是根据用户自己的需要 ...

对于如何搭建stm32开发环境 很有兴趣 还没成功

楼主可否指点

bruce_helen 发表于 2014-3-19 14:14:38

linux有没有学习的必要?还是自己搭建一套从头来?

htjgdw 发表于 2014-3-20 22:15:55

闷鱼 发表于 2014-3-19 12:54
对于如何搭建stm32开发环境 很有兴趣 还没成功

楼主可否指点

ST官方有个PDF文档,介绍了如何搭建uclinux的编译环境。我就是按照那个文档做的,你可以去ST的网站找到的。

闷鱼 发表于 2014-3-21 03:14:44

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

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

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

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


我不懂是怎么回事

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

http://www.amobbs.com/forum.php?mod=viewthread&tid=5573095&page=1#pid7394420

小白 非常感谢

htjgdw 发表于 2014-3-24 22:16:18

闷鱼 发表于 2014-3-21 03:14
请问您的内核版本是多少的

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


谈不上指点。我下载的STM32F103的uclinux内核版本没这么新,2.6.x,具体的我不记得了。

syj0925 发表于 2016-4-21 14:49:31

求教,stm32外扩flash,一般是用来存放参数文件等,不知道可以用来作代码空间吗???

htjgdw 发表于 2016-4-25 16:20:24

syj0925 发表于 2016-4-21 14:49
求教,stm32外扩flash,一般是用来存放参数文件等,不知道可以用来作代码空间吗??? ...

可以的。STM32通过FSMC外接NOR FLASH就可以做代码空间执行程序。

xiaowenshao 发表于 2016-4-26 14:36:54

javabean 发表于 2013-1-24 12:52
不错啊,PCB是4层板吗?
如果整个核心板大概多少钱呢?STM32可以跑linux,很多事情就省事了 ...

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

weidadejang 发表于 2017-1-18 20:20:25

有才!佩服
页: [1]
查看完整版本: 我的STM32核心板启动uClinux成功了