Hello, John. Thanks for you work!I apply patch and it create uClinux-dist/linux-2.4.x/drivers/net/xilinx_emaclite/ directory with files and string in the menuconfig, but make no have effect with driver sources. I try include driver as module and integrate to kernel, after make, image size exactly coincides.
I try add next strings to uClinux-dist/linux-2.4.x/drivers/net/Makefile: mod-subdirs += xilinx_emaclite subdir-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite obj-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite/xilinx_emaclite.oAfter "make dep" there was is created ".depend" file in /xilinx_emaclite/, but make unsuccessful. Last screen with error include.
----- Original Message ----- From: "John Williams" <jwilliams@xxxxxxxxxxxxxx>
To: <microblaze-uclinux@xxxxxxxxxxxxxx> Sent: Wednesday, December 07, 2005 6:24 AM Subject: [microblaze-uclinux] EthernetLite driver
Hi folks, Inspired by Pavel's efforts[1], I recently did a quick hack at a driver for the Xilinx EthernetLite core. It is based on the driver for the full ethernet MAC, with lots of trimming. Status is that TX packets work correctly, but there's still something broken on the RX side. I don't have any time to keep working on it right now, so I thought I'd throw it out there and see if someone wants to pick it up and run with it. To that end, find attached a patch file that creates drivers/net/xilinx_emaclite/*, and adds the option to build it in the MicroBlaze menuconfig. Obviously you need to build a microblaze system with the EMACLITE - no rocket science there, just remember to disconnect the MII data and clock lines (EMACLITE doesn't do MII), and IIRC you have to disconnect the TX_ER signal. Cheers, John [1] Pavel, I decided to start from an existing "real" driver, rather than the Linux Device Drivers template, because it's my experience that there's a pretty big gap between the theoretical devices they describe, and the workings of a real ethernet controller. LDD is great for learning the concepts, but you can't beat a proper driver as a template/starting point.
Attachment:
adapter.JPG
Description: JPEG image