Hi ALL
I download piCore 8.0 to s new sd card and then i run following command after sudo su:
mkdir /mnt/mmcblk0p2/src
mkdir /mnt/mmcblk0p2/src/tmp
cd /mnt/mmcblk0p2/src
wget
http://tinycorelinux.net/8.x/armv6/releases/RPi/src/kernel/4.4.20_RaspberryPi_src.tar.xz -P /mnt/mmcblk0p2/src
wget
http://tinycorelinux.net/8.x/armv6/releases/RPi/src/kernel/4.4.20-piCore+.config.xz -P /mnt/mmcblk0p2/src
unxz 4.4.20_RaspberryPi_src.tar.xz
tar -xvf 4.4.20_RaspberryPi_src.tar
unxz 4.4.20-piCore+.config.xz
cp 4.4.20-piCore\+.config ./4.4.20/.config
cd 4.4.20/
make modules
#install
sudo make INSTALL_MOD_PATH=/mnt/mmcblk0p2/src/tmp modules_install firmware_install
cd /mnt/mmcblk0p2/src/tmp/
sudo insmod /mnt/mmcblk0p2/src/tmp/lib/modules/4.4.20-piCore/kernel/drivers/net/ppp/ppp_generic.ko
I got his error:
insmod: can't insert '/mnt/mmcblk0p2/src/tmp/lib/modules/4.4.20-piCore/kernel/drivers/net/ppp/ppp_generic.ko': invalid module format
then I run this command to get the module version info
modinfo -Fvermagic /mnt/mmcblk0p2/src/tmp/lib/modules/4.4.20-piCore/kernel/drivers/net/ppp/ppp_generic.ko
here is what I got:
--------------------------------
vermagic: 4.4.20-piCore mod_unload modversions ARMv6
-------------------------------------------------------------------------------------
Then I looked an existing module version
modinfo -Fvermagic /lib/modules/4.4.20-piCore_v7+/kernel/drivers/i2c/i2c-dev.ko.gz
What I got was:
-------------------------------------------------------------------------------------
vermagic: 4.4.20-piCore_v7+ SMP mod_unload modversions ARMv7
-------------------------------------------------------------------------------------
which means, exisitng module had different vermagic info, that's why I cannot install a compiled module even on same PI3.
I don't have this issue on piCore 7.x
So my question is, how to compile modules with vermaigc as same as existing modules?
Can anybody pls help?
tks
Larry