From owner-freebsd-arm@freebsd.org Tue Aug 21 17:42:10 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 01A3F107A16B for ; Tue, 21 Aug 2018 17:42:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 95DAD8E38E for ; Tue, 21 Aug 2018 17:42:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CBB19AFCB for ; Tue, 21 Aug 2018 17:42:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7LHg86d081699 for ; Tue, 21 Aug 2018 17:42:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7LHg8f0081697 for freebsd-arm@FreeBSD.org; Tue, 21 Aug 2018 17:42:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 230804] [loader] dtb overlays seems to corrupt the kernel env Date: Tue, 21 Aug 2018 17:42:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: manu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2018 17:42:10 -0000 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. ---<>--- 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. ---<>--- 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.=