From owner-freebsd-arm@freebsd.org Thu Nov 12 05:22:15 2015 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 F15A8A29BF7 for ; Thu, 12 Nov 2015 05:22:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF7FF1D2C for ; Thu, 12 Nov 2015 05:22:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by vkbk63 with SMTP id k63so4298270vkb.0 for ; Wed, 11 Nov 2015 21:22:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=q5JafuwO005VgKqeN913fFL7s5SMqXuDmjdiFqNXyN8=; b=wLAAtDqOVVrI+7ZVk6/JtAmtZ/FSBimDnj3OIy43g845SZLakEwbz6Oj5HVW6K0hqg nYyV9xg2t8z/E8CGCG6CqoYbEkIjkYSvtKUmTyp1C+B+dVdnOuhsArVwqJb9K2lK9gIo X6XTmGXebmBZ3zyUUlExXlt/VtROBnNdHFsy0wjL1xZEiHvYBzcqKsN/xRMCmQbO3VuI 6smIwFd/CJZvjmVkPloPvZkK9kFymj+9y0bRpxp8Tf3Sy736OwfC7b17VeeIh0SK8OEW iRgWxzIZNeuH+MaDqj+AxlnFrj0BanypNqrUWHFwQ7UNzdMVS8J6dePybEt9TJfR71El lSzg== MIME-Version: 1.0 X-Received: by 10.31.15.149 with SMTP id 143mr1406866vkp.107.1447305734506; Wed, 11 Nov 2015 21:22:14 -0800 (PST) Received: by 10.31.66.9 with HTTP; Wed, 11 Nov 2015 21:22:14 -0800 (PST) Date: Wed, 11 Nov 2015 21:22:14 -0800 Message-ID: Subject: Hummingboard SATA From: Russell Haley To: freebsd-arm Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2015 05:22:16 -0000 Hello again, I have started looking at SATA support in FreeBSD by first reading the man pages and then examining the code. The Joseph Kong book is helping considerably to understand the structures. I see that there are three drivers in play: ahci, ada and ata. Man indicates that ahci takes precedence in driver selection. *Is that the driver for Arm and the Hummingboard?* What I can't seem to find is any direction on getting a debugger hooked up to driver code. Do I use gdb somehow, or do I use the kernel debugger? I'm going back over the Developers handbook again. I also don't understand how to boot with the -d option. When is this entered? I have used the sysctl to enter the debugger and poked around but it doesn't mean much yet. sysctl debug.kdb.enter=1 Thanks, Russ