Dear all,
I add a new driver to kernel, and it probe success. When enter into systemd,
the udevadm generate a kernel panic.
I want to ask how to debug it and find out where the error occurred? When did
udevadm load? What commands are used by udevadm, and what are the specific
operations?
[3.291819] pmbus 13-0058: PMBus status register not found
[3.297940] pmbus 13-0059: PMBus status register not found
[3.305830] usbcore: registered new interface driver usbhid
[3.311417] usbhid: USB HID core driver
[3.326527] aspeed_jtag: driver successfully loaded.-->
load the driver success
[3.335427] NET: Registered protocol family 10
[3.345639] Segment Routing with IPv6
[3.349995] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[3.357507] NET: Registered protocol family 17
[3.362012] 8021q: 802.1Q VLAN Support v1.8
[3.379650] printk: console [netcon0] enabled
[3.384027] netconsole: network logging started
[3.390140] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[3.398913] hctosys: unable to open rtc device (rtc0)
[3.411203] Freeing unused kernel memory: 1024K
[3.419068] Checked W+X mappings: passed, no W+X pages found
[3.424841] Run /init as init process
rofs = mtd4 squashfs rwfs = mtd5 jffs2
[4.392201] jffs2: notice: (681) jffs2_build_xattr_subsystem: complete
building xattr subsystem, 8 of xdatum (0 unchecked, 1 orphan) and 11 of xref (1
dead, 0 orphan) found.
[4.448757] overlayfs: upper fs does not support tmpfile.
[6.760748] systemd[1]: System time before build time, advancing clock.
[6.893492] systemd[1]: systemd 242-19-gdb2e367+ running in system mode.
(+PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP
-GCRYPT -GNUTLS -ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS -KMOD -IDN2 -IDN -PCRE2
default-hierarchy=hybrid)
[6.917878] systemd[1]: Detected architecture arm.
Welcome to Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)
2.7.0-dev!
[7.033813] systemd[1]: Set hostname to .
[7.769096] systemd[1]: File /lib/systemd/system/systemd-journald.service:12
configures an IP firewall (IPAddressDeny=any), but the local system does not
support BPF/cgroup based firewalling.
[7.786341] systemd[1]: Proceeding WITHOUT firewalling in effect! (This
warning is only shown for the first loaded unit using IP firewalling.)
[8.942114] systemd[1]: /lib/systemd/system/phosphor-ipmi-net@.socket:3:
Invalid interface name, ignoring: sys-subsystem-net-devices-%i.device
[8.982380] systemd[1]: /lib/systemd/system/dbus.socket:4: ListenStream=
references a path below legacy directory /var/run/, updating
/var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update
the unit file accordingly.
[9.66] systemd[1]: Reached target Fans Ready.
[ OK ] Reached target Fans Ready.
[9.148717] systemd[1]: Created slice system-phosphor\x2dipmi\x2dkcs.slice.
[ OK ] Created slice system-phosphor\x2dipmi\x2dkcs.slice.
[9.199247] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ OK ] Reached target Slices.
[ OK ] Created slice system-phosphor\x2dipmi\x2dnet.slice.
[ OK ] Reached target Remote File Systems.
[ OK ] Created slice system-mapper\x2dwait.slice.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
[ OK ] Created slice system-phosphor\x2dgpio\x2dmonitor.slice.
[ OK ] Listening on Journal Socket.
Mounting Kernel Configuration File System...
[ OK ] Started Dispatch Password …ts to Console Directory Watch.
[ OK ] Reached target Paths.
[ OK ] Created slice system-phosp…dcertificate\x2dmanager.slice.
[ OK ] Listening on initctl Compatibility Named Pipe.
Mounting Kernel Debug File System...
[ OK ] Created slice system-obmc\x2dled\x2dgroup\x2dstart.slice.
[ OK ] Reached target Swap.
Mounting Temporary Directory (/tmp)...
[ OK ] Listening on Network Service Netlink Socket.
[ OK ] Started Hardware RNG Entropy Gatherer Daemon.
[ OK ] Created slice system-getty.slice.
[ OK ] Listening on udev Control Socket.
Starting udev Coldplug all Devices...
[ OK ] Listening on Syslog Socket.
[ OK ] Created slice system-obmc\x2dconsole.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-obmc\x2dread\x2deeprom.slice.
Starting Apply Kernel Variables...
Starting Remount Root and Kernel File Systems...
[ OK ] Started Set initial fan speed when BMC starts..
[ OK ] Listening on Journal Socket (/dev/log).
Starting Journal Service...
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Started Remount Root and Kernel File Systems.
Starting Rebuild Hardware Database...
Starting Create System Users...
[ OK ] Started Apply Kernel Variables.
[ OK ]