<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Windows Mail 17.5.9600.22013">
<style><!--
html {
font-family:"Color Emoji","Calibri","Segoe UI","Meiryo","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","sans-serif";
}
--></style><style><!--
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><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>Or is this part … perhaps like this… lol</div>
<div><br>
</div>
<div> perhaps_write_flash 0 224<br>
 perhaps_write_flash 1 16<br>
 perhaps_write_flash 2 16<br>
 perhaps_write_flash 3 16<br>
 perhaps_write_flash 4 1728<br>
 perhaps_write_flash 5 48<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:span1922@live.com" target="_parent">Nick
 Griffin</a><br>
<b>Sent:</b> ‎Wednesday‎, ‎24‎ ‎April‎ ‎2019 ‎12‎:‎08<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="ltr">
<div style="font-family: "Calibri","Segoe UI","Meiryo","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","sans-serif"; font-size: 12pt;" dir="ltr">
<div>is this right…??</div>
<div><br>
</div>
<div>perhaps_write_flash()<br>
    {<br>
        p=${1?} erase=${2?}<br>
        f=/media/sda1/e3-nand-backup.$p<br>
        dev=/dev/mtd$p</div>
<div><br>
</div>
<div>        test -e $f || return</div>
<div><br>
</div>
<div>        echo found $f<br>
        echo erasing $erase on $dev<br>
        flash_erase $dev 0 $erase<br>
        echo writing flash<br>
        nandwrite -on $dev $f<br>
    }</div>
<div><br>
</div>
<div>    perhaps_write_flash 0 224<br>
    perhaps_write_flash 0 16<br>
 perhaps_write_flash 0 16<br>
 perhaps_write_flash 0 16<br>
 perhaps_write_flash 0 1728<br>
 perhaps_write_flash 0 48<br>
</div>
<div>
<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 ‎11‎:‎55<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>
>  flash_erase /dev/mtd0 0 224<br>
...<br>
>  flash_erase /dev/mtd0 0 16<br>
<br>
It always mtd0.  There's too much repetition in the code so errors like<br>
this are likely to creep in.  Consider the approach I suggested in<br>
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.earth.li%2Fpipermail%2Fe3-hacking%2F2019-April%2F001314.html&amp;data=02%7C01%7C%7C3698329065b24dc1983108d6c8a3522f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636917001111275025&amp;sdata=6HxFeGP9mAKyYCGbBLR%2FyibGpJ5zDrlJKtEwH%2FpuZdk%3D&amp;reserved=0<br>
Then the `0' of mtd0, etc., it only typed once.<br>
<br>
-- <br>
Cheers, Ralph.<br>
<br>
_______________________________________________<br>
e3-hacking mailing list<br>
e3-hacking@earth.li<br>
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.earth.li%2Fmailman%2Flistinfo%2Fe3-hacking&amp;data=02%7C01%7C%7C3698329065b24dc1983108d6c8a3522f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636917001111275025&amp;sdata=TgNw2UJuSOOgeXqrqlGa3123K2fKTJFK%2BtjOzDWmJYo%3D&amp;reserved=0<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>