<div dir="ltr">The E3 is based on an ARM reference design, isn't it? What's the feasibility of emulating one?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 24 Apr 2019 at 11:46, Ralph Corderoy <<a href="mailto:ralph@inputplus.co.uk">ralph@inputplus.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Nick,<br>
<br>
> > That should be possible as you have the files, now without their 16<br>
> > bytes per 512 bytes overhead.  You need to work out how many blocks<br>
> > to erase based on the size of each file you're trying to put back.<br>
> > IIRC I pointed out a block is the unit of erasure and it's 16 KiB.<br>
><br>
> So e3-nand.0 is 3584 KB so how many blocks go into it…? so how many<br>
> times dose 16KB going in to 3584KB…?? I don’t know..?? I can’t divide.<br>
> Iam a bit ok on Add not brilliant at Times but can’t do Divide.<br>
<br>
Having stripped the excess OOB data, I have these sizes for each file in<br>
bytes.<br>
<br>
     3670016  e3-nand-backup.0<br>
      262144  e3-nand-backup.1<br>
      262144  e3-nand-backup.2<br>
      262144  e3-nand-backup.3<br>
    28311552  e3-nand-backup.4<br>
      786432  e3-nand-backup.5<br>
<br>
You're right, 3,670,016 B is 3,584 KiB because<br>
    3,670,016 / 1,024 = 3,584<br>
so 1,024 goes into 3,670,016 exactly 3,584 times.<br>
<br>
But the size of the erase block is 16 KiB which is<br>
    16 * 1,024 = 16,384<br>
so we want to know how many times 16,384 goes into 3,670,016.<br>
    3,670,016 / 16,384 = 224<br>
224 is what you worked out in your other email.<br>
<br>
Taking those six sizes above and repeating the same sum gives<br>
<br>
     3,670,016 / 16,384 =   224<br>
       262,144 / 16,384 =    16<br>
       262,144 / 16,384 =    16<br>
       262,144 / 16,384 =    16<br>
    28,311,552 / 16,384 = 1,728<br>
       786,432 / 16,384 =    48<br>
<br>
Now I haven't been carefully following along how to extract<br>
e3-nand-backup.* in the first place, and how to write them back.<br>
I'm aware there's a script involved and a command where one of the<br>
parameters is the number of 16 KiB blocks to erase.  Hopefully, plugging<br>
in those numbers above for each of the matching areas will work, but<br>
it's your responsibility whether to go ahead as you're the one actually<br>
doing all this;  I've just been sitting at a keyboard.  :-)<br>
<br>
-- <br>
Cheers, Ralph.<br>
<br>
_______________________________________________<br>
e3-hacking mailing list<br>
<a href="mailto:e3-hacking@earth.li" target="_blank">e3-hacking@earth.li</a><br>
<a href="https://www.earth.li/mailman/listinfo/e3-hacking" rel="noreferrer" target="_blank">https://www.earth.li/mailman/listinfo/e3-hacking</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>┌─── <a href="http://www.cowlark.com" target="_blank">http://www.cowlark.com</a> ───<br>│ "I have always wished for my computer to be as easy to use as my<br>│ telephone; my wish has come true because I can no longer figure out<br>│ how to use my telephone." --- Bjarne Stroustrup</div></div></div>