From owner-freebsd-ppc@FreeBSD.ORG Mon Mar 30 01:52:02 2015 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 773C9E96 for ; Mon, 30 Mar 2015 01:52:02 +0000 (UTC) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (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 1CA8FA8E for ; Mon, 30 Mar 2015 01:52:02 +0000 (UTC) Received: by wiaa2 with SMTP id a2so106076353wia.0 for ; Sun, 29 Mar 2015 18:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=i1TW6PbvYaOYZ230p9vSTsVV5c7FAeb9iYUVXCGTlH8=; b=aRvtFvUyx0aXxVCml0otMZ4cIgUtzFK32mVX21xrGrj16YyYlmy2GT5V+j6EFWF4w3 fMour+7+MoyGstT1h14JpQg4qCNq7oTgfVN7T2+tTbKvS1z/7vpS2jeZNtkkNBbJ458C QYkBoHJ3JOjDfk++94F/UJsfgX8FxxR4K8BTo7H4bYkVGodxL9hfonpmdIrUsgdonPJ7 aKP8osi5E1+MNCN1X3/h/8z4vNitikk/e9YRrcRQEhLicfJnvOgWJsxyTKxTXd9+yUb3 Kshe1MomSFpPheFhFX//fDWCl6MXynDcg+pft09lqIksPk7WFepIy/s0+b5nds75xowL eMlQ== MIME-Version: 1.0 X-Received: by 10.180.7.169 with SMTP id k9mr16997203wia.48.1427680320581; Sun, 29 Mar 2015 18:52:00 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.25.145.205 with HTTP; Sun, 29 Mar 2015 18:52:00 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Mar 2015 18:52:00 -0700 X-Google-Sender-Auth: QFEqcfc1CYLbUmsFht1U4jVZZTI Message-ID: Subject: Re: FreeBSD on QorIQ t2080 and p3041 From: Justin Hibbits To: Ivan Krivonos Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD PowerPC ML X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2015 01:52:02 -0000 Hi Ivan, On Sun, Mar 29, 2015 at 2:40 PM, Ivan Krivonos wrote: > Hi guys, > > I have some Freescale t2080 and p3041 in the lab as well as Trace32 > hardware debugger and some free time. I`d like to contribute to > the FreeBSD/ppc in terms of adding minimal support for e500mc/e6500 > and devices (MPIC + console + may be fman/dtsec) to have FreeBSD booted > and work there. Right now I`m trying to get started on p1010 with e500 CPU > core. > > I successfully built FreeBSD kernel and user-space for e500 but have no idea > how to start it on the p1010 target. > > 1) I`m trying to tftpboot and then bootelf the kernel image, but it hangs. > Am I doing > something wrong ? > > 2) It seems that user-space shall be exported to the target through NFS. Is > there > a way to have binary image of rootfs and mount root from there ? > > Could please any one kick me to the right direction ? There is currently some work going on rewriting the book-e boot code (more help is greatly appreciated, if you're familiar enough with early boot to chip in). On my routerboard (e500v2, mpc8544E CPU), it hangs at boot most times. I tracked that down to TLB invalidation, which may be what you're seeing as well, but sometimes it does fully boot. There is a way to embed a rootfs into the kernel, but I'm not certain how to do that. I found a page, dating back to 2006, which describes it: http://maxim.int.ru/tricks/ramdisk.txt , but haven't tried it yet. Does yours hang immediately at boot? Could you share your kernel config? Any logs, it hangs later, too. The way I found to track down the hang location was to put forced CPU resets at places and see if the board resets. On the mpc8544 it consists of writing to the Reset register, so I disable address translation, and write to the register at a fixed address (CCSRBAR is known, so I hard code it, rather than trying to determine it). - Justin