<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Windows Mail 17.5.9600.22013">
<style type="text/css"><!--html { font-family: "Color Emoji", "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; }--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style>
</head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;">
<div>So you would put in the number 224 in the flash_erase line at the end..</div>
<div><br>
</div>
<div>flash_erase /dev/mtd0 0 224</div>
<div><br>
</div>
<div>I just hope it works if it dose then we have just fixed the E3,all you need is a copy of the firware that's activated and when it deactives just reflash it again to activate it..😊<br>
</div>
<div data-signatureblock="true">
<div><br>
</div>
<div>Spanner..<br>
<br>
http://amstrad-e3-hacking.freeforums.net</div>
<div><br>
</div>
</div>
<div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;">
<div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style="line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;"><b>From:</b> <a href="mailto:ralph@inputplus.co.uk" target="_parent">Ralph
Corderoy</a><br>
<b>Sent:</b> ‎Wednesday‎, ‎24‎ ‎April‎ ‎2019 ‎10‎:‎46<br>
<b>To:</b> <a href="mailto:e3-hacking@earth.li" target="_parent">Discussion of the Amstrad E3 emailer hardware/software</a></font></div>
</div>
<div><br>
</div>
<div dir="">
<div id="readingPaneBodyContent">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>
e3-hacking@earth.li<br>
https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.earth.li%2Fmailman%2Flistinfo%2Fe3-hacking&data=02%7C01%7C%7C20675962b35c45b5e91008d6c899c7ab%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636916960131227371&sdata=Qin1SjyUGh%2FHaTK7CwRcRPphPkjKv6%2BOR1twUP5c%2Bgs%3D&reserved=0<br>
</div>
</div>
</div>
</body>
</html>