QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: CoryXie

U-boot for lumit4510 released.

[复制链接]
 楼主| 发表于 2005-10-10 11:25:59 | 显示全部楼层
你用最新版吧,有些更新。在
http://159.226.40.150/ftp_root/upload/lumit/CoryXie/NewKernelPorting/tools/
下面。如果是lumit4510板,应该直接烧写压缩包解开后的u-boot-1.1.3下面的u-boot.bin到你的Flash,mkimage文件也在那里!
很不好意思,一直没有时间把整个过程写出来,让大家只好自己去摸索!等周末我把手头上的事情做完,来写点完整的文档。
回复

使用道具 举报

发表于 2005-10-10 13:49:28 | 显示全部楼层
好的,多谢,我先试试看  
回复

使用道具 举报

发表于 2005-10-10 13:50:43 | 显示全部楼层
你有没有做过4510的ftp服务器阿?高手,在uclinux下
回复

使用道具 举报

 楼主| 发表于 2005-10-10 14:19:40 | 显示全部楼层
那是应用层的东西,Linux本来就有,uClinux肯定也有,只是你需要配置一下而已。
回复

使用道具 举报

发表于 2005-10-10 14:26:41 | 显示全部楼层
多谢,我再去一试!   
回复

使用道具 举报

发表于 2005-10-10 16:44:27 | 显示全部楼层
老大,我用你的mkimage工具转换了uClinux-dist/images/image.bin
命令如下:
mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000\
-n "linux 2.4.x" -d images/image.bin images/uImage.bin
通过tftp烧写还有点问题:
lumit4510 # tftp 0x8000 uImage.bin
TFTP from server 192.168.1.2; our IP address is 192.168.1.5
Filename 'uImage.bin'.
Load address: 0x8000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############
done
Bytes transferred = 3066756 (2ecb84 hex)
lumit4510 # bootm
## Booting image at 00008000 ...
   Image Name:   linux 2.4.x
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3066692 Bytes =  2.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK

Starting kernel ...

data abort
pc : [<011f0034>]          lr : [<011f0030>]
sp : 007acbd4  ip : 007acbc4     fp : 007acc10
r10: 007aefb8  r9 : 007f1404     r8 : 007aefdc
r7 : 00000000  r6 : 007f1404     r5 : 00000000  r4 : 00000000
r3 : 00008000  r2 : fffffdbd     r1 : 00000000  r0 : 56190527
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...



U-Boot 1.1.3 (Oct  2 2005 - 16:12:09)

U-Boot code: 007D0000 -> 007E83E0  BSS: -> 007F2634
IRQ Stack: 007aef7c
FIQ Stack: 007adf7c
RAM Configuration:
Bank #0: 00000000 16 MB
Flash:  4 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
lumit4510 #
是不是装载的地址不合适?先谢了!
回复

使用道具 举报

发表于 2005-10-10 17:30:05 | 显示全部楼层
setenv,saveenv一般用来设置内核启动参数。都需要设哪些参数阿?
回复

使用道具 举报

 楼主| 发表于 2005-10-10 17:49:28 | 显示全部楼层
Data Size: 3066692 Bytes = 2.9 MB
你的内核怎么那么大?即使用ROMFS也没有那么大啊?
主要设置bootargs
回复

使用道具 举报

发表于 2005-10-10 19:06:40 | 显示全部楼层
对!那个文件有问题,我在找原因。下载了你的uImage.bin就可以正常启动。你的那个mkimage工具是怎么得到的?tools下有mkimage.c,Makefile和Makefile.win32,好像不能直接用make命令。
回复

使用道具 举报

发表于 2005-10-10 19:23:57 | 显示全部楼层
image10.ram  image.rom  mkimage  romfs.img
[root@localhost images]# ./mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n "linux 2.4.x" -d image.bin  uImage.bin
./mkimage: Can't open image.bin: No such file or directory
[root@localhost images]# ./mkimage -A arm -O linux -T kernel -C none -a 0x8000 -e 0x8000 -n "linux 2.4.x" -d image10.ram  uImage.bin
Image Name:   linux 2.4.x
Created:      Mon Oct 10 19:22:16 2005
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    1682712 Bytes = 1643.27 kB = 1.60 MB
Load Address: 0x00008000
Entry Point:  0x00008000
  错误出在哪了?
回复

使用道具 举报

发表于 2005-10-10 19:26:00 | 显示全部楼层
这个东西,好像没有压缩? 在我的内核目录下,我只拷贝了mkimage这一个应用软件,是不是还需要别的软件选项?  
回复

使用道具 举报

发表于 2005-10-11 09:47:54 | 显示全部楼层
那是你没选压缩选项,你运行mkimage命令,系统会给你提示
回复

使用道具 举报

发表于 2005-10-11 17:51:39 | 显示全部楼层
Data Size: 1682712 Bytes = 1643.27 kB = 1.60 MB 这个数字是啥意思,
回复

使用道具 举报

发表于 2005-10-13 08:32:49 | 显示全部楼层
CoryXie,你运行mkimage命令格式和参数是那些,都是什么意思了?
回复

使用道具 举报

发表于 2005-10-14 18:02:30 | 显示全部楼层
老大,能说一下在linux下通过tftp传输uImage.bin的过程吗?在linux下编译完再切换到windows下很麻烦。下面是我第一次传输的过程,有不对的地方请大家补充一下(rh9):
1。下载tftp-server-0.32-4.i386.rpm,并安装rpm -ivh tftp-server-0.32-4.i386.rpm;
2.在终端下输入setup,在统服务下选择tftp服务。最后选择run tools退出;
3 在终端下输入server xinetd restart;
4 修改PC机的IP地址,ifconfig eth0 192.168.1.2,重起PC;
5 拷贝uImage.bin到/tftpboot下;
6 启动minicom,板子加电引导uboot.
结果uImage.bin没有下载成功。先谢过了!:):)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 12:42 , Processed in 0.054451 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表