From: James F D. <jfd@GigabitNetworks.COM> - 2001-07-31 03:54:45
|
On Mon, 30 Jul 2001 09:22:02 -0700 Tom Rini wrote: > > On Mon, Jul 30, 2001 at 09:14:24AM -0700, Mark A. Greer wrote: > > Tom Rini wrote: > > > > > On Sat, Jul 28, 2001 at 04:54:19PM -0700, James F Dougherty wrote: > > > Okay, the more portable way would be to: > > > 1) edit include/asm-ppc/serial.h, and Yet Another #elif > > > 2) Make include/asm-ppc/mousse_serial.h, which has something like: > > > #define STD_SERIAL_PORT_DFNS > > > {0, 9600, MOUSSE_SERIAL_0, 4, STD_COM_FLAGS, PORT_8250, \ > > > io_base: (u8 *) SERIAL_MOUSE_0 \ > > > io_type: SERIAL_IO_MEM > > > > I think that should be: "iomem_base: (u8 *)SERIAL_MOUSE_0" > > ^^^^^^^^^^ > > Ya, oops. That's what I get for doing it out of memory :) SERIAL_MOUSSE_0, > even too :) Done! Thanks Mark, Thanks Tom, Actually, it turned out to be a simple bug where serial get/set reg were doing the wrong thing (simply reading from the base instead of base + offset). One of the glorious bugs one sometimes introduces with ifdef hacking :-) When I fixed this, I immediately got console garbage (DLL value wrong for baud), so I hard-coded the com1 uart baud to 9600 as a temporary hack. Anyhow, now it works ... the 8250 SIO detection thing should have been a dead giveaway, but since UART TX/RX registers are at the same offset (0), the console driver would print fine, but not receive .... I thought it was flow control at first, then the driver ... many thanks for the sanity check :-) On the baud mismatch, I found out that my system uses a 14.3Mhz UART crystal, so the baud rates should change. Is there a clean way to change a #define, or should I define my own baud2code/code2baud translation routines. What is the cleanest way todo this? Also, has anyone gotten a Bogomips rating for a 200Mhz MPC8240 with 66Mhz SDRAM? Mine says 133.12, perhaps my calibrate_decr is broken? Could my cache be disabled? Thoughts? Many thanks again for all your help. -James Linux version 2.4.2_hhl20 (jfd@atlantis) (gcc version 2.95.2 19991024 (release)) #409 Mon Jul 30 09:09:32 PDT 2001 cpu0: MPC8240/KAHLUA : MOUSSE Platform : 64MB RAM: MPLD Rev. 1 Sandpoint port (C) 2000, 2001 MontaVista Software, Inc. (so...@mv...) NVRAM: 802.3 Ethernet Address=<0:0:10:20:30:44> NVRAM: mousse.gigabitnetworks.com: eth0 IP configured via DHCP On node 0 totalpages: 16384 zone(0): 16384 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: console=ttyS0,9600 time_init: decrementer frequency = 16.665955 MHz time_init: MPC8240 PCI Bus frequency = 33.331910 MHz Calibrating delay loop... 133.12 BogoMIPS Memory: 62588k available (1212k kernel code, 476k data, 84k init, 0k highmem) Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes) Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 4096 (order: 3, 32768 bytes) POSIX conformance testing by UNIFIX PCI: Probing PCI hardware Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd v1.8 pty: 256 Unix98 ptys configured block: queued sectors max/low 41522kB/13840kB, 128 slots per queue RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 6.31 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx loop: loaded (max 8 devices) Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0xffe08080 (irq = 4) is a ST16650 Linux Tulip driver version 0.9.13a (January 20, 2001) eth0: Digital DS21143 Tulip rev 65 at 0xbfff80, EEPROM not present, 00:00:10:20:30:44, IRQ 1. eth0: MII transceiver #0 config 3000 status 7829 advertising 01e1. 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 4096 bind 4096) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. VFS: Mounted root (nfs filesystem). Freeing unused kernel memory: 84k init 4k openfirmware init-2.03# eth0: Setting full-duplex based on MII#0 link partner capability of 45e1. init-2.03# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root 6157677 3629626 2466475 0% / init-2.03# ls bin dev etc lib lost+found opt proc sbin tmp usr init-2.03# mount -t proc proc /proc init-2.03# cat /proc/cpuinfo processor : 0 cpu : 82xx revision : 1.1 (pvr 0081 0101) bogomips : 133.12 zero pages : total: 0 (0Kb) current: 0 (0Kb) hits: 0/0 (0%) vendor : Motorola machine : MPC8240/MOUSSE processor : PVID: 0x810101, vendor: Motorola init-2.03# cat /proc/interrupts CPU0 1: 2409 MPC8240 EPIC Level eth0 4: 1546 MPC8240 EPIC Level serial BAD: 0 init-2.03# |