--- Log opened Sun Feb 20 00:01:37 2011 00:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has quit [Remote host closed the connection] 00:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has joined #freemyipod 00:05 < user890104> Receiving data from cin... OK! 00:05 < user890104> 02 00 00 00 00 00 00 08 00 00 f8 09 00 00 04 00 Transfer OK! 00:05 < user890104> \o/ 00:14 * user890104 realized that he's actually sending some junk to the ipod instead of the data he needs to send 00:17 < user890104> TheSeven: i am a bit confused about the endianess, i think i fail there 00:18 < user890104> here's what i got so far 00:18 < user890104> Sending: 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 OK! 00:18 < user890104> Receiving: 02 00 00 00 00 00 00 08 00 00 f8 09 00 00 04 00 OK! 00:18 < fmibot> New commit by theseven (r631): emCORE: Kill a leftover "emBIOS" string that Farthen's batch operations didn't catch 00:18 < fmibot> r631 build result: emcore: All green! 00:19 < fmibot> r631 build result: embios: All green! 00:19 < user890104> i am trying to request device information -> version information 00:19 < TheSeven> you got the endianness of the command packet wrong 00:19 < user890104> how should it be? 00:21 < TheSeven> 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00:24 < user890104> i get the same response 00:26 < user890104> http://pastie.org/1584045 - source, http://pastie.org/1584046 - result 00:31 < user890104> restarting the ipod fixed it 00:46 < user890104> Connected to IN2G running emCORE v0.1.4 r623 00:46 < user890104> the first meaningful message outputed so far 00:48 * S_a_i_n_t hasn't been following, and wonders what user890104 is trying to achieve/accomplish 00:49 < user890104> S_a_i_n_t: i am writing a client-side library on the top of libusb (in C), that communicates with emCORE devices 00:50 < user890104> my final goal is to make a FUSE wrapper, which will use emCORE's filesystem API 00:51 < user890104> TheSeven is doing the same, but for Windows :) 00:51 < user890104> so if anyone manages to get his ipod in a weird condition, he would be able to access the flash/hdd without using any python scripts 00:51 < TheSeven> ...and using a way more sane programming language (c#) 00:52 < S_a_i_n_t> TheSeven: what language are you using for this? 00:52 < TheSeven> as i just said, c# :) 00:52 < S_a_i_n_t> you did? 00:53 < S_a_i_n_t> [13:52] ...and using a way more sane programming language 00:53 < S_a_i_n_t> (I'll take your word for it ;)) 00:54 < TheSeven> what the heck? 00:54 < TheSeven> did your irc client parse that as an emoticon? 00:55 * S_a_i_n_t shrugs. 00:55 < S_a_i_n_t> I see the "I just said...", but no prior instance, probably my clinet freaked out. sorry. 00:55 < S_a_i_n_t> *client too. 01:19 -!- liar [~liar@clnet-p09-185.ikbnet.co.at] has quit [Ping timeout: 255 seconds] 01:45 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Read error: Connection reset by peer] 01:57 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 02:17 < user890104> is there any documentation available (or just quick notes) for emCORE's FS functions? 02:17 < TheSeven> mainly the source code of emcore and libemcore 02:17 < TheSeven> i haven't got around to documenting them in the wiki yet 02:18 < TheSeven> also, i currently have a local change that adds a function to determine the total/free space on the partition, as my win32 fs driver needs that 02:19 < Fiber-> hey :) 02:21 * user890104 doesn't understand this part: struct.pack(" (that's from file_open) 02:23 < user890104> 4 ints, then what? 02:25 < user890104> another integer with the filename length, then the filename itself? 02:27 < user890104> i think i got it .. s stands for string, and B for the terminating NULL byte 02:41 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Read error: Connection reset by peer] 02:42 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 02:43 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Disconnected by services] 02:43 -!- [7] [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 03:54 -!- [7] [~TheSeven@rockbox/developer/TheSeven] has quit [Ping timeout: 240 seconds] 04:00 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 04:07 < geek7> TheSeven: ME! ;p 04:07 < geek7> though i'm heading out in a few seconds, so i can't test anything just about now 05:07 -!- Keripo [~Keripo@eng004.wireless-resnet.upenn.edu] has joined #freemyipod 06:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has quit [Remote host closed the connection] 06:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has joined #freemyipod 06:04 -!- Keripo [~Keripo@eng004.wireless-resnet.upenn.edu] has quit [Ping timeout: 268 seconds] 06:07 -!- geek7 [~geek@cm89.gamma26.maxonline.com.sg] has quit [Read error: Connection reset by peer] 06:08 -!- geek7 [~geek@2001:c08:3700:ffff::25:b490] has joined #freemyipod 06:29 -!- faileas [~geek@cm89.gamma26.maxonline.com.sg] has joined #freemyipod 06:32 -!- geek7 [~geek@2001:c08:3700:ffff::25:b490] has quit [Ping timeout: 246 seconds] 08:07 -!- n1s [~n1s@nl118-175-108.student.uu.se] has joined #freemyipod 08:07 -!- n1s [~n1s@nl118-175-108.student.uu.se] has quit [Changing host] 08:07 -!- n1s [~n1s@rockbox/developer/n1s] has joined #freemyipod 08:50 -!- Dreamxtreme [~Dre@92.28.11.11] has quit [Quit: Nice Scotty, now beam my clothes up too!] 08:53 -!- Dreamxtreme [~Dre@92.28.11.11] has joined #freemyipod 09:00 -!- S_a_i_n_t [S_a_i_n_t@203.184.3.43] has quit [Quit: I'm only going to Heaven if it feels like Hell, I'm only going to Heaven if it tastes like caramel...] 09:04 -!- [Saint] [S_a_i_n_t@203.184.1.61] has joined #freemyipod 09:17 -!- [Saint] [S_a_i_n_t@203.184.1.61] has quit [Ping timeout: 276 seconds] 09:20 -!- [Saint] [S_a_i_n_t@203.184.1.61] has joined #freemyipod 10:54 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has joined #freemyipod 12:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has quit [Remote host closed the connection] 12:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has joined #freemyipod 12:02 -!- liar [~liar@clnet-p09-185.ikbnet.co.at] has joined #freemyipod 13:24 < user890104> could someone help me out with this please: http://pastie.org/1585613 13:24 < user890104> i need to fill the first 16 bytes with constant data, then copy the path right next to it, then add a null byte 13:32 < benedikt93> user890104, I don't have much clue of C, but don't you need to dereference "out" in line 8? 13:33 < user890104> benedikt93: if i add a slash and a null byte to the string that i'm filling "out" with, then comment the following 2 lines, it works 13:34 < user890104> but i need to construct the string for other paths, not oly the root directory 13:34 < user890104> so this kind of assignment works, the following 2 lines are wrong 13:36 < benedikt93> yeah, but out = whatever changes the pointer itself, not the data it points to 13:37 < benedikt93> so, you'd result in an invalid pointer afterwards and maybe also overwrite some other heap/stack data 13:38 < user890104> damn ... i should have learned C more at school :) 13:38 < user890104> so i'm not writing where i should at all 13:41 < benedikt93> also, I'm not sure what the compiler makes out of 'out = "\x2a\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";', I could imagine some strcpy or so, which would quit after hitting the first "\0" 13:47 < benedikt93> so probably char[16] temp = {'\x2a', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'}; memcpy(out, temp, 16 * sizeof(char)); would do the trick in case it does not work otherwise 13:58 < user890104> benedikt93 thanks for the idea, here's how i did it: 13:58 < user890104> memset(out, 42, 1); 13:58 < user890104> memset(out + 1, 0, data_length - 1); 13:58 < user890104> memcpy(out + 16, dir_name, dirname_length); 14:00 < teuf> user890104: out[0] = 42; would be more natural for the first line 14:04 < user890104> teuf: thanks 14:05 < user890104> TheSeven: the connection times out after sending this packet: 14:05 < user890104> 2a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14:05 < user890104> 2f 2e 62 6f 6f 74 00 14:05 < user890104> i am trying to get a dir handle for "/.boot" 14:11 < TheSeven> [14:41] also, I'm not sure what the compiler makes out of 'out = "\x2a\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";' << it writes a pointer to that (constant) string in the .data section into the "out" variable 14:13 < TheSeven> user890104: how big are your timeouts? 14:13 < TheSeven> opening a directory may take like second on a nano2g and 5 seconds on a classic if the drive is spun down 14:27 < user890104> the timeout is 5 seconds, i am testing on nano2g and i suspect that i'm not the same data that gets printed 14:27 < user890104> or maybe i am setting the wrong sedning length 14:27 < user890104> so a string without terminating null byte arrives, and emcore doesn't handle it correctly 14:28 < TheSeven> might be possible 14:28 < TheSeven> if you want to be safe, just send the full 512 bytes 14:29 < TheSeven> the ipod will just discard excessive garbage at the end of the packet 14:31 < user890104> i've made a function that takes 4 arguments: data out, data in, length out, length in 14:32 < user890104> then sends the data and waits for the required bytes of response 14:37 -!- n1s [~n1s@rockbox/developer/n1s] has quit [Quit: Ex-Chat] 15:18 -!- paulo_ [~paulo@124.106.100.52] has joined #freemyipod 15:18 < paulo_> crashed again 15:18 < paulo_> via pedometer app 15:19 < paulo_> still not an overflow though... 15:24 -!- paulo_ [~paulo@124.106.100.52] has quit [Read error: Connection reset by peer] 15:34 -!- paulo__ [~paulo@124.106.100.52] has joined #freemyipod 15:46 -!- paulo__ [~paulo@124.106.100.52] has quit [Ping timeout: 250 seconds] 16:01 -!- paulo_ [~paulo@124.106.100.52] has joined #freemyipod 16:38 -!- perror [~fleury@aldebaran.labri.fr] has joined #freemyipod 16:53 -!- paulo_ [~paulo@124.106.100.52] has quit [Ping timeout: 272 seconds] 17:16 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has quit [Quit: Bye ;)] 17:17 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has quit [Read error: Connection reset by peer] 17:18 -!- 13WAA6O1L [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 17:18 -!- 92AACHRBR [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 17:18 -!- 13WAA6O1L [~TheSeven@rockbox/developer/TheSeven] has quit [Remote host closed the connection] 17:18 -!- 92AACHRBR [~TheSeven@rockbox/developer/TheSeven] has quit [Remote host closed the connection] 17:18 -!- TheSeven [~TheSeven@rockbox/developer/TheSeven] has joined #freemyipod 17:35 < user890104> in which case should an application use dma for reading/writing memory? 18:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has quit [Remote host closed the connection] 18:01 -!- clustur [~logger@c-98-249-104-118.hsd1.tn.comcast.net] has joined #freemyipod 18:05 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has joined #freemyipod 18:08 < benedikt93> user890104, for larger chunks of data. see the libemcore implementation ("write") which splits data for write operations 18:23 < TheSeven> user890104: generally for everything that doesn't fit into a single command pipe packet, and is aligned to a cacheline boundary 18:28 < fmibot> New commit by theseven (r632): Fix the library linker scripts as well, they apparently got lost 18:28 < fmibot> r632 build result: emcore: All green! 18:28 < fmibot> r632 build result: embios: All green! 18:29 < fmibot> New commit by theseven (r633): Installer for iPod Classic: Zero out sector buffers correctly 18:30 < fmibot> r633 build result: emcore: All green! 18:30 < fmibot> r633 build result: embios: All green! 18:31 < fmibot> New commit by theseven (r634): emCORE: Add an API to request the number of total and free kilobytes on a volume 18:31 < fmibot> r634 build result: emcore: All green! 18:31 < fmibot> r634 build result: embios: All green! 18:45 -!- powell14ski [~powell14s@c-67-177-228-132.hsd1.co.comcast.net] has joined #freemyipod 18:49 < user890104> resources.S:215: Error: file not found: flashfiles/rockbox.ipod.ucl 18:49 < user890104> isn't it supposed to skip this if it's not present? 18:52 < TheSeven> no, it can't detect that 18:52 < TheSeven> that's the only file you'll need to provide manually 18:53 < user890104> so i need to put a rockbox build into the folder, right? 18:54 < fmibot> New commit by theseven (r635): emCORE: Prevent directories from being opened like files 18:54 < fmibot> r635 build result: emcore: All green! 18:54 < fmibot> r635 build result: embios: All green! 18:55 < fmibot> New commit by theseven (r636): emCORE: A bunch of cache coherency fixes 18:55 < fmibot> r636 build result: emcore: All green! 18:55 < fmibot> r636 build result: embios: All green! 18:56 < TheSeven> user890104: yes, compressed using "ucl2e10singleblk /path/to/rockbox/builddir/rockbox.ipod rockbox.ipod.ucl" 18:57 < user890104> ok, thanks 18:59 < user890104> TheSeven: do you have any plans of changing the menu+play combination that confirms the intro screen at emcore's installer 19:00 < user890104> as you said, it's a bit tricky to get the buttons pressed 19:00 < TheSeven> user890104: I hope that it's a bit better now after yesterday's commits 19:01 < user890104> i'll make another build of the most recent code, and test it 19:02 < TheSeven> previously you had to press the buttons at exactly the same time, which made it nearly impossible 19:03 < user890104> how is your filesystem wrapper work going? i am currently implementing the readmem command in order to be able to access the directory structures 19:03 < TheSeven> now you just need to reach a state where exactly those two buttons are pressed, no matter if some other button gets briefly pressed as well 20:11 -!- perror [~fleury@aldebaran.labri.fr] has quit [Quit: Bye all !] 20:19 -!- bcoco85 [~co@77.225.204.126] has joined #freemyipod 20:24 -!- GeekShad0w [~Antoine@78.120.203.125] has joined #freemyipod 20:55 -!- bcoco85 [~co@77.225.204.126] has quit [Quit: Leaving.] 21:03 -!- benedikt93 [~benedikt9@unaffiliated/benedikt93] has quit [Quit: Bye ;)] 21:18 < fmibot> New commit by theseven (r637): emCORE: Fix duplicate definition of ata_num_drives for the iPod Classic 21:18 < fmibot> r637 build result: emcore: All green! 21:19 < fmibot> r637 build result: embios: All green! 21:29 -!- user890104_ [~Venci@6bez10.info] has joined #freemyipod 21:30 -!- user890104 [Venci@venci-notebook-lan.ipv6.6bez10.info] has quit [Read error: Connection reset by peer] 22:15 -!- GeekShad0w [~Antoine@78.120.203.125] has quit [Quit: The cake is a lie !] 22:19 -!- user890104_ is now known as user890104 23:02 * user890104 wonders why his virtual machine crashes so often while doing usb transfers --- Log closed Mon Feb 21 00:01:39 2011