avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] Re: [AVaRICE-user] Problems running latest avarice on Mac


From: Rick Mann
Subject: [avrdude-dev] Re: [AVaRICE-user] Problems running latest avarice on Mac OS X 10.4.4
Date: Sat, 4 Feb 2006 14:07:38 -0800


On Feb 4, 2006, at 11:53 AM, Joerg Wunsch wrote:

This must somehow be related to libusb on MacOS X.  Does OS X have a
syscall tracer (like ktrace under BSD)?  Maybe you can find at least
where it hangs, and locate that spot in libusb's source code.

It does, in fact, have ktrace. What a neat program!

Here's the last bit of the trace for avarice:

$ ktrace avarice --mkII -j usb -v
$ kdump -m 24 > trace.txt


  1378 avarice  CALL  write(0x1,0x2505000,0x16)
  1378 avarice  GIO   fd 1 wrote 22 bytes
       "JTAG config starting.
       "
  1378 avarice  RET   write 22/0x16
  1378 avarice  CALL  fcntl(0x3,0x3,0xb)
  1378 avarice  RET   fcntl 2
  1378 avarice  CALL  fcntl(0x3,0x4,0)
  1378 avarice  RET   fcntl 0
  1378 avarice  CALL  write(0x3,0x2602920,0xb)
  1378 avarice  GIO   fd 3 wrote 11 bytes
       "\^[\0\0\^A\0\0\0\^N\^A\M-s\M^W"
  1378 avarice  RET   write 11/0xb
  1378 avarice  CALL  fcntl(0x3,0x4,0x2)
  1378 avarice  RET   fcntl 0
  1378 avarice  CALL  select(0x4,0xbffff2f0,0,0,0xbffff2e8)
  1378 avarice  RET   select -1 errno 4 Interrupted system call
  1378 avarice  PSIG  SIGCHLD caught handler=0x5f04 mask=0x0 code=0x0
  1378 avarice  CALL  wait4(0xffffffff,0xbfffec68,0,0)
  1378 avarice  RET   wait4 1380/0x564
  1378 avarice  CALL  write(0x2,0x47180,0x10)
  1378 avarice  GIO   fd 2 wrote 16 bytes
       "USB daemon died
       "
  1378 avarice  RET   write 16/0x10
  1378 avarice  CALL  exit(0x1)


And the last bit for avrdude. Interesting to note: avrdude manages to also output "Found JTAGICE mkII, serno: 00A0000033FA" before it hangs, but I don't see that in the trace output. I waited 10 seconds, then typed control-C.

  1462 avrdude  CALL  mmap(0x205000,0x9000,0x5,0x12,0x3,0)
  1462 avrdude  RET   mmap 2117632/0x205000
  1462 avrdude  CALL  mmap(0x20e000,0x1000,0x3,0x12,0x3,0x9000)
  1462 avrdude  RET   mmap 2154496/0x20e000
  1462 avrdude  CALL  mmap(0x20f000,0x8878,0x1,0x12,0x3,0xa000)
  1462 avrdude  RET   mmap 2158592/0x20f000
  1462 avrdude  CALL  close(0x3)
  1462 avrdude  RET   close 0
  1462 avrdude  CALL  open(0x205594,0,0)
  1462 avrdude  NAMI  "/usr/lib/libstdc++.6.dylib"
  1462 avrdude  RET   open 3
  1462 avrdude  CALL  fstat(0x3,0xbfffc070)
  1462 avrdude  RET   fstat 0
  1462 avrdude  CALL  pread(0x3,0xbfffc4d0,0x1000,0)
  1462 avrdude  GIO   fd 3 read 4096 bytes
"\M-J\M-~\M-:\M->\0\0\0\^B\^A\0\0\^R\0\0\0\0\0\0\^P\0\0\^Qr \M-x"
  1462 avrdude  RET   pread 4096/0x1000
  1462 avrdude  CALL  pread(0x3,0xbfffc4d0,0x1000,0x11c000)
  1462 avrdude  GIO   fd 3 read 4096 bytes
       "\M-~\M-m\M-z\M-N\0\0\0\^R\0\0\0\0\0\0\0\^F\0\0\0\v\0\0\bX"
  1462 avrdude  RET   pread 4096/0x1000
  1462 avrdude  CALL  shared_region_map_file_np(0x3,0x4,0xbfffb540,0)
  1462 avrdude  RET   shared_region_map_file_np 0
  1462 avrdude  CALL  close(0x3)
  1462 avrdude  RET   close 0
  1462 avrdude  CALL  write(0x2,0xbfffe520,0x40)
  1462 avrdude  GIO   fd 2 wrote 64 bytes
       "avrdude: usbdev_open(): "
  1462 avrdude  RET   write 64/0x40
  1462 avrdude  PSIG  SIGINT SIG_DFL


--
Rick





--
Rick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]