Biffboot feature request

3 views
Skip to first unread message

ernstoud

unread,
Feb 10, 2010, 10:33:35 AM2/10/10
to Bifferboard
Small request...

I accidentely pressed the 1 key in Biffboot 2.9 and was surprised to
see that Biifboot immediately erased my flash.

Why not detect that Biffboot is running interactively and give some
sort of warning when this key is pressed?

TIA

biff...@yahoo.co.uk

unread,
Feb 10, 2010, 10:57:56 AM2/10/10
to Bifferboard

On Feb 10, 3:33 pm, ernstoud <ernst...@gmail.com> wrote:
> Why not detect that Biffboot is running interactively and give some
> sort of warning when this key is pressed?

If you want to tell me how I detect Biffboot is running interactively
I'll implement it. bb_upload.py scripts an interactive session. The
only way would be to detect in Biffboot a ridiculously fast response
time to the <ESC> prompt, and use that to put the bootloader into a
different mode, however that's going to screw up my automated testing,
as well as being just plain ugly.

The alternative is to create another upload script for the new
version, but I think there are already too many!

regards,
Biff.

ernstoud

unread,
Feb 10, 2010, 11:25:04 AM2/10/10
to Bifferboard
Ok. If impossible forget it. I thought the .py scripts invoke some
other comms protocol than keyboard input/output...

On Feb 10, 4:57 pm, "biffe...@yahoo.co.uk" <biffe...@yahoo.co.uk>
wrote:

Andrew Scheller

unread,
Feb 10, 2010, 11:38:39 AM2/10/10
to biffe...@googlegroups.com
> Ok. If impossible forget it. I thought the .py scripts invoke some
> other comms protocol than keyboard input/output...

Yeah, that's what the pexpect.py file is for - it's a python version
of Expect http://expect.nist.gov/FAQ.html#q1
(and it's actually serial input/output, rather than keyboard input/output :)

Biff - I thought you said that in BiffBoot 2.9 the erase commands get
silently ignored, and the flash is only erased just prior to a write?
Or is that only for 'network console', not the 'serial console' ?


One of the things I've wanted to have a go at for a while (but still
not got round to it!) is seeing if the BB-upload scripts can be merged
together. As a software-developer by trade, I hate seeing duplicated
code ;)

Lurch

biff...@yahoo.co.uk

unread,
Feb 10, 2010, 4:25:26 PM2/10/10
to Bifferboard
On Feb 10, 4:38 pm, Andrew Scheller <ya...@loowis.durge.org> wrote:
> Biff - I thought you said that in BiffBoot 2.9 the erase commands get
> silently ignored, and the flash is only erased just prior to a write?
> Or is that only for 'network console', not the 'serial console' ?

Got it in one. Serial is considered legacy, so I try not to touch it
unless I have to.

> One of the things I've wanted to have a go at for a while (but still
> not got round to it!) is seeing if the BB-upload scripts can be merged
> together.  As a software-developer by trade, I hate seeing duplicated
> code ;)

Agreed. It's less than ideal at the moment.

regards,
Biff.

biff...@yahoo.co.uk

unread,
Feb 11, 2010, 7:35:00 AM2/11/10
to Bifferboard

I had another look last night. We can stop the '1' key from having
any effect unless it's the first key pressed after the <ESC>. Also,
we can insist on the '1' key being pressed within 250mS of <ESC> for
serial upload. This is straightforward to implement, and in some ways
makes the code cleaner.

I'll put that in the next version.

Andrew Scheller

unread,
Feb 11, 2010, 7:56:47 AM2/11/10
to biffe...@googlegroups.com
> I had another look last night. We can stop the '1' key from having
> any effect unless it's the first key pressed after the <ESC>.

Does the bootloader ignore evvery <ESC> after the first one? ;)

> I'll put that in the next version.

While you're looking at biffboot could you take a look at this and
confirm whetther it's broken in current versions?
http://groups.google.com/group/bifferboard/browse_thread/thread/611ca73a1ad04ab3/aca8d2c3fe0c6489

Lurch

biff...@yahoo.co.uk

unread,
Feb 11, 2010, 8:26:17 AM2/11/10
to Bifferboard

On Feb 11, 12:56 pm, Andrew Scheller <ya...@loowis.durge.org> wrote:
> >  I had another look last night.  We can stop the '1' key from having
> >  any effect unless it's the first key pressed after the <ESC>.
>
> Does the bootloader ignore evvery <ESC> after the first one? ;)

No. Inputting new kernel command-line uses ESC to cancel.

> >  I'll put that in the next version.
>
> While you're looking at biffboot could you take a look at this and

> confirm whetther it's broken in current versions?http://groups.google.com/group/bifferboard/browse_thread/thread/611ca...

Already looked at it. The logic analyser function is only for the 4
JTAG pins. I can extend it if you want though.

Biff.

Andrew Scheller

unread,
Feb 12, 2010, 8:12:09 AM2/12/10
to biffe...@googlegroups.com
> > While you're looking at biffboot could you take a look at this and
>
> > confirm whetther it's broken in current versions?http://groups.google.com/group/bifferboard/browse_thread/thread/611ca...
>
> Already looked at it. The logic analyser function is only for the 4
> JTAG pins. I can extend it if you want though.

Sorry, I wasn't talking about the logic analyser function (unless
that's the same thing with a different name?), I was talking about
bb_eth_gpio.py which seems to work fine with biffboot2.1 but not so
well with biffboot2.9

Although I think for the sake of consistency it would also be nice for
the logic analyser to work with the button GPIO, as long as it's not
too much extra work.

Lurch

Reply all
Reply to author
Forward
0 new messages