Date: Tue, 21 Aug 2018 17:42:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 230804] [loader] dtb overlays seems to corrupt the kernel env Message-ID: <bug-230804-7@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230804 Bug ID: 230804 Summary: [loader] dtb overlays seems to corrupt the kernel env Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: manu@freebsd.org When using multiple overlays it seems that it corrupts the kenv. Using the latest pine64 image with a dtb loaded by u-boot from the FAT partition (otherwise we can't use the overlays) and some overlays I got : Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x47ff9000. Loading DTB overlays: 'sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer' /boot/dtb/overlays/sun50i-a64-sid.dtbo size=3D0x1fd /boot/dtb/overlays/sun50i-a64-ths.dtbo size=3D0x3e8 /boot/dtb/overlays/sun50i-a64-timer.dtbo size=3D0x175 applying DTB overlay '/boot/dtb/overlays/sun50i-a64-sid.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-ths.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-timer.dtbo' EHCI failed to shut down host controller. ---<<BOOT>>--- KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-ALPHA2 #1291 r338074+327bec90b971(aw_timer)-dirty: Tue Aug 21 18:42:59 CEST 2018 =20=20=20 manu@skull.home.blih.net:/usr/home/manu/Work/freebsd/obj/usr/home/manu/Work= /freebsd/freebsd.git/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. WARNING: malformed static env value, ignoring interrupts WARNING: malformed static env value, ignoring clocks WARNING: malformed static env value, ignoring clock-names WARNING: malformed static env value, ignoring resets WARNING: malformed static env value, ignoring reset-names WARNING: malformed static env value, ignoring #thermal-sensor-cells WARNING: malformed static env value, ignoring status WARNING: malformed static env value, ignoring nvmem-cells WARNING: malformed static env value, ignoring nvmem-cell-names WARNING: malformed static env value, ignoring phandle WARNING: malformed static env value, ignoring ths WARNING: malformed static env value, ignoring ccu WARNING: malformed static env value, ignoring ths_calib WARNING: malformed static env value, ignoring KLD file umodem.ko is missing dependencies kenv doesn't show anything and the kernel doesn't know the root filesystem, resulting in prompting to mountroot. The dtb : https://people.freebsd.org/~manu/sun50i-a64-pine64-plus.dtb The overlays :=20 https://people.freebsd.org/~manu/sun50i-a64-sid.dtbo https://people.freebsd.org/~manu/sun50i-a64-ths.dtbo https://people.freebsd.org/~manu/sun50i-a64-timer.dtbo loader.conf: # Configure USB OTG; see usb_template(4). hw.usb.template=3D3 umodem_load=3D"YES" # Multiple console (serial+efi gop) enabled. boot_multicons=3D"YES" boot_serial=3D"YES" fdt_overlays=3D"sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer" If I remove sun50i-a64-timer kenv doesn't looks corrupts but still : Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x47ff9000. Loading DTB overlays: 'sun50i-a64-sid,sun50i-a64-ths' /boot/dtb/overlays/sun50i-a64-sid.dtbo size=3D0x1fd /boot/dtb/overlays/sun50i-a64-ths.dtbo size=3D0x3e8 applying DTB overlay '/boot/dtb/overlays/sun50i-a64-sid.dtbo' applying DTB overlay '/boot/dtb/overlays/sun50i-a64-ths.dtbo' EHCI failed to shut down host controller. ---<<BOOT>>--- KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-ALPHA2 #1291 r338074+327bec90b971(aw_timer)-dirty: Tue Aug 21 18:42:59 CEST 2018 =20=20=20 manu@skull.home.blih.net:/usr/home/manu/Work/freebsd/obj/usr/home/manu/Work= /freebsd/freebsd.git/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. WARNING: malformed static env value, ignoring interrupts WARNING: malformed static env value, ignoring clocks WARNING: malformed static env value, ignoring clock-names WARNING: malformed static env value, ignoring resets WARNING: malformed static env value, ignoring reset-names WARNING: malformed static env value, ignoring #thermal-sensor-cells WARNING: malformed static env value, ignoring status WARNING: malformed static env value, ignoring nvmem-cells WARNING: malformed static env value, ignoring nvmem-cell-names WARNING: malformed static env value, ignoring phandle WARNING: malformed static env value, ignoring ths WARNING: malformed static env value, ignoring ccu WARNING: malformed static env value, ignoring ths_calib KLD file umodem.ko is missing dependencies --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230804-7>