od command behavior change
Mori Hiroki
yamori813 at yahoo.co.jp
Wed Apr 4 06:27:10 UTC 2018
Hi.
I checked usr.bin/hexdump code. But I can't found reason.
I seem j option and device file is cause of this problem.
# od -N 6 -t x1 -j 4 /dev/flash/spi0s.u-boot-env
od: /dev/flash/spi0s.u-boot-env: Invalid argument
0000004
# od -N 6 -t x1 /dev/flash/spi0s.u-boot-env
0000000 50 30 00 01 00 18
0000006
# dd if=/dev/flash/spi0s.u-boot-env of=/tmp/aaa
# od -N 6 -t x1 -j 4 /tmp/aaa
0000004 00 18 84 32 96 00
0000012
----- Original Message -----
>From: Mori Hiroki <yamori813 at yahoo.co.jp>
>To: "freebsd-mips at freebsd.org" <freebsd-mips at freebsd.org>
>Date: 2018/2/14, Wed 11:32
>Subject: od command behavior change
>
>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?
>
>Hiroki Mori
>_______________________________________________
>freebsd-mips at freebsd.org mailing list
>https://lists.freebsd.org/mailman/listinfo/freebsd-mips
>To unsubscribe, send any mail to "freebsd-mips-unsubscribe at freebsd.org"
>
>
>
More information about the freebsd-mips
mailing list