still hang up arm/ralink

Michael Zhilin mizhka at gmail.com
Sat Feb 3 08:29:13 UTC 2018


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=revision&revision=326508

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) =
{         \
 };                                                             \
 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         = 0x0700000,    /* establish tunable values
*/
        SI_SUB_COPYRIGHT        = 0x0800001,    /* first use of console*/
        SI_SUB_VM               = 0x1000000,    /* virtual memory system
init*/
+       SI_SUB_DDB              = 0x1100000,    /* try to get ddb early */
        SI_SUB_KMEM             = 0x1800000,    /* kernel memory*/
        SI_SUB_HYPERVISOR       = 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 at 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 = 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 at 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 at yahoo.co.jp>
> > To: Michael Zhilin <mizhka at gmail.com>
> > Cc: "freebsd-arm at freebsd.org" <freebsd-arm at 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, 1994
> >         The Regents of the University of California. All rights reserved.
> > 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 at microserver:/storage/home/hiroki/zorg/obj/storage/
> home/hiroki/zorg/ZR
> > outer/tmp/storage/home/hiroki/freebsd/arm.arm/sys/Buffalo_WZR2-G300N arm
> > 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 at gmail.com>
> >> To: Mori Hiroki <yamori813 at yahoo.co.jp>
> >> Cc: freebsd-arm at 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 янв. 2018 г. 7:28 ДП пользователь "Mori Hiroki"
> > <yamori813 at yahoo.co.jp> написал:
> >>
> >> 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 =  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 at microserver:/storage/ home/hiroki/zorg/obj/storage/
> > home/hiroki/zorg/ZR
> >>> outer/tmp/storage/home/hiroki/ freebsd/arm.arm/sys/Buffalo_ WZR2-G300N
> > arm
> >>> FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LLVM
> > 6.0.0)
> >>>
> >>> ______________________________ _________________
> >>> freebsd-arm at 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 at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> >
>


More information about the freebsd-arm mailing list