Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2018 11:29:09 +0300
From:      Michael Zhilin <mizhka@gmail.com>
To:        Mori Hiroki <yamori813@yahoo.co.jp>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: still hang up arm/ralink
Message-ID:  <CAF19XBK9FtM92WehWNtVXkyA5p-iOCfD1NeQ2kGPWvCemZAUSw@mail.gmail.com>
In-Reply-To: <812183.70978.qm@web101705.mail.ssk.yahoo.co.jp>
References:  <64850.63077.qm@web101706.mail.ssk.yahoo.co.jp> <CAF19XBKfP-Ld6Sdn1OMLsyO-tEw5Mio4fKp8C4pkL5LzdhvUAA@mail.gmail.com> <387823.67007.qm@web101711.mail.ssk.yahoo.co.jp> <812183.70978.qm@web101705.mail.ssk.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Hiroki-san,

We had the similar problem with mallocinit on MIPS32.  The details are here=
:
 https://reviews.freebsd.org/D13351
 https://svnweb.freebsd.org/base?view=3Drevision&revision=3D326508

Please check if your revision includes this fix.
BTW, DDB is not yet available in this step, but you can make it by patch:
diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h
index d54fe332652..8ae78d81f27 100644
--- a/sys/ddb/ddb.h
+++ b/sys/ddb/ddb.h
@@ -136,11 +136,11 @@ static struct command __CONCAT(_name,_suffix) =3D
{         \
 };                                                             \
 static void __CONCAT(__CONCAT(_name,_suffix),_add)(void *arg __unused) \
     { db_command_register(&list, &__CONCAT(_name,_suffix)); }  \
