From owner-freebsd-arm@freebsd.org Sat Apr 16 12:31:54 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B73BB10783 for ; Sat, 16 Apr 2016 12:31:54 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from iredmail.bsdtec.net (bsdtec.plus.com [84.92.41.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E61F21CB4 for ; Sat, 16 Apr 2016 12:31:53 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from iredmail.bsdtec.net (unknown [172.16.32.11]) by iredmail.bsdtec.net (Postfix) with ESMTP id 2EBB58274B for ; Sat, 16 Apr 2016 12:22:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at iredmail.bsdtec.net Received: from iredmail.bsdtec.net ([172.16.32.11]) by iredmail.bsdtec.net (iredmail.bsdtec.net [172.16.32.11]) (amavisd-new, port 10026) with ESMTP id HmfzzbfdtmyN for ; Sat, 16 Apr 2016 12:21:54 +0000 (UTC) Received: from [192.168.1.104] (loki.lerwick.hopto.org [192.168.1.1]) by iredmail.bsdtec.net (Postfix) with ESMTPSA id 1C02182739 for ; Sat, 16 Apr 2016 12:21:53 +0000 (UTC) To: freebsd-arm From: Craig Butler Subject: boot fail when bootelf kernel but not when using the ubldr Message-ID: <57122E61.1000409@lerwick.hopto.org> Date: Sat, 16 Apr 2016 13:21:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2016 12:31:54 -0000 Hello Folks Little frustrating fail. I have a kernel for the cm-t335 board thatworks fine under uboot -> ubldr -> nfs'ing the kernel in and booting. It fails when u-boot -> nand read into ram -> bootelf the kernel directly. Annoyingly it does not drop into the debugger CM-T335 # bootelf ${kloadaddr} ## Starting application at 0xc0200100 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2016 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.3-RELEASE #20: Sat Apr 16 11:41:14 BST 2016 root@xxxxx arm FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 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:3 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 hangs here :/ It doesn't do this under 10.1-RELEASE src, but is doing it under 10.3-RELEASE src any clues on what might be wrong, or how to debug further ? Thanks Craig