Busybox and hex arguments

Michael Abbott michael at araneidae.co.uk
Wed Apr 7 08:41:32 UTC 2010


> On Tuesday 06 April 2010 15:32, David Parkinson wrote:
> > I've been using busybox as part of the tinycore distribution and find 
> > it irritating that it apparently only accepts decimal numbers on the 
> > command line.  In particular I've been using hexdump to look at 
> > particular areas of memory.  e.g.
> >
> >     hexdump -C -n 128 -s 0xC00000 /dev/mem
> > 
> > Works fine with the standard utility (eg in Fedora) but with busybox 
> > I just get:
> > 
> > hexdump: invalid number '0xC00000'
> > 
> > Have I got the syntax wrong?  Is it busybox? Is it tinycore's 
> > implementation?
> 
> Please try attached patch.

This kind of problem can be worked around using the shell by writing

	hexdump -C -n 128 -s $((0xC00000)) /dev/mem

instead.


More information about the busybox mailing list