cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nick_3
Visitor
Visitor
633 Views
Registered: ‎08-26-2019

Petalinux 2018.3 reboot command error.

Hi,

I`m facing a problem with the reboot command in petalinux 2018.3. When I try to reboot my Zynq ultrascale + MpSoc SOM, it shows segmentation fault. Following messages are displayed on the terminal

 

root@GPIO_18_3:~# reboot

Broadcast message from root@GPIO_18_3 (ttyPS0) (Wed Sep 25 06:27:03 2
ÊJÒj
The system is going down for reboot NOW!
INIT: Sending processes the TERM signal
root@GPIO_18_3:~# Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 2210)
dropbear.
Stopping syslogd/klogd: stopped syslogd (pid 2218)
stopped klogd (pid 2221)
done
Stopping tcf-agent: OK
Deconfiguring network interfaces... ifdown: interface eth0 not configured
done.
Sending all processes the TERM signal...
Sending all processes the KILL signal...
Unmounting remote filesystems...
Deactivating swap...
Unmounting local filesystems...
Rebooting... [ 22.223412] kobject: '(null)' (ffffffc06b4f5b58): is not initialized, yet kobject_get() is being called.
[ 22.232944] ------------[ cut here ]------------
[ 22.237562] WARNING: CPU: 3 PID: 2295 at /kernel-source//lib/kobject.c:597 kobject_get+0x58/0x60
[ 22.246334] Modules linked in: uio_pdrv_genirq
[ 22.250773] CPU: 3 PID: 2295 Comm: reboot Not tainted 4.14.0-xilinx-v2018.3 #21
[ 22.258069] Hardware name: xlnx,zynqmp (DT)
[ 22.262236] task: ffffffc06cd40600 task.stack: ffffff800d0a8000
[ 22.268141] PC is at kobject_get+0x58/0x60
[ 22.272220] LR is at kobject_get+0x58/0x60
[ 22.276298] pc : [<ffffff8008a40ff8>] lr : [<ffffff8008a40ff8>] pstate: 60000145
[ 22.283675] sp : ffffff800d0abcf0
[ 22.286974] x29: ffffff800d0abcf0 x28: ffffffc06cd40600
[ 22.292277] x27: ffffff8008a61000 x26: ffffff8008cad000
[ 22.297572] x25: ffffff8008cad550 x24: ffffff8009d59040
[ 22.302867] x23: ffffffc06d338070 x22: ffffff8009f5a000
[ 22.308162] x21: 0000000000000000 x20: ffffffc06b4f5b48
[ 22.313457] x19: ffffffc06b4f5b58 x18: 0000000000000010
[ 22.318751] x17: 0000000000413058 x16: ffffff80080bb9f8
[ 22.324046] x15: ffffffffffffffff x14: 2029287465675f74
[ 22.329341] x13: ffffff8009cb8aa8 x12: ffffff80085190c8
[ 22.334636] x11: 6c616974696e6920 x10: 0000000000000007
[ 22.339931] x9 : 2938356235663462 x8 : 2e64656c6c616320
[ 22.345226] x7 : 676e696562207369 x6 : 000000000000015b
[ 22.350520] x5 : 0000000000000064 x4 : 0000000000000000
[ 22.355815] x3 : 0000000000000000 x2 : ffffffffffffffff
[ 22.361110] x1 : ffffff8009cccf08 x0 : 000000000000005c
[ 22.366405] Call trace:
[ 22.368838] Exception stack(0xffffff800d0abbb0 to 0xffffff800d0abcf0)
[ 22.375261] bba0: 000000000000005c ffffff8009cccf08
[ 22.383073] bbc0: ffffffffffffffff 0000000000000000 0000000000000000 0000000000000064
[ 22.390885] bbe0: 000000000000015b 676e696562207369 2e64656c6c616320 2938356235663462
[ 22.398698] bc00: 0000000000000007 6c616974696e6920 ffffff80085190c8 ffffff8009cb8aa8
[ 22.406510] bc20: 2029287465675f74 ffffffffffffffff ffffff80080bb9f8 0000000000413058
[ 22.414322] bc40: 0000000000000010 ffffffc06b4f5b58 ffffffc06b4f5b48 0000000000000000
[ 22.422134] bc60: ffffff8009f5a000 ffffffc06d338070 ffffff8009d59040 ffffff8008cad550
[ 22.429946] bc80: ffffff8008cad000 ffffff8008a61000 ffffffc06cd40600 ffffff800d0abcf0
[ 22.437758] bca0: ffffff8008a40ff8 ffffff800d0abcf0 ffffff8008a40ff8 0000000060000145
[ 22.445570] bcc0: ffffffc06b4f5b58 0000000000000000 0000008000000000 ffffffc06d3381a0
[ 22.453381] bce0: ffffff800d0abcf0 ffffff8008a40ff8
[ 22.458244] [<ffffff8008a40ff8>] kobject_get+0x58/0x60
[ 22.463377] [<ffffff80085817b8>] device_shutdown+0x78/0x1f8
[ 22.468940] [<ffffff80080bb734>] kernel_restart_prepare+0x34/0x40
[ 22.475022] [<ffffff80080bb814>] kernel_restart+0x14/0x78
[ 22.480404] [<ffffff80080bbab4>] SyS_reboot+0xbc/0x1d0
[ 22.485531] Exception stack(0xffffff800d0abec0 to 0xffffff800d0ac000)
[ 22.491956] bec0: fffffffffee1dead 0000000028121969 0000000001234567 0000000000000002
[ 22.499768] bee0: 0000000000000000 0000000000000003 0000007fa4a43c28 0000000000000000
[ 22.507580] bf00: 000000000000008e 0000000000000003 0101010101010101 0000000000000000
[ 22.515392] bf20: 0000000000000000 0000007fa4a74000 0000007fa4906d98 0000007fa48f9d00
[ 22.523204] bf40: 0000007fa49bbd18 0000000000413058 00000000000002dc 00000000004027b0
[ 22.531017] bf60: 0000007fcb0ccad8 0000000000000003 0000000000000000 0000000000413000
[ 22.538828] bf80: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
[ 22.546641] bfa0: 0000000000000001 0000007fcb0cc930 000000000040140c 0000007fcb0cc930
[ 22.554453] bfc0: 0000007fa49bbd34 0000000080000000 fffffffffee1dead 000000000000008e
[ 22.562265] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 22.570078] [<ffffff80080837b0>] el0_svc_naked+0x24/0x28
[ 22.575379] ---[ end trace 9f33944ce68a3b73 ]---
[ 22.580001] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 22.588086] Mem abort info:
[ 22.590871] Exception class = DABT (current EL), IL = 32 bits
[ 22.596781] SET = 0, FnV = 0
[ 22.599828] EA = 0, S1PTW = 0
[ 22.602961] Data abort info:
[ 22.605833] ISV = 0, ISS = 0x00000046
[ 22.609662] CM = 0, WnR = 1
[ 22.612618] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc011be4000
[ 22.619132] [0000000000000000] *pgd=00000000110b6003, *pud=00000000110b6003, *pmd=0000000000000000
[ 22.628083] Internal error: Oops: 96000046 [#1] SMP
[ 22.632944] Modules linked in: uio_pdrv_genirq
[ 22.637374] CPU: 3 PID: 2295 Comm: reboot Tainted: G W 4.14.0-xilinx-v2018.3 #21
[ 22.645878] Hardware name: xlnx,zynqmp (DT)
[ 22.650045] task: ffffffc06cd40600 task.stack: ffffff800d0a8000
[ 22.655949] PC is at device_shutdown+0x80/0x1f8
[ 22.660463] LR is at device_shutdown+0x78/0x1f8
[ 22.664975] pc : [<ffffff80085817c0>] lr : [<ffffff80085817b8>] pstate: 60000145
[ 22.672352] sp : ffffff800d0abd10
[ 22.675651] x29: ffffff800d0abd10 x28: ffffffc06cd40600
[ 22.680946] x27: ffffff8008a61000 x26: ffffff8008cad000
[ 22.686240] x25: ffffff8008cad550 x24: ffffff8009d59040
[ 22.691535] x23: ffffffc06d338070 x22: ffffff8009f5a000
[ 22.696830] x21: 0000000000000000 x20: ffffffc06b4f5b48
[ 22.702125] x19: ffffffc06b4f5b60 x18: 0000000000000010
[ 22.707420] x17: 0000000000413058 x16: ffffff80080bb9f8
[ 22.712715] x15: ffffffffffffffff x14: 2029287465675f74
[ 22.718009] x13: ffffff8009cb8aa8 x12: ffffff80085190c8
[ 22.723304] x11: 6c616974696e6920 x10: 0000000000000007
[ 22.728599] x9 : 2938356235663462 x8 : 2e64656c6c616320
[ 22.733894] x7 : 676e696562207369 x6 : 000000000000015b
[ 22.739189] x5 : 0000000000000064 x4 : 0000000000000000
[ 22.744484] x3 : 0000000000000000 x2 : ffffffc06b4f5b90
[ 22.749779] x1 : ffffffc06d8f2100 x0 : 0000000000000000
[ 22.755074] Process reboot (pid: 2295, stack limit = 0xffffff800d0a8000)
[ 22.761756] Call trace:
[ 22.764189] Exception stack(0xffffff800d0abbd0 to 0xffffff800d0abd10)
[ 22.770612] bbc0: 0000000000000000 ffffffc06d8f2100
[ 22.778425] bbe0: ffffffc06b4f5b90 0000000000000000 0000000000000000 0000000000000064
[ 22.786237] bc00: 000000000000015b 676e696562207369 2e64656c6c616320 2938356235663462
[ 22.794049] bc20: 0000000000000007 6c616974696e6920 ffffff80085190c8 ffffff8009cb8aa8
[ 22.801861] bc40: 2029287465675f74 ffffffffffffffff ffffff80080bb9f8 0000000000413058
[ 22.809673] bc60: 0000000000000010 ffffffc06b4f5b60 ffffffc06b4f5b48 0000000000000000
[ 22.817486] bc80: ffffff8009f5a000 ffffffc06d338070 ffffff8009d59040 ffffff8008cad550
[ 22.825298] bca0: ffffff8008cad000 ffffff8008a61000 ffffffc06cd40600 ffffff800d0abd10
[ 22.833110] bcc0: ffffff80085817b8 ffffff800d0abd10 ffffff80085817c0 0000000060000145
[ 22.840922] bce0: ffffff800d0abcf0 ffffff8008a40ffc 0000008000000000 ffffff80085817b8
[ 22.848733] bd00: ffffff800d0abd10 ffffff80085817c0
[ 22.853595] [<ffffff80085817c0>] device_shutdown+0x80/0x1f8
[ 22.859151] [<ffffff80080bb734>] kernel_restart_prepare+0x34/0x40
[ 22.865235] [<ffffff80080bb814>] kernel_restart+0x14/0x78
[ 22.870617] [<ffffff80080bbab4>] SyS_reboot+0xbc/0x1d0
[ 22.875736] Exception stack(0xffffff800d0abec0 to 0xffffff800d0ac000)
[ 22.882161] bec0: fffffffffee1dead 0000000028121969 0000000001234567 0000000000000002
[ 22.889973] bee0: 0000000000000000 0000000000000003 0000007fa4a43c28 0000000000000000
[ 22.897785] bf00: 000000000000008e 0000000000000003 0101010101010101 0000000000000000
[ 22.905597] bf20: 0000000000000000 0000007fa4a74000 0000007fa4906d98 0000007fa48f9d00
[ 22.913409] bf40: 0000007fa49bbd18 0000000000413058 00000000000002dc 00000000004027b0
[ 22.921221] bf60: 0000007fcb0ccad8 0000000000000003 0000000000000000 0000000000413000
[ 22.929033] bf80: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
[ 22.936845] bfa0: 0000000000000001 0000007fcb0cc930 000000000040140c 0000007fcb0cc930
[ 22.944658] bfc0: 0000007fa49bbd34 0000000080000000 fffffffffee1dead 000000000000008e
[ 22.952469] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 22.960281] [<ffffff80080837b0>] el0_svc_naked+0x24/0x28
[ 22.965579] Code: 91004280 9412fdfb a9400261 f9000420 (f9000001)
[ 22.971661] ---[ end trace 9f33944ce68a3b74 ]---
/etc/rc6.d/S90reboot: line 15: 2295 Segmentation fault reboot -d -f
Give root password for maintenance
(or press Control-D to continue):

 

 

I`m using following platformtop.h

 

