ZTE MF683

Bjørn Mork bjorn at mork.no
Tue Sep 18 03:20:41 PDT 2012


Marius Kotsbak <marius.kotsbak at gmail.com> writes:
> 2012/9/18 Bjørn Mork <bjorn at mork.no>
>
>> BTW, is this a big endian platform (sorry for my complete ignorance wrt
>> Atmel chips...)?
>>
>>
> I think the Atmel AVR32 is the opposite of x86, but isn't the driver code
> endian safe?

It is supposed to be, yes.  And given that it doesn't touch the contents
of the embedded QMI, I am pretty sure it mostly is too.  Would be nice
to have that confirmed.

But how about the libqmi tools?  Do they work on big endian systems?

Of course, you can always do the manual command line, tool-less and
endian safe, QMI_CTL SYNC test:

   bjorn at nemi:~$ echo -ne "\x01\x0b\x00\x00\x00\x00\x00\x01\x27\x00\x00\x00" >/dev/cdc-wdm0
 
   bjorn at nemi:~$ hexdump -C /dev/cdc-wdm0
   00000000  01 12 00 80 00 00 01 01  27 00 07 00 02 04 00 00  |........'.......|


If you get that reply, then there is a QMI device there.  If you don't
then there is not.


Bjørn


More information about the libqmi-devel mailing list