-SYSINIT(__CONCAT(_name,_suffix), SI_SUB_KLD, SI_ORDER_ANY,     \
+SYSINIT(__CONCAT(_name,_suffix), SI_SUB_DDB, SI_ORDER_ANY,     \
     __CONCAT(__CONCAT(_name,_suffix),_add), NULL);             \
 static void __CONCAT(__CONCAT(_name,_suffix),_del)(void *arg __unused) \
     { db_command_unregister(&list, &__CONCAT(_name,_suffix)); }        \
-SYSUNINIT(__CONCAT(_name,_suffix), SI_SUB_KLD, SI_ORDER_ANY,   \
+SYSUNINIT(__CONCAT(_name,_suffix), SI_SUB_DDB, SI_ORDER_ANY,   \
     __CONCAT(__CONCAT(_name,_suffix),_del), NULL);

 /*
diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h
index 2e103c7804b..b028d001046 100644
--- a/sys/sys/kernel.h
+++ b/sys/sys/kernel.h
@@ -92,6 +92,7 @@ enum sysinit_sub_id {
        SI_SUB_TUNABLES         =3D 0x0700000,    /* establish tunable valu=
es
*/
        SI_SUB_COPYRIGHT        =3D 0x0800001,    /* first use of console*/
        SI_SUB_VM               =3D 0x1000000,    /* virtual memory system
init*/
+       SI_SUB_DDB              =3D 0x1100000,    /* try to get ddb early *=
/
        SI_SUB_KMEM             =3D 0x1800000,    /* kernel memory*/
        SI_SUB_HYPERVISOR       =3D 0x1A40000,    /*
                                                 * Hypervisor detection and


DDB can provide a lot of information about memory init status via "show"
command.

On Sat, Feb 3, 2018 at 10:28 AM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:

> Hi
>
> Marvell 88F5181 is also hang.
>
> Marvell>> tftpboot 400100 Buffalo_WZR-AMPG300NH_kernel.kbin
> Using egiga0 device
> TFTP from server 10.10.10.3; our IP address is 10.10.10.108
> Filename 'Buffalo_WZR-AMPG300NH_kernel.kbin'.
> Load address: 0x400100
> Loading: ################################################################=
#
>          ################################################################=
#
>          ################################################################=
#
>          ################################################################=
#
>          ################################################################=
#
>          ################################################################=
#
>          ################################################################=
#
>          ################################################################=
#
>          ################################################################=
#
>          ###############################################
> done
> Bytes transferred =3D 3231588 (314f64 hex)
> Marvell>> go 0x400100
> ## Starting application at 0x00400100 ...
> 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-CURRENT #0 b8cfc17(arm_debug)-dirty: Sat Feb  3 16:21:42 JST
> 2018
>     hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/
> home/hiroki/zorg/ZR
> outer/tmp/storage/home/hiroki/freebsd/arm.arm/sys/Buffalo_WZR-AMPG300NH
> arm
> FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LLVM
> 6.0.0)
>
>
>
> ----- Original Message -----
> > From: Mori Hiroki <yamori813@yahoo.co.jp>
> > To: Michael Zhilin <mizhka@gmail.com>
> > Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
> > Date: 2018/2/3, Sat 11:11
> > Subject: Re: still hang up arm/ralink
> >
> > Hi
> >
> > I set VERBOSE_SYSINIT option and build kernel.
> >
> > Starting kernel @40000100...
> >
> > 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, 199=
4
> >         The Regents of the University of California. All rights reserve=
d.
> > FreeBSD is a registered trademark of The FreeBSD Foundation.
> > FreeBSD 12.0-CURRENT #3 b8cfc17(arm_debug)-dirty: Sat Feb  3 11:01:10
> JST 2018
> >     hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/
> home/hiroki/zorg/ZR
> > outer/tmp/storage/home/hiroki/freebsd/arm.arm/sys/Buffalo_WZR2-G300N ar=
m
> > FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LLVM
> 6.0.0)
> > subsystem 1000000
> >    0xc0205ef0(0)... done.
> >    0xc0219140(0)... done.
> > subsystem 1800000
> >    0xc00fea44(0)... done.
> >    0xc00dc4f0(0)... done.
> >    0xc00dc13c(0xc02cc84c)...
> >
> > Hang.
> >
> > 0xc00dc13c is malloc_init()
> >
> > c00dc13c <malloc_init>:
> > c00dc13c:       e92d4830        push    {r4, r5, fp, lr}
> > c00dc140:       e28db008        add     fp, sp, #8      ; 0x8
> > c00dc144:       e1a04000        mov     r4, r0
> >
> > armv5t use arm/arm/pmap-v4.c. This code not change recently.
> >
> > I think this is vm issue.
> >
> > Hiroki Mori
> >
> > ----- Original Message -----
> >> From: Michael Zhilin <mizhka@gmail.com>
> >> To: Mori Hiroki <yamori813@yahoo.co.jp>
> >> Cc: freebsd-arm@freebsd.org
> >> Date: 2018/1/30, Tue 14:11
> >> Subject: Re: still hang up arm/ralink
> >>
> >>
> >> Hi Hiroki-san,
> >>
> >>
> >> It may be result of recent changes of arm pmap/vm. Please enable
> > SYSINIT_VERBOSE to print information about init step results.
> >>
> >>
> >> Thanks!
> >>
> >>
> >> P.S. To init DDB I'll send patch under separate cover
> >>
> >>
> >> 30 =D1=8F=D0=BD=D0=B2. 2018 =D0=B3. 7:28 =D0=94=D0=9F =D0=BF=D0=BE=D0=
=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Mori Hiroki"
> > <yamori813@yahoo.co.jp> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
> >>
> >> Hi.
> >>>
> >>> I build current yesterday for arm/ralink.
> >>> It is still hang up on boot.
> >>>
> >>> Does anyone have armv5t running on current?
> >>>
> >>>
> >>> ## Booting image at 1f010000 ...
> >>>    Image Name:   FreeBSD Kernel Image
> >>>    Image Type:   ARM Linux Kernel Image (lzma compressed)
> >>>    Data Size:    1063133 Bytes =3D  1 MB
> >>>    Load Address: 40000180
> >>>    Entry Point:  40000180
> >>>    Verifying Checksum ... OK
> >>>    Uncompressing LZMA Kernel Image ..............................
> > ..............O
> >>> K
> >>>
> >>> Starting kernel @40000180...
> >>>
> >>> 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-CURRENT #0 b8cfc17(master): Mon Jan 29 17:55:11 JST 2018
> >>>     hiroki@microserver:/storage/ home/hiroki/zorg/obj/storage/
> > home/hiroki/zorg/ZR
> >>> outer/tmp/storage/home/hiroki/ freebsd/arm.arm/sys/Buffalo_ WZR2-G300=
N
> > arm
> >>> FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LL=
VM
> > 6.0.0)
> >>>
> >>> ______________________________ _________________
> >>> freebsd-arm@freebsd.org mailing list
> >>> https://lists.freebsd.org/ mailman/listinfo/freebsd-arm
> >>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@
> > freebsd.org"
> >>>
> >>
> >>
> > _______________________________________________
> > freebsd-arm@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
> >
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF19XBK9FtM92WehWNtVXkyA5p-iOCfD1NeQ2kGPWvCemZAUSw>