Re: [uCsimm] ADS and uClinux

From: Vladimir A. Gurevich (vgurevic@cisco.com)
Date: Fri Oct 13 2000 - 00:39:48 EDT


Hello Zhang,

I've just came home, downloaded stuff I put a couple of days ago on
             ftp://ftp.employees.org/vag/uClinux
and tried it on my M68EZ328ADS board again.

Everything works fine. I am attaching screenshots below.

Zhang Hong wrote:

> Blkmem 1 disk images:
> 0: 10000000-FFFFFFF (RO)

This message clearly indicates that there is a problem with how you
defined where your ROMFS is (see drivers/block/blkmem.c). Did you try to
compile your own image? Have you applied my patches?

Happy hacking,
Vladimir

-- 
+------------------+------------------------+--------------------------+
                   |      |          |      |
                   |     :|:        :|:     | phone         408-525-9707
Vladimir Gurevich  |    :|||:      :|||:    | fax           408-527-1713
Software Engineer  | .:|||||||:..:|||||||:. |
    NUBU/DIAL      |      CiscoSystems      | e-mail  vgurevic@cisco.com
                   |                        | location SJ-7-2 Cube D1-12
                   |  http://www.cisco.com  |
+------------------+------------------------+--------------------------+

Script started on Thu Oct 12 21:11:06 20 [vag@vgurevic-dsl3 release]$ ls -l total 4532 -rw-rw-r-- 1 vag vag 12158 Oct 12 20:19 at_flash.b -rw-rw-r-- 1 vag vag 2448 Oct 12 20:17 config.RAM -rw-rw-r-- 1 vag vag 2448 Oct 12 20:17 config.ROM -rw-rw-r-- 1 vag vag 2300141 Oct 12 20:18 flash.b -rw-rw-r-- 1 vag vag 1048427 Oct 12 20:18 linux.b -rw-rw-r-- 1 vag vag 1250843 Oct 12 20:19 romfs.b -rw-rw-r-- 1 vag vag 0 Oct 12 21:11 typescript [vag@vgurevic-dsl3 release]$ bbug ********************************************************************* * BBUG --- a bootstrap mode debugger for MC68EZ328 * * Ver 0.1 * * * * Copyright (C) 1999, Vladimir Gurevich * * * * BBUG is free software, covered by the GNU General Public License, * * and you are welcome to change it and/or distribute copies of it * * under certain conditions. * * * * There is absolutely no warranty for BBUG. * *********************************************************************

C-Kermit 7.0.195 Beta.07, 21 May 1999, for Linux Copyright (C) 1985, 1999, Trustees of Columbia University in the City of New York. Default file-transfer mode is AUTOMATIC Type ? or HELP for help. M68EZ328ADS> init Please, reset the board and press <Enter> Connected to the board 19200 baud set. (VCO prescaler set to 1) 38400 baud set. 115200 baud set. M68EZ328ADS> load at_flash.b  **** Ready ****  M68EZ328ADS> load flash.b  **** Ready ****  M68EZ328ADS> start 1004 Connecting to /dev/ttyS0, speed 115200. The escape character is Ctrl-\ (ASCII 28, FS) Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- 0000100400...............................................................................................................................DONE (Back at vgurevic-dsl3.cisco.com) ---------------------------------------------------- M68EZ328ADS>

Now let's open SW-2/6 and SW-2/7 and reset the board.

M68EZ328ADS> c Connecting to /dev/ttyS0, speed 115200. The escape character is Ctrl-\ (ASCII 28, FS) Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------

