From owner-freebsd-arm@FreeBSD.ORG Fri Jun 20 02:04:21 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 55966FC5 for ; Fri, 20 Jun 2014 02:04:21 +0000 (UTC) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2948722DF for ; Fri, 20 Jun 2014 02:04:21 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id fp1so2412498pdb.2 for ; Thu, 19 Jun 2014 19:04:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=0iFX0HV4JxIKOCVLHsw10MKTO+xLEcXtpTAsxCfhYxQ=; b=QD7RFKaUtlDPbKk1WuVD7OZf8nxnsSksguqGzCAHXSdWDJxX8zbJwJPDgc/W9FhkTX JqJweA94YlGe4Bl5xtdhn/oulnkFTd5+vFiWFCr/ptWDageOXpNNGfuYqugRegefwqTY j3yllz6trNN+gIpO/vhCzDfoHfOfihDRfGaPZbxkMh/3HHhCzj8dCvF50ZmFxBgL/l6V r6CuFFhi6q2/sFZb35dDWXIpvaVL8b26xjYloSweePwsNydPxbp7SpCidU5UCfc6zlGF gLOPoSbkxIwa/Sf8ox6guqoZvVV8WnV5YS6wLuU1xqPt2AfQmZoi5UM9g6Fgz65FslJV hGRg== X-Gm-Message-State: ALoCoQnWYCscAkI95gBmCmPBSEjGFv2ez8/vu09PC+P/couW18ebUQ9BJ3anTF+PVo2Hr3VvobSw X-Received: by 10.66.161.69 with SMTP id xq5mr452463pab.62.1403229426409; Thu, 19 Jun 2014 18:57:06 -0700 (PDT) Received: from [192.168.1.2] (c-24-6-220-224.hsd1.ca.comcast.net. [24.6.220.224]) by mx.google.com with ESMTPSA id gu1sm10703429pbd.0.2014.06.19.18.57.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 18:57:05 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: locore.S and debugging initial stages of kernel From: Tim Kientzle In-Reply-To: <53A3619C.3020505@narod.ru> Date: Thu, 19 Jun 2014 18:56:57 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1F054368-CAD3-4811-B03C-78C0B45D3C64@kientzle.com> References: <53A3619C.3020505@narod.ru> To: Stepan Dyatkovskiy X-Mailer: Apple Mail (2.1878.2) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2014 02:04:21 -0000 On Jun 19, 2014, at 3:18 PM, Stepan Dyatkovskiy = wrote: > Hi all, > I would like to check several things in locore.S. But I don't have = JTAG debugger, so I have to use printf-like functions. Are there any = known ways to do it? Depending on the particular board you=92re using, and what part of the boot process you=92re testing: * A few lines of assembly can blink an LED * A few more lines of assembly can bring up a UART * Allocate a static buffer and write events into it, then dump the = buffer after the kernel sets up the console Tim