linux-armv7-xe303c12-only icon indicating copy to clipboard operation
linux-armv7-xe303c12-only copied to clipboard

How to regenerate modules for the 5.4.244 kernel recompiled with the bridge enabled.

Open Marietto2008 opened this issue 10 months ago • 3 comments

Helllo.

At the end I've been able to boot FreeBSD 13.2 for armv7 as guest OS on my ARM Chromebook using these qemu parameters :

EFICODE=/home/marietto/Dati/Si/AAVMF32_CODE.fd
UEFIVARS=/home/marietto/Dati/Si/AAVMF32_VARS.fd
CD=/home/marietto/Dati/Si/FreeBSD-13.2-RELEASE-arm-armv7-GENERICSD.img
DISK=/home/marietto/Dati/Si/FreeBSD.img

qemu-system-arm \
-enable-kvm -serial stdio \
-m 512 -M virt -cpu cortex-a15 \
-drive if=pflash,format=raw,unit=0,file=$UEFICODE \
-drive if=pflash,format=raw,unit=1,file=$UEFIVARS \
-drive file=$CD,media=disk,format=raw \
-drive file=$DISK,format=raw \
-device i82559er,netdev=net0,mac="52:54:00:12:34:55" \
-netdev tap,ifname=tap0,script=no,id=net0  \
-device virtio-gpu-pci \
-usb -device nec-usb-xhci \
-device usb-kbd -device usb-mouse \
-device vmware-svga,id=video0,vgamem_mb=16

I've recompiled kernel 5.4.244 because I need to create a qemu bridged or tun tapped connection and I realized that in the config file the parameter bridge was disabled (CONFIG_BRIDGE not set) as well as the IP TABLES (CONFIG_NF_TABLES not set). I have also recompiled the kernel modules like follows :

root@devuan:/home/marietto/Dati/No/linux-5.4.244# make modules

no errors

and :

root@devuan:/home/marietto/Dati/No/linux-5.4.244# make modules install


  LD [M]  sound/usb/snd-usbmidi-lib.ko

sh ./arch/arm/boot/install.sh "5.4.244" \

arch/arm/boot/Image System.map "/boot"

run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.4.244 /boot/vmlinuz-5.4.244

run-parts: executing /etc/kernel/postinst.d/initramfs-tools 5.4.244 /boot/vmlinuz-5.4.244

update-initramfs: Generating /boot/initrd.img-5.4.244

cryptsetup: ERROR: Couldn't resolve device /dev/root

cryptsetup: WARNING: Couldn't determine root device

run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 5.4.244 /boot/vmlinuz-5.4.244

But mouse,keyboard and trackpad does not work.

Marietto2008 avatar Aug 14 '23 23:08 Marietto2008