still hang up arm/ralink

Mori Hiroki yamori813 at yahoo.co.jp
Tue Feb 6 09:10:06 UTC 2018


Hi

I set this kernel option. Then little bit better. 

options        KTR
options        KTR_COMPILE=KTR_ALL
options        KTR_VERBOSE=0

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): Tue Feb  6 17:50:49 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)
Preloaded elf kernel "kernel" at 0xc033e3f4.
CPU: ARM926EJ-S rev 5 (ARM9EJ-S core)
  Little-endian DC enabled IC enabled WB enabled LABT branch prediction disabled
  16KB/32B 4-way instruction cache
  16KB/32B 4-way write-back-locking-C data cache
real memory  = 16777216 (16 MB)
avail memory = 11038720 (10 MB)
Physical memory chunk(s):
  0x40000000 - 0x40ffffff,    16 MB (   4096 pages)
Excluded memory regions:
  0x40000000 - 0x4049bfff,     4 MB (   1180 pages) NoAlloc 
Static device mappings:
  0x19c00000 - 0x19cdffff mapped at VA 0xfff10000
  0x1e800000 - 0x1effffff mapped at VA 0xff700000
  0x1f000000 - 0x1f3fffff mapped at VA 0xff300000
arc4random: no preloaded entropy cache
random: entropy device external interface
mem: <memory>
null: <full device, null device, zero device>
openfirm: <Open Firmware control device>
random: harvesting attach, 8 bytes (4 bits) from nexus0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from simplebus0
simplebus1: <Flattened device tree simple bus> on ofwbus0
random: harvesting attach, 8 bytes (4 bits) from simplebus1
simplebus2: <Flattened device tree simple bus> on ofwbus0
simplebus2: No interrupt-parent found, assuming direct parent
simplebus2: Missing #interrupt-cells property, assuming <1>
simplebus2: No interrupt-parent found, assuming direct parent
simplebus2: Missing #interrupt-cells property, assuming <1>
random: harvesting attach, 8 bytes (4 bits) from simplebus2
random: harvesting attach, 8 bytes (4 bits) from ofwbus0
pic0: <RT1310 INTRNG Interrupt Controller> mem 0x40000-0x5ffff on simplebus1
random: harvesting attach, 8 bytes (4 bits) from pic0
timer0: <RT1310 timer> mem 0-0xf,0x10-0x1f,0x20-0x2f,0x30-0x3f irq 2,3,4 on simp
lebus2
Event timer "RT1310ATimer2" frequency 75000000 Hz quality 1000
Timecounter "RT1310ATimer1" frequency 75000000 Hz quality 1000
random: harvesting attach, 8 bytes (4 bits) from timer0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
random: harvesting attach, 8 bytes (4 bits) from cpu0
random: harvesting attach, 8 bytes (4 bits) from cpulist0
simplebus1: <fvmdio at 0> mem 0x80000-0x9ffff compat fv,mdio (no driver attached)
fv0: <FV Ethernet interface> mem 0x80000-0x9ffff irq 0 on simplebus1
panic: Can't change memattr on page with existing mappings
time = 1
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at      kdb_enter+0x48: ldrb    r15, [r15, r15, ror r15]!
db> 

----- Original Message -----
>From: Michael Zhilin <mizhka at gmail.com>
>To: Mori Hiroki <yamori813 at yahoo.co.jp> 
>Cc: "freebsd-arm at freebsd.org" <freebsd-arm at freebsd.org>
>Date: 2018/2/3, Sat 17:29
>Subject: Re: still hang up arm/ralink
> 
>
>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@ freebsd.org"
>>>
>>
>
>
>


More information about the freebsd-arm mailing list