[E3-hacking] PBL & running arbitrary code

David Given e3-hacking@earth.li
Fri, 11 Mar 2005 22:15:14 +0000


--=-Nk6vObvplM4Ig8vP8AhY
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

So, thanks to a late-night-opening Argos, I now have a fairly shiny E2
sitting on my desk. Damned if I can make it do anything useful.

I did have one stroke of luck; while I was rummaging around in my parts
boxes looking for a cable to cut up, I came across a cable with a serial
plug on one end and a stereo jack on the other --- debris from some
long-defunct digital camera. Right pinout, too, AFAICT.

But the most I'm seeing from the E2 is the occasional 00 byte. What my
program is doing is sending 0x1B bytes at 9600 8N1, ten times a second,
and echoing in hex anything that comes back. I run this and power cycle
the E2. What I should be seeing, if I'm understanding how things work,
is the E2 respond with 0B 0B 0B... and the boot process should halt.

I enclose the program, in case anyone can spot any stupid mistakes ---
serial port programming in Linux is not my fort=C3=A9.

My E2 has V13 software, PBL V3.1 build 1277, and has the cold flesh
keyboard. I haven't set it up, it's completely virgin.

How long does it wait at boot time to be prodded? The splash screen is
appearing pretty much as soon as I switch on.

--=20
+- David Given --McQ-+=20
|  dg@cowlark.com    | "The further you are from your server, the more
| (dg@tao-group.com) | likely it is to crash." --- Woodhead's law
+- www.cowlark.com --+=20

--=-Nk6vObvplM4Ig8vP8AhY
Content-Disposition: attachment; filename=main.cc.gz
Content-Type: application/x-gzip; name=main.cc.gz
Content-Transfer-Encoding: base64

H4sICGUXMkICA21haW4uY2MAfVJtb9owEP7s/IpTqqIwZZD2w95YJzHaTpUQIEBiU1dVmWODpRBH
9oWObfz3nU3SFlZNQtFxfu55nns5UQXPq0zAR4uZ0p3Vp+DkeSpXP45yW9vFbSnsv2mLKR5mJS8w
P0xVhSLawxwKs1b6BcZS5/mxJaOKpcsFXBcWga9SAzNhVJpPtMHbO7iAsJuJTRdxO0vCXhBstMpA
GKNN9FTzCtbC2nQp2sHvgMmSaFFGZI2AMYRXDv4BTu33Iowfob2AiZ8KozOKdsRMNbBOVRG5IDVL
HtfcFG9u7zy1e5IZudKlKKInpzGM76eXiyn8oWA0Hszn3xy/khA5+AW8PmsHjO19h9epykUGqD0N
WE8DJfF0QioLGA2m4gj1KAGJai3WVmDUIqkkBqt+CS0jbDsV7PB7LvN0Sb4Gs3fkYTAcD/pDF0yv
+pc1RNWQmy+jSX9KSS6J0ZZCZJ728/s3SeJdU5OKgMjpPUU01EMM88GsPxovYmhh05r6T2dUClX5
Qm9SG4h6PSqiebKqsGpZUIlfPSfV87fEzpz+g1EovHaLduHWxI5lG92Fg+7Pwsswhjwzbpky86rN
SN0R0kZKByk7fpUy2/8RG1GgpcRkPBzejBo1VxG1SjJAPxqQE/fazj7LtPv60Hs2Is2OLD8zvfdc
w1l9puFpcv7VXyav8UzKvLIrd8C6wjq5C5rPw4qG/MjoXim9oyZ5rq1oOjYCK1NAsj/uv6+xMXQb
BAAA


--=-Nk6vObvplM4Ig8vP8AhY--