-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I exchanged a couple of mails with Harald, and decided to post back a
more complete report to the list because the issue is still unclear.
Was this the same before you tried erasing the flash
and installing
the SAM-BA loader? What exactly do you mean by "jumping VCC to
test"? The device is normally USB powered, therer is no need for
any additional voltage supply.
The state of the LEDs while in SAM-BA mode is undefined. However,
'faintly' might indicate a supply problem. Have you tried powering
the board just from USB? Have you tried differen computers or an
external USB hub?
If you applied external VCC, what kind of power supply were you
using?
To clarify this point, I was just talking about jumping JP1 as
instructed on SIMTrace/Firmware page. Please note that I did get a
faint red LED while doing this.
All boards sold in the sysmocom webshop ship flashed +
tested, so
it should just have enumerated on USB upon connection.
When I received the device, I did not get any output from lsusb or
dmesg when connecting it. I am working primarly on a recent T series
Thinkpad. I opted to go down the SAM-BA / firmware flashing route.
This did not help the device show up on my machine. So I went to an
Ubuntu base workstation, and surprisingly, the device showed up
without any problem.
$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 004: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootloader
$ dmesg
[16867.212071] usb 4-2: new full speed USB device using uhci_hcd and
address 4
[16867.375140] usbserial_generic 4-2:1.0: Generic device with no bulk
out, not allowed.
[16867.375152] usbserial_generic: probe of 4-2:1.0 failed with error -5
[16867.375199] usbserial_generic 4-2:1.1: generic converter detected
[16867.375294] usb 4-2: generic converter now attached to ttyUSB0
When I plugged it back to my Arch laptop, I suddenly had the same
output. But I was able to use sam7 to access the device. So I compiled
all the software on Ubuntu and tried flashing from there.
$ sudo ./sam7 --exec set_clock --exec unlock_regions --exec "flash
../openpcd/firmware/main_simtrace.samba"
[sudo] password for mathilda:
can't open "/dev/at91_0": No such file or directory
Ok, let's go down the POSIX path:
$ sudo rmmod usbserial
$ sudo modprobe usbserial vendor=0x03EB product=0x6124
$ sudo ./sam7 -l /dev/ttyUSB0 --exec set_clock --exec unlock_regions
- --exec "flash ../openpcd/firmware/main_simtrace.samba"
Page size info of not known
$ sudo ./sam7 -l /dev/ttyUSB0 --exec set_clock --exec unlock_regions
- --exec "flash ../openpcd/firmware/main_simtrace.samba"
^C
It just hangs there. I am stuck here, are there any tips on what I
should do here? Sequence of operations? Other test commands? Should I,
god forbid, try flashing it from a Windows workstation? I will end
this post with strace output for the sam7 command:
$ sudo strace ./sam7 -l /dev/ttyUSB0 --exec set_clock --exec
unlock_regions --exec "flash ../openpcd/firmware/main_simtrace.samba"
execve("./sam7", ["./sam7", "-l", "/dev/ttyUSB0",
"--exec",
"set_clock", "--exec", "unlock_regions", "--exec",
"flash
../openpcd/firmware/main_s"...], [/* 15 vars */]) = 0
brk(0) = 0x8542000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb78ee000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=66517, ...}) = 0
mmap2(NULL, 66517, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78dd000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/libncurses.so.5", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\224\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=227864, ...}) = 0
mmap2(NULL, 231632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xf69000
mmap2(0xf9f000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35) = 0xf9f000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/libreadline.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\277\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=204860, ...}) = 0
mmap2(NULL, 212492, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xab4000
mmap2(0xae3000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2e) = 0xae3000
mmap2(0xae7000, 3596, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xae7000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@n\1\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1421892, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb78dc000
mmap2(NULL, 1427880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x2b3000
mmap2(0x40a000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x157) = 0x40a000
mmap2(0x40d000, 10664, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40d000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\n\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9736, ...}) = 0
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x120000
mmap2(0x122000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x122000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb78db000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb78db6c0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x122000, 4096, PROT_READ) = 0
mprotect(0x40a000, 8192, PROT_READ) = 0
mprotect(0xae3000, 4096, PROT_READ) = 0
mprotect(0xf9f000, 8192, PROT_READ) = 0
mprotect(0x804c000, 4096, PROT_READ) = 0
mprotect(0x448000, 4096, PROT_READ) = 0
munmap(0xb78dd000, 66517) = 0
open("/dev/ttyUSB0", O_RDWR) = 3
write(3, "N#", 2) = 2
nanosleep({0, 2000000}, NULL) = 0
read(3,
Thanks,
Mat
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iF4EAREIAAYFAk8mAzkACgkQsluIOvRklpi6cwD6AwWIY1D+5BC0GRRah6dAGr0K
J0OagmcFHcQucTuU3vsBAIIoX7391WAQ4Jxn7wbo0yPVl/jx/Ob8OVLDwrAeXKne
=CN57
-----END PGP SIGNATURE-----