Sorry I made a mistake This is what it should look like
root@192:/proc/411/hw/ioreg# echo -en "\xff\xff\xff\xff" > sys_scratchpad root@192:/proc/411/hw/ioreg# cat sys_scratchpad | hd 00000000 ff ff ff ff |....| 00000004 On Tue, Aug 28, 2012 at 7:22 PM, Adam Barta <[email protected]> wrote: > Hi Tom, > > > If you are running tcpborphserver2 on the roach then you can use the > following commands to write and read from registers through the tcp > interface on port 7147. > > > ?wordwrite register-name word-offset payload > > ?write register-name register-offset payload > > ?wordread register-name word-offset length > > ?bulkread register-name [register-offset [byte-count]] > > > Is there a reason you would like to use the files? > > > This seemed to work for me > root@192:/proc/389/hw/ioreg# cat sys_scratchpad | hd > 00000000 12 34 56 78 |.4Vx| > 00000004 > > root@192:/proc/389/hw/ioreg# echo -e \FF\FF > sys_scratchpad > root@192:/proc/389/hw/ioreg# cat sys_scratchpad | hd > 00000000 46 46 46 46 |FFFF| > 00000004 > > > Hope this helps > > > Regards > > Adam > > > > On Tue, Aug 28, 2012 at 6:38 PM, Tom Kuiper <[email protected]> wrote: > >> It appears that there is something I don't understand about memory mapped >> IO. >> >> I'm trying to write directly to a firmware register. I have tried in >> Python in binary mode with various options regarding buffering. I have >> also tried the command line 'echo 1 > register'. Whatever I try, the >> length of the register 'file' changes from 4 to 0. >> >> Can someone point me towards enlightenment? >> >> Many thanks >> >> Tom >> >> -- >> I or me? >> http://www.oxforddictionaries.**com/page/145<http://www.oxforddictionaries.com/page/145> >> >> >> >> > > > -- > *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

