wpwrak | hmm nice. the busybox insmod doesn't print a diagnostic if you specify a file that doesn't exist. that's helpful :) | 01:24 |
---|---|---|
wpwrak | ... and it doesn't clean up after a failed insertion. bah. | 01:58 |
wpwrak | hmm, does anyone know of a sane way to accomplish this: given an SPI driver (in the monolithic kernel) and some driver that goes on top of it (module), i'd like the SPI driver's probe function to be run only when a suitable driver to go in top is loaded. | 02:04 |
wpwrak | the scenario is with spi-gpio at the bottom and atben on top. spi-gpio is monolithic, atben (and more stuff) a module. the problem is that, if i tell spi-gpio where the GPIOs are, it'll try to grab them instantly, causing a conflict with MMC. | 02:06 |
wpwrak | in practice, i won't use spi-gpio anyway, so there's no issue with making the spi driver a module, but i still wonder if i could also solve this cleanly for spi-gpio | 02:08 |
larsc | not really, you can manually unbind the driver after it has been probed | 05:56 |
pcercuei | you slept only 6 hours? | 06:07 |
larsc | 6 and half | 06:31 |
larsc | I usually just wake up when it gets light outside | 06:32 |
lekernel | sharism.cc down again ... | 08:38 |
larsc | somebody should really set up a sign: "Don't unplug this cable" | 08:41 |
wpwrak | larsc: (no other way) hmm, that's what i suspected. thanks for confirming ! | 08:54 |
wpwrak | (sharism) reminds me of some issues in machine rooms where the cleaning personnel unplugged the computers to connect their vacuum cleaners ... | 08:55 |
larsc | wpwrak: btw. udc works just fine if I initialize max_speed in the static jz4740_udc_controller struct | 08:56 |
wpwrak | larsc: even better :) and yes, it wouldn't make much sense for the rest of the USB code to be overly picky about where this gets set | 08:58 |
kuribas | How do I extract a kernel image using usbboot? | 11:03 |
larsc | whitequark's jzboot has a nanddump command | 11:15 |
larsc | which allows you to read the data from the nand and dump it into a file | 11:15 |
larsc | if you don't know the parition layout, just dump everything and look for markers | 11:16 |
kuribas | Doesn't it support the JZ4755? | 11:17 |
larsc | good question | 11:17 |
larsc | you'll need the .bins | 11:18 |
larsc | I guess | 11:18 |
larsc | it has support for the jz4750 and the jz4760 | 11:18 |
kuribas | I have a nandboot that I downloaded from the ingenic website. | 11:19 |
larsc | that one should also be able to dump the nand | 11:19 |
larsc | but I think it's a windows tool | 11:19 |
larsc | one thing you also need to figure out is how the nand is configured | 11:20 |
kuribas | I know which chips it has... | 11:21 |
larsc | that's a good start | 11:21 |
kuribas | And there is this info, which seems the same device: http://openthebook.byteorder.net/doku.php | 11:22 |
larsc | if it's the same device, you probably don't even need to dump the nand since there is downloadable image | 11:23 |
kuribas | Well, there isn't, but maybe the guy from this page has it. | 11:23 |
kuribas | I'll try emailing him. | 11:23 |
larsc | ah, the company went already out of buisness | 11:24 |
kuribas | yeah... | 11:24 |
larsc | here you go http://web.archive.org/web/20101212185821/http://augenus.com/thebooksoftwarev1.zip | 11:26 |
kuribas | Oh, great! | 11:26 |
larsc | found here http://www.nesiprav.com/forum3/index.php?topic=63.60 | 11:27 |
kuribas | Oh, right! | 11:27 |
kuribas | Well, I don't speak russian. | 11:27 |
viric | whitequark, kyak: 702B@0 25G5@><, 40? | 11:27 |
kuribas | Maybe it's a wasted effort, hacking on a device that is out of business... | 11:28 |
larsc | ah, ok the zip even has the usbboot cfg | 11:29 |
kuribas | It's not such a great device, it's very heavy and clunky, but it has a keyboard and mousepad, which is nice for linux. | 11:30 |
larsc | but of course the kernel.upg is missing | 11:31 |
viric | what device? | 11:33 |
kuribas | http://www.walmart.com/ip/iTomic-IEBR7C-7-eBook-Reader/19887947 | 11:33 |
viric | isn't walmart evil? :) | 11:34 |
kuribas | larsc: The guy from the openthebook probably still has the kernel. | 11:34 |
viric | is this a jz47xx device? | 11:35 |
kuribas | jz4755 | 11:35 |
viric | aha | 11:35 |
kuribas | viric: it's made in a sweatshop? | 11:36 |
viric | ? :) | 11:37 |
kuribas | You never know in China... | 11:37 |
viric | yes, very cheap device | 11:38 |
whitequark | viric: kyak: 40 | 12:15 |
larsc | kuribas: since you have the usbboot.cfg and the kernel partition offset it is not so hard to create a dump | 13:02 |
kyak | viric, whitequark roger that | 13:20 |
kuribas | larsc: Using jzboot? | 13:23 |
larsc | kuribas: yes | 13:23 |
larsc | no | 13:24 |
larsc | sorrt | 13:24 |
larsc | using the windows binary | 13:24 |
kuribas | I don't have windows. | 13:24 |
kuribas | Only linux | 13:24 |
larsc | wine might do | 13:25 |
larsc | or you could try fw.bin as stage1.bin and usb_boot.bin as stage2.bin | 13:26 |
larsc | with jzboot | 13:27 |
kuribas | So I need to install these to read the nand? | 13:27 |
larsc | yes, that's what runs on the target | 13:28 |
larsc | whitequark: you know this, do the ingenic usbboot fw.bin, etc work with jzboot? | 13:29 |
whitequark | larsc: that was two years ago... | 13:29 |
whitequark | and jzboot wasn't even written by me | 13:29 |
kuribas | Ok, I am in the windows usbboot. There is no nanddump command though. | 13:32 |
larsc | any other commands that should similar? | 13:32 |
larsc | ndump | 13:33 |
kuribas | readnand | 13:33 |
larsc | could be | 13:33 |
kuribas | "read data from nand flash and store to SDRAM" | 13:33 |
kuribas | nread: read NAND flash data with checking bad block and ECC; | 13:34 |
larsc | I thin it is nread | 13:36 |
kuribas | Ok: nread 0 1024 0 0 => Can not connect device! | 13:37 |
kuribas | lsusb: Bus 001 Device 009: ID 601a:4750 Ingenic Semiconductor Ltd. | 13:37 |
larsc | boot 0 first | 13:37 |
larsc | then nread 1024 4194304 0 0 | 13:38 |
kuribas | Boot fail, cannot connect device | 13:38 |
larsc | hm | 13:42 |
kuribas | jzboot gives me after trying boot: ingenic_loadstage: Connection timed out | 13:46 |
larsc | hm | 13:47 |
kuribas | jzboot shows the device | 13:49 |
larsc | did you use wine? | 13:51 |
kuribas | also | 13:51 |
kuribas | I'll try with my windows netbook. | 14:01 |
kuribas | Also doesn't work. | 14:04 |
--- Mon Apr 29 2013 | 00:00 |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!