arossDOTme | wpwrak: The problem seams to be the GPT partition table. I reformatted the 2gb sdcard to ext4 with its msdos partition table. My NN could mount it and mount another 32gb sdcard formatted ext4, GPT | 00:10 |
---|---|---|
arossDOTme | still do post any replies and I will look at them one day in the log. thanks bb | 02:20 |
wpwrak | arossDOTme: sounds a bit strange that the partition table would have such an effect. but then, i've never experimented with GPT so far, so maybe there's a world of fun waiting out there of which i don't know yet :) | 03:04 |
viric | Why the nanonote does not implement a usb-storage device? only usbnet | 14:24 |
viric | or can I switch that easily? | 14:24 |
pabs3 | on the openmoko its just loading a different gadget driver, probably the same on other devices | 14:25 |
viric | so, either one or the other | 14:26 |
viric | can't the kernel do as if it was a hub with two devices? | 14:26 |
pcercuei | viric, it can | 14:31 |
pcercuei | the problem of mass-storage mode is that you have to dedicate a full partition to it | 14:32 |
pcercuei | and the OS has to be apart | 14:32 |
pcercuei | now the problem is that the jz4740 USB driver seems to have problems with that gadget driver | 14:33 |
viric | yes, clear. I remember seeing that setup in some devices | 14:33 |
viric | ah really? meh | 14:34 |
pabs3 | viric: theres a composite usb device stuff in Linux but it is quite limited, even on Android you can't have usbnet plus adb at the same time | 14:37 |
arossDOTme | wpwrak: Opps "My NN could mount it and mount another 32gb sdcard formatted ext4, GPT" I mean 32gb ext4 msdos sd card mounted but the one with GPT did not mount. | 14:52 |
wpwrak | ah, so GPT is what causes the trouble | 14:53 |
wpwrak | and not ext4 | 14:53 |
arossDOTme | yes | 14:53 |
arossDOTme | 2:** am for you | 14:53 |
arossDOTme | It would be awesome to by able to connect a usb flash drive(s) :D.So is it the case of some one having the time and will to fix this driver? | 14:55 |
wpwrak | "fixing" the driver may be a tad difficult. the hardware doesn't support usb host. you could perhaps write a sw-based usb host driver, but so far, nobody has done that. | 14:57 |
arossDOTme | ok | 14:57 |
wpwrak | (hw) that is, the chip would have a usb host interface. but it's not connected to the outside world. and connecting to it would be very difficult. | 14:58 |
paul_boddie | I seem to recall that the combination gadget drivers can't reserve enough endpoints from the USB system, or something like that. | 15:20 |
paul_boddie | They probably have to advertise multiple endpoints with their own descriptors, and the jz4740 won't let them. At least that's what my interpretation of the problem was. | 15:22 |
pcercuei | the composite gadget works on jz4740 | 15:23 |
pcercuei | I tried it with networking + serial | 15:23 |
paul_boddie | It didn't work for me when I tried it on the NanoNote. Maybe something has been fixed recently. | 15:24 |
wpwrak | the USB device controller has ... hmm ... manual says 5 or 16 EPs | 15:27 |
wpwrak | err, 6 or 16. let's see ... | 15:27 |
wpwrak | apparently it's 16 | 15:28 |
paul_boddie | Well, I don't know why it didn't work, then. I was sure that the driver mentioned some really small number like ep0, ep1 (in), ep1 (out) and ep2 (bulk), or something. | 15:31 |
wpwrak | the manual claims that "The core has up to 3 IN endpoints and/or up to 2 OUT endpoints in addition to Endpoint 0." | 15:32 |
wpwrak | but then happily goes on explaining how to use all those 16 (!) endpoints | 15:32 |
wpwrak | maybe there's an additional restriction i didn't spot when skimming the pages | 15:33 |
paul_boddie | On the topic of USB Host, I was doing some stuff tunnelling USB/IP to a PC and also to a USB Host-capable Arduino device, but I became quite tired of (1) the Microsoft-level USB/IP protocol (it just bundles up kernel structures and sends them over the wire), (2) trying to issue ioctls from user-space on a Linux host, (3) debugging the driver (although I think I cracked that problem, mostly), (4) trying to get the USB controller on the other devi | 15:34 |
paul_boddie | ...(5) dealing with the fact that USB hubs require the Frankenstein treatment to have "normal" out-of-the-box hub behaviour like what you'd have for any sane interconnectivity technology. | 15:35 |
wpwrak | ;-) | 15:37 |
paul_boddie | I do know a lot more about USB now, however. ;-) | 15:37 |
wpwrak | usb is fun. gives you that warm fuzzy feeling that those doomsayers may have a point with hell and eternal damnation | 15:38 |
wpwrak | btw, a more straightforward approach could be to just do your own protocol, like i did with dirtpan | 15:42 |
viric | 16 EPs looks like a lot | 15:45 |
wpwrak | yeah. dunno why, at the same time, they say that we only have 1+2+3. | 15:46 |
viric | I didn't know that could have a hardware limit. | 15:47 |
viric | maybe more usb stuff can be delegated to the cpu? | 15:47 |
viric | and then have as much EPs as wanted | 15:47 |
paul_boddie | I guess it all comes down to buffers and latency. You could probably have a number limited only by the addressing, but the hardware would probably need to be capable of shoving the data in the right buffers in a timely fashion. | 15:48 |
wpwrak | viric: you don't have access to the lower levels. so you'd have to implement the whole USB device in software. kinda like v-usb. | 15:49 |
viric | v-usb? | 15:50 |
wpwrak | if imgtfy worked better today, i'd give you a link ... | 15:56 |
viric | if what? | 16:01 |
wpwrak | lmgtfy.com | 16:01 |
viric | :) | 16:02 |
paul_boddie | v-usb is that Atmel-based software-only implementation of USB 1.1, isn't it? | 16:04 |
viric | ah I think I remember it | 16:07 |
whitequark | wpwrak: http://lmgtfy.com/?q=v-usb | 17:46 |
whitequark | and I did not look up anything prior to posting this link. | 17:47 |
wpwrak | yeah, i'm too lazy to type it off the screen. for some reason, copy & paste doesn't want to work. | 17:47 |
wpwrak | hmm. now to get a cross-compilation environment for the ben with SDL and SDL_gfx in less than two hours ? | 17:49 |
wpwrak | let's see if building a single package works ... | 17:50 |
wpwrak | hmm. but no way to make a static binary :-( | 18:23 |
kristianpaul | again? ( cross-compilatio env) | 18:33 |
wpwrak | it's an eternal struggle ... | 18:33 |
wpwrak | i have a working cross-compiler. now i tried to add SDL. that actually works, but ... i also need my binaries to be static (don't want to reinstall the whole ben) | 18:34 |
viric | wpwrak: nix | 18:35 |
wpwrak | without SDL, static binaries are fine. SDL, on the other hand, depends on stuff that doesn't support static binaries. | 18:35 |
viric | :) | 18:35 |
wpwrak | viric: the master of all niches ;-) | 18:35 |
viric | I've been told that gcc from 4.5 to 4.7 has serious mips bugs | 18:36 |
viric | https://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20120906140843.GA17068%40linux-mips.org | 18:36 |
wpwrak | hmm, fun :) | 18:37 |
viric | I'm having lots of troubles with a mips64 kernel | 18:38 |
viric | I'm building a 4.7.2 toolchain now | 18:38 |
arossDOTme | I refomated my 32gb card so its also msdos part tablet ext4 and it now mounts on my NN. BTW before it was GPT with protective MBR. in other words GParted defaults. | 21:06 |
arossDOTme | wpwrak: ^ | 21:07 |
wpwrak | kewl. a reasonably happy ending then :) | 21:27 |
viric | formatting sd cards? | 21:35 |
viric | sd cards come with properly aligned partitions | 21:35 |
viric | factory determined. For optimal performance. | 21:35 |
arossDOTme | I only change the partition table to gpt becuase I like superor stuff but 1mb could not be used. With the msdos partion table I have no odd left over unused 1mb. | 21:38 |
arossDOTme | I don't know: "sd cards come with properly aligned partitions" | 21:39 |
arossDOTme | I assume that its nothing that can't be undone. | 21:39 |
viric | you could have noted where the partitions started :) | 21:45 |
viric | and repeat that in msdos partitions :) | 21:45 |
viric | The manufacturers place the fastest flash memory where the FAT tables reside, that require most modification. That, based on the from-factory partitions. | 21:45 |
viric | (fastest, or that can be written more times, or with more extra blocks, ...) | 21:46 |
viric | And the rest of the flash is expected to be written linearly. If you break that (and does not use FAT for example :) you may have a bad performance. | 21:46 |
viric | Moreover, if you don't align the partitions to the flash page size or the erase block size, you may have a much higher performance penalty | 21:47 |
arossDOTme | oh didn't know that. darn. I hate fat. oh dear | 21:47 |
viric | that also depends on the quality of the card, of course. | 21:48 |
viric | lwn had a good page about it | 21:48 |
viric | https://lwn.net/Articles/428584/ | 21:49 |
arossDOTme | umm when switching back to msdos part table I tried trying out gdisk to convert the table for gpt to msdos. that didn't seam to work. So I went for gparted change part table to msdos format ext4 and again disable the journal | 21:50 |
arossDOTme | by not work I mean gparted moan about it. | 21:50 |
arossDOTme | thanks for the article. I will read that :) | 21:50 |
arossDOTme | So what command,app do I use to make a note partitions started? thanks for putting up with my newbieness. | 22:16 |
arossDOTme | I guess formatting back to fat32 ant going to tell me where the original partition started... | 22:18 |
arossDOTme | oh it took around 1hour to copy 15,16ish GB on to it. If I remember correctly :/. | 22:20 |
arossDOTme | This would not have anything to do with my prev sd card getting files corrupted/errors? msdos ext4 disabled journal. | 22:24 |
arossDOTme | re copying: I forget the numbers of what speeds to expect. should look them up, now I think of it... | 22:25 |
--- Fri Nov 9 2012 | 00:00 |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!