Bug 1949817

Summary: NXP i.MX8MM reset by watchdog because wdt isn't in the initrd and loads too late
Product: [Fedora] Fedora Reporter: Peng Fan <peng.fan>
Component: IoTAssignee: Peter Robinson <pbrobinson>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: acaringi, adscvr, airlied, alciregi, bskeggs, hdegoede, jarodwilson, jeremy, jglisse, jonathan, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, pbrobinson, peng.fan, ptalbert, steved
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-26 00:26:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1269538    

Description Peng Fan 2021-04-15 07:48:55 UTC
1. Please describe the problem:
When installing Fedora Fedora-IoT-IoT-ostree-aarch64-33-20210214 on i.MX8MM-EVK, kernel reboot, log as below:
[  OK  ] Finished Load Kernel Module configfs.
[  OK  ] Created slice system-lvm2\x2dpvscan.slice.
         Starting LVM event activation on device 179:3...
[  OK  ] Found device /dev/zram0.
         Starting Create swap on /dev/zram0...
[  OK  ] Finished Create swap on /dev/zram0.
         Activating swap Compressed swap on /dev/zram0...
[  OK  ] Activated swap Compressed swap on /dev/zram0.
[  OK  ] Reached target Swap.
         Mounting Temporary Directory (/tmp)...
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Finished LVM event activation on device 179:3.
[  OK  ] Finished Wait for udev To Complete Device Initialization.
         Starting Activation of DM RAID sets...

U-Boot SPL 2021.04-rc3-11707-ga1a321567a (Mar 16 2021 - 14:18:51 +0800) Normal Boot
WDT:   Started with servicing (60s timeout)
Trying to boot from MMC2
NOTICE:  BL31: v2.2(release):imx_5.4.70_er4-1-gfd86e9176
NOTICE:  BL31: Built : 08:55:58, Feb  3 2021


U-Boot 2021.04-rc3-11707-ga1a321567a (Mar 16 2021 - 14:18:51 +0800)

CPU:   Freescale i.MX8MMQ rev1.0 at 1200 MHz
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM:  2 GiB
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52] Power supply on USB2
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
WDT:   Started with servicing (60s timeout)
MMC:   FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@30be0000
Hit any key to stop autoboot:  0
u-boot=>

It is because imx_wdt2 not working, please build in or load imx_wdt2 module earlier.

Comment 1 Peter Robinson 2021-04-15 14:33:02 UTC
This isn't a kernel problem, it's because the module isn't in the initrd. Tracking this in the Fedora IoT kanban board here: https://teams.fedoraproject.org/project/fedora-iot/us/98

Comment 2 Peter Robinson 2021-04-21 12:00:42 UTC
Upstream pull request for dracut: https://github.com/dracutdevs/dracut/pull/1377
Commit for Fedora IoT: https://pagure.io/fedora-iot/ostree/c/fb64a374e895e5b76e2d2337bffc046bb3bd2731?branch=main

Comment 3 Fedora Update System 2021-04-23 09:14:33 UTC
FEDORA-2021-9dd2ebc2a8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-9dd2ebc2a8

Comment 4 Fedora Update System 2021-04-23 19:50:01 UTC
FEDORA-2021-9dd2ebc2a8 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-9dd2ebc2a8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9dd2ebc2a8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-04-23 21:30:11 UTC
FEDORA-2021-9dd2ebc2a8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-9dd2ebc2a8

Comment 6 Fedora Update System 2021-04-24 19:53:30 UTC
FEDORA-2021-9dd2ebc2a8 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-9dd2ebc2a8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9dd2ebc2a8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-04-26 00:26:48 UTC
FEDORA-2021-9dd2ebc2a8 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.