|
|||||||||||
| 技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機 | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
終于成功移植bootloader和uClinux! |
| 作者:aolin 欄目:驅(qū)動編程 |
PLATFORM: TI DM270 bootloader輸出: +-------------------------------------+ | Welcome to the | | DSPLinux Bootloader | | | | rrload v4.8 by RidgeRun, Inc | | platform: DM270 EVM | +-------------------------------------+ MAIN MENU --------- 1. Load [comp] from I/O PORT... 2. Store RAM [comp] to FLASH... 3. View/Edit Params... 4. Boot Kernel/fileSYSTEM (boot_auto) 5. CmdLine Mode 6. Dump MEMORY r. Run Default Boot Cmd E. Erase [comp] from FLASH... Which? uClinux的啟動信息: Linux version 2.4.27-uc1 (root@sqhuang) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(-msep-data patches)) #11 Thu Mar 10 14:38:30 HKT 2005 Processor: TI TMS320DM270 revision 0 Architecture: TI TMS320DM270 Warning: bad configuration page, trying to continue reserve_bootmem_core: address 00000000 below node_boot_start On node 0 totalpages: 7936 zone(0): 0 pages. zone(1): 7936 pages. zone(2): 0 pages. Kernel command LINE: root=/dev/rom0 Calibrating delay loop... 21.70 BogoMIPS MEMORY: 31MB = 31MB total MEMORY: 29252KB available (1006K code, 1087K data, 44K init) Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea UNIVERSITY COMPUTER Society NET3.039 Initializing RT netlink SOCKET Starting kswapd pty: 256 Unix98 ptys configured TI TMS320DM270 Serial driver version 0.01 ttyS00 at 0x30300 (irq = 12) ttyS01 at 0x30380 (irq = 13) cs89x0: Setting up TI TMS320DM270 CS8900A IRQ ioaddr = 0x7C00300 cs89x0.c: v2.4.3-pre1 Russell Nelson <nelson@crynwr.com>, Andrew Morton <andrewm@uow.edu.au> eth0: cs8900 rev A found at 0x7c00300 cs89x0 media RJ-45, IRQ 23, programmed I/O, MAC 00:10:8b:f1:da:01 cs89x0_probe1() successful Blkmem COPYRIGHT 1998,1999 D. Jeff Dionne Blkmem COPYRIGHT 1998 Kenneth Albanowski Blkmem 1 disk images: 0: 2D0F610-2DEE60F [VIRTUAL 2D0F610-2DEE60F] (RO) RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 2048) NET4: Unix domain SOCKETs 1.0/SMP for Linux NET4.0. VFS: Mounted root (romfs fileSYSTEM) readonly. Shell invoked to run file: /etc/rc Command: hostname TI Command: /bin/expand /etc/ramfs.img /dev/ram1 Command: mount -t proc proc /proc mount: /etc/mtab: Read-only file SYSTEM Command: mount -t ext2 /dev/ram1 /var mount: /etc/mtab: Read-only file SYSTEM Command: mkdir /var/config Command: mkdir /var/tmp Command: mkdir /var/log Command: mkdir /var/run Command: mkdir /var/lock Command: mkdir /var/empty Command: cat /etc/motd Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ \ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ Command: ifconfig lo 127.0.0.1 Command: route add -net 127.0.0.0 netmask 255.255.255.0 lo Command: dhcpcd & [21] Execution Finished, Exiting Sash command shell (version 1.1.1) /> 但發(fā)現(xiàn)一個很奇怪的問題: 當(dāng)uClinux啟動到Shell invoked to run file: /etc/rc 時,控制臺(CONSOLE)輸出的信息就不連續(xù)了, 只能每按一次回車鍵輸出一小段. 這是什么問題? |
| 2樓: | >>參與討論 |
| 作者: zlei 于 2005/3/11 17:26:00 發(fā)布:
re uClinux中波特率和Bootloader中的不一致。因為uClinux計算波特率時進(jìn)行了四舍五入,低的波特率下沒有影響,在較高的波特率下就會發(fā)生偏差。 |
|
| 3樓: | >>參與討論 |
| 作者: aolin 于 2005/3/12 12:33:00 發(fā)布:
問題已解決! 是UART的FIFO設(shè)置問題. |
|
| 4樓: | >>參與討論 |
| 作者: ylj2008 于 2005/3/14 11:17:00 發(fā)布:
uClinux你用那個版本的,我用補丁也編譯不過去呀 |
|
| 5樓: | >>參與討論 |
| 作者: aolin 于 2005/3/14 20:49:00 發(fā)布:
用2004-12-15以后的就行了! |
|
|
|
| 免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進(jìn)入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |