QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: CoryXie

U-boot for lumit4510 released.

[复制链接]
 楼主| 发表于 2005-9-28 14:56:14 | 显示全部楼层
进入/u-boot-1.1.3/就可以使用
#make lumit4510_config
#make
来生成u-boot.bin等。
然后用Flash烧写工具将u-boot.bin烧写到lumit4510的NOR flash中。
回复

使用道具 举报

发表于 2005-9-28 15:04:22 | 显示全部楼层
<root@localhost u-boot-1.1.3># make lumit4510_config之后出现提示信息:
Configuring for lumit4510 board...
rm:无法删除 'asm':是一个目录
make:***[lumit4510_config] Error
这是什么原因?
回复

使用道具 举报

 楼主| 发表于 2005-9-28 15:23:29 | 显示全部楼层
我还没遇到过这个问题呢!你下载的源码包是我已经编译了一遍的。你试试先
#make clean
再用上面的命令。
==============================
其实由于我已经用
#make lumit4510_config
做了配置,你直接用
#make
就可以了,要不你直接把我已经编译好的u-boot.bin用FLASH烧写工具烧进板子得了
回复

使用道具 举报

发表于 2005-9-28 15:38:09 | 显示全部楼层
楼上的,怎么问题全让我朋见了
[root@localhost u-boot-1.1.3]# make clean
find . -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o'  -o -name '*.a'  \) -print \
| xargs rm -f
rm -f examples/hello_world examples/timer \
      examples/eepro100_eeprom examples/sched \
      examples/mem_to_mem_idma2intr examples/82559_eeprom \
      examples/test_burst
rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
rm -f tools/mpc86x_clk tools/ncb
rm -f tools/easylogo/easylogo tools/bmp_logo
rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
rm -f tools/env/fw_printenv tools/env/fw_setenv
rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
rm -f board/trab/trab_fkt board/voiceblue/eeprom
[root@localhost u-boot-1.1.3]# make lumit4510_config
Configuring for lumit4510 board...
rm: 无法删除‘asm’: 是一个目录
make: *** [lumit4510_config] Error 1
[root@localhost u-boot-1.1.3]# make
System not configured - see README
make: *** [all] Error 1
[root@localhost u-boot-1.1.3]# make lumit4510_config
Configuring for lumit4510 board...
rm: 无法删除‘asm’: 是一个目录
make: *** [lumit4510_config] Error 1
[root@localhost u-boot-1.1.3]# make clean
find . -type f \
\( -name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*.o'  -o -name '*.a'  \) -print \
| xargs rm -f
rm -f examples/hello_world examples/timer \
      examples/eepro100_eeprom examples/sched \
      examples/mem_to_mem_idma2intr examples/82559_eeprom \
      examples/test_burst
rm -f tools/img2srec tools/mkimage tools/envcrc tools/gen_eth_addr
rm -f tools/mpc86x_clk tools/ncb
rm -f tools/easylogo/easylogo tools/bmp_logo
rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
rm -f tools/env/fw_printenv tools/env/fw_setenv
rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
rm -f board/trab/trab_fkt board/voiceblue/eeprom
[root@localhost u-boot-1.1.3]# make lumit4510_config
Configuring for lumit4510 board...
rm: 无法删除‘asm’: 是一个目录
make: *** [lumit4510_config] Error 1
[root@localhost u-boot-1.1.3]# make
System not configured - see README
make: *** [all] Error 1
[root@localhost u-boot-1.1.3]#
回复

使用道具 举报

 楼主| 发表于 2005-9-28 15:48:41 | 显示全部楼层
真没办法,也许是我打包有问题。今晚回去我再试试。你先烧一下试试吧!
回复

使用道具 举报

发表于 2005-9-28 16:01:18 | 显示全部楼层
麻烦你了
回复

使用道具 举报

 楼主| 发表于 2005-9-28 21:10:53 | 显示全部楼层
我刚才在家下载下来编译了,没有上面你出现的问题,请你再检查一下你的主机环境.
需要有lumit网站上的交叉编译环境.我用的是Red Hat 9.
回复

使用道具 举报

发表于 2005-9-28 22:43:44 | 显示全部楼层
CoryXie,你现在的u-boot已经完成了那些功能了?下载内核是不是需要一个tftp服务器阿?
回复

使用道具 举报

发表于 2005-9-28 22:49:30 | 显示全部楼层
所有相关的源代码,你都看了吗?还是只做一些有针对性地简单的修改阿?呵。。也不知道您做啥项目,但感觉你将来肯定能成为大牛人
回复

使用道具 举报

 楼主| 发表于 2005-9-28 23:55:15 | 显示全部楼层
太过奖了!!当然,为了移植,我是看了一部分代码,但是没有全部看,因为和移植相关的就那么几处,而且还有高人前辈已经做好了的.我也就是玩一下而已,以前在学校做Xsale PXA255,那才爽.我一个同学毕业设计就是搞bootloader,当时u-boot其实已经有人移植到我们那个Sitsang板子上了.目前,u-boot for lumit4510 已经可以做到如下一些事情:
1.将uClinux kernerl image 烧写到flash中,并自动运行.通过网络的tftp,这个和版主limingth老大的tftp1.6.0正好相反,u-boot在主机上用的是tftp-server,u-boot自己有tftp-client来支持.当然,u-boot还有好几种其他的网络启动方式,例如bootp,nfs等,应该都已经能用.
2.不好一一说了,我用help看了下,下面的命令基本上都可以用.不过我还没有时间去一一试用.(我甚至还用u-boot自己把自己更新了一次.)
?       - alias for 'help'
autoscr - run script from memory
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
echo    - echo args to console
erase   - erase FLASH memory
flinfo  - print FLASH memory information
go      - start application at address 'addr'
help    - print online help
iminfo  - print header information for application image
imls    - list all images found in flash
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
sleep   - delay execution for some time
tftpboot- boot image via network using TFTP protocol
version - print monitor version
我有机会把我用的命令的整个过程保存下来,贴到论坛上,大家原意的话,就尝试一番吧.有些什么问题,大家一起讨论吧!只要大家不要觉得我在浪费论坛的版面!!!
++++世上本没有牛,做的事多了,也便成了牛!+++开玩笑啦,自勉一下!
回复

使用道具 举报

 楼主| 发表于 2005-9-29 00:14:05 | 显示全部楼层
此后我想在lumit4510上实现的东西:
1.Porting uClinux with kernerl 2.6.x
2.Use PDIUSBD12 as tty device.
3.To show logo infomation on the 16x2 LCD when booting.
4.Use NAND flash to store JFFS2 filesystem.
5.Setting up GPS or GSM or GPRS on lumit4510.
这些都是一时想象,不一定就现实,但是可以尝试.目前我就不能把romfs放到
flash中,因为只有2M的NOR flash.
回复

使用道具 举报

发表于 2005-9-29 08:42:40 | 显示全部楼层
非常感谢你的热情回复,恩,你准备以后实现的这些东西,给我感觉都很有难度,也很先进流行,我一直感兴趣的就是1.Porting uClinux with kernerl 2.6.x,这个我在试,但一直没做成,希望可以从你那得到一些指点,当然,我说的是以后了,以后你要做的话!呵。。我知道大侠应该是个大忙人!
回复

使用道具 举报

发表于 2005-9-29 08:48:41 | 显示全部楼层
你的u-boot移植成功后,希望能对我们这些搞4510的人,都能在做bootload的时候,有个参考指导!当然,我一直在试你更新的u-boot,感觉u-boot很强大!
回复

使用道具 举报

发表于 2005-9-29 10:02:28 | 显示全部楼层
我装的是红帽子9,并且我按照lumit4510_user_guide_1.4.pdf上的说明都做成功了。我是在此基础上下载了你的源码。我主要是想学学如何根据自己的需要修改u-boot。跟安装路径有关系吗?谢谢阿
回复

使用道具 举报

 楼主| 发表于 2005-9-29 10:29:32 | 显示全部楼层
要不你这样:
1.到u-boot的官方SF去下载u-boot.1.1.3的源码包,解开。
2.将我的源码包下载下来,解开。取出/u-boot-1.1.3/board/lumit4510目录放到SF的源码相应目录。取出/include/configs/lumit4510.h,也放到SF的相应目录。
3。修改SF的顶层目录的Makefile,添加:
lumit4510_config : unconfig
@./mkconfig $(@:_config=) arm arm720t lumit4510
这样肯定行。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-3-29 02:32 , Processed in 0.158959 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

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