From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:21012 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbaKCMhm (ORCPT ); Mon, 3 Nov 2014 07:37:42 -0500 Message-ID: <54577714.4090305@broadcom.com> (sfid-20141103_133745_193553_2D4F59CB) Date: Mon, 3 Nov 2014 13:37:40 +0100 From: Arend van Spriel MIME-Version: 1.0 To: Renato CC: "backports@vger.kernel.org" Subject: Re: compat-drivers-3.8.3-2-snpu with kernel 2.6.24 References: <5453DCF4.9040101@broadcom.com> <5453E279.4080508@broadcom.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Sender: backports-owner@vger.kernel.org List-ID: On 11/03/14 13:21, Renato wrote: > Hi, > > I checked the Makefile and found that it was not getting called. > > Looking at ./include/linux/compat_autoconf.h I found the following: > > #if (LINUX_VERSION_CODE>= KERNEL_VERSION(2,6,28)) > #ifndef CONFIG_ATL1C > #define CONFIG_ATL1C 1 > #endif /* CONFIG_ATL1C */ > #ifndef CONFIG_ALX > #define CONFIG_ALX 1 > #endif /* CONFIG_ALX */ > #ifndef CONFIG_COMPAT_MDIO > #define CONFIG_COMPAT_MDIO 1 > #endif /* CONFIG_COMPAT_MDIO */ > #endif /* CONFIG_COMPAT_KERNEL_2_6_28 */ > > Does it means that ALX driver is only supported with kernel 2.6.28 or higher? It seems. There is likely a good reason for that. Not sure if the compat git repos are still somewhere to find the reason. You can look on github for mcgrof repos [1]. Regards, Arend [1] https://github.com/mcgrof > Thanks > > Renato > > > > 2014-10-31 17:26 GMT-02:00 Arend van Spriel: >> + backport list >> >> Please keep the list in the loop. >> >> On 10/31/14 20:08, Renato wrote: >>> >>> Arend, >>> >>> After doing a make install, only compat.ko and >>> compat_firmware_class.ko was generated. >>> >>> I thought it was an unified driver and because of that no alx.ko was >>> needed. >>> >>> Searching on source tree for "alx*", only the source code was found on >>> ./drivers/net/ethernet/atheros/alx (no kernel module). >>> >>> Before making, I've called the script driver-select with alx as parameter. >>> >>> Do you hane any ideia why the alx.ko module was not build them? >> >> >> It has been a while since I used the "old" compat-drivers stuff. I guess you >> need to for 2.6.24 support. You should check >> drivers/net/ethernet/atheros/Makefile. >> >> Gr. AvS >> >> >>> Thanks >>> >>> 2014-10-31 17:03 GMT-02:00 Arend van Spriel: >>>> >>>> On 10/31/14 19:40, Renato wrote: >>>>> >>>>> >>>>> Hi, >>>>> >>>>> I have and old Linux system built from scratch based on kernel 2.6.24 >>>>> and I need to add support on it for an Atheros ethernet card that >>>>> doesnt have driver for kernel 2.6.24. >>>>> >>>>> Unfortunately we can't update the kernel because my client has a >>>>> control hardware that only have binary e propertery driver for 2.6.24. >>>>> >>>>> Because of that, I'm trying to use compat-drivers to do that. >>>>> >>>>> What I did so far was: >>>>> >>>>> Downloaded compat-drivers-3.8.3-2-snpu and extraceted it. >>>>> Compiled it using: >>>>> >>>>> ./scripts/driver-select alx >>>>> make >>>>> make install >>>>> >>>>> After rebooting, I loaded the compat driver with: >>>>> >>>>> modprobe compat >>>>> >>>>> I can see the following on dmesg: >>>>> >>>>> Compat-drivers backport release: compat-drivers-v3.8.3-2-snpu >>>>> Backport based on linux-stable.git v3.8.3 >>>>> compat.git: linux-stable.git >>>>> >>>>> Nothing more. And no eth yet. >>>>> >>>>> What I am missing? >>>> >>>> >>>> >>>> After loading compat you have the glue layer in place to load the actual >>>> 3.8.3 drivers on 2.6.24. So your next step would be to modprobe the alx >>>> driver or whatever it is called. >>>> >>>> Regards, >>>> Arend >>>>> >>>>> >>>>> Thanks >>>>> -- >>>>> To unsubscribe from this list: send the line "unsubscribe backports" in >>>>> the body of a message to majordomo@vger.kernel.org >>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>>> >>>> >>>> >> > -- > To unsubscribe from this list: send the line "unsubscribe backports" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html