On 08/28/2012 10:45 AM, Adam Barta wrote:
Yes its the trailing newline i think so
echo -en "\xFF"
would work
Yes, thanks for the -n tip. Here's what I get.
root@roach1:/proc/1174/hw/ioreg# echo -en \x01\x00 > trig_adc0
root@roach1:/proc/1174/hw/ioreg# cat trig_adc0 | hd
00000000 78 30 31 78 |x01x|
00000004
root@roach1:/proc/1174/hw/ioreg# echo -en \xff\xff > trig_adc0
root@roach1:/proc/1174/hw/ioreg# cat trig_adc0 | hd
00000000 78 66 66 78 |xffx|
00000004
root@roach1:/proc/1174/hw/ioreg# echo -en \xFF\xFF > trig_adc0
root@roach1:/proc/1174/hw/ioreg# cat trig_adc0 | hd
00000000 78 46 46 78 |xFFx|
00000004
Since this is on a ROACH-1 PPC we should be running the same OS, so I'm
puzzled.
Tom