From owner-freebsd-arm@freebsd.org Fri Mar 10 14:47:45 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 5C91BD065D3 for ; Fri, 10 Mar 2017 14:47:45 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E8443118B for ; Fri, 10 Mar 2017 14:47:44 +0000 (UTC) (envelope-from rj@obsigna.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1489157262; l=2397; s=domk; d=obsigna.com; h=To:References:Content-Transfer-Encoding:Date:In-Reply-To:From: Subject:Mime-Version:Content-Type; bh=ZtJv4P6kQ7ean/4BOlmUuyDbTv/bOXXFuHkCHEOXkCo=; b=L7VNFRmLrX+h6VrIA8UkH2yyiVlkSeLC4chqYHMmEDsLrRaI1T7IoLINl396sp1/wM 6GiOk9u7s/FwI4PkEPsjx7Z7R8KVG+JwA+y4tERDLUxkCO0VeQQsjUKudzQWOd3vSWfx zIhJ3eJiP38nPcYOpd0MdBU7bFXjkwZ9XYUpE= X-RZG-AUTH: :O2kGeEG7b/pS1EK7WHa0hxqKZr4lnx6UhT0M0o35iAdWtoM07Gt3wQHFGh0i99HgKKA= X-RZG-CLASS-ID: mo00 Received: from mail.obsigna.com (bb02b584.virtua.com.br [187.2.181.132]) by smtp.strato.de (RZmta 40.1 DYNA|AUTH) with ESMTPSA id j04f7dt2AElf7gj (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Fri, 10 Mar 2017 15:47:41 +0100 (CET) Received: from rolf.projectworld.net (rolf.projectworld.net [192.168.222.15]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.obsigna.com (Postfix) with ESMTPSA id 6C53F7506DAD for ; Fri, 10 Mar 2017 11:47:39 -0300 (BRT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: BeagleBone Black MMC ordering clashes From: Dr. Rolf Jansen In-Reply-To: Date: Fri, 10 Mar 2017 11:47:38 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <0D45AE79-E31B-4E81-BE70-AEAC2CA093C0@obsigna.com> References: <7D750433-59FC-4999-AC24-041683E17310@obsigna.com> <1483718084.96230.5.camel@freebsd.org> <0D800E14-799A-4926-AEF8-CD698D647E40@obsigna.com> <1483722560.96230.10.camel@freebsd.org> <1483928120.96230.61.camel@freebsd.org> <6A97EEB3-6B24-48E7-959F-67F4275AFEC8@obsigna.com> <1487735878.73144.140.camel@freebsd.org> <419A8740-2BA4-45A6-B73D-15012373A5A0@obsigna.com> To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.1878.6) 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, 10 Mar 2017 14:47:45 -0000 Am 10.03.2017 um 10:30 schrieb Otac=EDlio de Ara=FAjo Ramos Neto = : > Dear >=20 > Coud tou please indicate to me where you found the procedure to = install FreeBSD in BBB flash memory? >=20 > []'s > -Otacilio It's not exactly that I found the procedure anywhere, I simply did it in = accordance to the common sense of an experienced FreeBSD user. 1. Start the BBB using a FreeBSD installation on the SD card. 2. Partition the internal flash -- note, this will destroy the factory = installation: # gpart -F destroy mmcsd1 # gpart create -s MBR mmcsd1 # gpart add -b 8192 -s 8192 -t fat32 mmcsd1 # gpart add -s 7536640 -t freebsd mmcsd1 # gpart add -s 7536640 -t freebsd-ufs mmcsd1s2 # gpart set -a active -i 1 mmcsd1s1 3. Create the file systems: # newfs_msdos -L boot /dev/mmcsd1s1 # newfs -ntUE -L system /dev/mmcsd1s2a # tunefs -a enable /dev/mmcsd1s2a 4. Configure the snapshot image as virtual memory disk, assuming the unpacked image is present in the working dir: # mdconfig -a -t vnode -f = FreeBSD-12.0-CURRENT-arm-armv6-BEAGLEBONE-20170309-r314972.img -u 0 5. Copy over the U-BOOT data: # mount_msdosfs -o noatime /dev/md0s1 /media # mount_msdosfs -o noatime /dev/mmcsd1s1 /mnt # cp -p /media/* /mnt # umount /mnt # umount /media 6. As a Prerequisite, install the filesystem cloning tool // I use the tool sysutils/clone, and it can be installed either from = the ports: # cd /usr/ports/sysutils/clone # make install clean // or install it directly from the GitHub repository: # mkdir ~/bin # cd ~/bin # ln -s /usr/bin/svnliteversion svnversion # cd # svnlite checkout https://github.com/cyclaero/clone/trunk/ clone # cd clone # make install clean 7. Copy over the FreeBSD Installation # mount -o noatime /dev/md0s2a /media # mount -o noatime /dev/mmcsd1s2a /mnt # clone -c rwoff /media /mnt # umount /mnt # umount /media # mdconfig -d -u 0 8. Edit /etc/fstab so it gets the following content: /dev/ufs/system / ufs rw 1 = 1 /dev/label/boot /boot/msdos msdosfs rw,noatime 0 = 0 tmpfs /tmp tmpfs rw,mode=3D1777,size=3D50m = 0 0 9. Shutdown the BBB, remove the SD card, then restart. The BBB should now start from the internal flash. If it does not, then = perhaps I have forgotten a crucial step in the above procedure. Best regards Rolf