We have developed a router board based on the Freescale PowerPC MPC8315erdb. We have mostly everything working on the board, I can even detect the ralink device with the lspci command in linux. I am busy trying to compile the ralink drivers into the system but am having some trouble. Currently I make the ralink drivers linked to my linux source directory /ltib-mpc8315erdb-20080629/rpm/BUILD/linux-188.8.131.52/ build the driver. I then copy the .ko file to lib/modules/184.108.40.206/ and i copy the .dat file to etc/wireless - I then build the file system using the ltib software provided by freescale, when I run insmod rt2860atp i get the following error
insmod cannot insert `/lib/modules/220.127.116.11-rt3/rt2860sta.ko' Invalid module format (-1) Exec format error
Is this a problem with my linking to the correct kernel, I get the same error when using the working .ko file from the MPC8377EWLAN which runs the 2.6.25 kernel? Am I leaving out an important file?