Thanks for the response
Using netcat is a good idea, it should be better than using the kcpcmd
because this command connect and disconnect to the port in every call.
I tried to use the cross compilation, but running it in the ppc threw me a
segmentation fault or a missing standard libraries like glibc if my memory
is good...
So using gzip seems to be a quick and useful option
Cheers!

El jue., 21 nov. 2019 a las 4:29, Marc (<[email protected]>) escribió:

>
> Hi there
>
> If you remain keen to read raw values from within the ppc you could use
> netcat (or your own socket) to localhost, port 7147 and issue ?read
> requests directly. Note that there are differences between read and
> wordread.
>
> You could also pipe the text output of your ash script to gzip and
> compress it - that might save you space too...
>
> The reads from /proc/????/hw/ioreg were a thing on older software
> revisions and probably not available on the roach2
>
> regards
>
> marc
>
>
> On Wed, Nov 20, 2019 at 1:48 PM Sebastian Antonio Jorquera Tapia <
> [email protected]> wrote:
>
>> Hello,
>> In the last days I start to thinking in reading the BRAMs on the fpga via
>> the PPC directly and not give the request via LAN reducing the reading
>> latency (I suppose)
>> Messing around inside the ppc, I found the command kcpcmd which enables
>> me to send katcp requests so thats nice. I made a little ash script for
>> continuously reading one register and saving it in the tmpfs mounted in
>> /var.
>>
>> The main problem I found is that the kcpcmd gives me the reading in a
>> human readable way (even when I set the -x option which gives the response
>> in hexadecimal) so when I save it in a doc use much more space than binary
>> data.. There is other way to read the brams of the fpga beside the kcpcmd?
>> Searching I found that in the netfpga, which also use a borph os, reads
>> the register from /proc/8033/hw/ioreg there is something similar to this in
>> the ppc?
>>
>> Other way to fix my problem was to make a little script to translate the
>> values form ascii(?) to binary after the reading with kcpcmd. My plan is
>> using C and cross-compile for the powerpc in gcc.. Should this work in the
>> borph environment?
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "[email protected]" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/5f030be7-3ffa-4946-a3d7-b7f2b97d64b3%40lists.berkeley.edu
>> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/5f030be7-3ffa-4946-a3d7-b7f2b97d64b3%40lists.berkeley.edu?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> https://katfs.kat.ac.za/~marc/
>
> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaS6MLm%3DQBjoj%2BGU6VhoC4WmX%2BTww6k14wvYfv1KjC%3D13A%40mail.gmail.com
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAGrhWaS6MLm%3DQBjoj%2BGU6VhoC4WmX%2BTww6k14wvYfv1KjC%3D13A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAASoV%3DOAg%3Do6_02WLAoeHVYTDMSwMuvECNKdHia_urr3NCak0g%40mail.gmail.com.

Reply via email to