**** BEGIN LOGGING AT Sun Feb 10 02:59:58 2013 Feb 10 09:37:11 xvkbd's quickmodifiers are awesome for emacsing <3 Feb 10 13:47:48 for eglibc, which doesn't have the target opinon, so I shall set build=x86, host=arm Feb 10 13:48:50 becuase libc is not execabled, it doesn't have the target problem? Feb 10 15:23:58 Hi, I am back! I'll try to configure openocd v0.6.1 vith the debug board v3 Feb 10 15:24:22 txor: hey Feb 10 15:24:25 I was getting errors two days ago Feb 10 15:24:41 PaulFertser, hi! Thanks for your help Feb 10 15:24:59 txor: i think i know some openocd stuff, not related to OM directly, but feel free to ask. Feb 10 15:29:55 PaulFertser, I am new to openocd, I followed the instructions at http://wiki.openmoko.org/wiki/Neo_1973_OpenOCD#OpenOCD_and_Debug_Board but as my version is newer the options are not correct. Feb 10 15:30:34 root@om-gta02:~# systemctl Feb 10 15:30:36 Failed to get D-Bus connection: No connection to service manager. Feb 10 15:30:38 wtf Feb 10 15:31:21 PaulFertser, I started reading the documentation and I saw that there are debug board config files already.... Feb 10 15:33:01 dos1: eh Feb 10 15:33:02 PaulFertser, In my config theres a line with an "init" that fails Feb 10 15:33:46 txor: pastebin your whole current config file, and then start with including only interface and cpu sourcing. Feb 10 15:34:00 PaulFertser, ok! Feb 10 15:35:46 PaulFertser, For now I have this http://pastebin.com/ZAUNNzsJ. Feb 10 15:36:31 PaulFertser, as cpu you mean a "target"? Feb 10 15:37:11 txor: for starters, leave only the lines with "source [find..." Feb 10 15:37:27 txor: then try running OpenOCD and pastebin the result Feb 10 15:39:55 PaulFertser, I'll start over, give me a minute! Feb 10 15:40:35 PaulFertser: just pushed your fsogsmd patches Feb 10 15:41:00 dos1: yay, thanks :) Feb 10 15:41:29 dos1: framework signal amendment too? Feb 10 15:41:46 not yet, but should be in few minutes Feb 10 15:41:59 Great :) Feb 10 15:42:48 PaulFertser, This configuration http://pastebin.com/dYyCSKQe outputs that http://pastebin.com/3qhVGJd3 Feb 10 15:45:44 txor: add "adapter_khz 1000" after the first source on a separate line Feb 10 15:47:47 JaMa: ping Feb 10 15:48:18 PaulFertser, config: http://pastebin.com/9MAkb8ga result: http://pastebin.com/GcVp1vXZ Feb 10 15:51:32 PaulFertser, I need to connect the openmoko via JTAG before starting openocd? Feb 10 15:52:00 txor: try moving adapter_khz after the secound source Feb 10 15:52:12 txor: yes, you need to connect it before starting OpenOCD Feb 10 15:52:35 PaulFertser, ops xD Feb 10 15:56:59 PaulFertser: done Feb 10 15:57:47 dos1: thank you very much. I hope there're still some SHR and FSO users left who would benefit from it. Feb 10 15:59:31 PaulFertser, Now I have this http://pastebin.com/N6MDmbp1 Feb 10 16:01:53 txor: is freerunner connected and powered on? Feb 10 16:02:33 txor: eh Feb 10 16:02:53 txor: why find cpu/arm/arm920.tcl ? You should have find target/samsung_s3c2440.cfg there Feb 10 16:08:16 PaulFertser, ok I'll do Feb 10 16:13:51 PaulFertser, I checked the JTAG connection, powered on all in the right order an I am getting this: http://pastebin.com/eZTka8gw Does it mean that is working? Feb 10 16:15:04 txor: oh yes it does Feb 10 16:15:31 txor: once you test it more, please tell me and i'll post a patch to OpenOCD, also if i can use your real name as reporter. Feb 10 16:15:33 PaulFertser, Hahaha! I was so close two days ago! Thanks very much Paul!! Feb 10 16:16:11 txor: if the openmoko wiki is not read-only already, please add this working config there too. Feb 10 16:16:40 PaulFertser, Ok Paul, I'll try. Wahich patch you will make? Feb 10 16:17:13 to add the "adapter_khz 1000" line to one of the sources? Feb 10 16:21:37 txor: no, to add the openmoko debug board to the list of the adapters tested with the new ftdi driver. Feb 10 16:22:35 PaulFertser, Ok, there are a checklists os some guidlines to make such tests? Feb 10 16:24:00 txor: I hope you're going to try it for actual debugging with gdb, that would be enough of a test. Or what were you going to do with that JTAG access? Feb 10 16:28:19 PaulFertser, First of all I want to be sure that the stuff works, connecting GDB and executing basic commands. Then I want to test that uploading an eCos (http://en.wikipedia.org/wiki/ECos) image. That I need is to use GDB on FreeRunner running eCos. Feb 10 16:28:55 txor: nice plan! Feb 10 16:29:45 PaulFertser, :D Feb 10 16:30:25 dos1: short pong Feb 10 16:30:34 you have 2 mins Feb 10 16:31:04 JaMa: a) patch for frameworkd in meta-fso should be dropped to work with current git Feb 10 16:31:14 JaMa: b) Feb 10 16:31:16 [16:30] root@om-gta02:~# systemctl Feb 10 16:31:17 [16:30] Failed to get D-Bus connection: No connection to service manager. Feb 10 16:31:21 have you ever seen something like that? Feb 10 16:31:32 txor: please paste me your current config that works. I'll edit the wiki as I apparently has some kind of wiki admin rights. Feb 10 16:32:06 dos1: ok, please send patch for it Feb 10 16:32:06 everything works on the device, except systemctl Feb 10 16:33:30 and een that whwn systemd dbus wasnt functioning properly. e.g. some mounts were tmpfs where should not and vice versa Feb 10 16:33:58 sorry i'm on touchpad and wifi here is not so fast Feb 10 16:34:33 PaulFertser, I am no sure that is working yet, now I need to install the cross debugger. My current config is: http://pastebin.com/A3une2ap Feb 10 16:36:14 txor: fyi reset_config is optional, trst can be automatically emulated with other JTAG signals, and srst is not used in OpenOCD for that target afair. Feb 10 16:37:13 txor: and gdb port and telnet port should better be leaved in default state (to lower the noise level of the config file). Feb 10 16:38:06 txor: the init->run sequence is needed most probably for the device to run bootloader for some time to initialise SDRAM controller :) Feb 10 16:38:41 PaulFertser, Let's clean it! Which ones are the default values for telnet and gdb? Feb 10 16:39:00 txor: all of them :) Feb 10 16:43:39 txor: thank you for testing, i've modified the wiki Feb 10 16:44:03 PaulFertser, new cleaner version http://pastebin.com/A3une2ap Feb 10 16:44:15 PaulFertser, Thanks you for helping me! Feb 10 16:44:39 txor: yep, same as i've added to the wiki :) Feb 10 16:44:50 PaulFertser, Can you give me the link to the wiki you modified? Feb 10 16:44:53 PaulFertser, :D Feb 10 16:45:05 txor: same link you gave me 15 minutes earlier :) Feb 10 16:47:13 PaulFertser, Nice! Feb 10 16:47:35 txor: why are you interested in eCos, are you a student or are you doing special embedded project? Feb 10 16:48:05 txor: you can probably get STM32F4Discovery board if you're into embedded stuff. Feb 10 16:49:06 PaulFertser, I am in a project trying to develop a port of a WiFi driver to eCos Feb 10 16:49:23 PaulFertser, Waht is this board? Feb 10 16:49:42 txor: oh my, i hope you're not going to touch ar6000, are you? Feb 10 16:50:00 Yes I do xD Feb 10 16:50:07 txor: just a very cheap and powerful Cortex-M3 board with USB host. Feb 10 16:50:52 txor: ar6000 is a device with shitty firmware, and ar6000 driver that's available for your reference is a really awful mess. Feb 10 16:51:05 PaulFertser, But ar6000 with AR6001 is full open source Feb 10 16:51:26 txor: yes, but the firmware is closed and buggy, and the chip is obsolete. Feb 10 16:51:40 PaulFertser, Do you suggest me onather plataform or device? I really dont care what to port while it implements 802.11 Feb 10 16:52:17 txor: hm, meaning you're looking for a hardmac device, yes? The cheapest USB dongles available are all softmac though (good for the users, probably bad for you). Feb 10 16:52:18 PaulFertser, I know, but AR6001 does not need firmware, do it? Feb 10 16:52:43 txor: it has firmware all right. You're just deprived of the right to upgrade it. Feb 10 16:53:45 PaulFertser, the driver (AR6000) loads binary firmware? Feb 10 16:54:14 txor: no, the firmware is already pre-loaded in modules's EEPROM. Feb 10 16:54:56 PaulFertser, thats the hardmac concept? Feb 10 16:55:37 txor: no, all the devices need firmware. The difference is in how high-level the API between that firmware and host is. Feb 10 16:55:57 txor: hardmac devices are "almost" ethernet-like. Softmac require you to implement 802.11 yourself. Feb 10 17:13:21 PaulFertser, Yeah, I am connected via GDB and issued the continue command, FreeRunner started to boot. :D Feb 10 17:13:40 PaulFertser, The config is now tested! Do it? Feb 10 17:13:46 txor: you can press C-c and it'll stop, then "c" and it'll start again. Feb 10 17:14:26 PaulFertser, Yes! Feb 10 17:14:39 PaulFertser, Now with eCos... Feb 10 17:16:10 PaulFertser, Did you know if I can load an elf binaty via openocd? For now I used the dfu-util to load it. Feb 10 17:16:29 txor: you'll want to make that delay much lower to avoid booting Linux which would put the CPU in "protected" mode. For testing i suggest you just copy the resulting image to a particular RAM and then set $pc to it. Feb 10 17:16:53 txor: you can load elf with gdb Feb 10 17:17:57 txor: the command is "load" :) Feb 10 17:18:13 txor: you do not even need to set $pc manually apparently. Feb 10 17:19:42 txor: (delay) well, you got the idea, what i meant to say is that i suggest you arrange something to avoid having Linux, the kernel booted. Feb 10 17:55:30 PaulFertser, Thanks Paul for today i enought, I loaded the binary and runned it but I still need more testing to be sure thet I can debug eCos... Feb 10 17:56:50 PaulFertser, If I can do something more to help this community tell me please! Feb 10 17:56:59 Bye bye :) Feb 10 18:02:06 txor: bye :) Feb 10 19:15:56 http://paulfertser.info/files/fso-el-screenshots/xmonad-xvkbd-dzen.png Feb 10 21:08:58 "Return" "Past" (SCNR) **** ENDING LOGGING AT Mon Feb 11 02:59:58 2013