Board logo

标题: 在window下MCF5249L用BDM的原代码 [打印本页]

作者: 一通百通    时间: 2004-7-4 13:44

经过努力,已经可以RUN了。但上面问题还没解除。(批量生产慢)
打印信息如下:
Motorola MCF5249 C3 boot...
Linux version 2.4.22-uc0 (root@LinuxFan) (gcc version 2.95.3 20010315 (release)(
ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and sh
ared lib patches from http://www.snapgear.com/)) #4 Sat Jul 3 15:01:25 CST 2004

uClinux/COLDFIRE(m5249)
COLDFIRE port done by Greg Ungerer, gerg@snapgear.com
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
On node 0 totalpages: 2048
zone(0): 0 pages.
zone(1): 2048 pages.
zone(2): 0 pages.
Kernel command line:
Calibrating delay loop... 92.56 BogoMIPS
Memory available: 6564k/8192k RAM, 0k/0k ROM (737k kernel code, 211k data)
kmem_create: Forcing size word alignment - vm_area_struct
kmem_create: Forcing size word alignment - mm_struct
kmem_create: Forcing size word alignment - filp
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
kmem_create: Forcing size word alignment - bdev_cache
kmem_create: Forcing size word alignment - cdev_cache
kmem_create: Forcing size word alignment - kiobuf
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
kmem_create: Forcing size word alignment - sock
Initializing RT netlink socket
Starting kswapd
kmem_create: Forcing size word alignment - file_lock_cache
kmem_create: Forcing size word alignment - nfs_read_data
kmem_create: Forcing size word alignment - nfs_write_data
ColdFire internal UART serial driver version 1.00
ttyS0 at 0x100001c0 (irq = 73) is a builtin ColdFire UART
ttyS1 at 0x10000200 (irq = 74) is a builtin ColdFire UART
kmem_create: Forcing size word alignment - blkdev_requests
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
CSLIP: code copyright 1989 Regents of the University of California.
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 10D6F4-17D2F3 [VIRTUAL 10D6F4-17D2F3] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
PPP MPPE compression module registered
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
kmem_create: Forcing size word alignment - ip_dst_cache
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 24k freed (0xf4000 - 0xf9000)
Shell invoked to run file: /etc/rc
Command: hostname uClinux
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram1 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: ifconfig lo 127.0.0.1
Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo
Command: dhcpcd -p -a eth0 &
dhcpcd: Bad command or file name

sh 7: Child 13 died
[13]
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/       |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

For further information check:
http://www.uclinux.org/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> ps
  PID PORT STAT  SIZE SHARED %CPU COMMAND
    1      S      25K     0K 40.5 init
    2      S       0K     0K  0.0 keventd
    3      R       0K     0K  0.0 ksoftirqd_CPU0
    4      S       0K     0K  0.0 kswapd
    5      S       0K     0K  0.0 bdflush
    6      S       0K     0K  0.0 kupdated
   14   S0 R      25K     0K 12.0 /bin/sh
   15      S      17K     0K  8.0 /bin/inetd
/> ls -l /bin
-rwxr-xr-x  1 0        0           35836  Jan  1 1970  busybox
-rwxr-xr-x  1 0        0           42828  Jan  1 1970  chat
-rwxr-xr-x  1 0        0             984  Jan  1 1970  discard
-rwxr-xr-x  1 0        0           21596  Jan  1 1970  expand
-rwxr-xr-x  1 0        0           55672  Jan  1 1970  ifconfig
-rwxr-xr-x  1 0        0           29724  Jan  1 1970  inetd
-rwxr-xr-x  1 0        0           21800  Jan  1 1970  init
-rwxr-xr-x  1 0        0           35836  Jan  1 1970  mount
-rwxr-xr-x  1 0        0           48268  Jan  1 1970  ping
-rwxr-xr-x  1 0        0           23652  Jan  1 1970  reboot
-rwxr-xr-x  1 0        0           54408  Jan  1 1970  route
-rwxr-xr-x  1 0        0           63244  Jan  1 1970  sh
-rwxr-xr-x  1 0        0           37516  Jan  1 1970  telnetd
/>
作者: 一通百通    时间: 2004-7-7 13:38

放一张图片让大家看看。
作者: 一通百通    时间: 2004-7-7 13:53

[upload=gif]uploadImages/200477135362.gif[/upload]
作者: Athens    时间: 2004-7-12 13:10

CCFlasher 也是通过bdm口下载程序的,速度也快不了那去。建议还是用dBug的串口下载快一点,如果打通了tftp就更好了。不过我有vc6.0的bdm源代码,在5307和5272的板子上都跑过,不知道你是那种flash。
作者: 一通百通    时间: 2004-7-15 10:27

Flash:am29lv160db,我在dBug的串口试不行。有人认为Widows下和linux下打印口定义不一样,不知道是不是还要改硬件pin的定义?


[此贴子已经被一通百通于2004-7-15 10:27:14编辑过]


作者: 一通百通    时间: 2004-7-21 08:47     标题: 在window下MCF5249L用BDM的原代码

最近作一块MCF5249L的开发板,在linux下通过BDM烧写非常慢,我想在windows下用CFflasher.但是要改BDM的原代码,但是我只有编译过的。
如果谁有coldfire之BDM这方面资料,请与我联系。定谢!
作者: rabbit3000    时间: 2004-7-21 08:47

athens能不能把你的vc6下的bdm代码共享一份,我也正在调试5272,在win2000环境下,由于所用的flash与5272c3板的不同,所以不能用cfflasher工具。athens大侠若能贡献一份,本人不胜感激!




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0