Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1355853

Re: [PATCH 3/3] dm9601: add support ethtool style utility

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH 3/3] dm9601: add support ethtool style utility
Date 2016-03-11 12:50 +0100
Message-ID <rbtJU-5CI-7@gated-at.bofh.it> (permalink)
References <rbtgS-5hR-13@gated-at.bofh.it> <rbtAf-5vz-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH 3/3] dm9601: add support ethtool style utility Ben Hutchings <ben@decadent.org.uk> - 2016-03-10 14:20 +0100
  RE: [PATCH 3/3] dm9601: add support ethtool style utility "Joseph Chang" <joseph_chang@davicom.com.tw> - 2016-03-11 12:20 +0100
    Re: [PATCH 3/3] dm9601: add support ethtool style utility Ben Hutchings <ben@decadent.org.uk> - 2016-03-11 12:40 +0100
      Re: [PATCH 3/3] dm9601: add support ethtool style utility Ben Hutchings <ben@decadent.org.uk> - 2016-03-11 12:50 +0100

csiph-web