Module Name: src
Committed By: skrll
Date: Wed Jan 23 21:59:37 UTC 2013
Modified Files:
src/distrib/utils/embedded/conf: evbarm.conf
Log Message:
Size for 512 byte sectors and base ffs partition size on totalsize minus
others.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/distrib/utils/embedded/conf/evbarm.conf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/embedded/conf/evbarm.conf
diff -u src/distrib/utils/embedded/conf/evbarm.conf:1.2 src/distrib/utils/embedded/conf/evbarm.conf:1.3
--- src/distrib/utils/embedded/conf/evbarm.conf:1.2 Mon Jan 21 16:59:23 2013
+++ src/distrib/utils/embedded/conf/evbarm.conf Wed Jan 23 21:59:37 2013
@@ -1,4 +1,4 @@
-# $NetBSD: evbarm.conf,v 1.2 2013/01/21 16:59:23 skrll Exp $
+# $NetBSD: evbarm.conf,v 1.3 2013/01/23 21:59:37 skrll Exp $
# evbarm shared config
#
image=$HOME/${board}.img
@@ -19,15 +19,16 @@ tmp=/tmp/${board}.disklabel.$$
make_filesystems_evbarm() {
- local asize=$(( ${newsize} * 1024 ))
+ local totalsize=$(( ${newsize} * 1024 * 2 ))
local swapsize=$(( ${swap} * 1024 ))
local bootsize=$(( ${boot} * 1024 ))
- local bootoffset=$((${init} * 1024 ))
+ local bootoffset=$(( ${init} * 1024 ))
local swapoffset=$(( ${bootoffset} + ${bootsize} ))
+
+ local asize=$(( ${totalsize} - ${swapsize} - ${bootsize} - ${bootoffset} ))
local aoffset=$(( ${swapoffset} + ${swapsize} ))
- local totalsize=$(( ${asize} + ${swapsize} + ${bootsize} + ${bootoffset} ))
local bps=512
local spt=32
local tpc=64