PINE64 - 12.0-CURRENT r324563 - ntpd can't keep time
Mark Millard
markmi at dsl-only.net
Wed Nov 15 02:54:39 UTC 2017
On 2017-Nov-14, at 5:09 PM, Andreas Schwarz <freebsd.asc at strcmp.org> wrote:
> On 14.11.17, Mark Millard wrote:
>
> Hi Mark,
>
>> I'm not the one with the clock problem
>> but I'll note that the -r325700 Pine64+
>> 2GB with a production-style kernel (not
>> debug) that I'm using has rather different
>> dev.cpu.0 output from sysctl as far as
>> "freq" goes (no such):
>
> My pine is the same, a PINE A64+ 2GB version.
>
> Using also a "non-debug" kernel config
>
> root at pinelot:~ $ cat /sys/arm64/conf/PINE64-ASC
>
> include "GENERIC"
>
> ident PINE64-ASC
>
> # remove predefined options from "GENERIC"
> nomakeoptions DEBUG
> nomakeoptions WITH_CTF
> nooptions KDB, KDB_TRACE, DDB
> nooptions INVARIANTS, INVARIANT_SUPPORT
> nooptions WITNESS, WITNESS_SKIPSPIN
> nooptions USB_DEBUG
> nooptions BUF_TRACKING
> nooptions DEADLKRES
> nooptions FULL_BUF_TRACKING
>
> # add options we want
> options TMPFS # Efficient memory filesystem
Showing my control of options:
# more /usr/src/sys/arm64/conf/GENERIC-NODBG
#
# GENERIC -- Custom configuration for the arm64/aarch64
#
include "GENERIC"
ident GENERIC-NODBG
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options ALT_BREAK_TO_DEBUGGER
options KDB # Enable kernel debugger support
# For minimum debugger support (stable branch) use:
#options KDB_TRACE # Print a stack trace for a panic
options DDB # Enable the kernel debugger
# Extra stuff:
#options VERBOSE_SYSINIT # Enable verbose sysinit messages
#options BOOTVERBOSE=1
#options BOOTHOWTO=RB_VERBOSE
#options KTR
#options KTR_MASK=KTR_TRAP
##options KTR_CPUMASK=0xF
#options KTR_VERBOSE
# Disable any extra checking for. . .
nooptions DEADLKRES # Enable the deadlock resolver
nooptions INVARIANTS # Enable calls of extra sanity checking
nooptions INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
nooptions WITNESS # Enable checks to detect deadlocks and cycles
nooptions WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
nooptions DIAGNOSTIC
nooptions MALLOC_DEBUG_MAXZONES # Separate malloc(9) zones
nooptions BUF_TRACKING
nooptions FULL_BUF_TRACKING
>> # uname -apKU
>> FreeBSD pine64 12.0-CURRENT FreeBSD 12.0-CURRENT r325700M arm64 aarch64 1200053 1200053
>
> modified?
I normally run based on the same sources
on all my builds, most of the modifications
are tied to powerpc64 and powerpc. Some are
tied to the BPI-M3 (that is currently
unsupported in various respects). One is
tied to my not having updated past -r325700
yet so I have fixes for things found
in -r325700 that were checked in
later (bcm2835_cpufreq.c).
# svnlite status | sort
? sys/amd64/conf/GENERIC-DBG
? sys/amd64/conf/GENERIC-NODBG
? sys/arm/conf/GENERIC-DBG
? sys/arm/conf/GENERIC-NODBG
? sys/arm64/conf/GENERIC-DBG
? sys/arm64/conf/GENERIC-NODBG
? sys/powerpc/conf/GENERIC64vtsc-DBG
? sys/powerpc/conf/GENERIC64vtsc-NODBG
? sys/powerpc/conf/GENERICvtsc-DBG
? sys/powerpc/conf/GENERICvtsc-NODBG
M contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
M contrib/llvm/tools/lld/ELF/Arch/PPC64.cpp
M crypto/openssl/crypto/armcap.c
M lib/libkvm/kvm_powerpc.c
M lib/libkvm/kvm_private.c
M sys/arm/allwinner/aw_usbphy.c
M sys/arm/broadcom/bcm2835/bcm2835_cpufreq.c
M sys/arm64/arm64/identcpu.c
M sys/boot/defs.mk
M sys/boot/fdt/dts/arm/a83t.dtsi
M sys/boot/powerpc/boot1.chrp/Makefile
M sys/boot/powerpc/kboot/Makefile
M sys/conf/kmod.mk
M sys/conf/ldscript.powerpc
M sys/kern/subr_pcpu.c
M sys/modules/dtb/allwinner/Makefile
M sys/powerpc/aim/mmu_oea64.c
M sys/powerpc/ofw/ofw_machdep.c
M sys/powerpc/powerpc/interrupt.c
M sys/powerpc/powerpc/mp_machdep.c
M sys/powerpc/powerpc/trap.c
>> # sysctl dev.cpu.0
>> dev.cpu.0.%parent: cpulist0
>> dev.cpu.0.%pnpinfo: name=cpu at 0 compat=arm,cortex-a53
>> dev.cpu.0.%location:
>> dev.cpu.0.%driver: cpu
>> dev.cpu.0.%desc: Open Firmware CPU
>>
>> Looking, /usr/ports -r447122 moved
>> sysutils/u-boot-pine64 over to be
>> us-boot-master based back on 2017-Aug-2.
>> May be we have differing:
>>
>> u-boot-sunxi-with-spl.bin
>>
>> vintages dd'd to seek=8 on the
>> sdcards? Some other difference
>> someplace else?
>
> Latest u-boot-sunxi-with-spl.bin was not working for me, I'm using an older
> one. Maybe a dtb processing problem, mine is up to date (created from the
> dts).
For my context the DTB is from:
EFI at 0x48000000
More fully:
>> FreeBSD EFI boot block
Loader path: /boot/loader.efi
Initializing modules: ZFS UFS
Probing 4 block devices......+ done
ZFS found no pools
UFS found 1 partition
Consoles: EFI console
Command line arguments: loader.efi
Image base: 0xb6dbb008
EFI version: 2.05
EFI Firmware: Das U-boot (rev 0.00)
FreeBSD/arm64 EFI loader, Revision 1.1
EFI boot environment
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x7fd808 data=0xb21e0+0x39b39c syms=[0x8+0x10cfc8+0x8+0x103122]
/boot/entropy size=0x1000
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
Using DTB provided by EFI at 0x48000000.
. . .
I expect that the above is why we have a
difference. It may be an example of updated
materials from elsewhere no longer supporting
everything that older FreeBSD materials did.
(This might might wait for upstream materials
to update and be picked up by FreeBSD before
the functionality returns.)
One nice thing about our different contexts is
that both have time working for what the Pine64+
2GB's are being used for. (Not necessarily strongly
overlapping usage patterns.) This suggests that
DTB issues are not a likely cause of time breakage.
===
Mark Millard
markmi at dsl-only.net
More information about the freebsd-arm
mailing list