Topic for #qi-hardware is now Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben / atusb 802.15.4 wireless, and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs
viric_ has joined #qi-hardware
viric has quit [Ping timeout: 256 seconds]
<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
dandon has quit [Quit: .]
Freemor has left #qi-hardware [#qi-hardware]
<arossDOTme> still do post any replies and I will look at them one day in the log. thanks bb
panda|x201 has joined #qi-hardware
arossDOTme has quit [Quit: Ex-Chat]
<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 :)
emeb has left #qi-hardware [#qi-hardware]
fire_ has joined #qi-hardware
fire_ has quit [Quit: WeeChat 0.3.9]
DocScrutinizer05 has quit [Disconnected by services]
DocScrutinizer05 has joined #qi-hardware
antgreen has quit [Ping timeout: 240 seconds]
panda|x201 has quit [Ping timeout: 252 seconds]
panda|x201 has joined #qi-hardware
pcercuei has quit [Quit: dodo]
jekhor has joined #qi-hardware
jluis_ has joined #qi-hardware
xiangfu has joined #qi-hardware
jluis_ has quit [Ping timeout: 246 seconds]
xiangfu has quit [Read error: Connection reset by peer]
viric_ is now known as viric
jluis_ has joined #qi-hardware
dandon has joined #qi-hardware
codingenesis has joined #qi-hardware
codingenesis is now known as nerd
nerd has quit [Ping timeout: 248 seconds]
jekhor has quit [Ping timeout: 246 seconds]
jluis_ has quit [Ping timeout: 246 seconds]
panda|x201 has quit [Ping timeout: 265 seconds]
panda|x201 has joined #qi-hardware
jluis_ has joined #qi-hardware
kilae has joined #qi-hardware
urandom__ has joined #qi-hardware
xiangfu has joined #qi-hardware
xiangfu has quit [Ping timeout: 246 seconds]
jluis_ has quit [Ping timeout: 246 seconds]
xiangfu has joined #qi-hardware
panda|x201 has quit [Ping timeout: 246 seconds]
panda|x201 has joined #qi-hardware
jluis_ has joined #qi-hardware
panda|x201 has quit [Ping timeout: 246 seconds]
panda|x201 has joined #qi-hardware
jekhor has joined #qi-hardware
kilae_ has joined #qi-hardware
kilae has quit [Ping timeout: 246 seconds]
GNUtoo-desktop has joined #qi-hardware
kilae_ has quit [Ping timeout: 268 seconds]
arossDOTme has joined #qi-hardware
kristoffer has joined #qi-hardware
wej has quit [Ping timeout: 260 seconds]
krispaul has joined #qi-hardware
krispaul has quit [Client Quit]
kilae has joined #qi-hardware
wej has joined #qi-hardware
pcercuei has joined #qi-hardware
xiangfu has quit [Ping timeout: 246 seconds]
GNUtoo has joined #qi-hardware
panda|x201 has quit [Ping timeout: 256 seconds]
panda|x201 has joined #qi-hardware
<viric> Why the nanonote does not implement a usb-storage device? only usbnet
<viric> or can I switch that easily?
<pabs3> on the openmoko its just loading a different gadget driver, probably the same on other devices
<viric> so, either one or the other
<viric> can't the kernel do as if it was a hub with two devices?
jluis_ has quit [Ping timeout: 246 seconds]
<pcercuei> viric, it can
<pcercuei> the problem of mass-storage mode is that you have to dedicate a full partition to it
<pcercuei> and the OS has to be apart
<pcercuei> now the problem is that the jz4740 USB driver seems to have problems with that gadget driver
<viric> yes, clear. I remember seeing that setup in some devices
<viric> ah really? meh
<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
erikkugel has joined #qi-hardware
jluis_ has joined #qi-hardware
woakas has quit [Ping timeout: 244 seconds]
kilae_ has joined #qi-hardware
<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.
<wpwrak> ah, so GPT is what causes the trouble
<wpwrak> and not ext4
<arossDOTme> yes
<arossDOTme> 2:** am for you
kilae has quit [Ping timeout: 252 seconds]
<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?
<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.
<arossDOTme> ok
woakas has joined #qi-hardware
<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.
kilae has joined #qi-hardware
kilae_ has quit [Ping timeout: 260 seconds]
paul_boddie has joined #qi-hardware
<paul_boddie> I seem to recall that the combination gadget drivers can't reserve enough endpoints from the USB system, or something like that.
<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.
<pcercuei> the composite gadget works on jz4740
<pcercuei> I tried it with networking + serial
<paul_boddie> It didn't work for me when I tried it on the NanoNote. Maybe something has been fixed recently.
<wpwrak> the USB device controller has ... hmm ... manual says 5 or 16 EPs
<wpwrak> err, 6 or 16. let's see ...
<wpwrak> apparently it's 16
<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.
<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."
<wpwrak> but then happily goes on explaining how to use all those 16 (!) endpoints
<wpwrak> maybe there's an additional restriction i didn't spot when skimming the pages
<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
<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.
<wpwrak> ;-)
<paul_boddie> I do know a lot more about USB now, however. ;-)
<wpwrak> usb is fun. gives you that warm fuzzy feeling that those doomsayers may have a point with hell and eternal damnation
<wpwrak> btw, a more straightforward approach could be to just do your own protocol, like i did with dirtpan
<viric> 16 EPs looks like a lot
<wpwrak> yeah. dunno why, at the same time, they say that we only have 1+2+3.
<viric> I didn't know that could have a hardware limit.
<viric> maybe more usb stuff can be delegated to the cpu?
<viric> and then have as much EPs as wanted
<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.
<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.
<viric> v-usb?
<wpwrak> if imgtfy worked better today, i'd give you a link ...
<viric> if what?
<wpwrak> lmgtfy.com
<viric> :)
<paul_boddie> v-usb is that Atmel-based software-only implementation of USB 1.1, isn't it?
<viric> ah I think I remember it
GNUtoo-desktop has quit [Quit: [INFO] fsogsmd : received signal -11, exiting.]
jluis_ has quit [Remote host closed the connection]
paul_boddie has left #qi-hardware ["Kopete 0.11.3 : http://kopete.kde.org"]
emeb has joined #qi-hardware
GNUtoo-desktop has joined #qi-hardware
Jurting_pc2 has joined #qi-hardware
heberth has joined #qi-hardware
LunaVorax has joined #qi-hardware
heberth has quit [Quit: leaving]
<whitequark> wpwrak: http://lmgtfy.com/?q=v-usb
<whitequark> and I did not look up anything prior to posting this link.
<wpwrak> yeah, i'm too lazy to type it off the screen. for some reason, copy & paste doesn't want to work.
<wpwrak> hmm. now to get a cross-compilation environment for the ben with SDL and SDL_gfx in less than two hours ?
<wpwrak> let's see if building a single package works ...
woakas has quit [Ping timeout: 240 seconds]
guanucoluis has joined #qi-hardware
woakas has joined #qi-hardware
Jurting_pc2 has quit [Ping timeout: 248 seconds]
jekhor has quit [Ping timeout: 245 seconds]
<wpwrak> hmm. but no way to make a static binary :-(
erikkugel has quit [Ping timeout: 246 seconds]
<kristianpaul> again? ( cross-compilatio env)
<wpwrak> it's an eternal struggle ...
<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)
<viric> wpwrak: nix
<wpwrak> without SDL, static binaries are fine. SDL, on the other hand, depends on stuff that doesn't support static binaries.
<viric> :)
<wpwrak> viric: the master of all niches ;-)
<viric> I've been told that gcc from 4.5 to 4.7 has serious mips bugs
<wpwrak> hmm, fun :)
<viric> I'm having lots of troubles with a mips64 kernel
<viric> I'm building a 4.7.2 toolchain now
kilae_ has joined #qi-hardware
kilae has quit [Ping timeout: 252 seconds]
lekernel_ has joined #qi-hardware
lekernel has quit [Ping timeout: 255 seconds]
LunaVorax has quit [Ping timeout: 260 seconds]
LunaVorax has joined #qi-hardware
jekhor has joined #qi-hardware
LunaVorax has quit [Read error: Operation timed out]
LunaVorax has joined #qi-hardware
lekernel_ is now known as lekernel
GNUtoo has quit [Quit: Program received signal SIGSEGV, Segmentation fault.]
erikkugel has joined #qi-hardware
pcercuei2 has joined #qi-hardware
pcercuei has quit [Read error: Connection reset by peer]
<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.
<arossDOTme> wpwrak: ^
LunaVorax has quit [Ping timeout: 264 seconds]
<wpwrak> kewl. a reasonably happy ending then :)
<viric> formatting sd cards?
<viric> sd cards come with properly aligned partitions
<viric> factory determined. For optimal performance.
<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.
<arossDOTme> I don't know: "sd cards come with properly aligned partitions"
<arossDOTme> I assume that its nothing that can't be undone.
kilae_ has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
<viric> you could have noted where the partitions started :)
<viric> and repeat that in msdos partitions :)
<viric> The manufacturers place the fastest flash memory where the FAT tables reside, that require most modification. That, based on the from-factory partitions.
<viric> (fastest, or that can be written more times, or with more extra blocks, ...)
<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.
<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
<arossDOTme> oh didn't know that. darn. I hate fat. oh dear
<viric> that also depends on the quality of the card, of course.
<viric> lwn had a good page about it
<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
<arossDOTme> by not work I mean gparted moan about it.
<arossDOTme> thanks for the article. I will read that :)
erikkugel has quit [Quit: Leaving.]
LunaVorax has joined #qi-hardware
heberth has joined #qi-hardware
<arossDOTme> So what command,app do I use to make a note partitions started? thanks for putting up with my newbieness.
<arossDOTme> I guess formatting back to fat32 ant going to tell me where the original partition started...
<arossDOTme> oh it took around 1hour to copy 15,16ish GB on to it. If I remember correctly :/.
<arossDOTme> This would not have anything to do with my prev sd card getting files corrupted/errors? msdos ext4 disabled journal.
kristoffer has quit [Quit: Leaving]
<arossDOTme> re copying: I forget the numbers of what speeds to expect. should look them up, now I think of it...
freespace has quit [Read error: Operation timed out]
GNUtoo-desktop has quit [Quit: [INFO] fsogsmd : received signal -11, exiting.]
freespace has joined #qi-hardware
heberth has quit [Quit: leaving]
LunaVorax has quit [Ping timeout: 246 seconds]
jekhor has quit [Ping timeout: 246 seconds]
pcercuei has joined #qi-hardware