From owner-freebsd-arm@FreeBSD.ORG Thu Mar 19 02:36:22 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF7A6BE7 for ; Thu, 19 Mar 2015 02:36:22 +0000 (UTC) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (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 7C127333 for ; Thu, 19 Mar 2015 02:36:22 +0000 (UTC) Received: by weop45 with SMTP id p45so46426928weo.0 for ; Wed, 18 Mar 2015 19:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=cU9LPjlu8nZQEKC8WaOCELLj2rUDDHnc+paw7rOeguI=; b=Q1qSspMxtSmJ/9xYs2CHOIAppLwGkW3TqY6KgVtSiQF2XYdNaB60z2SrwISmZwijvB hDXKOdqhKDHcZEoY7zjJlrz6f4Bm8jPavL+oDBxdHIARyzPQJYJ1V+C0AaiiT2V9+Rb7 iaDGspUP9bVqyedULHF5lU49un/B4/ymr34HUkxdUtUumq3SIXDckKpwgeJfSrj9RSrp loMqwb37/rgpFhmxlFih0Li5BAn/WK6prHhMDrp/n5Sn4rflakWK6q3uyprSNpqvejSC yWlYHWwyeM3hQ3SHS+GKhGXOhXmz4wWGHy2lFcdviS0co4bjuBBUqfRzGJpDbgJr5ITR bt/g== X-Received: by 10.194.88.131 with SMTP id bg3mr151152262wjb.119.1426732580755; Wed, 18 Mar 2015 19:36:20 -0700 (PDT) Received: from ketas-laptop.mydomain (ketas-laptop6.si.pri.ee. [2001:ad0:91f:0:21a:6bff:fe66:2ad3]) by mx.google.com with ESMTPSA id gz3sm533121wib.1.2015.03.18.19.36.18 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Mar 2015 19:36:19 -0700 (PDT) Sender: Sulev-Madis Silber Message-ID: <550A3620.7010007@hot.ee> Date: Thu, 19 Mar 2015 04:36:16 +0200 From: "Sulev-Madis Silber (ketas)" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: ticso@cicely.de Subject: Re: beaglebone boot from eMMC References: <3DF08C65-20E3-4524-B0E1-C5C096AA0FE8@hellmuth-michaelis.de> <54BA6DB9-DC61-4A6F-B948-777BB9800F54@bocal.org> <20150312132739.GA28385@cicely7.cicely.de> <3EF47A05-60B2-4BB0-8688-018E50CF7D4A@hellmuth-michaelis.de> <20150318185656.GO53586@cicely7.cicely.de> In-Reply-To: <20150318185656.GO53586@cicely7.cicely.de> X-TagToolbar-Keys: D20150319043616229 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org, Bernd Walter , Hellmuth Michaelis X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2015 02:36:22 -0000 I boot BBB from eMMC. I align partitions to 4MB, create boot partition with type 0x0c, size 4MB, that's also set to active. Put MLO, u-boot.img, ubldr there. Then it all works. There is known issue where bsdlabel fails. Maybe someone else has any idea why it now fails. It started failing about the time when the non-C/H/S partition aligning started working. It's gone after boot and GEOM says invalid disklabel. Workaround is that you create UFS directly into slice. U-Boot should be from sysutils/u-boot-beaglebone "CCC" is when AM335x SoC tries to boot from UART (serial), using XMODEM. In BBB it does that if it can't load anything from either eMMC or SD. It's also possible to reconfigure boot order using BOOT/LCD pins on BBB headers (like, to put UART first). It's also reason why you should not use those pins as I/O at boot time. To boot from serial, install comms/lrzsz then run cu, then use ~C to execute "dd if=MLO bs=1 skip=520 | lsx -k - && lsx -k u-boot.img". I have that in easy shell script wrapper. dd is used to strip header for serial boot. There is also proper headerless MLO/SPL in sysutils/u-boot-beaglebone 's work/ dir after build (not installed), but this could be easier. But eMMC boot should work fine.