Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: halma on April 28, 2018, 04:19:13 AM

Title: modprobe: can't load module ipv6 (kernel.tclocal/net/ipv6/ipv6.ko.gz): Invalid a
Post by: halma on April 28, 2018, 04:19:13 AM
on a remastered TC 9x x64, when i try to
Code: [Select]
sudo modprobe bridge
NET: Registered protocol family 10
NET: Unregistered protocol family 10
modprobe: can't load module ipv6 (kernel.tclocal/net/ipv6/ipv6.ko.gz): Invalid argument

Code: [Select]
sudo find / -name "ipv6.ko.gz"
/usr/local/lib/modules/4.14.10-tinycore64/kernel/net/ipv6/ipv6.ko.gz

whats wrong ?  maybe it comes from the problem, while symlinking from
Code: [Select]
sudo ln -s /usr/local/lib/modules/"$KERNEL_VERSION-tinycore64"/kernel $BUILDDIR/lib/modules/"$KERNEL_VERSION-tinycore64"/kernel.tclocal at the building stage ?
Title: Re: modprobe: can't load module ipv6 (kernel.tclocal/net/ipv6/ipv6.ko.gz): Invalid a
Post by: Misalf on April 28, 2018, 07:32:52 AM
I believe you need to run something like
Code: [Select]
sudo depmod -a -b "$BUILDDIR" $KERNEL_VERSION-tinycore64
Title: Re: modprobe: can't load module ipv6 (kernel.tclocal/net/ipv6/ipv6.ko.gz): Invalid a
Post by: curaga on April 28, 2018, 09:50:50 AM
The module looks incompatible with your kernel. dmesg may have more info.
Title: Re: modprobe: can't load module ipv6 (kernel.tclocal/net/ipv6/ipv6.ko.gz): Invalid a
Post by: halma on April 30, 2018, 12:45:35 PM
i have recompiled the 4.14.10 kernel with the official kernel .config file from tinycorelinux team and only with these changes so far, now it works. Thanks a lot to all

Code: [Select]
echo "enable loop devices builtin"
sed -i -re 's/^(CONFIG_BLK_DEV_LOOP=.*|# CONFIG_BLK_DEV_LOOP is not set)/CONFIG_BLK_DEV_LOOP=y/' .config

echo "enable bridge support builtin"
sed -i -re 's/^(CONFIG_BRIDGE=.*|# CONFIG_BRIDGE is not set)/CONFIG_BRIDGE=y/;
            s/^(CONFIG_STP=.*|# CONFIG_STP is not set)/CONFIG_STP=y/' .config

echo "enable IPV6 support builtin"
sed -i -re 's/^(CONFIG_IPV6=.*|# CONFIG_IPV6 is not set)/CONFIG_IPV6=y/' .config