ABCDEF 68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne M68EZ328ADS board support (C) 1999 Vladimir Gurevich <vgurevic@cisco.com> Calibrating delay loop.. ok - 1.42 BogoMIPS Memory available: 3840k/4031k RAM, 1677k/2048k ROM (192k kernel data, 371k code) Swansea University Computer Society NET3.035 for Linux 2.0 NET3: Unix domain sockets 0.13 for Linux NET3.035. Swansea Universiy Computer Soci/IP for NET3.034 IP Protocols: ICMP, UDP, TCP uClinux version 2.0.38.1pre1 (vag@vgurevic-dsl3.cisco.com) (gcc version 2.7.2.3) #2 Mon Oct 9 23:44:40 PDT 2000 MC68328 serial driver version 1.00 ttyS0 at 0xfffff900 (irq = 64) is a builtin MC68328 UART Ramdisk driver initialized : 16 ramdisks of 4096K size Blkmem copyright 1998,1999 D. Jeff Dionne Blkmem copyright 1998 Kenneth Albanowski Blkmem 1 disk images: 0: 10065810-100DE80F (RO) PPP: version 2.2.0 (dynamic channel allocation) TCP compression code copyright 1989 Regents of the University of California PPP Dynamic channel allocation code copyright 1995 Caldera, Inc. PPP line discipline registered. Open of blkmem arena 0 at 10065810, length 79000 VFS: Mounted root (romfs filesystem) readonly. Starting inetd...

/etc/issue www.rt-control.com 15 Sept 1999

Welcome to uClinux!

uClinux /ju:si:`linuks/ 1.n. Microcontroller Linux; Embedded microcontroller operating system. 2.n. An embedded soft real time kernel (see also POSIX.4) 3.n. Embedded Linux internet/intranet development platform. 4. synonym for the successful rapid development of embedded system applications. For more information on the uClinux operating system please visit the http://www.uclinux.com and http://www.uclinux.org web sites.

board login: root Password:

# free total: used: free: shared: buffers: cached: Mem: 3932160 606208 3325952 0 307200 0 Swap: 0 0 0 # cat /proc/interrupts Internal 68EZ328 interrupts 1: 2597 timer 2: 877 M68328_UART # cat /rproc/cpuinfo cat: /rproc/cpuinfo: No such file or directory # cat /proc/cpuinfo CPU: 68EZ328 MMU: none FPU: none Clocking: 11.4MHz BogoMips: 1.42 Calibration: 713600 loops # ls -l drwxr-xr-x 1 root root 32 Jan 01 1970 bin drwxr-xr-x 1 root root 32 Jan 01 1970 dev drwxr-xr-x 1 root root 32 Jan 01 1970 etc drwxr-xr-x 1 root root 32 Jan 01 1970 htdocs drwxr-xr-x 1 root root 32 Jan 01 1970 lib drwxr-xr-x 1 root root 32 Jan 01 1970 mnt dr-xr-xr-x 5 root root 0 Jan 29 16:15 proc -rw-r--r-- 1 root root 3340 Jan 01 1970 ramfs.img drwxr-xr-x 1 root root 32 Jan 01 1970 sbin lrwxrwxrwx 1 root root 8 Jan 01 1970 tmp -> var/tmp/ drwxr-xr-x 1 root root 32 Jan 01 1970 usr drwxr-xr-x 3 root root 1024 Oct 08 1998 var # (Back at vgurevic-dsl3.cisco.com) ----------------------------------------------------

NOW, Let's try to FLASH only romfs.b and run the kernel directly from RAM.

M68EZ328ADS> init Please, reset the board and press <Enter> Connected to the board 19200 baud set. (VCO prescaler set to 1) 38400 baud set. 115200 baud set. M68EZ328ADS> load at_flash.b  **** Ready ****  M68EZ328ADS> load romfs.b  **** Ready ****  M68EZ328ADS> start 1004 Connecting to /dev/ttyS0, speed 115200. The escape character is Ctrl-\ (ASCII 28, FS) Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- 0000100400...............................................................................................................................DONE (Back at vgurevic-dsl3.cisco.com) ----------------------------------------------------

IT IS IMPORTANT TO RESET THE BOARD AFTER RUNNING AT_FLASH.B!!!!

M68EZ328ADS> init Please, reset the board and press <Enter> Connected to the board 19200 baud set. (VCO prescaler set to 1) 38400 baud set. 115200 baud set. M68EZ328ADS> load linux.b  **** Ready ****  M68EZ328ADS> start 800 Connecting to /dev/ttyS0, speed 115200. The escape character is Ctrl-\ (ASCII 28, FS) Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- ABCD 68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne M68EZ328ADS board support (C) 1999 Vladimir Gurevich <vgurevic@cisco.com> Calibrating delay loop.. ok - 1.39 BogoMIPS Memory available: 3468k/3659k RAM, 1677k/2048k ROM (564k kernel data, 371k code) Swansea University Computer Society NET3.035 for Linux 2.0 NET3: Unix domain sockets 0.13 for Linux NET3.035. Swansea University Computer Society TCP/IP for NET3.034 IP Protocols: ICMP, UDP, TCP uClinux version 2.0.38.1pre1 (vag@vgurevic-dsl3.cisco.com) (gcc version 2.7.2.3) #3 Mon Oct 9 23:50:02 PDT 2000 MC68328 serial driver version 1.00 ttyS0 at 0xfffff900 (irq = 64) is a builtin MC68328 UART Ramdisk river initializisks of 4096K size Blkmem copyright 1998,1999 D. Jeff Dionne Blkmem copyright 1998 Kenneth Albanowski Blkmem 1 disk images: 0: 10000000-10078FFF (RO) PPP: version 2.2.0 (dynamic channel allocation) TCP compression code copyright 1989 Regents of the University of California PPP Dynamic channel allocation code copyright 1995 Caldera, Inc. PPP line discipline registered. Open of blkmem arena 0 at 10000000, length 79000 VFS: Mounted root (romfs filesystem) readonly. Starting inetd...

/etc/issue www.rt-control.com 15 Sept 1999

Welcome to uClinux!

uClinux /ju:si:`linuks/ 1.n. Microcontroller Linux; Embedded microcontroller operating system. 2.n. An embedded soft real time kernel (see also POSIX.4) 3.n. Embedded Linux internet/intranet development platform. 4. synonym for the successful rapid development of embedded system applications. For more information on the uClinux operating system please visit the http://www.uclinux.com and http://www.uclinux.org web sites.

