From owner-freebsd-arm@freebsd.org Fri Jan 27 01:01:05 2017 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 1AF7DCC3AD2 for ; Fri, 27 Jan 2017 01:01:05 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qt0-x230.google.com (mail-qt0-x230.google.com [IPv6:2607:f8b0:400d:c0d::230]) (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 D32D01EFE for ; Fri, 27 Jan 2017 01:01:04 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-qt0-x230.google.com with SMTP id k15so107542765qtg.3 for ; Thu, 26 Jan 2017 17:01:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=31eOOFY9ORi2rPRHZMcLXRwf10zpk41X76HzSb5a/Cc=; b=csrDPMgSm5OYWmlKmQao09DfNXYErcbbjb9rsgGgzLiLgTdFC4shjiBHCsuMaYtK41 R89Ke/RQcE85wNndfVv6LSeaei+Sk9D0UBfsAo1nY21AzWFb/+RnnnezszjVreVCOOXh zAa96yB961ziMoXXiVvYA99KsKrTXpomH7LUc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=31eOOFY9ORi2rPRHZMcLXRwf10zpk41X76HzSb5a/Cc=; b=I6JqtCx/3r/v/jJRDBmk5sll/tMk3poaJeOGPZmdBpsmPbprFrU2ZPm5DdNZdyKlyd cFd0QOH+ToUxgIfQoXtSm2jP4wS+1urEAiw5L8J4PlLN/Rq4cbQU4hUqWqQBCtb1DMGO nDUlU00urSGvZFj/z7XsG6xHzwrB56gvS2eSn0VpCSYzOPTF4pZGNK87sSvq9dCg7AD9 dI+67QXmxgpmV/hMVlMaVoxAwH1scgMf+pnGRtf9fUmjQkD+qQiH8qcsvnHHJNKTO/lQ AhoW2Ux+/fKj9rxP1I82uyyA0fHZrm6WCyd2HwzZ1/mFHh1yqwdwzTY0xUqho0YTe6dv ORQg== X-Gm-Message-State: AIkVDXJ6V3EcWFu/Owby+Xd3lGBYVrLr26loeCIlyCdsyHvFYYSSZPQc2f1Bj/eyec44Gw== X-Received: by 10.237.36.12 with SMTP id r12mr5242450qtc.32.1485478862612; Thu, 26 Jan 2017 17:01:02 -0800 (PST) Received: from [192.168.0.11] ([187.60.94.34]) by smtp.googlemail.com with ESMTPSA id k19sm2698973qtf.37.2017.01.26.17.01.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2017 17:01:02 -0800 (PST) Subject: Re: FreeBSD 12 r312227 dont boots on Beaglebone black References: <51d197a2-1332-617a-32a8-9901f474afa2@bsd.com.br> <20170125221350.GA92571@bluezbox.com> To: "freebsd-arm@freebsd.org" From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: <3ad9c97c-e40c-0a37-f603-a08b5a72ebd3@bsd.com.br> Date: Thu, 26 Jan 2017 22:00:48 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170125221350.GA92571@bluezbox.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2017 01:01:05 -0000 Em 25/01/2017 19:13, Oleksandr Tymoshenko escreveu: > Otacílio (otacilio.neto@bsd.com.br) wrote: >> Dears >> >> I'm trying boot a FreeBSD12-armv6-r312227 >> (u-boot-beaglebone-2017.01.00.1) on a beaglebone black. The snapshot >> FreeBSD-12.0-CURRENT-arm-armv6-BEAGLEBONE-20170105-r311461.img that I >> downloaded from >> ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/12.0/ >> works fine, but when I try boot the image that I build on my machine >> using crouchet I get: >> >> U-Boot SPL 2017.01-rc3 (Jan 22 2017 - 23:17:18) >> Trying to boot from MMC1MMC partition switch failed >> *** Warning - MMC partition switch failed, using default environment >> >> reading u-boot.img >> reading u-boot.img >> >> And boot stops. Someone can confirm that the revision 312227 is working >> fine? > I did some digging at the breakage is caused by this commit in U-Boot: > https://www.mail-archive.com/u-boot@lists.denx.de/msg234317.html > > Crochet is using FAT12 for Beaglebone Black. Switching to FAT16 fixes > the problem. Try applying this patch to crochet and re-build image: > > https://people.freebsd.org/~gonzo/patches/crochet-bbb-fat16.diff > I have applied the patch and now I'm getting this error. Some hints? []'s -Otacílio U-Boot SPL 2017.01-rc3 (Jan 22 2017 - 23:17:18) Trying to boot from MMC1MMC partition switch failed *** Warning - MMC partition switch failed, using default environment reading u-boot.img reading u-boot.img U-Boot 2017.01-rc3 (Jan 22 2017 - 23:17:18 -0300) CPU : AM335X-GP rev 2.0 I2C: ready DRAM: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - bad CRC, using default environment not set. Validating first E-fuse MAC Net: cpsw, usb_ether Press SPACE to abort autoboot in 2 seconds switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 reading boot.scr ** Unable to read file boot.scr ** reading uEnv.txt 0 bytes read in 4 ms (0 Bytes/s) Loaded env from uEnv.txt Importing environment from mmc0 ... switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found FreeBSD U-Boot Loader (bin) reading ubldr.bin 230992 bytes read in 22 ms (10 MiB/s) ## Starting application at 0x82000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x9df30c58 FreeBSD/armv6 U-Boot loader, Revision 1.2 (Thu Jan 26 16:55:20 BRT 2017 ota@squitch) DRAM: 512MB Number of U-Boot devices: 3 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=0 slice= partition=... good. Booting from disk0s2a: /boot/kernel/kernel data=0x609624+0x1a29dc syms=[0x4+0x89070+0x4+0x9d363] /boot/kernel/geom_label.ko text=0x4de8 data=0x870+0x4 syms=[0x4+0x12c0+0x4+0x1061] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... No valid device tree blob found! Type '?' for a list of commands, 'help' for more detailed help. loader>