#include <configs/platform-auto.h>

/* Override default preboot settings */
#define CONFIG_PREBOOT "echo; echo U-BOOT for UltraZed ZynqMP; echo"

/* Extra U-Boot Env settings */
#define CONFIG_EXTRA_ENV_SETTINGS \
SERIAL_MULTI \
CONSOLE_ARG \
PSSERIAL0 \
"sd_dev=0\0" \
"sd_part=1\0" \
"fpga_dev=0\0" \
"root_dev=/dev/mmcblk0p2\0" \
"boot_env=uEnv.txt\0" \
"fpga_addr=0x15800000\0" \
"boot_env_addr=0x13800000\0" \
"dtb_addr=0x12200000\0" \
"kernel_addr=0x10000000\0" \
"loadbootenv=fatload mmc $sd_dev:$sd_part ${boot_env_addr} ${boot_env}\0" \
"importbootenv=env import -t ${boot_env_addr} $filesize\0" \
"fpga_img=design_1_wrapper.bit\0" \
"dtb_img=system.dtb\0" \
"kernel_img=Image\0" \
"setup_mmc=mmc dev $sd_dev:$sd_part\0" \
"cp_fpga2ram=fatload mmc $sd_dev:$sd_part ${fpga_addr} ${fpga_img}\0" \
"load_fpga=fpga loadb ${fpga_dev} ${fpga_addr} $filesize\0" \
"cp_dtb2ram=fatload mmc $sd_dev:$sd_part ${dtb_addr} ${dtb_img}\0" \
"cp_kernel2ram=fatload mmc $sd_dev:$sd_part ${kernel_addr} ${kernel_img}\0" \
"set_root_dev=env set root_dev /dev/mmcblk${sd_dev}p2\0" \
"set_bootargs=env set bootargs console=ttyPS0,115200 root=${root_dev} rw earlyprintk rootfstype=ext4 rootwait clk_ignore_unused\0" \
"bootcmd=run setup_mmc; run set_root_dev; run set_bootargs; run cp_fpga2ram; run load_fpga; run cp_dtb2ram; run cp_kernel2ram; booti ${kernel_addr} - ${dtb_addr}\0" \
"sd_boot=env set sd_dev 1; run bootcmd\0" \
""

Any help would be much appreciated.

0 Kudos
0 Replies