i assumed the register was a 32bit word but didn't expect you to read x00x
back out! that is werid! have you tried the ?wordread and ?wordwrite
commands from tcpborphserver?

also try echo -ne

to ignore the trailing newline.

maybe there is some borph kernel weridness is there anything
in dmesg?




On Mon, Mar 18, 2013 at 11:21 PM, Ryan Monroe <[email protected]>wrote:

>
>
> root@roach:/proc/618/hw/ioreg# echo 0 > ../ioreg_mode
> root@roach:/proc/618/hw/ioreg# echo -e \x00\x00\x00\x00 > acc_always_valid
> -bash: echo: write error: Invalid argument
> root@roach:/proc/618/hw/ioreg# echo -e \x00\x00\x00\x00 >
> acc_always_validczx
> -bash: acc_always_validczx: No such file or directory
> root@roach:/proc/618/hw/ioreg# cat ../ioreg_mode
> 0
> root@roach:/proc/618/hw/ioreg# echo 1 > ../ioreg_mode
> root@roach:/proc/618/hw/ioreg# echo -e \x00\x00\x00\x00 > acc_always_valid
> root@roach:/proc/618/hw/ioreg# cat acc_always_valid
> x00xroot@roach:/proc/618/hw/ioreg#
>
>
> Was that the expected response? "x00x"
>
> Also, the "Invalid argument" seems to happen on write too, and it's
> different from the "file not found" error...
>
>
>
> On 03/18/2013 02:12 PM, Adam Barta wrote:
>
>  Hi Ryan,
>
>
> Try echo -e \x00\x00\x00\x00 > register
>
>
>  Adam
>
>
> On Mon, Mar 18, 2013 at 9:12 PM, Ryan Monroe <[email protected]>wrote:
>
>> Hey guys,
>>
>> I'm trying to read and write to a ROACH1 using the BORPH filesystem.  I
>> followed the tutorial at
>> https://safe.nrao.edu/wiki/pub/CICADA/FlashLights/BorphGettingStart.pdf,
>> but got somewhat different results
>>
>>
>>
>> root@roach:/boffiles# ./asmls_roach0_2013_Mar_15_1123.bof
>> ^Z
>> [1]+  Stopped                 ./asmls_roach0_2013_Mar_15_1123.bof
>> root@roach:/boffiles# ps -a
>>   PID TTY          TIME CMD
>>   618 pts/0    00:00:00 asmls_roach0_20
>>   619 pts/0    00:00:00 ps
>> root@roach:/boffiles# cd /proc/618/hw
>> root@roach:/proc/618/hw# echo 0 > ioreg_mode
>> root@roach:/proc/618/hw# cd ioreg
>> root@roach:/proc/618/hw/ioreg# ls -ltrh
>> -r--r--r-- 1 root root    4 Dec 26 21:56 spec_count
>> -rw-rw-rw- 1 root root    4 Dec 26 21:56 acc_always_valid
>> <<other entries removed for brevity>>
>>
>> root@roach:/proc/618/hw/ioreg# cat spec_count
>> cat: spec_count: Invalid argument
>> root@roach:/proc/618/hw/ioreg# cat acc_always_valid
>> cat: acc_always_valid: Invalid argument
>> root@roach:/proc/618/hw/ioreg#
>>
>>
>> spec_count is a output reg, while acc_always_valid is an input reg.
>>
>> Anyone know what I'm doing wrong?  Thanks!
>>
>> --Ryan
>>
>>
>
>
> --
> *Adam Barta*
> c: +27 72 105 8611
> e: [email protected]
> w: www.ska.ac.za
>
>
>


-- 
*Adam Barta*
c: +27 72 105 8611
e: [email protected]
w: www.ska.ac.za

Reply via email to