Hi Snisarg,
sorry for delay. I was in vacation for few days.
You use the linux kernel version 2.6.35. The sk98lin driver v10.85.9.3 does not support this kernel. Here is the workaround:
1) use ./install.sh -> 3) generate makefile -> follow the commands on display:
$ export ...
$ make ...
it will fail.
2) in DriverInstall/src/skge.c file do as follows:
Replace the lines with (-) to (+)
- struct dev_mc_list *pMcList;*/
+ struct netdev_hw_addr *ha; int i;
............
("Number of MC entries: %d ", dev->mc_count));
- pMcList = dev->mc_list;
- for (i=0; i<dev->mc_count; i++, pMcList = pMcList->next) {
- SkAddrMcAdd(pAC, pAC->IoBase, PortIdx,
- (SK_MAC_ADDR*)pMcList->dmi_addr, 0);
- SK_DBG_MSG(NULL, SK_DBGMOD_DRV, SK_DBGCAT_DRV_MCA,
- ("%02x:%02x:%02x:%02x:%02x:%02x\n",
- pMcList->dmi_addr[0],
- pMcList->dmi_addr[1],
- pMcList->dmi_addr[2],
- pMcList->dmi_addr[3],
- pMcList->dmi_addr[4],
- pMcList->dmi_addr[5]));
- }
+ i=0;
+ netdev_for_each_mc_addr (ha, dev){
+ SkAddrMcAdd(pAC, pAC->IoBase, PortIdx,
+ (SK_MAC_ADDR*)ha->addr, 0);
+ SK_DBG_MSG(NULL, SK_DBGMOD_DRV, SK_DBGCAT_DRV_MCA,
+ ("%02x:%02x:%02x:%02x:%02x:%02x\n"));
+ i++;
+ }
SkAddrMcUpdate(pAC, pAC->IoBase, PortIdx)
3) use make command again to bulid the driver (sk98lin.ko)
4) load the driver with:
$ insmod src/sk98lin.ko
Please let me know if it works.
Bookmarks