From owner-freebsd-ports-bugs@freebsd.org Tue Jul 7 14:29:57 2015 Return-Path: Delivered-To: freebsd-ports-bugs@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 21D86995F03 for ; Tue, 7 Jul 2015 14:29:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE4771BE8 for ; Tue, 7 Jul 2015 14:29:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t67ETuqk004897 for ; Tue, 7 Jul 2015 14:29:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 201401] [PATCH] sysutils/u-boot-beaglebone Date: Tue, 07 Jul 2015 14:29:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: manu@bidouilliste.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ian@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2015 14:29:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201401 Bug ID: 201401 Summary: [PATCH] sysutils/u-boot-beaglebone Product: Ports & Packages Version: Latest Hardware: arm OS: Any Status: New Keywords: patch Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ian@FreeBSD.org Reporter: manu@bidouilliste.com CC: freebsd-arm@FreeBSD.org CC: freebsd-arm@FreeBSD.org Assignee: ian@FreeBSD.org Flags: maintainer-feedback?(ian@FreeBSD.org) Keywords: patch Created attachment 158505 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158505&action=edit patch_saveenv This patch removes the hardcoded device for env location and set the variable bootdevice to 0 (i.e. the SD card) to the default env. This makes u-boot saves the env file according to bootdevice instead of hardcoded one (now the SD card) when using the saveenv command. This is an enhancement for users who boot from eMMC and don't affect users of SD card only. It also correct the SetupUenv command to load u-boot.env (the filename of the saved end) instead of uEnv.txt. Note that currently u-boot fails to correctly saves the env to a FAT12 partition, you must use a FAT16 one. You can create a correct bootable FAT16 partition for the eMMC like this when booting from SD card : gpart destroy -F mmcsd1 gpart create -s mbr mmcsd1 gpart add -t fat16 -b 4096 -s 10M gpart set -a active -i 1 mmcsd1 newfs_msdos -F 16 -h 4 -u 16 -S 512 -m 0xf8 -n 2 -c 4 -a 20 -r 4 -e 512 /dev/mmcsd1s1 Cheers, -- You are receiving this mail because: You are the assignee for the bug.