siemens / meta-iot2050

SIMATIC IOT2050 Isar/Debian Board Support Package
MIT License
129 stars 76 forks source link

Kernel OOPS while using rmmod for ethernet driver #427

Closed sgthammer closed 8 months ago

sgthammer commented 1 year ago

Hello,

For an image with swupdate support, I tried to remove ethernet driver module using rmmod. "rmmod iccsg_prueth" command is used for this aim and the rmmod throws segmentation fault. Also, kernel throws OOPS as internal error. Kernel log file is attached.

What could be the reason causes this issue? oops.log

nhahnetsrot commented 1 year ago

Pls. try the attached patch, needs to be copied to meta-iot2050/recipes-kernel/linux/files/patches-5.10/ and then the image needs to be rebuild (e.g.: sudo kas-container clean; kas-container build )

0211-fix-rmmod.patch

Reason for the crash is a bug in the driver. With the attached patch it is possible to unload / load icssg-prueth.ko without crash, network successfully resumes on reload. Pls give it a try.

jan-kiszka commented 9 months ago

Will be fixed by #491