[Bug 230804] [loader] dtb overlays seems to corrupt the kernel env
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Aug 21 17:42:10 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230804
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 at FreeBSD.org
Reporter: manu at 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=0x1fd
/boot/dtb/overlays/sun50i-a64-ths.dtbo size=0x3e8
/boot/dtb/overlays/sun50i-a64-timer.dtbo size=0x175
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
manu at 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 :
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=3
umodem_load="YES"
# Multiple console (serial+efi gop) enabled.
boot_multicons="YES"
boot_serial="YES"
fdt_overlays="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=0x1fd
/boot/dtb/overlays/sun50i-a64-ths.dtbo size=0x3e8
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
manu at 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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-arm
mailing list