board login: root Password:

# cat /proc/cpuinfo CPU: 68EZ328 MMU: none FPU: none Clocking: 11.1MHz BogoMips: 1.39 Calibration: 699200 loops # cat /proc/interrupts Internal 68EZ328 interrupts 1: 4410 timer 2: 848 M68328_UART # free total: used: free: shared: buffers: cached: Mem: 3551232 606208 2945024 0 307200 0 Swap: 0 0 0 # ls -l drwxr-xr-x 1 root root 32 Jan 01 1970 bin drwxr-xr-x 1 root root 32 Jan 01 1970 dev drwxr-xr-x 1 root root 32 Jan 01 1970 etc drwxr-xr-x 1 root root 32 Jan 01 1970 htdocs drwxr-xr-x 1 root root 32 Jan 01 1970 lib drwxr-xr-x 1 root root 32 Jan 01 1970 mnt dr-xr-xr-x 5 root root 0 Dec 10 14:20 proc -rw-r--r-- 1 root root 3340 Jan 01 1970 ramfs.img drwxr-xr-x 1 root root 32 Jan 01 1970 sbin lrwxrwxrwx 1 root root 8 Jan 01 1970 tmp -> var/tmp/ drwxr-xr-x 1 root root 32 Jan 01 1970 usr drwxr-xr-x 3 root root 1024 Oct 08 1998 var # (Back at vgurevic-dsl3.cisco.com) ---------------------------------------------------- M68EZ328ADS> quit Closing /dev/ttyS0...OK [vag@vgurevic-dsl3 release]$ exit exit

Script done on Thu Oct 12 21:27:38 2000

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:38 EST