Linux BSP for phyCORE-MCF548x ----------------------------- To run the linux (2.6.10), see the following log text. You will need a tftp server program running to load the colilo and linux image to the phyCORE over ethernet. (based on Freescale/Metrowerks mcf547x_8x-non-PCS_2.6_bsp-050413.tar) (m.poschmann@phytec.de) #### short form description #### boot dBUG configure ethernet connection (set server ...) download colilo_phyCORE.srec (dn) run colilo_phyCORE (g 0x1000400) configure ethernet connection (set server ...) download linux image (tftp 0x1000) run linux (g 0x2000) #### terminal log #### External Reset Processor: MCF5485 (revision 1) ColdFire MCF548X on the phyCORE-MCF548x Firmware v3b.1a.12290 (Built on Jul 21 2005 12:20:49) Copyright 1995-2004 Freescale Semiconductor, Inc. Enter 'help' for help. dBUG> show base: 16 baud: 19200 server: 192.168.2.100 client: 192.168.2.99 gateway: 192.168.2.1 netmask: 255.255.255.0 filename: rom.s19 filetype: S-Record ethaddr: 00:50:C2:32:A4:E1 dBUG> set Valid 'set' options: base: baud: <9600|19200|38400> server: client: gateway: netmask: filename: filetype: ethaddr: dBUG> set filename colilo_phyCORE.srec dBUG> set server 192.168.2.125 dBUG> show base: 16 baud: 19200 server: 192.168.2.125 client: 192.168.2.99 gateway: 192.168.2.1 netmask: 255.255.255.0 filename: colilo_phyCORE.srec filetype: S-Record ethaddr: 00:50:C2:32:A4:E1 dBUG> dn Downloading S-Record 'colilo_phyCORE.srec' from 192.168.2.125 S-record download successful! TFTP transfer completed Read 192828 bytes (377 blocks) dBUG> g 0x1000400 phyCORE-MCF548x board boot... colilo>? Coldfire Linux Loader Platform: phyCORE-MCF548x board (C) 2004 Motorola Commands available: b - boot default image m [addr] - memory dump at addr g [xfer_addr] - go to xfer_addr l [down_addr] [port] - load image from port f [down_addr] [size] [val] - fill memory with value pl [addr] [val] - set the 32 bit value at address ps [addr] [val] - set the 16 bit value at address pc [addr] [val] - set the 8 bit value at address rl [addr] - read a 32 bit value at address rs [addr] - read a 16 bit value at address rc [addr] - read a 8 bit value at address c [source_addr] [dest_addr] [size] - copy memory d [source_addr] [dest_addr] [size] - decompress image x [down_addr] [dest_addr] [xfer_addr] [port] - cmds l, d, g z [source_addr] [dest_addr] [xfer_addr] - cmds d, g TCP/IP commands: set mac [MAC address] - set board MAC address set ip [IP address] - set board IP address set gw [IP address] - set board gateway address set netmask [IP address] - set board netmask set server [IP address] - set address of TFTP server for TFTP download set image [Image name] - set name of image for downloading set fec [fec number] - select FEC to use set cl [command_line] - set kernel command line set kfl [0/1] - set to 1 if kernel image is in flash, 0 - otherwise tftp [down_addr] - download image from TFTP server bootp - request bootp information Where: flash_addr - address in flash to start burning from xfer_addr: hex address to start running at down_addr: hex address of downloaded image dest_addr: hex address of image destination source_addr: hex address of compressed image size: size of compressed image port: 0 = /dev/ttyS0, 1 = /dev/ttyS1 IP address: IP address in format xxx.xxx.xxx.xxx MAC address: MAC address in format xx:xx:xx:xx:xx:xx Image name: string, filename fec number: 0 or 1 Default values for paramaters: down_addr: 1000 source_addr: 7fc10000 dest_addr: 1000 xfer_addr: 1000 flash_addr: 0 size: 130000 downloadPort: 1 kernel command line: root=/dev/ram kernel image in flash: no start booting automaticaly: no Current TCP/IP configuration: Board MAC: 00:01:02:03:AA:BB Board IP: 192.168.2.99 Netmask: 255.255.255.0 Board gateway: 192.168.2.1 TFTP server: 192.168.2.123 Image name: image.bin colilo>set server 192.168.2.125 TFTP Server: '192.168.2.125' colilo>tftp 0x1000 TFTP download: Download address:1000 Using FEC:0 Board MAC: '00:01:02:03:AA:BB' Board IP: '192.168.2.99' Board netmask:'255.255.255.0' Board gateway:'192.168.2.1' TFTP server:'192.168.2.125' Image:'image.bin' Initializing TCP/IP stack... Receiving file 'image.bin' from '192.168.2.125' Image size = 7987200 bytes colilo>g 0x2000 Linux version 2.6.10 (mposchmann@linux) (gcc version 3.4.0) #2 Tue Aug 2 12:44:08 CEST 2005 starting up linux rev 0.2: startmem 0xc020c000, size 61MB Built 1 zonelists Kernel command line: root=/dev/ram PID hash table entries: 512 (order: 9, 8192 bytes) RTC driver is not initialized yet, returning 1970. Dentry cache hash table entries: 16384 (order: 3, 65536 bytes) Inode-cache hash table entries: 8192 (order: 2, 32768 bytes) Memory: 57208k/65536k available (1600k kernel code, 6552k data, 80k init) Mount-cache hash table entries: 1024 (order: 0, 8192 bytes) checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd Freeing initrd memory: 715k freed NET: Registered protocol family 16 Linux/m68k PCI BIOS32 revision 0.05 ColdFire PCI Host Bridge (Rev. 0) detected PCI: Probing PCI hardware ColdFire internal SEC driver version 0.11 MCF547x/8x SEC device driver installed NET: Registered protocol family 23 Initialize Multi-channel DMA API Alpha v0.3 (2004-04-26) devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 Initializing Cryptographic API rtc: RV5C387 RTC driver successfully loaded MCF547x/8x DSPI device driver installed Coldfire DSPI driver is loaded ColdFire internal UART serial driver version 1.00 ttyS0 at 0xe0008600 (irq = 99) is a builtin ColdFire UART ttyS1 at 0xe0008700 (irq = 98) is a builtin ColdFire UART ttyS2 at 0xe0008800 (irq = 97) is a builtin ColdFire UART ttyS3 at 0xe0008900 (irq = 96) is a builtin ColdFire UART io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize ColdFire internal FEC driver version 0.11 Loaded prism54 driver, version 1.2 mice: PS/2 mouse device common for all mice i2c /dev entries driver i2c-algo-mcf.o: I2C ColdFire algorithm module is loaded. NET: Registered protocol family 2 IP: routing cache hash table of 1024 buckets, 8Kbytes TCP: Hash tables configured (established 8192 bind 16384) ip_tables: (C) 2000-2002 Netfilter core team Initializing IPsec netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 15 IrCOMM protocol (Dag Brattli) RAMDISK: romfs filesystem found at block 0 RAMDISK: Loading 5716KiB [1 disk] into ram disk... |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/done. VFS: Mounted root (romfs filesystem) readonly. Mounted devfs on /dev *** Running rc.modules *** Running rc.serial Mounting local file-systems... done *** Attempting to start S20network *** Attempting to start boas Starting boa Done *** Attempting to start irda Starting IrDA: 1.1 Tue Nov 9 15:30:55 1999 Dag Brattli *** Attempting to start rsyncd Starting rsync Done *** Running rc.local coldfire login: root login[725]: root login on `tts/0' execl: /bin/sh sh-2.05# /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:11:32:55:66:77 inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:72 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4896 (4.7 KiB) TX bytes:0 (0.0 B) Interrupt:103 Base address:0x9000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:544 (544.0 B) TX bytes:544 (544.0 B) sh-2.05# /sbin/ifconfig eth0 192.168.2.99 eth0 Link encap:Ethernet HWaddr 00:11:32:55:66:77 inet addr:192.168.2.99 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:222 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1519a (14.8 KiB) TX bytes:0 (0.0 B) Interrupt:103 Base address:0x9000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:544 (544.0 B) TX bytes:544 (544.0 B) sh-2.05# ps PID Uid VmSize Stat Command 1 root 864 S init 2 root SWN [ksoftirqd/0] 3 root SW< [events/0] 4 root SW< [khelper] 20 root SW< [kblockd/0] 37 root SW [pdflush] 38 root SW [pdflush] 40 root SW< [aio/0] 39 root SW [kswapd0] 625 root SW [kseriod] 714 nobody 1112 S /usr/bin/boa 722 root 960 S /usr/bin/rsync --daemon 725 root 1184 S /bin/sh 732 root 904 R ps sh-2.05#