In order for barebox to be functional, the docg3 DPS1 has to protect barebox from writes, and have its embedded IPL coded to load barebox (as barebox is the SPL). Add a raw DPS1, which : - protects the area from block 6 to block 123 This is DPS1 + barebox + barebox-logo - encodes the 2048 bytes IPL Signed-off-by: Robert Jarzmik <robert.jarzmik@xxxxxxx> --- arch/arm/boards/mioa701/env/bin/dps1_unlock | 12 ++++++++++++ arch/arm/boards/mioa701/env/bin/dps1_update | 12 ++++++++++++ arch/arm/boards/mioa701/env/data/dps1.raw.gz | Bin 0 -> 1239 bytes 3 files changed, 24 insertions(+) create mode 100644 arch/arm/boards/mioa701/env/bin/dps1_unlock create mode 100644 arch/arm/boards/mioa701/env/bin/dps1_update create mode 100644 arch/arm/boards/mioa701/env/data/dps1.raw.gz diff --git a/arch/arm/boards/mioa701/env/bin/dps1_unlock b/arch/arm/boards/mioa701/env/bin/dps1_unlock new file mode 100644 index 0000000..2d7dab8 --- /dev/null +++ b/arch/arm/boards/mioa701/env/bin/dps1_unlock @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Shell to unlock the DPS1 with "12345678" key. + +mw -b 0x105e 0x31 +mw -b 0x105e 0x32 +mw -b 0x105e 0x33 +mw -b 0x105e 0x34 +mw -b 0x105e 0x35 +mw -b 0x105e 0x36 +mw -b 0x105e 0x37 +mw -b 0x105e 0x38 diff --git a/arch/arm/boards/mioa701/env/bin/dps1_update b/arch/arm/boards/mioa701/env/bin/dps1_update new file mode 100644 index 0000000..a9d72da --- /dev/null +++ b/arch/arm/boards/mioa701/env/bin/dps1_update @@ -0,0 +1,12 @@ +#!/bin/sh + +# Page+OOB specific partitions +addpart /dev/mtdraw0 67584@202752(dps1) +uncompress /env/data/dps1.raw.gz /dps1.raw + +if [ -r /dps1.raw ]; then + dps1_unlock + erase /dev/mtdraw0.dps1 + cp -v /dps1.raw /dev/mtdraw0.dps1 + dps1_unlock +fi diff --git a/arch/arm/boards/mioa701/env/data/dps1.raw.gz b/arch/arm/boards/mioa701/env/data/dps1.raw.gz new file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XEfecP%i4K?>UdH-E$k~un)ZU>tmWv zf$Kn<#Jh>RT=k;u=;A5?UccqzeL^O{$HDi2?*JbGABE4r*Y87M_Y3<5Ui+GiJ{Wy4 z`e5|I=!4M*qYp+Oj6N8BF#2Hh;lI)c)~3&ys|dy;h{w|97<|GzI*j;htpzo{?q}f7 z#zgH7X#a@27JqczpM<}PJton&(YM{a3h6V2o$kW-@y-{9r^}3;R6%-L*Y62|{QLI_ z8D=xML#JwaBJPZexTk8l8F&WX0v`qc3gQ#sjv`+#{0aC;_~Y<X@W<c}!XJhI2z;Hx zg>NHY_uaw|z*2~@V#4o&S#Hj^5y$&-((64d`CU1=a1Yu<PTK49<CtFp=iQf+T-&{8 zYhya6m$=dAy}9fCx_+H!1r=mPxv;Y+ZI+dUT(j=xwK#@7viq%yh~nL_tom1TbzO3j z@XaImj;HsT#G3X@OFKDJyTfB%p;lA9t}sm3uy$u%J469a_4_c@^}*Xu{`nEQfnWpS zmGZvZD8j94jTbItKk2SkhgaWy-Fe?ihw_LK-Vc2%Qzy<@)SmI^@-|}q)D8ZkM+W}~ zSmz=;Qjfm*lhFsG54HPX^ub^Qj6N8BF#2Gy6^uR@eK7i9uobTB!{4r^9LIn$0011R Bg!KRb literal 0 HcmV?d00001 -- 1.7.10 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox