lkml.org 
[lkml]   [2016]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3] dm9601: add support ethtool style utility
From
Date
On Fri, 2016-03-11 at 11:33 +0000, Ben Hutchings wrote:
> On Fri, 2016-03-11 at 19:08 +0800, Joseph Chang wrote:
> >
> > I tested by
> >  ./ethtool -E eth0 magic 0x9620 offset 0 length 3 value 0xf1 value 0xf2 value 0xf3
> >
> > I think ethtool need [ value N ] for each byte (so need three "value xx" in above command line), 
> > am I right?
> >
> > Oh, I can see it goes wrong~ Thanks~
> [...]
>
> You can only pass one byte on the command line and that forces the
> length to be 1.  To set multiple bytes, you need to provide them on
> stdin instead.

...as raw binary data, not hexadecimal strings.

Ben.

--
Ben Hutchings
73.46% of all statistics are made up.[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-03-11 13:21    [W:0.228 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site