主题 : u-boot for mini210/tiny210 (2013.01.03更新) 复制链接 | 浏览器收藏 | 打印
老老实实学嵌入式
级别: 新手上路
UID: 27569
精华: 0
发帖: 34
金钱: 170 两
威望: 34 点
贡献值: 0 点
综合积分: 68 分
注册时间: 2010-08-27
最后登录: 2013-05-02
40楼  发表于: 2013-01-04 23:07
引用楼主kasim于2011-11-02 23:22发表的 u-boot for mini210/tiny210 (2013.01.03更新) :
=== 2013/01/03 更新 ===
1.  合并u-boot v2013.01-rc2到mini210_linaro-2012.11-stable分支;
2. 支持通过USB DFU更新u-boot和kernel镜像(<8MB)(详细步骤看下面的帖子)
3. 解决无法正常启动内核镜像的问题

.......

请问到哪里可以下载?这个u-boot可以支持tiny210V2(MLC)么?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
41楼  发表于: 2013-01-05 09:32

 回 40楼(20607926) 的帖子

下载和编译步骤看1楼帖子。这个u-boot的tiny210支持是从http://www.aiothome.net/read.php?tid-17714.html导入的,我没有在tiny210v2上测试过。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 83647
精华: 0
发帖: 19
金钱: 105 两
威望: 21 点
贡献值: 0 点
综合积分: 38 分
注册时间: 2012-12-10
最后登录: 2014-04-21
42楼  发表于: 2013-01-05 16:00
nand write.yaffs2还是有问题,无法挂载文件系统
[    3.007738] s5p-tvout s5p-tvout: hpd status is cable removed
[    3.020140] DBUG_PORT must not use AFC!
[    3.020471] Freeing init memory: 1432K
mount: mounting /dev/mmcblk0p2 on /r failed: No such file or directory
1Wire touchscreen OK
/init: line 103: can't open /r/dev/console: no such file
[    3.053106] mmc0: new SD card at address e21a
[    3.053505] mmcblk0: mmc0:e21a SD01G 968 MiB
[    3.053784]  mmcblk0:
[    3.055076]  p1 p2
[    3.076164] Kernel panic - not syncing: Attempted to kill init!
[    3.076221] Backtrace:
级别: 骑士
UID: 5844
精华: 9
发帖: 64
金钱: 770 两
威望: 154 点
贡献值: 9 点
综合积分: 308 分
注册时间: 2009-05-11
最后登录: 2019-05-14
43楼  发表于: 2013-01-05 19:44

 回 41楼(kasim) 的帖子

kasim,

hello, 今天在我的tiny210 v2 板子上确认了一下uboot,下载的版本是 opencsbc-u-boot-mini210_linaro-2012.11-stable.tar.gz。
uboot 是写在 SD卡上的,没有写入FLASH。 uImage是通过 uboot 的 TFTP 从 PC 上下载到 内存的 0x21000000 位置引导的。
uboot能够加载 uImage,并且将控制权传递给 kernel,但是 kernel 启动失败,mlc nand flash initial 失败了,下面是 log:
---------------------------------------------------------------------
[    1.070440] loop: module loaded
[    1.073805] S3C NAND Driver, (c) 2008 Samsung Electronics
[    1.177572] MLC nand init failed, -19, 2012 ported by FriendlyARM http://www.arm9.net
[    1.177688] S3C NAND Driver is using hardware ECC.
[    1.177772] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)
[    1.177853] No oob scheme defined for oobsize 512
---------------------------------------------------------------------
用生成uImage的zImage,配合superboot启动的话,是ok的。不过supperboot和zImage都是在FLASH上。下面是log:
---------------------------------------------------------------------
[    0.969207] brd: module loaded
[    0.972562] loop: module loaded
[    0.973962] S3C NAND Driver, (c) 2008 Samsung Electronics
[    1.077282] MLC nand initialized, 2012 ported by FriendlyARM
[    1.077333] S3C NAND Driver is using hardware ECC.
[    1.077408] NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)
[    1.077483] Creating 5 MTD partitions on "s5pv210-nand":
[    1.079136] 0x0000000c0000-0x000000100000 : "misc"
[    1.085026] 0x000000100000-0x000000600000 : "recovery"
[    1.090807] 0x000000600000-0x000000b00000 : "kernel"
[    1.095573] 0x000000b00000-0x000000e00000 : "ramdisk"
[    1.100315] 0x000000e00000-0x000080000000 : "system"
---------------------------------------------------------------------
因为 mlc 的 nand flash 没有开源,我没有调试确认。你能分析一下是否有uboot影响到了kernel的nand flash 启动呢?
[ 此帖被happyzlz在2013-01-05 19:59重新编辑 ]
级别: 骑士
UID: 5844
精华: 9
发帖: 64
金钱: 770 两
威望: 154 点
贡献值: 9 点
综合积分: 308 分
注册时间: 2009-05-11
最后登录: 2019-05-14
44楼  发表于: 2013-01-06 21:48

 回 43楼(happyzlz) 的帖子

kasim,

hello, 昨天给你的回复里,关于uboot启动linux的问题,今天已经解决了。 你修改的 uboot 可以在 tiny210 v2 开发板上通过TFTP成功引导3.0.8的内核,并且内核也能够启动成功。 NAND FLASH 在uboot启动的时候,识别成2G也是正确的,但我没有确认NAND FLASH 的写操作。

昨天kernel启动跑的NAND FLASH 初始化失败的问题,可能是因为 gcc 是 4.7 版本比较高,字节对齐方面兼容性有些问题。将 kernel 的 Makefile 的 KBUILD_CFLAGS 添加一个参数 -mno-unaligned-access 就可以了。
具体请参考。
http://seabright.co.nz/2012/06/11/kernel-not-booting-with-linaro-gcc/
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
45楼  发表于: 2013-01-06 22:16

 回 44楼(happyzlz) 的帖子

谢谢你提供的信息!
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
46楼  发表于: 2013-01-06 22:18

 回 42楼(oxobbx) 的帖子

mount: mounting /dev/mmcblk0p2 on /r failed: No such file or directory

看起来是从尝试从SD卡而不是NAND FLASH上挂载文件系统了
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 16060
精华: 0
发帖: 87
金钱: 435 两
威望: 87 点
贡献值: 0 点
综合积分: 174 分
注册时间: 2010-03-13
最后登录: 2018-02-08
47楼  发表于: 2013-01-08 12:06
为什么我下载的opencsbc-u-boot-v2013.01-rc2.tar.gz中Makefile里面根本没有tiny210_config的选项呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
48楼  发表于: 2013-01-08 12:26

 回 47楼(zb211208) 的帖子

现在新的board的定义都放在boards.cfg里了,不再需要修改Makefile
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 16060
精华: 0
发帖: 87
金钱: 435 两
威望: 87 点
贡献值: 0 点
综合积分: 174 分
注册时间: 2010-03-13
最后登录: 2018-02-08
49楼  发表于: 2013-01-08 13:06
不好意思,好像我下载错了!现在下载的版本可以了!顺便请教下 能不能支持4G的MLC呢?K9GBG08U0A-SCB0