PINE64+ Release APs, APs not started
Henri Hennebert
hlh at restart.be
Thu Jul 27 16:34:57 UTC 2017
On 07/27/2017 17:02, Emmanuel Vadot wrote:
> On Thu, 27 Jul 2017 15:57:40 +0100
> Andrew Turner <andrew at fubar.geek.nz> wrote:
>
>>
>>> On 27 Jul 2017, at 15:43, Emmanuel Vadot <manu at bidouilliste.com> wrote:
>>>
>>> On Thu, 27 Jul 2017 14:31:18 +0200
>>> Henri Hennebert <hlh at restart.be <mailto:hlh at restart.be>> wrote:
>>>> I think that the DTB is wrong.
>>>>
>>>> Note that my kernel config have:
>>>>
>>>> options FDT # Flattened Device Tree bus driver
>>>> options FDT_DTB_STATIC # Statically embed a DTB file
>>>> into a kernel image
>>>> makeoptions FDT_DTS_FILE=pine64_plus.dts
>>>
>>> FDT_DTB_STATIC shouldn't be used unless you *exactly* know what you're
>>> doing. Please use GENERIC kernel on ARM64.
I will remove it from my kernel config.
I previously encounter this problem:
https://lists.freebsd.org/pipermail/freebsd-current/2017-May/065875.html
so I don't load zfs and opensolaris before boot.
I use this script to get my root fs on zfs:
#!/bin/sh
# PROVIDE: rebootonzfs
# BEFORE: sysctl
. /etc/rc.subr
name="rebootonzfs"
desc="Reboot with root on ZFS"
command="/sbin/reboot"
stop_cmd=":"
start_cmd="rebootonzfs_start"
rcvar="rebootonzfs_enable"
rebootonzfs_start()
{
/sbin/zpool list
/bin/kenv vfs.root.mountfrom="zfs:rpool/ROOT/default"
${command} -r
}
load_rc_config $name
run_rc_command "$1"
But today, I try with r321371 to load zfs and opensolaris before boot
and it allow most of the time the Release APs to complete.
Believing it is a timing problem, I modify mp_machdep.c:
Index: sys/arm64/arm64/mp_machdep.c
===================================================================
--- sys/arm64/arm64/mp_machdep.c (revision 321371)
+++ sys/arm64/arm64/mp_machdep.c (working copy)
@@ -209,6 +209,7 @@
if (mp_ncpus == 1)
return;
+ DELAY(1000000);
intr_pic_ipi_setup(IPI_AST, "ast", ipi_ast, NULL);
intr_pic_ipi_setup(IPI_PREEMPT, "preempt", ipi_preempt, NULL);
intr_pic_ipi_setup(IPI_RENDEZVOUS, "rendezvous", ipi_rendezvous, NULL);
but it don't get better.
Henri
>>
>> On arm64 we don?t use it so you just end up with a larger kernel image.
>>
>> Andrew
>>
>
> I recall that you didn't want it but I assumed that some errors will
> be thrown if specified, can we do that ?
>
More information about the freebsd-arm
mailing list