Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/embedded/conf Size for 512 byte sectors and ba...



details:   https://anonhg.NetBSD.org/src/rev/8e90be467390
branches:  trunk
changeset: 784279:8e90be467390
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jan 23 21:59:37 2013 +0000

description:
Size for 512 byte sectors and base ffs partition size on totalsize minus
others.

diffstat:

 distrib/utils/embedded/conf/evbarm.conf |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 8ac21d2417e0 -r 8e90be467390 distrib/utils/embedded/conf/evbarm.conf
--- a/distrib/utils/embedded/conf/evbarm.conf   Wed Jan 23 21:42:22 2013 +0000
+++ b/distrib/utils/embedded/conf/evbarm.conf   Wed Jan 23 21:59:37 2013 +0000
@@ -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 @@
 
 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



Home | Main Index | Thread Index | Old Index