[01:18:08] user890104: so did you get the toolchain etc. to work in the meantime, or do you still need help with that? [01:18:49] TheSeven: i got the toolchain to compile umsboot, but not your sample app [01:19:26] how does it fail? [01:19:32] still what you pasted a few days ago? [01:20:32] hm... which toolchain do you compile the app with? [01:20:36] yes, there isn't any progress because i don't know where to look for issues [01:20:41] the same one [01:21:26] i cam give you a shell account to the virtual machine, if you have the time to take a look [01:22:11] I think that still uses arm-elf-eabi-gcc by default [01:22:11] try a make CROSS=arm-none-eabi- [01:22:11] I was always compiling this with a cross environment variable set up like that, because I don't even have arm-elf-eabi installed [01:23:45] just try export CROSS=arm-none-eabi- before running any make commands [01:23:48] I hope that will fix it [01:24:20] it did indeed [01:24:31] now i need elf2emcoreapp [01:24:36] we should just get rid of that old thing [01:24:45] still have the build tree of the tnt toolchain/binutils? [01:24:46] actually arm-none-eabi-elf2emcoreapp [01:24:51] let me see [01:25:17] TNT/build-binutils ? [01:25:20] yes [01:25:37] yes, i have it [01:25:39] see the README file in the elf2emcoreapp dir [01:25:48] just specify that directory at the binutils build dir [01:25:57] there's an example command in there [01:26:24] ./configure target=arm-none-eabi with_binutils_build_dir=TNT/build-binutils && make && sudo make install [01:26:29] or something along the lines of that [01:26:36] er, I forgot a bunch of -- [01:26:46] * TheSeven is used to make syntax [01:30:14] http://pastie.org/pastes/8223008/text [01:31:32] known oddity [01:33:00] any ideas for a workaround or a proper way to make it compile? [01:34:08] hm, and in your case (that was different for me) it completely missed zlib [01:34:13] try doing this manually: gcc -Wall -g -O2 -o elf2emcoreapp elf2emcoreapp.o compress.o stubs.o ~/TNT/build-binutils/bfd/libbfd.a ~/TNT/build-binutils/libiberty/libiberty.a ../ucl/src/libucl.a -lz [01:34:41] it might still refuse to work, in this case you might have to swap some arguments around... the new toolchain is picky about the order they're specified in for some reason [01:38:17] it probably needs -ldl as well [01:38:25] after that just re-run make and it should be happy [01:41:26] [EMCAPP] build/umstest.elf [01:41:26] arm-none-eabi-elf2emcoreapp: build/umstest.elf: no .text section [01:41:26] make: *** [build/umstest.emcoreapp] Error 1 [01:42:15] er... what the hell? [01:42:26] reproducible? (i.e. make clean; make) [01:43:46] yes [01:43:47] http://pastie.org/pastes/8223034/text [01:43:54] do you need the .elf file? [01:44:17] it's 41500 bytes [01:48:55] it works fine for me, so yes, I might want to try your elf file [01:50:11] the size of mine is the same though, so I guess it's elf2emcoreapp that's broken here [01:51:24] hm, only thing that I can think of that might have been different here is that I've build with host libiberty [01:51:54] so maybe try this: gcc -Wall -g -O2 -o elf2emcoreapp elf2emcoreapp.o compress.o stubs.o ~/TNT/build-binutils/bfd/libbfd.a /usr/lib/libiberty.a ../ucl/src/libucl.a -lz -ldl [01:59:00] https://mega.co.nz/#!dtRRRCJA!NI7-J31hPTK_FqANVlctCEd-wckh4bhOznI5VkFe8uY [02:02:16] hm, with my elf2emcoreapp it works fine [02:03:44] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [02:03:44] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [02:06:41] I remember having that issue though... [02:07:19] and I can't remember fixing it, so it might have been some glitch... [02:07:51] anyway, here's my build of it: https://mega.co.nz/#!EEAVyLTL!EaMfc35zKwTsyTsggNKu8T2eEXE5j1lYlFQ0Wto6njc [02:11:13] make: *** [build/umstest.emcoreapp] Error 2 [02:11:28] /home/venci/freemyipod/tools/arm-none-eabi-elf2emcoreapp: 3: /home/venci/freemyipod/tools/arm-none-eabi-elf2emcoreapp: Syntax error: word unexpected (expecting ")") [02:11:45] er... it thinks that is a shell script!? [02:12:20] well ... [02:12:23] /home/venci/freemyipod/tools/arm-none-eabi-elf2emcoreapp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x6957ae511c3a25b91459ff489c17b4b5ea4433cb, not stripped [02:12:35] doesn't look like a shell script [02:13:12] ah, my VM has a 32-bit distro [02:13:20] well, that explains it [02:13:34] because my cpu doesn't support hardware virtualisation [02:13:38] hm... [02:14:20] in other words, it would be great if you can do a 32-bit build [02:14:39] hm, I'd need your 32 bit copy of libbfd and libiberty for that [02:17:40] ok, here you are: https://mega.co.nz/#!Bx4wSboL!DUIg-HpHDqnAR1hv11gY434quQd9GLBBl0DRW6Lyels [02:19:17] or you only need the libraries, not my complete builds of them? [02:23:54] *** Quits: liar (~liar@clnet-p09-185.ikbnet.co.at) (Ping timeout: 264 seconds) [02:27:48] user890104: I'm getting "undefined reference to `std_section'", did you ever run into that? [02:28:54] TheSeven: no, i haven't seen this error at all [02:29:09] only happens for me when crosscompiling 32bit [02:32:07] solved it [02:32:15] looks like your bfd headers are different than mine [02:32:30] which is kinda funny, given they should come from the very same bfd tarball? [02:34:11] user890104: https://mega.co.nz/#!1dBXQRoY!bVLvkwTYoA0kETKciXOpqAzmJyJkJkxJaZVfC7cPpiM [02:36:55] ah, finally [02:37:43] ok, emcore update time [02:41:11] did the app correctly complain about the API level? [02:41:31] (old apps should still run fine on the new emcore though) [02:42:52] i have r859 on my classic [02:44:12] how do i generate bootstrap.dfu out of umsboot.bin? i have forgotten what's next in the process [02:44:55] building an installer should automatically do that for you [02:46:21] but if you need to do it manually: in apps/installer-ipodclassic do: tools/stubembed.py build/bootstub.bin build/bootstrap.bin && ipodcrypt s5l8702-genpwnage build/bootstrap.bin build/bootstrap.dfu [02:46:25] (or something like that= [02:47:48] and i need my ipod connected to the machine that does the build [02:47:57] yes [02:48:19] and it needs an emcore version that fits the libemcore used by libipodcrypt [02:48:35] so, if you're on svn head, you need a new emcore running already [02:48:54] well, i'm on a vacation, and my build VM is on my home laptop :) [02:49:27] well, I'd say just not care about the bootstrapper then? (for now) [02:50:27] ok, i'll use the embedded umsboot to update [02:52:39] well, i still need a device in order to build the installer [02:54:46] uhm, unless i use make build/installer-ipodclassic.emcoreapp [02:56:10] .ubi * [02:59:21] yes [02:59:45] ok, updated to r896 [03:13:05] user890104: and, does the app work? :) [03:13:47] if embedded to a svn head emcore, and run via umsboot - no [03:14:07] * user890104 installs python in the meantime, and checkouts emcore.py [03:14:20] how does it fail? [03:14:47] I guess it might be starting just too early in that case, even before USB comes up at all [03:15:10] well, i only see an emcore device [03:15:29] and the app will terminate when unplugged (or not even plugged in the first place, which might be misdetected during that period) or safely ejected [03:15:38] so yes, that's likely what you're seeing [03:16:11] add a sleep(5000000); before that while loop at the very bottom ofthe app code [03:16:18] should help with this :) [03:21:06] TheSeven: like this? [03:21:08] sleep(5000000); [03:21:08] while (!ejected && usbmanager_get_connected()) sleep(200000); [03:21:44] yes [03:22:15] I suspect that usbmanager_get_connected() is still returning false when the app launches [03:22:30] ok, i'll move the sleep call then [03:25:49] i moved it to the very beginning of the app, and i still don't see any changes on the usb bus 5 seconds after launching [03:27:32] i'm trying to run it using emcore.py now [06:33:52] *** Quits: TheSeven (~quassel@rockbox/developer/TheSeven) (Disconnected by services) [06:34:02] *** Joins: [7] (~quassel@rockbox/developer/TheSeven) [07:49:09] *** Quits: Rurd2di (~Rurd2di@hotaru.1337.net.nz) (Ping timeout: 276 seconds) [07:55:20] *** Joins: Rurd2di (~Rurd2di@hotaru.1337.net.nz) [08:03:34] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [08:03:35] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [13:32:58] *** Quits: [Saint] (~saint@rockbox/user/saint) (Remote host closed the connection) [13:34:03] *** Joins: [Saint] (~saint@rockbox/user/saint) [14:03:38] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [14:03:39] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [15:15:16] *** Joins: n1s (~n1s@rockbox/developer/n1s) [15:47:47] *** Quits: [Saint] (~saint@rockbox/user/saint) (Remote host closed the connection) [15:48:58] *** Joins: [Saint] (~saint@rockbox/user/saint) [20:03:38] *** Joins: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) [20:03:38] *** Quits: clustur (~logger@c-68-53-250-91.hsd1.tn.comcast.net) (Remote host closed the connection) [21:54:14] *** Quits: [7] (~quassel@rockbox/developer/TheSeven) (Ping timeout: 240 seconds) [21:55:20] *** Joins: TheSeven (~quassel@rockbox/developer/TheSeven) [23:46:42] *** Joins: Kebianizao (~kvirc@74.2.219.87.dynamic.jazztel.es)