[00:00:39] What you need is someone who wants the code to work to debug it :) [00:06:14] ok got to go. cya [00:06:16] *** Quits: nieuwbie (~user@ip503d90a9.speed.planet.nl) (Quit: ERC (IRC client for Emacs 24.5.1)) [03:08:50] *** Quits: TheSeven (~quassel@rockbox/developer/TheSeven) (Ping timeout: 268 seconds) [03:09:47] *** Joins: TheSeven (~quassel@rockbox/developer/TheSeven) [04:29:32] *** Joins: [Saint_] (~hayden@rockbox/staff/saint) [04:31:03] *** Quits: [Saint] (~hayden@rockbox/staff/saint) (Read error: Connection reset by peer) [05:08:28] *** Quits: prof_wolfff (~prof_wolf@82.159.0.123.dyn.user.ono.com) (Ping timeout: 268 seconds) [05:20:29] *** Joins: prof_wolfff (~prof_wolf@82.159.0.123.dyn.user.ono.com) [05:45:52] *** [Saint_] is now known as [Saint] [13:57:34] *** Joins: nieuwbie (~user@ip503d90a9.speed.planet.nl) [13:57:39] Hi guys. [14:04:54] I've scrolled back to r859 to see if the problem occurs and I've got something like this [14:04:56] http://pastebin.com/xqWCprG6 [14:05:57] and I get that till r891 - and then emcore.py stops recognising my ipod [14:15:40] 859 is latest release, right? [14:15:48] so it looks like something was broken after that [14:16:02] which confirms my suspicion of an ipod side lockup problem [14:16:54] so if I understand correct, my ipod is broken? [14:18:29] no, it looks like some emcore kernel code was broken in r892 [14:18:36] if that's the first one that fails [14:19:06] you see I thought so too, but then I tried with python3.2 [14:20:50] hmm, you're using libemcore.py from which revision? [14:21:06] I can't seem to find the line that crashed in your stack trace in the most recent one [14:21:28] ok, one step at the time [14:22:46] you aren't familiar with gentoo are you? [14:23:11] nope, mostly using debian-based systems [14:23:26] but that shouldn't really make a difference [14:23:41] which libemcore.py version are you using? [14:24:20] You see they use some kind of wrapper for python called python-exec [14:24:45] python version shouldn't matter much here as long as it's any 3.x [14:25:02] you also seem to have pyusb 1.x up and running, so from the python side of things everything seems fine [14:25:07] now I use full path (python2.7) and no error occurs [14:25:34] but it still doesnt find my ipod [14:25:44] so which libemcore.py version are you using? [14:25:57] it would really help if I had at least a rough idea which code you're even running [14:26:39] my emcore firmware is r859 [14:26:57] I tried the newest r972 just now [14:28:28] now I scrolled back to r859. and the error in pastebin occurs [14:29:09] I removed all the code and svn'ed it again so it's official code without modification what so ever [14:29:20] and which *libemcore* verison are you using *on your pc* to access those? [14:29:41] the usb debugging protocol changed fundamentally in r891 [14:30:07] how do I check it? [14:30:18] well where did you get the file from? [14:30:38] from r852? [14:30:51] svn.freemyipod.org? [14:31:00] That's what you mean? [14:31:46] emcore/trunk/tools? [14:33:54] yes [14:34:05] you need to use a libemcore.py that (roughly) matches your emcore version [14:34:19] libemcore before r891 can't talk to emcore r891 or later [14:34:24] not sure if it works the other way round [14:34:50] I've checked r890 - it doesn't work, checked also r859 [14:35:03] did you change both emcore and libemcore versions at the same time? [14:35:24] I use svn update -r .. [14:35:44] and also updated emcore on the ipod at the same time? [14:35:48] you mean emcore firmware? [14:35:50] yes [14:36:14] That was long time ago but I think I updated 859 because I had a problem with connecting to ipod back then [14:36:32] so which emcore version are you running on the ipod? [14:36:33] sorry for miscommunication [14:36:42] you need to use a matching libemcore version [14:36:43] as I said r859 [14:36:55] ok, so libemcore up to r890 should probably work with that [14:37:04] which kinda matches what you reported [14:37:04] it doesn't [14:37:19] well at least it behaves different to newer versions [14:37:28] "work" as in detects the ipod at all [14:37:47] Doesn it? [14:38:27] what if I try to upload r855 on my ipod? [14:38:48] that shouldn't make a difference, they're very similar [14:38:55] I think I remember r836 - cause of reformat the hdd [14:38:56] if anything I'd try to bring both to r972 [14:39:37] How do I do that? Cause autobuild fails, and when I tried to compile emcore on my box, I've got a compiler crash [14:40:06] that might be tricky then [14:40:12] I haven't built this myself for years [14:41:13] anyway, you posted that python backtrace [14:41:20] it is supposed to be calling this code: https://github.com/walac/pyusb/blob/master/usb/core.py#L918 [14:41:38] somehow your pyusb library seems to be expecting different arguments [14:42:20] so maybe have a look what this line looks like in your pyusb lib [14:43:16] let me check [14:44:10] I'm really into arms at the moment - so I would love to learn something about my ipod [14:45:00] I know emcore is hacky but still I think it's simpler to understand than sunxi [14:45:59] look first I will rebuild pyusb [14:46:12] then I will pastebin you the file. [14:48:36] pyusb 1.0 is all-python, it shouldn't really compile anything, just copy files [14:49:21] true, but it depends on python-exec which is written in c [14:49:41] and setup tools according to gentoo grapth [14:50:14] *setuptools, graph [14:51:19] just want to make sure it's not gentoo problem [14:56:13] https://bpaste.net/show/f1b4845702d0 [14:56:13] [16:55:25] *** Quits: Jaladhjin (uid133369@gateway/web/irccloud.com/x-zwujxpufftqkvvzd) (Quit: Connection closed for inactivity) [16:57:11] no release is working [16:57:23] Need to check it out on windows.. [17:04:48] I've installed r968 - emcore finelly works [17:17:12] nieuwbie: what are you trying to do with emcore.py? [17:19:34] here's a build of r970: http://files.freemyipod.org/~build/ [17:19:57] Just trying to program a bit. [17:20:15] See if I can do something useful with it. [17:20:30] you can use this version, and then use emcore/libemcore from trunk [17:20:40] emcore.py run yourapp.emcoreapp [17:20:59] this way you can run an app, for example the hello world one [17:21:12] That was my goal [17:21:34] there's a bunch of pre-built apps in /apps of the url i posted [17:21:50] please don't start an app, if you don't know what it does [17:22:29] some of them may be dangerous for your data or device [17:22:59] you can find the source code of them in our svn [17:24:14] I don't want preloaded ones, I'm into internals [17:24:26] if you want to build your own app, you can find this binary useful: http://files.freemyipod.org/misc/arm-elf-eabi-elf2emcoreapp [17:24:28] and I want to take it slow, but than you for the worning [17:24:53] user890104: Look, I have the toolchain, bit old from years back. [17:25:07] the thing is, it's 4.4.2 I presume [17:25:22] Don't feel like to update it just now [17:25:30] yeah, i updated it on our server and some things broke [17:25:58] r971 and r972 fixed those [17:26:27] user890104: the thing is, that I tried to build r972 emcore but it crashed [17:26:45] you mean it crashes on the ipod as soon as it boots? [17:26:55] what's your device? [17:26:56] no, compilation crashed [17:27:02] ah, ok [17:27:07] ipod classic 3g [17:27:11] 80GiB [17:27:18] do you have the compile logs somewhere [17:28:21] Sure. [17:29:21] will give you gcc -v as well [17:31:46] https://bpaste.net/show/2ba8637f4da5 [17:31:46] [17:43:21] *** Quits: ChanServ (ChanServ@services.) (*.net *.split) [17:47:21] user890104: Can I ask? How far is emcore with otg? [17:55:44] *** Joins: ChanServ (ChanServ@services.) [17:55:44] *** weber.freenode.net sets mode: +o ChanServ [18:08:53] nieuwbie: i don't think it's implemented at all. there's a custom usb driver hooks, for implementing an interface (other than the emcore debugger), which is used by emcore's diskmode app (which is still experimental and causes data corruption on writing) [18:09:21] hmm, Ok. thank you. [18:09:37] OTG is supported by the controller, but i'm not aware of anyone who have written any code to support this [18:10:22] I'm not very good c programmer at all nor os programmer, but would love to play around it [18:11:27] Makefiles are actually dirty hacks on hacks, am I write? [18:11:28] you'll need to implement an usb host stack in order to make use of the otg driver :) [18:11:47] well, the makefiles try to resolve all dependencies [18:11:57] that's why they look like this [18:12:11] Yes I see, but it's svn dependant, not os dependant [18:12:48] need some coffee, then we can chat more if you have time to spare [19:29:57] *** Quits: krnlyng (~liar@178.114.2.224.wireless.dyn.drei.com) (Ping timeout: 268 seconds) [19:42:14] nieuwbie, user890104: the linux driver for the same IP core supports OTG though, so if anyone really wants to implement it, that might serve as a guide [19:43:39] *** Joins: krnlyng (~liar@178.112.222.59.wireless.dyn.drei.com) [19:50:06] TheSeven: I'm afraid that I don't have programming proficiency to implement anything, although I have an interest in the platform. [19:50:24] what would you want to connect to it using otg? [19:50:36] PC keyboard [19:51:37] Actually these days possibilities are endless. [19:52:11] Not an expert but I think you can even connect usb hub into [19:52:32] in theory yes - I was just wondering what your use case would be [19:53:21] While ago I bought female/male usb coupler, but I also have homemade dock-usb female cable [19:54:02] and as I said before, for me emcore is a good start, cause it's fairly small compare to real kernel [19:56:25] well, implementing USB host support on emcore would be a major undertaking ;) [19:58:05] Of course, I just want to dive in cause I want to use ipod in my electronics projects [20:00:42] heh, I'm still not completely getting why you would use the ipod as a platform for that ;) [20:01:03] Money. :D [20:01:32] I like to use the stuff I have at home, not to buy more and more junk [20:01:42] I usually just use little microcontroller boards for various projects [20:02:05] I have chinese clone of arduino at home [20:02:47] but I would ratter like rpi, but I don't have it, but I have ipod that is mostly getting dust [20:03:18] I would like to use it as a small pda, and learn something [20:06:32] Don't bother to understand my motives, sometimes I don't even get them. :D [20:11:05] heh, sometimes I can just recommend a better way to achieve the same goal [20:11:47] True, but where is the fun in that? :D [20:12:40] and you have millions of arduino projects and millions of rpi as well, no ipod hacks at all [20:16:04] I just tend to do the hardware from scratch so that I know what I have - and don't have to mess with a reverse engineering + no documentation environment like on the ipod [23:48:46] nieuwbie: you might want to try writing a rockbox application, it is a lot easier [23:49:02] you can even write it in lua, and skip the compiling part at all [23:49:18] you can even ... write the source code on the ipod itself, and run it [23:49:39] (this is how i wrote my "hello world" rockbox plugin) [23:56:58] No thank you, I'm happy so far with emcore api [23:57:36] even so, lua programming is only partly avaiable