Kernel panic caused by devmem
switchapp233 opened this issue · comments
I did the following steps:
- add "CONFIG_DEVMEM=y" in https://github.com/openbmc/openbmc/blob/master/meta-ibm/meta-romulus/recipes-kernel/linux/linux-aspeed/romulus.cfg
2.Kernel panic will appear when I issue the devmem command on Romulus image.
logs:
[ 32.147617] Unable to handle kernel NULL pointer dereference at virtual address 00000020
[ 32.155851] pgd = a3a5f201
[ 32.158578] [00000020] *pgd=962e7831, *pte=00000000, *ppte=00000000
[ 32.164974] Internal error: Oops: 17 [#1] ARM
[ 32.169360] CPU: 0 PID: 213 Comm: devmem Not tainted 5.8.8-9dfd247-dirty-14e2189 #1
[ 32.177007] Hardware name: Generic DT based system
[ 32.181814] PC is at open_port+0x54/0x70
[ 32.185761] LR is at capable+0x40/0x84
[ 32.189516] pc : [<8044c07c>] lr : [<8011f7c8>] psr: 60000013
This happens after this commit "linux-aspeed: Move to Linux 5.7" openbmc/openbmc@38a5d87#diff-0c39c5460633a3ce524bc59ba08492b7783c95674b00fc01ed39b8d266360295
The problem has been solved, so close it.
https://www.programmersought.com/article/65202093696/
https://shenki.github.io/openbmc-dev-mem/
https://lists.ozlabs.org/pipermail/openbmc/2018-October/013779.html