UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor csporer
Visitor
242 Views
Registered: ‎06-29-2017

Kernel 4.19 hangs by reboot (Zynq700)

Jump to solution

Hello,

after changing from Kernel 4.14 to 4.19 I have the problem, that the kernel hangs at reboot:

[  OK  ] Reached target Reboot.
[   61.307069] systemd-shutdow: 29 output lines suppressed due to ratelimiting
[   61.346581] systemd-shutdown[1]: Syncing filesystems and block devices.
[   61.353506] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[   61.368289] systemd-journald[666]: Received SIGTERM from PID 1 (systemd-shutdow).
[   61.431060] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[   61.443445] systemd-shutdown[1]: Hardware watchdog 'cdns_wdt watchdog', version 0
[   61.453684] systemd-shutdown[1]: Unmounting file systems.
[   61.460176] systemd-shutdown[1]: All filesystems unmounted.
[   61.465829] systemd-shutdown[1]: Deactivating swaps.
[   61.470991] systemd-shutdown[1]: Failed to parse (null): No such file or directory
[   61.478572] systemd-shutdown[1]: Failed to deactivate swaps: No such file or directory
[   61.486720] systemd-shutdown[1]: Detaching loop devices.
[   61.521882] reboot: Restarting system

It looks the same as the output by the 4.14, but the old kernel resets to the uboot.

 

I compared the configs and in the 4.19 kernel the config CONFIG_VECTORS_BASE=0xffff0000 is missing.

Is that a problem? It feels like the reset address is missing?

After switching power off it starts normally.

 

Best regards

0 Kudos
1 Solution

Accepted Solutions
Visitor csporer
Visitor
39 Views
Registered: ‎06-29-2017

Re: Kernel 4.19 hangs by reboot (Zynq700)

Jump to solution

Now I found the real problem!

 

In the m25p80 kernel driver is a bug in the shutdown function.

The history do not show the change to the false call, but that should be fixed in the kernel.

Here is the path:

diff -Naur a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
--- a/drivers/mtd/devices/m25p80.c	2019-12-02 16:49:19.000000000 +0100
+++ b/drivers/mtd/devices/m25p80.c	2019-12-02 16:51:18.634496771 +0100
@@ -265,7 +265,7 @@
 {
 	struct m25p *flash = spi_mem_get_drvdata(spimem);
 
-	spi_nor_restore(&flash->spi_nor);
+	spi_nor_shutdown(&flash->spi_nor);
 }
 /*
  * Do NOT add to this array without reading the following:

 

Best regards!

View solution in original post

0 Kudos
1 Reply
Visitor csporer
Visitor
40 Views
Registered: ‎06-29-2017

Re: Kernel 4.19 hangs by reboot (Zynq700)

Jump to solution

Now I found the real problem!

 

In the m25p80 kernel driver is a bug in the shutdown function.

The history do not show the change to the false call, but that should be fixed in the kernel.

Here is the path:

diff -Naur a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
--- a/drivers/mtd/devices/m25p80.c	2019-12-02 16:49:19.000000000 +0100
+++ b/drivers/mtd/devices/m25p80.c	2019-12-02 16:51:18.634496771 +0100
@@ -265,7 +265,7 @@
 {
 	struct m25p *flash = spi_mem_get_drvdata(spimem);
 
-	spi_nor_restore(&flash->spi_nor);
+	spi_nor_shutdown(&flash->spi_nor);
 }
 /*
  * Do NOT add to this array without reading the following:

 

Best regards!

View solution in original post

0 Kudos