Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Booting NetBSD on the BeagleBone Black



On 03/13/17 09:21, Martin Husemann wrote:
On Mon, Mar 13, 2017 at 12:09:23AM +0000, Sevan / Venture37 wrote:
I was wondering if it would be possible to have mark the DOS partition
on the images we generated as active by default so that there's one
step less to take.
The code is in src/distrib/utils/embedded/mkimage, search for FDISK.

How about this diff?

Nick
Index: distrib/utils/embedded/mkimage
===================================================================
RCS file: /cvsroot/src/distrib/utils/embedded/mkimage,v
retrieving revision 1.61
diff -u -p -r1.61 mkimage
--- distrib/utils/embedded/mkimage	1 Aug 2015 10:05:51 -0000	1.61
+++ distrib/utils/embedded/mkimage	13 Mar 2017 09:31:54 -0000
@@ -220,7 +220,7 @@ if [ -n "${msdosid}" ]; then
 	echo ${bar} Running fdisk ${bar}
 	initsecs=$((${init} * 1024))
 	bootsecs=$((${boot} * 1024))
-	${FDISK} -f -u -0 -s ${msdosid}/${initsecs}/${bootsecs} -F ${image}
+	${FDISK} -f -a -u -0 -s ${msdosid}/${initsecs}/${bootsecs} -F ${image}
 elif [ -n "${netbsdid}" ]; then
 	echo ${bar} Running fdisk ${bar}
 	${FDISK} -f -i ${image}


Home | Main Index | Thread Index | Old Index