[School-GNU-Linux] details - sis190.c

Hello all,

I had to change two place in the sis190.c file, inorder t make my lan
controller work(p5sd2-vm Asus)

first place was here

   "
        net_probe(tp, KERN_INFO "%s: Read MAC address from APC.\n",
                  pci_name(pdev));

        isa_bridge = pci_get_device(PCI_VENDOR_ID_SI, 0x0965, NULL);
        if (!isa_bridge) {
                net_probe(tp, KERN_INFO "%s: Can not find ISA bridge.\n",
                          pci_name(pdev));
                return -EIO;
        }
"

     I changed that 0x0965 to 0x0968 ( to suit my south bridge controller chip,
It was giving messaged as "Can not find ISA bridge"

then i'd to add one line to include my lan controller chip infromation

   "static struct mii_chip_info {
        const char *name;
        u16 id[2];
        unsigned int type;
        u32 feature;
} mii_chip_table[] = {
        { "Broadcom PHY BCM5461", { 0x0020, 0x60c0 }, LAN, F_PHY_BCM5461 },
        { "Agere PHY ET1101B",    { 0x0282, 0xf010 }, LAN, 0 },
        { "Marvell PHY 88E1111",  { 0x0141, 0x0cc0 }, LAN, F_PHY_88E1111 },
        { "Realtek PHY RTL8201",  { 0x0000, 0x8200 }, LAN, 0 },
        { NULL, }"

       on top of "Broadcom PHY BCM5461 added my chip infromation like this


"static struct mii_chip_info {
        const char *name;
        u16 id[2];
        unsigned int type;
        u32 feature;
} mii_chip_table[] = {
        { "Atheros PHY AR8012",   { 0x004d, 0xd020 }, LAN, 0 },
        { "Broadcom PHY BCM5461", { 0x0020, 0x60c0 }, LAN, F_PHY_BCM5461 },
        { "Agere PHY ET1101B",    { 0x0282, 0xf010 }, LAN, 0 },
        { "Marvell PHY 88E1111",  { 0x0141, 0x0cc0 }, LAN, F_PHY_88E1111 },
        { "Realtek PHY RTL8201",  { 0x0000, 0x8200 }, LAN, 0 },
        { NULL, }"

  after making these two changes
                1) changing 0x0965 to 0x0968
                2) add a line "{ "Atheros PHY AR8012",   { 0x004d,
0xd020 }, LAN, 0 },"
                 on top of
                 { "Broadcom PHY BCM5461", { 0x0020, 0x60c0 }, LAN,
F_PHY_BCM5461 },
                 { "Agere PHY ET1101B",    { 0x0282, 0xf010 }, LAN, 0 },
                 { "Marvell PHY 88E1111",  { 0x0141, 0x0cc0 }, LAN, 
F_PHY_88E1111 },
                 { "Realtek PHY RTL8201",  { 0x0000, 0x8200 }, LAN, 0 },
                 { NULL, }"
 then compile the driver file sis190.c  to sis190.ko and insert it
with modprobe sis190 command
 Please note this infromation is for all the guys those confronted
with the similiar
problem, feel free  to mail me for compilied sis190.ko file for kernel
2.6.21-2-686.



                                                    regards
                                                    neel joe.


On 2/18/09, Vimal Joseph <vimaljoseph@xxxxxxxxx> wrote:
> To compile the driver,
>
> 1) You need to install the build-essential package (install it from
> synaptic)
> 2) Some times the kernal modules requires to install header files for
> the kernel. ( install the kernel-headers package for your kernel
> version, you can find the version of kernel you are using with the
> command uname -r
> 3) if you installed everything required, then enter into the directory
> where you keep the source code of the driver and issue the command
> make (the readme or INSTALL file have the complete instructions)
>
> HTH
>
> ~vimal
>
>
> On Mon, Feb 16, 2009 at 7:13 PM, neel joe <joe.neel@xxxxxxxxx> wrote:
>> Hello,
>>            I have recently lured into linux world and so far loving it. My
>> motheboard is p5sd2-vm(Asus) and lan controller
>> is not working in school linux. when i'm trying to complie driver file
>> sis190.c file with command "make sis190.ko"
>> i'm getting an error .tmp versions/sis190.mod.o no such file or directory
>> .
>> can anyone throw some light on this
>> matter. by the way in ubuntu 8.04 LTS version i'm successfully complied
>> the
>> same driver file.
>>
>> Thanks,
>> Neel Joe.
>
>
>
> --
> Free Software, Free Society
> സ്വതന്ത്ര സോഫ്​റ്റ്​വെയര്‍, സ്വതന്ത്ര സമൂഹം
> <http://fsfs.in>
> For Tips and Tricks on School GNU/Linux visit
> http://support.space-kerala.org
>
> To change your subscription options to this list visit
> http://support.space-kerala.org/mailinglist.html
>
>
>
For Tips and Tricks on School GNU/Linux visit
http://support.space-kerala.org

To change your subscription options to this list visit
http://support.space-kerala.org/mailinglist.html


Other related posts: