Getting started - unable to connect to the device

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/simtrace@lists.osmocom.org/.

Mat mat at spoked.ca
Mon Jan 30 18:37:16 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

> try to enter the interactive mode and then issue the commands and
> see how far you get.

Good idea. Interestingly enough, the process hangs when launching the
sam7 utility. I don't even get to the interactive command prompt.

There is something I don't fully understand in the documentation. It
says on ubuntu the device is mapped on /dev/ttyACMx using the cdc_cam.
If I rmmod cdc_cam, the sam7 utility cannot find /dev/at91_0. To make
it work I have to symlink /dev/ttyACM0 to /dev/at91_0... How does the
device get mapped to /dev/at91_0?

Trying to address with libusb this way, the strace ends with:

open("/dev/at91_0", O_RDWR)             = 3
write(3, "N#", 2)                       = 2
nanosleep({0, 2000000}, NULL)           = 0
read(3, "\n", 2)                        = 1
nanosleep({0, 2000000}, NULL)           = 0
write(3, "wFFFFF240,4#", 12)            = 12
nanosleep({0, 2000000}, NULL)           = 0
read(3, "\n", 4)                        = 1
nanosleep({0, 2000000}, NULL)           = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb77bb000
write(1, "Page size info of  not known\n", 29Page size info of  not known
) = 29
exit_group(1)

Trying to go down the POSIX path:

open("/dev/ttyUSB0", O_RDWR)            = 3
write(3, "N#", 2)                       = 2
nanosleep({0, 2000000}, NULL)           = 0
read(3,
^C

I also tried removing libusb before recompiling sam7, but this gives
me the same output for POSIX.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAk8m41wACgkQsluIOvRklpiDQQEAnUan2RW7r1MzplXfE/wk1GXy
6++s2iDK7w1zQuTkB7gA/2FVqQQLp3RvHlv9d80Omxw7f+ZXRI0QEnXvMFqoSgI1
=tarC
-----END PGP SIGNATURE-----




More information about the simtrace mailing list