[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] NuHorizons S3/1500 -Dual Ethernet? plus flash questions



This line reflects the problem:
> MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000

The "mbvanilla-flash.c" file is "hard-wired" to this address and size, which
are both wrong for the board and configuration you and I are using. I
changed them by hand to get up and running and then forgot to say so. (There
was a brief exchange, on the list, between John and me about this about 2
weeks ago.) By the way, I still have not managed to make flatfsd "happy".
That is, counter to John's suspiscion (See previous thread mentioned,
above.), flatfsd still makes the same complaint at every boot regarding not
seeing the right file system and re-creates the FLASH partitions. At least,
it tries; I imagine that, if it were succeeding, it would cease complaining
about not seeing the right file system.

Anyway, here're the diff for that file:

--------- cvs diff output begins here.-------
Index: mbvanilla-flash.c
===================================================================
RCS file: /var/cvs/uClinux-2.4.x/drivers/mtd/maps/mbvanilla-flash.c,v
retrieving revision 1.6
diff -u -b -B -w -p -r1.6 mbvanilla-flash.c
--- mbvanilla-flash.c	25 Jan 2005 04:13:05 -0000	1.6
+++ mbvanilla-flash.c	30 Mar 2005 15:18:18 -0000
@@ -41,6 +41,8 @@
 #define FLASH_BASE	0xff000000
 #define BUS_WIDTH	4
 #endif
+#define FLASH_BASE	0xff800000
+#define BUS_WIDTH	2


/***************************************************************************
*/--------- cvs diff output ends here.-------

Sorry for the omission,

David Banas
Field Applications Engineer
Nu Horizons Electronics Corp.
2070 Ringwood Avenue
San Jose, CA 95131
(408)434-0800 - office
(415)846-5837 - cell
http://www.nuhorizons.com

> -----Original Message-----
> From: owner-microblaze-uclinux@itee.uq.edu.au [mailto:owner-microblaze-
> uclinux@itee.uq.edu.au] On Behalf Of Lee, Michael
> Sent: Tuesday, March 29, 2005 4:33 PM
> To: microblaze-uclinux@itee.uq.edu.au
> Subject: [microblaze-uclinux] NuHorizons S3/1500 -Dual Ethernet? plus
> flash questions
>
>
> The NuHorizons board has two ethernet connectors.  One
> goes to a PHY, and the other goes to a SMSC LAN91C111-NC
> MAC+PHY.  Can uClinux use both of them, or is the first
> driver tied into the CPU code too much?
>
> I was able to program the flash on this board with
> (XPS) Tools / Program Flash Memory, after I changed
> PARAMETER C_INCLUDE_DATAWIDTH_MATCHING_0 = 0 to a 1
> (in the .MHS file of a project derived from David
> Banas's recent project).  Does this break flash-
> programming by some other method?
>
> Finally, I have started using auto-config to compile my
> own kernel, etc.  Mine boots, but does not recognize
> the flash.  David's boots, and does recognize the flash.
> What am I doing wrong?
>
> Thanks,
>   Michael Lee
>
>
>
>
> Copying kernel image from FLASH to RAM...
>  first source address = FF900000
>  first destination address = FE000000
>  first source data = 9420
> done. Booting from RAM...
> Linux version 2.4.29-uc0 (root@pld) (gcc version 2.95.3-4 Xilinx EDK
> 6.2.1 Build
>  EDK_Gm.12.3) #3 Mon Mar 28 16:32:14 CST 2005
> On node 0 totalpages: 4096
> zone(0): 4096 pages.
> zone(1): 0 pages.
> zone(2): 0 pages.
> CPU: MICROBLAZE
> Console: xmbserial on UARTLite
> Kernel command line:
> Calibrating delay loop... 32.66 BogoMIPS
> Memory: 16MB = 16MB total
> Memory: 14048KB available (1159K code, 991K data, 44K init)
> Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
> Inode cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 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
> Microblaze UARTlite serial driver version 1.00
> ttyS0 at 0xffff2000 (irq = 2) is a Microblaze UARTlite
> Starting kswapd
> xgpio #0 at 0xFFFF5000 mapped to 0xFFFF5000
> Xilinx GPIO registered
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> eth0: using fifo mode.
> eth0: Xilinx EMAC #0 at 0xC0000000 mapped to 0xC0000000, irq=1
> eth0: id 2.0h; block id 7, type 1
> MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
> CFI: Found no Flash device at location zero
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(1)
> Search for id:(00 00) interleave(4) type(1)
> Search for id:(00 00) interleave(4) type(1)
> JEDEC: Found no Flash device at location zero
> MBVanilla ram probe(0xfe15d4bc,774144,4): bd000 at fe15d4bc
> Creating 1 MTD partitions on "RAM":
> 0x00000000-0x000bd000 : "Romfs"
> 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 1024 bind 1024)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> VFS: Mounted root (romfs filesystem) readonly.
> Freeing init memory: 44K
> Mounting proc:
> Mounting var:
> Populating /var:
> Running local start scripts.
> Mounting /etc/config:
> Populating /etc/config:
> flatfsd: Nonexistent or bad flatfs (-43), creating new one...
> flatfsd: Failed to write flatfs (-43): No such device
> flatfsd: Created 3 configuration files (142 bytes)
> Setting hostname:
> Setting up interface lo:
> Starting DHCP client:
> Starting inetd:
> Starting thttpd:
>
> uclinux-auto login:
>
>
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-
> uclinux/
>
>
> ________________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. For more information on a proactive email security
> service working around the clock, around the globe, visit
> http://www.messagelabs.com
> ________________________________________________________________________



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/