From owner-freebsd-mips@freebsd.org Wed Apr 4 13:03:48 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 062E6F8D025 for ; Wed, 4 Apr 2018 13:03:48 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6259D79A99 for ; Wed, 4 Apr 2018 13:03:47 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-wm0-f54.google.com with SMTP id g8so16981136wmd.2 for ; Wed, 04 Apr 2018 06:03:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KTJ81mFFDxZI741rsiHHXUVggAIKDRjv9F7Y74y7gqk=; b=ZbGz+KquFo8Zc7uvvJXZZWMZPll8cssfQtn/2sBgQqGZ/k3jJyu/PU+u+v2HySBwIh TZB5S6LFDtW3DrtC8HOHHg+Qw55k4RNcWnjzQWEmZEG7Men5IwMWeSpbVHRV9eoF4Y8k +gK5E5W4p5fEfyjw8VQfxb2lGM3bPYt2qhR13LC6RZ2MkPKCdYH8Rjsn39we2b/IUePs NOlsJV9jmPVWi39+kdmuj9Wt3h6zvdxLZviXJQiAnKLsyvmkRupKbnM7bZsI/lXJZBKL OG1BKcIjeRBOCNLQEatfgvTpj8qY821V2Iezglbxbpkh9/erNL1eYvn2XbIsmybpA8QB ntew== X-Gm-Message-State: ALQs6tDxtozWy/Ra4cVwvINgqNnCTqF/2z86VKZuEL/owBZI59St5w6y GnvZd3lR0j36DyaUdZb5zUBAJ7I6 X-Google-Smtp-Source: AIpwx49azQmRGqSZtsBCq2aXTeQzVSxo/3Z9+1Rhn4H3TeYHIaNagax0K4D22ZsCIXoP354gBzDBnQ== X-Received: by 10.80.217.70 with SMTP id u6mr5774531edj.241.1522847025817; Wed, 04 Apr 2018 06:03:45 -0700 (PDT) Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com. [209.85.128.170]) by smtp.gmail.com with ESMTPSA id k24sm3476111ede.62.2018.04.04.06.03.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 06:03:44 -0700 (PDT) Received: by mail-wr0-f170.google.com with SMTP id u11so22529741wri.12 for ; Wed, 04 Apr 2018 06:03:44 -0700 (PDT) X-Received: by 2002:a19:c987:: with SMTP id z129-v6mr10942629lff.74.1522847024636; Wed, 04 Apr 2018 06:03:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.129.90 with HTTP; Wed, 4 Apr 2018 06:03:24 -0700 (PDT) In-Reply-To: <967709.5440.qm@web101702.mail.ssk.yahoo.co.jp> References: <967709.5440.qm@web101702.mail.ssk.yahoo.co.jp> From: Kyle Evans Date: Wed, 4 Apr 2018 08:03:24 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: od command behavior change To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2018 13:03:48 -0000 On Tue, Feb 13, 2018 at 8:32 PM, Mori Hiroki wrote: > Hi > > I use od command get mac address from flash. > > CURRENT od command change behavior. > > OLD od > > # od -j 0x0004 -N 6 -t x1 /dev/flash/spi0s.u-boot-env > 0000004 00 18 84 12 34 56 > 0000012 > > CURRENT od > > # od -j 0x0004 -N 6 -t x1 /dev/flash/spi0s.u-boot-env > od: /dev/flash/spi0s.u-boot-env: Invalid argument > 0000004 > > Is this bug? > Probably- does applying [1] fix it? Having this ioctl result in total failure was probably not a great decision, since noseek() will probably still work. Thanks, Kyle Evans [1] https://people.freebsd.org/~kevans/od-fix.diff