On 11/17/2015 09:04 AM, ian c wrote:
> Hi All,
> 
> I created a rule file to copy the compiled the kernel out of tree driver to 
> rootFS home directory. I able to success copying the file using the command 
> below.
> @$(call install_copy, test-modules, 0, 0, 0755, 
> $(TEST_MODULES_DIR)/$(TEST_MODULES)/test.ko, /home/test.ko)
> 
> when i run the image and do the insmod test.ko, it returns
> "insmod: can't insert 'test.ko': invalid module format"
> 
> BUT if i copy the file manually using winscp to the running image, the insmod 
> works perfectly.
> 
> Do you think i did wrong on using the install_copy? 

try:

    @$(call install_copy, test-modules, 0, 0, 0755, 
$(TEST_MODULES_DIR)/$(TEST_MODULES)/test.ko, /home/test.ko, k)

instead.

regards,
Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
oselas mailing list
oselas@community.pengutronix.de

Reply via email to