From owner-freebsd-arm@FreeBSD.ORG Fri Aug 2 05:07:48 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 384F09B9 for ; Fri, 2 Aug 2013 05:07:48 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 046D7247D for ; Fri, 2 Aug 2013 05:07:47 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id eh20so410183obb.1 for ; Thu, 01 Aug 2013 22:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ReS/oRMktOvmFiw3QrZhKkcEgrVbbSbQsALcmV4j3J0=; b=yFfxMuo17kKGrYuUK5VRMv0wHcn/Edpy0w9j9ouio8eGSjfH6ZKlzILbDM+jfEo2YH UHDaqArI65tL+QukDMuyCCsEBiLQMNFVR7/C6SwrDOoIwWLeaBh2zEdlWAgdcAajVM5O vhyZPLPq68sWNlLOKEJAv2tJyVokvxUCyIfrLc1NtWFQiRom1SOkx5VX80EDgIMTD2ux RLoGofuP+XvWYle0/dXfVjzqZu2T9FB0l1IPyrgs8F9JgfY9b0oWJotbdiLSfl3rTdOG Ar+8lAKV02dWurGpLJFU9gY3FSlS6Gp5SVU3Dzu0+u3t219zNxqgte1AkxWCuIhm4RkH 5E1A== MIME-Version: 1.0 X-Received: by 10.50.50.202 with SMTP id e10mr87578igo.54.1375420067155; Thu, 01 Aug 2013 22:07:47 -0700 (PDT) Received: by 10.64.235.239 with HTTP; Thu, 1 Aug 2013 22:07:47 -0700 (PDT) In-Reply-To: References: Date: Fri, 2 Aug 2013 13:07:47 +0800 Message-ID: Subject: Re: What makes the CubieBoard 1G recognition memory From: Ganbold Tsagaankhuu To: XiaoQI Ge Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Aug 2013 05:07:48 -0000 On Fri, Aug 2, 2013 at 12:54 PM, XiaoQI Ge wrote: > What makes the CubieBoard 1G recognition memory > > I have changed it to 1G, the startup panic > > memory { > device_type = "memory"; > reg = < 0x40000000 0x40000000 >; /* 1GB RAM */ > You can add following line in initarm_late_init() of a10_machdep.c: unmapped_buf_allowed = 0; as in exynos5_machdep.c. Ganbold > > sun4i#go 0x40200100 > ## Starting application at 0x40200100 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 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 10.0-CURRENT #3 r253878M: Fri Aug 2 20:40:12 CST 2013 > root@FreeBSD.7axu.com:/usr/obj/arm.armv6/usr/src/sys/CBOARD arm > FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Cortex A8-r3 rev 2 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB disabled EABT branch prediction enabled > LoUU:2 LoC:2 LoUIS:1 > Cache level 1: > 32KB/64B 4-way data cache WT WB Read-Alloc > 32KB/64B 4-way instruction cache Read-Alloc > Cache level 2: > 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc > real memory = 1073741824 (1024 MB) > panic: kmem_suballoc: bad status return of 3 > KDB: enter: panic > [ thread pid 0 tid 0 ] > Stopped at kdb_enter+0x4c: ldrb r15, [r15, r15, ror r15]! > db> bt > Tracing pid 0 tid 0 td 0xc0809280 > db_trace_self() at db_trace_self > pc = 0xc0569ce4 lr = 0xc022c954 (db_hex2dec+0x4dc) > sp = 0xc0820ae4 fp = 0xc0820afc > r10 = 0xc065d670 > db_hex2dec() at db_hex2dec+0x4dc > pc = 0xc022c954 lr = 0xc022c2c0 (db_command_loop+0x2f0) > sp = 0xc0820b04 fp = 0xc0820ba4 > r4 = 0x00000000 r5 = 0x00000000 > r6 = 0xc05c0331 > db_command_loop() at db_command_loop+0x2f0 > pc = 0xc022c2c0 lr = 0xc022c030 (db_command_loop+0x60) > sp = 0xc0820bac fp = 0xc0820bbc > r4 = 0xc059fddc r5 = 0xc05b9c6e > r6 = 0xc0808308 r7 = 0xc0820d8c > r8 = 0xc0809280 r9 = 0xc06a5c24 > r10 = 0xc065d8e0 > db_command_loop() at db_command_loop+0x60 > pc = 0xc022c030 lr = 0xc022ea30 (X_db_symbol_values+0x254) > sp = 0xc0820bc4 fp = 0xc0820ce4 > r4 = 0x00000000 r5 = 0xc0820bcc > r6 = 0xc06a5c4c > X_db_symbol_values() at X_db_symbol_values+0x254 > pc = 0xc022ea30 lr = 0xc038d9a8 (kdb_trap+0xd4) > sp = 0xc0820cec fp = 0xc0820d0c > r4 = 0x00000000 r5 = 0x00000001 > r6 = 0xc06a5c4c r7 = 0xc0820d8c > kdb_trap() at kdb_trap+0xd4 > pc = 0xc038d9a8 lr = 0xc057a1e4 (undefinedinstruction+0x274) > sp = 0xc0820d14 fp = 0xc0820d84 > r4 = 0x00000000 r5 = 0xc0579ecc > r6 = 0x00000000 r7 = 0xe7ffffff > r8 = 0xc0809280 r9 = 0xc0820d8c > r10 = 0xc038d29c > undefinedinstruction() at undefinedinstruction+0x274 > pc = 0xc057a1e4 lr = 0xc056b510 (exception_exit) > sp = 0xc0820d8c fp = 0xc0820de0 > r4 = 0xc05b9cc8 r5 = 0xc0820e24 > r6 = 0xc05e5c3b r7 = 0xc0697b30 > r8 = 0xc0809280 r9 = 0xc0697990 > r10 = 0xc0809d5c > exception_exit() at exception_exit > pc = 0xc056b510 lr = 0xc038d290 (kdb_enter+0x40) > sp = 0xc0820dd8 fp = 0xc0820de0 > r0 = 0xc06a5c34 r1 = 0x00000000 > r2 = 0xc05bd67d r3 = 0x000000ab > r4 = 0xc05b9cc8 r5 = 0xc0820e24 > r6 = 0xc05e5c3b r7 = 0xc0697b30 > r8 = 0xc0809280 r9 = 0xc0697990 > r10 = 0xc0809d5c r12 = 0x00000000 > kdb_enter() at kdb_enter+0x50 > pc = 0xc038d2a0 lr = 0xc035776c (kassert_panic+0x1c8) > sp = 0xc0820de8 fp = 0xc0820e08 > r4 = 0x00000100 > kassert_panic() at kassert_panic+0x1c8 > pc = 0xc035776c lr = 0xc03577d0 (kproc_shutdown) > sp = 0xc0820e10 fp = 0xc0820e18 > r4 = 0xc08ff000 r5 = 0xc0820e70 > r6 = 0xc0820e6c r7 = 0x007c0000 > r8 = 0xc080c268 r9 = 0xc0809ff4 > r10 = 0xc080c784 > kproc_shutdown() at kproc_shutdown > pc = 0xc03577d0 lr = 0xc0545df0 (kmem_suballoc+0xd4) > sp = 0xc0820e20 fp = 0xc0820e58 > r4 = 0xc0820e24 r5 = 0xc0820e6c > kmem_suballoc() at kmem_suballoc+0xd4 > pc = 0xc0545df0 lr = 0xc05453c4 (vm_ksubmap_init+0x1dc) > sp = 0xc0820e60 fp = 0xc0820e90 > r4 = 0xc0820e70 r5 = 0xc0820e6c > r6 = 0x00000000 r7 = 0x00000efe > vm_ksubmap_init() at vm_ksubmap_init+0x1dc > pc = 0xc05453c4 lr = 0xc056e344 (initarm+0xb98) > sp = 0xc0820e98 fp = 0xc0820ed0 > r4 = 0x00000001 r5 = 0xc080c264 > r6 = 0x00000000 r7 = 0xc05ed988 > r8 = 0x00000000 r9 = 0xc0809280 > r10 = 0xc0820ef8 > initarm() at initarm+0xb98 > pc = 0xc056e344 lr = 0xc0308a28 (mi_startup+0x11c) > sp = 0xc0820ed8 fp = 0xc0820ef0 > r4 = 0x00000001 r5 = 0xc0809278 > r6 = 0x00000000 r7 = 0xc05ed988 > r8 = 0xc0809a84 r9 = 0xc0809a80 > r10 = 0x7fe61408 > mi_startup() at mi_startup+0x11c > pc = 0xc0308a28 lr = 0xc0200224 (btext+0x124) > sp = 0xc0820ef8 fp = 0x00000000 > r4 = 0x40200264 r5 = 0x40200158 > r6 = 0x00000001 r7 = 0x4020014c > r8 = 0x7fe6140c r9 = 0x00000001 > btext() at btext+0x124 > pc = 0xc0200224 lr = 0xc0200224 (btext+0x124) > sp = 0xc0820ef8 fp = 0x00000000 > Unable to unwind further > db> > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >