2010-06-21 00:04 Hello, I just got my NanoNote this morning and I'm well happy.  About the red LED on the right-hand side.  The manual says it's a power LED but it seems to indicate that it's charging instead.  Is that what it's doing? 2010-06-21 00:05 charging 2010-06-21 00:06 so when it goes off even though it's still plugged in, it means it's fully charged? 2010-06-21 00:06 yeah 2010-06-21 00:06 great. thanks 2010-06-21 00:09 how can I tell roughly how much charge remains in the battery from the command line? 2010-06-21 00:22 neil_ cat /sys/class/power_supply/battery/voltage_now 2010-06-21 01:18 yo 2010-06-21 02:47 Xiangfu Liu: [usbboot] copy the jz4760.h file from u-boot, fix the jz4760 nand addr, cmd, data, port define http://qi-hw.com/p/xburst-tools/eb23820 2010-06-21 02:47 Xiangfu Liu: this is a workaround. we have plan to update the libusb-0.1 http://qi-hw.com/p/xburst-tools/43d775b 2010-06-21 03:34 wolfgang: so you finally have flashed your the HK stock, any tips so I can do the same at little scale here? 2010-06-21 06:02 wolfspraul: can i please be added to downloads.qi-hardware.com/people/ ? i would like to have a place at qi to conveniently store and update my ports :) 2010-06-21 06:09 kyak: you better put also put the Makefiles once verify it runs in http://projects.qi-hardware.com/index.php/p/openwrt-packages/ so it can be directly integrated in next distro 2010-06-21 06:11 tuxbrain: this is exactly what i needed, thanks! 2010-06-21 06:13 can i commit anonymously there? 2010-06-21 06:14 nop, you have to register in the project application here http://projects.qi-hardware.com/index.php/login/ and ask to one of the project admin to let you in 2010-06-21 06:16 already registered.. ok 2010-06-21 06:17 ask mirko Vogt or wolfspraul to commit access :) I really want you in :P 2010-06-21 06:18 ok, i guess i already asked wolfspraul for some kind of access :) 2010-06-21 06:28 kyak: can you email me a password of your choice? (wolfgang@sharism.cc) 2010-06-21 06:30 the downloads server has a DAV access where I can create an account for you then you can upload to downloads/people 2010-06-21 06:43 wolfspraul: sent! 2010-06-21 06:56 kyak: added you to openwrt-xburst and openwrt-packages 2010-06-21 06:56 thanks for any tidbit you can contribute there, that's really cool! 2010-06-21 06:57 next the DAV account 2010-06-21 06:58 wolfspraul: will try to do my best, thanks :) 2010-06-21 07:02 kyak: OK I added a DAV account too. Can you try with a DAV client whether you have read/write access to downloads.qi-hardware.com ? 2010-06-21 07:02 I create a people/kyak folder already 2010-06-21 07:03 one sec 2010-06-21 07:03 going to find a DAV client for linux :) never used it before 2010-06-21 07:04 ok, gnome can do this.. 2010-06-21 07:04 sometimes the UI and how you enter username/password are a bit spooky in some clients 2010-06-21 07:05 so they say 'read only' etc., some of them bring the user/password dialog at failed write attempts... 2010-06-21 07:05 kyak: if you upload binaries to /people/kyak, please do not upload any binaries that cause patent problems, like MP3, MPEG4, H.264 2010-06-21 07:06 sure! 2010-06-21 07:08 does it work? (can you try?) 2010-06-21 07:18 wolfspraul: yes, working very well, thank you! 2010-06-21 07:25 great, thanks! adding commit rights and accounts is the best thing for the project 2010-06-21 07:27 :) 2010-06-21 08:57 http://downloads.qi-hardware.com/people/kyak/tmp/jfbterm/jfbterm_0.4.7-1_xburst.ipk 2010-06-21 08:57 My build of jfbterm.. It requires some configuration to display UTF-8 properly, and I havent figured out yet how to do it :) 2010-06-21 08:59 and it's MUCH faster displaying, than the default terminal; and unifont looks more slim 2010-06-21 09:01 by the way, there is also an fbterm build in people/kyak/tmp/fbterm.. but i suppose there is more chance for displaying of UTF-8 in console with jfbterm than fbterm 2010-06-21 09:06 what is the difference between jfbterm and fbterm? 2010-06-21 09:06 I only heard some Japanese like fbterm. 2010-06-21 09:07 in general I would like an easier way to increase/decrease console font sizes 2010-06-21 09:11 jfbterm stands for Japanese fbterm :) 2010-06-21 09:11 i hope it has a better support for utf-8 2010-06-21 09:11 currently i don't have any luck with both of them 2010-06-21 09:11 ah there you go 2010-06-21 09:12 maybe it's just the bfbterm (better fbterm) 2010-06-21 09:12 it seems to be quite commonly used in Japan, or so I heard 2010-06-21 09:12 i'ld like to find a jwfbterm (Just a Working fbterm ) 2010-06-21 09:12 :) 2010-06-21 09:16 lol.. this is amazing what just happened :) i've launched jfbterm from a ssh session, and it started in Ben 2010-06-21 09:16 not i'm typing in ssh screen, and everything goes to Ben's screen :) 2010-06-21 09:16 i wonder if this is a bug or a feature 2010-06-21 09:17 it feels like connecting external keyboard to Ben 2010-06-21 09:17 i think jfbterm has attached my ssh virtual terminal to a real tty 2010-06-21 09:17 kyak, i don't know about the nanonote, but if you launch programs on dingux via telnet, they render on dingoo's screen 2010-06-21 09:19 zear: that's interesting.. i thought for X programs this should depend on DISPLAY variable, and for SDL they just don't launch 2010-06-21 09:21 zear: yes, the same for Ben.. at least gmu is rendered on Ben's screen 2010-06-21 09:22 via telnet, or via ssh? 2010-06-21 09:26 via ssh 2010-06-21 09:26 should be the same 2010-06-21 11:29 is building openwrt with utf-8 and locales support 2010-06-21 11:39 Xiangfu Liu: [new package] gawk, o3read, surfraw by Jirka http://qi-hw.com/p/openwrt-packages/2dad1d3 2010-06-21 12:13 kyak: is jfbterm better than fbterm? 2010-06-21 12:19 rafa: it has support for bitmap fonts and supposedly supports i18n better. At least, when it comes to utf-8 support in console, there are many references to jfbterm 2010-06-21 12:20 theoretically, fbterm is also capable of text encoding, but anyway I didn't succeed with any of them yet 2010-06-21 12:32 http://downloads.qi-hardware.com/people/kyak/tmp/fbterm.png 2010-06-21 12:32 http://downloads.qi-hardware.com/people/kyak/tmp/jfbterm.png 2010-06-21 12:33 kyak: I ask because it looks like jfbterm is old (last version is 2003 no?).. and fbterm is current, but I do not know which is better, that is why I ask you :) 2010-06-21 12:35 last version of jfbterm is 2005 2010-06-21 12:35 but it doesn't matter as long as both don't do what i want :) 2010-06-21 12:36 i'm just trying to play with both 2010-06-21 14:19 sup 2010-06-21 14:20 where can I buy a RS232/3.3V shifter in Europe? 2010-06-21 14:20 France preferably 2010-06-21 14:20 pre-assembled 2010-06-21 14:23 lekernel: virtually any electronics outlet is going to carry uart level shifters 2010-06-21 14:24 prpplague, you overestimate the french electronics shops 2010-06-21 14:25 in my city they don't even have standard 2.54mm connector pins 2010-06-21 14:25 he10 etc. 2010-06-21 14:25 plus everything is expensive as hell 2010-06-21 14:25 like 10x the digikey prices 2010-06-21 14:27 lekernel: yea but you can afford to buy it since you have such good health care 2010-06-21 14:29 ok, let's say farnell or radiospares prices then - both companies have French divisions 2010-06-21 14:32 Morning all 2010-06-21 14:35 SUP 2010-06-21 14:40 hello where can i found the best tuto for flash to debian ? 2010-06-21 14:41 dptech: I followed http://www.tuxbrain.com/en/content/%E6%9C%AC-ben-nanonote-editingcompilingflashing-arduino-sketch 2010-06-21 14:41 the first part of it anyway 2010-06-21 14:47 nebajoth: thanks, I must to see before to go... so I want to be sure to make very good! 2010-06-21 14:48 I see first part for debian, perfect! 2010-06-21 15:06 What do you call an LCD screen like the one the NN has? (In regards to every even row of pixels lines up, and every odd row of pixels lines up, but the odds and evens differ by half a pixel) 2010-06-21 15:14 xdpirate: the lcd in the NN is an passive matrix display with an 8-bit data interface 2010-06-21 15:19 prpplague, thanks 2010-06-21 15:21 xdpirate: it is a pretty decent display and fairly easy to interface to 2010-06-21 15:21 it's hard to read small fonts when the pixel matrix is lined up like that tbh 2010-06-21 15:22 but i'm guessing the displays are cheaper to manufacture so 2010-06-21 15:22 yea, they are mainly manufacturer for dedicated devices that use small graphics 2010-06-21 15:23 i.e. game handhelds and control devices like a programmable thermostat 2010-06-21 15:24 i have the display from the NN working with some OMAP3 and OMAP4 devices 2010-06-21 15:52 sdschulze: did you succeeded in rebuilding debian kernel for the nn with the openwrt toolchain? 2010-06-21 15:54 sdschulze: i was trying to follow your notes but got no luck booting it :( 2010-06-21 19:17 Hi.  I've read http://en.qi-hardware.com/wiki/How_to_reflash over and over but I'm still not confident of how to re-flash -just- the rootfs.  Do I still need to use nerase if I don't want to erase the whole NAND?  If I do, would nerase 2048 4096 0 0 be the right thing to do ( followed by nprog for the rootfs)? 2010-06-21 19:27 `nerase 16 4080 0 0` earases the rootfs 2010-06-21 19:27 why not just use the flash script and let it do u-boot, kernel and rootfs? 2010-06-21 19:29 larsc: do you mean "4096" rather than "4080"? 2010-06-21 19:29 or do you really mean 4080 2010-06-21 19:30 emeb: I've got the reflash-ben.sh, thanks.  I'm trying to understand it.  The page on the wiki does say to avoid re-flashing u-boot unless necessary 2010-06-21 19:31 neil_: the second parameter is the number of blocks to erase 2010-06-21 19:31 since there are 4096 and you start at 16 you want to erase 4080 blocks 2010-06-21 19:32 larsc: the wiki page says it's the block length.  ah.  does that mean "the number of blocks" and not "the block size", which is how I interpreted it? 2010-06-21 19:36 neil_: larsc: careful! using 4080 will erase everything from 16 on to the end, not just the rootfs. 2010-06-21 19:37 if you look at the reflash_ben.sh script you can see the parameter they use is 512, not 4080. The rootfs of the OpenWRT build doesn't take the whole rest of NAND 2010-06-21 19:38 in the OpenWRT build they reserve the last portion of NAND for the data partition of ~ 1.7GB. 2010-06-21 19:40 emeb: I read exactly what you say somewhere on the wiki but "df" shows 1.8GB free on my rootfs.  is this the ubifs compression? 2010-06-21 19:41 neil_: no. when I do a df on mine I only see about 200M in the rootfs partion. 2010-06-21 19:41 it depends in your image version 2010-06-21 19:41 Where did you get this image? 2010-06-21 19:42 mine's 2010-10-??  It came with the device 2010-06-21 19:42 sorry 2010-06-21 19:42 2010-01-?? 2010-06-21 19:42 OK - that's the original. Pretty old u-boot and kernel too. You may want to update the u-boot and kernel because they're much improved since then. 2010-06-21 19:43 emeb: OK, I'll update u-boot as well as you say.  sounds like having a data partition so my music isn't trashed when I update the rootfs is a good idea 2010-06-21 19:46 neil_: yep - that was what I thought too. There are some good instructions on the wiki for setting up the data partition after you reflash. 2010-06-21 19:46 I just used the script and it worked fine. 2010-06-21 19:47 why does reflash-ben.sh only issue an nerase command for the rootfs and not for the u-boot and kernel partitions? 2010-06-21 19:47 the new u-boot allows booting into USB mode without fiddling around with the shorting pads under the battery. 2010-06-21 19:47 neil_: no idea about the nerase. I was wondering that too 2010-06-21 19:47 emeb: but it worked for you anyway? 2010-06-21 19:48 neil_: yes it worked fine both times I ran it. 2010-06-21 19:48 neil_: for the rootfs leftovers from the previous on need to be cleaned up. for kernel and uboot it doesn't matter 2010-06-21 19:48 s/on/one 2010-06-21 19:50 thanks for all the help.  I'm learning a lot and it's getting clearer 2010-06-21 19:50 neil_: looking at the logfile from the reflash script it appears that the nprog command does an erase automatically. 2010-06-21 19:51 neil_: if you think there is misleading or missing information on the wiki, please update it. 2010-06-21 19:51 it may be redundant to do it in the script. 2010-06-21 20:06 larsc: OK, I will do.  thanks 2010-06-21 20:54 sup 2010-06-21 21:34 hey 2010-06-21 21:34 does the openwrt firmware use dumpkeys/loadkeys? 2010-06-21 21:34 or is that just a debian thing? 2010-06-21 21:35 anyone using debian: ping 2010-06-21 21:43 I tried loadkeys in openwrt before. but not success. the BUSYBOX's loadkeys use different file format. 2010-06-21 21:54 what about dumpkeys? 2010-06-21 21:55 Hello.. just flashed the Nanonote with Debian... Now it won't turn on.. 2010-06-21 21:56 what happens when you take out the battery and plug in the usb cable? 2010-06-21 21:56 does the red light come on for a brief second, then go off? 2010-06-21 21:56 Nothing. 2010-06-21 21:56 Hmm.. let me check. 2010-06-21 21:57 Yes, it does. 2010-06-21 21:57 your bootloader is corrupt 2010-06-21 21:57 Ah. 2010-06-21 21:57 you need to short the usb boot pins beneath the battery 2010-06-21 21:57 force it into usb boot mode 2010-06-21 21:57 Ok. 2010-06-21 21:57 and then reflash 2010-06-21 21:58 I use tin foil 2010-06-21 21:58 a small piece 2010-06-21 21:58 Just the boot-loader or everything? 2010-06-21 21:58 I'd wipe it clean 2010-06-21 21:58 and then restart 2010-06-21 21:58 Ok. 2010-06-21 21:58 do the erase function 2010-06-21 21:58 Nod. 2010-06-21 21:58 what tutorial are you following? 2010-06-21 21:59 http://pyneo.org/howto/debian/nano.html 2010-06-21 21:59 that didn't work for me 2010-06-21 21:59 the rootfs in particular 2010-06-21 21:59 Ah. 2010-06-21 21:59 I used tuxbrain's tutorial 2010-06-21 21:59 with a different rootfs 2010-06-21 21:59 sec 2010-06-21 21:59 Ok. Thanks. 2010-06-21 21:59 http://www.tuxbrain.com/en/content/%E6%9C%AC-ben-nanonote-editingcompilingflashing-arduino-sketch 2010-06-21 22:00 the first part is what you need 2010-06-21 22:00 ignore the stuff about the arduino 2010-06-21 22:00 (unless you have one) 2010-06-21 22:00 specifically this line: wget http://mister-muffin.de/nanonote/debian-sid.ubi 2010-06-21 22:00 Ok. 2010-06-21 22:00 I used the pyneo commands 2010-06-21 22:00 and that .ubi 2010-06-21 22:00 and it works a treat 2010-06-21 22:00 Cool. 2010-06-21 22:01 xiangfu: I occasionallyy get a message about scrubbing PEBs and moving them to other PEBs 2010-06-21 22:01 is this a matter for concern? 2010-06-21 22:03 qwebirc64441: your Nano is already unbricked? (just reading up) 2010-06-21 22:04 if your u-boot bootloader is indeed corrupted, you need to short the USB boot pin but there should be a little rubbery button included in your box 2010-06-21 22:04 oh yeys 2010-06-21 22:04 yes 2010-06-21 22:04 I lost mine 2010-06-21 22:04 use that, much easier than aluminum foil 2010-06-21 22:04 also hello wolfspraul 2010-06-21 22:04 nebajoth: email me your shipping address and we'll mail you a few more in regular mail 2010-06-21 22:05 sweet! 2010-06-21 22:05 I think they cost 0.5 US cents or so a piece, forgot :-) 2010-06-21 22:05 haha, well shipping might be a little more 2010-06-21 22:05 wolfspraul: Not yet. I'm in the process of putting it into USB-boot mode. 2010-06-21 22:05 any word on backlit keyboards for the Ya? :D 2010-06-21 22:05 sure but we'll just throw them in a regular letter 2010-06-21 22:05 oh snap 2010-06-21 22:06 I fixed my keymap problem 2010-06-21 22:06 finally, a working + key 2010-06-21 22:06 now I can use remind again 2010-06-21 22:06 nebajoth: please keep your expectations for those things (backlit keyboad) very low 2010-06-21 22:06 haha, I do 2010-06-21 22:06 we have to 100% focus on what this project is about - copyleft hardware 2010-06-21 22:06 we sold 800 Ben, which is great 2010-06-21 22:06 but of course totally not sustainable 2010-06-21 22:06 nope 2010-06-21 22:06 not unless you increase the price a great deal :O 2010-06-21 22:07 so we need to be very careful, 100% focus on what is unique about our product 2010-06-21 22:07 increase price = death 2010-06-21 22:07 this is a hardware business 2010-06-21 22:07 yep 2010-06-21 22:07 I want to decrease prices. 2010-06-21 22:07 I dunno, key visibility in low light situations seems like a pretty universal requirement 2010-06-21 22:07 for a "portable" device 2010-06-21 22:07 so anyway, when we think about Ya, we have some amount X of cash 2010-06-21 22:07 whatever the use case scenario 2010-06-21 22:07 and it will be very little 2010-06-21 22:08 and we will focus it only on the areas that matter to actually be able to ship the product 2010-06-21 22:08 but now, on the good side, I agree about your observations about the keyboard 2010-06-21 22:08 what impact on the price would USB host have? 2010-06-21 22:08 almost none, I'd think 2010-06-21 22:08 that's the advantage of all of us using this thing, and the reason why we launched the project the way we do 2010-06-21 22:08 get a real product out first 2010-06-21 22:08 the jz4740 has usb host capability 2010-06-21 22:08 collect real life feedback, grow a community 2010-06-21 22:08 if I read the spec sheets correctly 2010-06-21 22:09 it'd have to be broken out into the circuitboard for a connector 2010-06-21 22:09 once you do a full little computer with 2-3 full-time people, some volunteers, and some donated cash, every tiny thing becomes big :-) 2010-06-21 22:09 yeah, I hear you wolfspraul 2010-06-21 22:09 any chance you can send me some blank keys? 2010-06-21 22:09 I'll experiment with glow in the dark paints :D 2010-06-21 22:09 blank keys? 2010-06-21 22:10 I want to replace mine 2010-06-21 22:10 I think the print is under the plastic 2010-06-21 22:10 yeah 2010-06-21 22:10 I'm not sure how easy it is to take the keyboard apart 2010-06-21 22:10 it may all break 2010-06-21 22:10 not very 2010-06-21 22:10 if I have some old prototype/sample keyboard I can throw it in, for sure 2010-06-21 22:10 what do you do for a day job, wolfspraul? 2010-06-21 22:10 ha 2010-06-21 22:10 this is my 'day job' 2010-06-21 22:10 :P 2010-06-21 22:10 :-) 2010-06-21 22:11 where does the money come from to pay you? 2010-06-21 22:11 it's 10.10 AM in China 2010-06-21 22:11 from my savings 2010-06-21 22:11 :O 2010-06-21 22:11 you're betting big on this 2010-06-21 22:11 do you live in China? 2010-06-21 22:11 I don't think like that. 2010-06-21 22:11 yes, China 2010-06-21 22:11 you are German by birth? 2010-06-21 22:11 keep costs of living low, plus manufacturing is here 2010-06-21 22:12 interesting 2010-06-21 22:12 yes. first Germany, then >10yr US make some money and savings, then 3+ years China spend the savings 2010-06-21 22:12 what do you work on mostly? 2010-06-21 22:12 he he 2010-06-21 22:12 haha 2010-06-21 22:12 yeah, seriously 2010-06-21 22:12 that's the short story 2010-06-21 22:12 I work on manufacturing issues 2010-06-21 22:12 pretty interesting story actually 2010-06-21 22:12 could make a good magazine article 2010-06-21 22:13 when its time to get real publicity out about this unit 2010-06-21 22:13 I'm a software engineer originally. 2010-06-21 22:13 fun stuff, file systems 2010-06-21 22:13 how do test a file system ( other than by using it)? 2010-06-21 22:14 s/do/do you/ 2010-06-21 22:14 sure run automated scripts/programs 2010-06-21 22:14 file systems are hardcore, especially on multi-core/SMT machines, with swapping going on, etc. 2010-06-21 22:14 it was a fun time back then 2010-06-21 22:14 but I have to say manufacturing is also really really interesting. totally overlooked. 2010-06-21 22:15 nebajoth: so far I think our NanoNote is off to a good start, isn't it? 2010-06-21 22:15 after the first year... 2010-06-21 22:15 Damn. It's a real bitch trying to get it into USB-boot mode. 2010-06-21 22:15 now we throw all that we've learnt into Ya, very much looking forward to it 2010-06-21 22:15 qwebirc64441: yeah, one thing we need to improve in Ya :-) 2010-06-21 22:15 Yep. 2010-06-21 22:15 qwebirc64441: do you use the carbonized rubber button? 2010-06-21 22:15 I'd say so.  Incredible that it can be made for $99 2010-06-21 22:15 Yeah. 2010-06-21 22:16 wolfspraul: NanoNote rules, dude. 2010-06-21 22:16 unplug the USB cable 2010-06-21 22:16 I effing love this thing 2010-06-21 22:16 it really grows on you 2010-06-21 22:16 and I think that's mostly about hardware that just works 2010-06-21 22:16 push the carbonized rubber button against the USB boot pins 2010-06-21 22:16 I'm re-flashing for the 1st time right now.  It says I have a Jz4740.  I thought it was Jz4720? 2010-06-21 22:16 plug the USB cable back in 2010-06-21 22:16 ah, sorry, forgot something :-) 2010-06-21 22:16 on your host, run "watch lsusb" 2010-06-21 22:17 when you see the ID "0x601a:4740" show up, that's your Nano in USB boot mode 2010-06-21 22:17 so it's easy to watch it there 2010-06-21 22:17 so if you plug the USB cable in, you can also press the power-on button (hold for 2-3 seconds to be sure) 2010-06-21 22:17 I prefer 'watch -n 0.2 lsusb' 2010-06-21 22:18 but I'm an impatient guy 2010-06-21 22:18 you only need to short the USB boot pins at the time when the CPU gets power 2010-06-21 22:18 you don't need to hold it 2010-06-21 22:18 (after the CPU is powered) 2010-06-21 22:18 is holding it a problem? 2010-06-21 22:18 I'm breaking my usb-mode pads out to the side of the unit 2010-06-21 22:18 basically when the CPU gets powered, it checks those pins. If short, branch to USB boot mode. if not short, boot from NAND. 2010-06-21 22:18 and I was going to put in a switch 2010-06-21 22:18 holding shouldn't be a problem 2010-06-21 22:18 ok good 2010-06-21 22:19 neil_: 4720/4725/4740 is all the same die, just different packaging (=way the CPU is wrapped in plastic and fixed to the PCB) 2010-06-21 22:19 how much memory is going into the Ya, you think? 2010-06-21 22:19 A LOT! :-) 2010-06-21 22:19 he he 2010-06-21 22:19 don't know 2010-06-21 22:19 :D 2010-06-21 22:19 we will drive this together, the specs and all 2010-06-21 22:19 it will be fun 2010-06-21 22:19 we have so many good people on board now 2010-06-21 22:20 just need to cleanup a bit 2010-06-21 22:20 merge the discussion & developer mailing lists into one 2010-06-21 22:20 are you concerned about overlap with the Pandora? 2010-06-21 22:20 not at all 2010-06-21 22:20 Pandora is not copyleft hardware 2010-06-21 22:20 of course they run Linux and all so that's cool 2010-06-21 22:20 I want to get a Lemote 2010-06-21 22:20 neil_: we are very serious about this copyleft hardware thing 2010-06-21 22:20 chips with chinese symbols on them are 1337 2010-06-21 22:21 we need to work more on that, like GPL licensed production testing software (for Ya definitely) 2010-06-21 22:21 also case design 2010-06-21 22:21 need to cleanup some trademark issues (like 'microSD') 2010-06-21 22:21 case design isn't open? 2010-06-21 22:21 we worked hard on the patent problem, and still ongoing 2010-06-21 22:21 nebajoth: first question is "what is open case design?" 2010-06-21 22:21 haha 2010-06-21 22:21 right now we have design files open, but not 3D files 2010-06-21 22:21 schematics with a CC license? 2010-06-21 22:22 sure 2010-06-21 22:22 all that stuff is there 2010-06-21 22:22 I am talking about the plastic parts. 2010-06-21 22:22 hmm 2010-06-21 22:22 of course the design files are all CC licensed. 2010-06-21 22:22 we need to be able to build one of these with a RepRap 2010-06-21 22:22 one day it would be nice to use a RepRap or one of its descendants to fab a new case at home 2010-06-21 22:22 haha 2010-06-21 22:22 the problem with mechanical is that all professional software isproprietary 2010-06-21 22:22 ninja! 2010-06-21 22:22 inb4 2010-06-21 22:22 pwnt 2010-06-21 22:22 anyway we work on that 2010-06-21 22:22 one by one 2010-06-21 22:22 we start with the most valuable parts 2010-06-21 22:23 hey guys, Milkymist One boots Linux, did you know? 2010-06-21 22:23 :O 2010-06-21 22:23 no I had no idea 2010-06-21 22:23 that's our future free GPL licensed CPU!!! 2010-06-21 22:23 is it fast? :P 2010-06-21 22:23 On the XYZ NanoNote in 2020 :-) 2010-06-21 22:24 neil_: let me show you something I really like (still wrt your Pandora question) 2010-06-21 22:24 http://en.qi-hardware.com/wiki/Milkymist_One_SMT/DIP_Process_Flow 2010-06-21 22:24 this is awesome! 2010-06-21 22:24 documentation about the SMT process for Milkymist One 2010-06-21 22:24 I'm getting "Error - can't read bulk data from Ingenic device:1344" when running sudo ./reflash_ben.sh.  I have the latest reflash.sh and xburst-tools 2010-06-21 22:24 I think this is the best and most thoroughly documented SMT process ever. 2010-06-21 22:25 neil_: is the unit actually in usb boot mode? 2010-06-21 22:25 think so.  it started the flash process 2010-06-21 22:25 uh oh 2010-06-21 22:25 did you see whether it flashed u-boot and kernel already? 2010-06-21 22:25 when did it stop? 2010-06-21 22:26 wolfspraul: that milkymist link is awesome 2010-06-21 22:26 I have 601a:4740 in lsusb.  can I paste multi-line here or is that rude? 2010-06-21 22:26 ok for me, but probably not needed 2010-06-21 22:26 ok if you see that ID, it means you are in USB boot mode. good. 2010-06-21 22:27 Checking 454656 bytes... no check! End at Page: 605421569 2010-06-21 22:27 Skip a old bad block !=== 2010-06-21 22:27 fatal error occured - ABORTED 2010-06-21 22:27 === 2010-06-21 22:27 error while flashing bootloader: 2010-06-21 22:27 that's from the log.txt 2010-06-21 22:27 hmm 2010-06-21 22:27 boot loader 2010-06-21 22:27 let's try manually :-) 2010-06-21 22:27 I don't like the reflash script anyway... 2010-06-21 22:27 turn off the Nano 2010-06-21 22:27 unplug USB cable 2010-06-21 22:28 short the USB boot pins with the carbonized rubber button 2010-06-21 22:28 ok.  doing that now 2010-06-21 22:28 hmmm 2010-06-21 22:28 how do I get a milkymist? 2010-06-21 22:28 plug the USB cable in, press POWER ON, see the 0x601a:4740 showing up 2010-06-21 22:28 do I have to wait a minute like it says on the wiki? 2010-06-21 22:28 minute? 2010-06-21 22:28 no 2010-06-21 22:29 ok, got vend/prod 2010-06-21 22:29 if you see the 601a:4740, all is good 2010-06-21 22:29 now run 'usbboot' (as root) 2010-06-21 22:29 just 'usbboot' 2010-06-21 22:29 it will go to a command prompt 2010-06-21 22:29 first command: "boot" 2010-06-21 22:29 ok.  doing 2010-06-21 22:29 second command: "nprog 0 u-boot.bin 0 0 -n" (sorry u-boot.bin needs to be the real long filename of u-boot) 2010-06-21 22:30 succeeded 2010-06-21 22:30 how about the nprog command? 2010-06-21 22:31 got prompt back.  last thing it said was "Skip a old bad block" 2010-06-21 22:31 hmm 2010-06-21 22:31 neil_: reinstall openssh-server, and install console-setup 2010-06-21 22:31 the first will force it to generate a key for the ssh server 2010-06-21 22:31 and the second will fix a keymap issue 2010-06-21 22:31 neil_: let's run an erase command over your entire NAND first 2010-06-21 22:31 at least, an issue I was having 2010-06-21 22:31 qwebirc64441: ^^ 2010-06-21 22:32 qwebirc64441: any luck? 2010-06-21 22:32 nebajoth: does "boot" install an SSH server/client then? 2010-06-21 22:32 neil_: is that OK with you? 2010-06-21 22:32 sure 2010-06-21 22:32 so try "nerase 0 4096 0 0" 2010-06-21 22:32 neil_: eh? 2010-06-21 22:32 that will nuke the entire 2 GB 2010-06-21 22:32 neil_: openssh is installed by default, if that's what you're asking 2010-06-21 22:32 but it doesn't work 2010-06-21 22:32 after that the nprog command again 2010-06-21 22:33 you will almost certainly need to designate a swap file 2010-06-21 22:33 or use the microsd as a swap partition 2010-06-21 22:33 neil_: no no, "boot" will only load a tiny snipped to the Nano so usbboot can community with the Nano 2010-06-21 22:33 (I do the latter, but xiangfu has done the former) 2010-06-21 22:33 ouch it's getting confusing now, we talk about entirely different things 2010-06-21 22:33 sorry 2010-06-21 22:33 I'm going to bed soon 2010-06-21 22:33 I was just pouring out information :P 2010-06-21 22:33 but I've just confused things 2010-06-21 22:33 wolfspraul: ok.  I think I got crossed wires just then.  have done nerase now.  last thing it said was "Force erase, no bad block infomation!" 2010-06-21 22:34 ok 2010-06-21 22:34 now the nprog command again 2010-06-21 22:34 "nprog 0 u-boot.bin 0 0 -n" 2010-06-21 22:34 nebajoth: Not yet. :/ 2010-06-21 22:34 nebajoth: Cant' get it into USB-boot mode. 2010-06-21 22:34 it's u-boot-nand.bin 2010-06-21 22:34 same:  Finish! (len 454656 start_page 0 page_num 111) 2010-06-21 22:34 Error - can't read bulk data from Ingenic device:64 2010-06-21 22:34 Checking 454656 bytes... no check! End at Page: 8402977 2010-06-21 22:34 Skip a old bad block ! 2010-06-21 22:34 qwebirc64441: are you using the plastic doohickey or tinfoil? 2010-06-21 22:35 The plastic thing. 2010-06-21 22:35 hm 2010-06-21 22:35 qwebirc64441, neil_: remember to sign up for nanohacks.org if you haven't already 2010-06-21 22:35 wolfspraul: USB cable is the one that came with it.  host can only do USB 1.1.  is that relevant? 2010-06-21 22:35 there's only a few of us posting stuff, but its the official home for debian discussion 2010-06-21 22:36 neil_: thinking 2010-06-21 22:36 neil_: can you try on another Linux host machine? 2010-06-21 22:37 or if your computer has multiple USB plugs, try the other ones 2010-06-21 22:37 wolfspraul: can do.  will take a few mins to install xburst and so on 2010-06-21 22:37 do you have multiple USB connectors on this computer? 2010-06-21 22:37 yes, although they've always behaved the same, unlike some other machines I've seen 2010-06-21 22:37 several people have seen problems behind USB hubs, and sometimes there are hub chips on the mainboard 2010-06-21 22:38 can you still turn on your Nano? 2010-06-21 22:38 or screen just stays black? 2010-06-21 22:39 Well.. trial and error.. trial and error.. i'll keep trying. Thanks for all of your help. 2010-06-21 22:39 inserting in either port shows:Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 2010-06-21 22:39 Bus 002 Device 034: ID 601a:4740 2010-06-21 22:39 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 2010-06-21 22:39 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 2010-06-21 22:40 wolfspraul: can still turn it on.  it says unusual stuff 2010-06-21 22:40 hmm 2010-06-21 22:40 maybe the bootloader is just fune 2010-06-21 22:40 fine 2010-06-21 22:40 let's try to flash the kernel 2010-06-21 22:40 run 'usbboot' 2010-06-21 22:41 then at the command prompt 'boot' 2010-06-21 22:41 then 'nprog 1024 uImage.bin 0 0 -n' 2010-06-21 22:41 wolfspraul: aha.  it says on LCD: Wrong Image Format for bootm command 2010-06-21 22:41 replace uImage.bin with the name of your kernel image 2010-06-21 22:41 what are you flashing actually? openwrt 2010-06-15? 2010-06-21 22:41 wolfspraul: whatever the reflash-ben script downloaded 2010-06-21 22:42 ok 2010-06-21 22:42 openwrt 2010-06-15 2010-06-21 22:42 let's try nprog for the kernel, see whether more/other errors show up 2010-06-21 22:42 wolfspraul: it actually has a timestamp of 2010-06-16 but that might just be 'cos I'm in NZ 2010-06-21 22:43 from your log, my guess is that after the bootloader has been flashed successfully, usbboot looses connection with the Nano 2010-06-21 22:43 (can't read bulk data) 2010-06-21 22:43 wolfspraul: ok, will try the kernel now then 2010-06-21 22:43 all errors after that are just because usbboot lost connection 2010-06-21 22:43 yeah let's try that 2010-06-21 22:44 maybe you get other errors 2010-06-21 22:44 also kernel is bigger, so that's good 2010-06-21 22:46 neil_: I have another idea - my favorite :-) microSD booting 2010-06-21 22:46 do you have a microSD card? 2010-06-21 22:46 wolfspraul: it says scarier things like "Comparing 524288 bytes - FAIL at off 3008, wrote 0x37, read 0xb5" 2010-06-21 22:47 preferably a smaller one, 1 GB or so there is a bug in u-boot with larger microSD cards right now 2010-06-21 22:47 neil_: yeah OK. 2010-06-21 22:47 I doubt this is your Nano, it's USB related. 2010-06-21 22:47 just a guess 2010-06-21 22:47 wolfspraul: yes, 2GB uSD just arrived this morning.  it says it's Kingston but I suspect it's not after reading Bunnie's report 2010-06-21 22:47 do you have a microSD card? 2010-06-21 22:47 hah 2010-06-21 22:47 Bunnie's report is awesome! 2010-06-21 22:48 wolfspraul: too true 2010-06-21 22:48 ok let's try this 2010-06-21 22:48 wolfspraul: I could try on another laptop first if that's better 2010-06-21 22:48 partition the microSD card, one big ext2 partition 2010-06-21 22:48 unpack the openwrt rootfs into the root of that partition 2010-06-21 22:48 (you have to download the .tar.gz file) 2010-06-21 22:49 put the kernel into /boot/uImage on the microSD filesystem 2010-06-21 22:49 then insert the microSD into your Nano, boot the Nano and hold the 'm' key 2010-06-21 22:49 with some luck it should boot openwrt from the microSD card 2010-06-21 22:50 yes, another laptop is also good, we collect more data 2010-06-21 22:50 sorry for the inconvenience, your type of problem is new to me, never seen this kind of thing 2010-06-21 22:51 wolfspraul: sorry for delay.   had to open the impossible packaging around the uSD card 2010-06-21 22:51 http://downloads.qi-hardware.com/software/images/Ben_NanoNote_2GB_NAND/2010-06-15/openwrt-xburst-qi_lb60-rootfs.tar.gz 2010-06-21 22:51 this is what you need to unpack into the ext2 partition on the microSD card 2010-06-21 22:51 http://downloads.qi-hardware.com/software/images/Ben_NanoNote_2GB_NAND/2010-06-15/openwrt-xburst-qi_lb60-uImage.bin 2010-06-21 22:52 and then put this file into /boot/uImage (on the microSD card) 2010-06-21 22:52 neil_: it's a long shot, but we should try 2010-06-21 22:53 my assumption is that your u-boot reflashed correctly (even though you got errors), and that your microSD card will not exhibit the bug we have in u-boot right now that makes > 50% of microSD cards fail booting 2010-06-21 22:53 let's see :-) 2010-06-21 22:54 wolfspraul: doing all that now 2010-06-21 22:58 seems like python-gtk ipkg doesnt work on openwrt ben, also ruby-ncurses might not work 2010-06-21 22:59 at least pygame seems to work 2010-06-21 23:00 urandom_: pygame is ported!?  cool 2010-06-21 23:00 oh snap 2010-06-21 23:00 apt-get install pygame 2010-06-21 23:01 wolfspraul: do I just rename this blahblah-uImage.bin file to uImage on the SD? 2010-06-21 23:01 yes 2010-06-21 23:01 make sure to put it in /boot/uImage 2010-06-21 23:02 wolfspraul: ok.  I was going to put it in /, so good catch 2010-06-21 23:02 wolfspraul: ok, all that is done 2010-06-21 23:03 kewl 2010-06-21 23:03 :-) 2010-06-21 23:03 nebajoth: do you mean pygame for Debian on NN or pygame on OpenWRT? 2010-06-21 23:03 put it into the Nano, press power_on and hold the 'm' key 2010-06-21 23:04 when someone made a package for python-gtk and put it in the repo wouldnt he test it? 2010-06-21 23:04 wolfspraul: sorry I only just thought of this: the battery has been out the whole time, powered only by USB 2010-06-21 23:05 wolfspraul: could that be a problem?  maybe my USB port power is drooping or something. anyway, should I leave it as-is or replace the battery before booting the SD? 2010-06-21 23:05 hmm 2010-06-21 23:05 shouldn't matter 2010-06-21 23:05 neil_ we have pygame for openwrt and debian, apt-get is for debian 2010-06-21 23:06 and jlime i think 2010-06-21 23:06 unplug the cable once (without battery) to make sure you start from a clean zero state 2010-06-21 23:06 urandom_: that is very cool.  no need for me to cross-compile to develop most stuff then 2010-06-21 23:06 I have seen USB hosts that indeed had power problems (good idea!) 2010-06-21 23:06 but let's just try this microSD booting now 2010-06-21 23:07 i personaly dont like pygame, ulove will be much better 2010-06-21 23:07 urandom_: remember we are just a few people and essentially doing a whole distro for an embedded device here 2010-06-21 23:07 test plan is sorely missing, I agree 2010-06-21 23:08 but I have a feeling I will have to focus on reflash & software update issues for quite a while, as you see there are still too many people who get stuck on that. 2010-06-21 23:08 with all the people that are helping we have made tremendous progress, but I think there are 2000+ packages in openwrt, and of course most of them are untested 2010-06-21 23:08 jlime has 18,000 packages or so, 2 or 3 volunteers :-) 2010-06-21 23:09 neil_: how's it going? 2010-06-21 23:09 wolfspraul: wow. booted.  has desktop.  not seen that before.  quite flickery 2010-06-21 23:09 yeah, flickering 2010-06-21 23:09 sorry 2010-06-21 23:09 software bug, no worries 2010-06-21 23:09 wolfspraul: it worked though! 2010-06-21 23:09 not a hardware issue, definitely not 2010-06-21 23:09 i am not sure if we even should keep openwrt as a main distro, i mean i like it but maybe jlime is better 2010-06-21 23:10 wolfspraul: I'll try dClock, "x" later on 2010-06-21 23:10 neil 2010-06-21 23:10 one sec 2010-06-21 23:10 we haven't reflashed your NAND properly yet 2010-06-21 23:10 let's make sure all is good there 2010-06-21 23:10 wolfspraul: yes, sorry I didn't think we were done.  mislead you there 2010-06-21 23:10 the strength of going with openwrt as the main supported distro 2010-06-21 23:10 hmm 2010-06-21 23:11 is that it lends itself to targetting specific niches 2010-06-21 23:11 I need help 2010-06-21 23:11 :-) 2010-06-21 23:11 it enables people to put together custom mini-distros 2010-06-21 23:11 without all the overheard of OE 2010-06-21 23:11 neil_ has a working u-boot in NAND, but kernel and rootfs not yet 2010-06-21 23:11 which is what is used to build jlime, I believe 2010-06-21 23:11 I know how to write the rootfs from inside Linux, but never done the kernel 2010-06-21 23:12 you mean the commandline commands to flash it? 2010-06-21 23:12 neil_: for the rootfs, what you need to do is this: download http://downloads.qi-hardware.com/software/images/Ben_NanoNote_2GB_NAND/2010-06-15/openwrt-xburst-qi_lb60-root.ubi 2010-06-21 23:12 (maybe you can find it on your host, reflash_ben.sh must have downloaded it already) 2010-06-21 23:12 copy that file onto your microSD card 2010-06-21 23:12 (first turn off your Nano) 2010-06-21 23:12 then boot Nano again, with that -root.ubi file on the microSD card 2010-06-21 23:13 wolfspraul: ok.  doing 2010-06-21 23:13 then after you booted, you go into command line and run "ubiformat /dev/mtd2 -f -root.ubi" 2010-06-21 23:13 and "ubiformat /dev/mtd3" (that's the empty 1.5 GB data partition to speed up boot times for now) 2010-06-21 23:14 so basically we have u-boot in mtd0 (already working), rootfs in mtd2 (see whether ubiformat runs through), empty data partition in mtd3 (also let's see what ubiformat says) 2010-06-21 23:14 then the only thing missing will be mtd1, we have to get your /boot/uImage copied/flashed into /dev/mtd1 2010-06-21 23:14 maybe just cat or cp ? 2010-06-21 23:14 nebajoth: yes, that's what I meant 2010-06-21 23:15 how can neil_ get the /boot/uImage kernel into flashed into /dev/mtd1 ? 2010-06-21 23:15 wolfspraul: not "dd"? 2010-06-21 23:15 those are all in the pyneo tutorial 2010-06-21 23:15 usbboot -c "boot" 2010-06-21 23:15 usbboot -c "nprog 0 openwrt-xburst-u-boot.bin 0 0 -n" 2010-06-21 23:15 usbboot -c "nprog 1024 openwrt-xburst-qi_lb60-uImage.bin 0 0 -n" 2010-06-21 23:15 usbboot -c "nprog 2048 debian-lenny.ubi 0 0 -n" 2010-06-21 23:15 substituting 2010-06-21 23:15 the openwrt ubi 2010-06-21 23:15 no no 2010-06-21 23:15 this is different here 2010-06-21 23:16 :O 2010-06-21 23:16 oh, from inside another booted distro? 2010-06-21 23:16 for some reason neil_ did not have luck flashing via usbboot 2010-06-21 23:16 nebajoth: we've booted from SD 2010-06-21 23:16 good lord 2010-06-21 23:16 but luckily at least the u-boot made it via usbboot 2010-06-21 23:16 so then we let that u-boot load the kernel & rootfs from microSD 2010-06-21 23:16 now we need to flash kernel & rootfs into NAND, from inside a running Linux system 2010-06-21 23:17 it's much more stable and trustworthy anyway 2010-06-21 23:17 this is how I always reflash the rootfs, never via usbboot 2010-06-21 23:17 I normally do u-boot & kernel via usbboot, then rootfs via microSD 2010-06-21 23:17 also allows better parallelization (I can use 6 or 8 microSD cards) 2010-06-21 23:18 but I've never done the kernel from inside, that's why I need help 2010-06-21 23:18 maybe just dd/cp/cat, maybe some mtd-utils utility? 2010-06-21 23:19 neil_: let's try the rootfs with ubiformat first, see whether ubiformat says anything unusual 2010-06-21 23:19 wolfspraul: I guess we can get rootfs going first though 2010-06-21 23:19 I still want to make sure all is good with your NanoNote and the NAND chip 2010-06-21 23:19 wolfspraul: ninja 2010-06-21 23:19 yes totally 2010-06-21 23:19 the ubiformat will do a lot of checks and treat the NAND chip properly 2010-06-21 23:19 much much better than the hacked-together stuff running inside usbboot 2010-06-21 23:20 wolfspraul: ok, booted. how do I get a terminal? 2010-06-21 23:20 ctrl-alt-f1 2010-06-21 23:20 (ctrl-alt-f5 will get you back to graphical) 2010-06-21 23:21 wolfspraul: smart.  just like desktop linux 2010-06-21 23:21 this flashing from microSD stuff should be addet to the wiki 2010-06-21 23:21 urandom_: I'll keep the IRC log and have a go at that if you don't mind 2010-06-21 23:21 ok 2010-06-21 23:22 and you dont need to keep it we have archives 2010-06-21 23:22 http://en.qi-hardware.com/irclogs/index.html 2010-06-21 23:24 hmm, mtd-utils has a 'flashcp' command, maybe use that to copy the uImage to /dev/mtd1 ? 2010-06-21 23:25 cat /proc/mtd 2010-06-21 23:25 there's the three partitions 2010-06-21 23:26 should be 4 now 2010-06-21 23:26 4 on mine 2010-06-21 23:26 er 2010-06-21 23:26 3 2010-06-21 23:26 but we need a command to do 'the right thing', i.e. to copy the uImage to /dev/mtd1, not assuming uImage contains any OOB data, and skipping bad blocks if necessary 2010-06-21 23:27 there's another command 'nandwrite' 2010-06-21 23:27 eah 2010-06-21 23:27 yeah 2010-06-21 23:27 its nandwrite 2010-06-21 23:28 look at the first codeblock here: http://elinux.org/BeagleBoardNAND 2010-06-21 23:28 under X-Loader 2010-06-21 23:28 nand unlock 2010-06-21 23:28 hmm 2010-06-21 23:28 I googled a bit people seem to use flashcp 2010-06-21 23:28 etc 2010-06-21 23:29 but this uses the exact kind of command line structure 2010-06-21 23:29 as usbboot 2010-06-21 23:29 that seems like a good sign 2010-06-21 23:29 wolfspraul: mtd2 done.  no apparent error.  lots of output 2010-06-21 23:29 that does look cool though 2010-06-21 23:30 flashcp 2010-06-21 23:30 yeah, u are right they say 'nandwrite -p' 2010-06-21 23:30 maybe the same? 2010-06-21 23:30 http://book.opensourceproject.org.cn/embedded/embeddedprime/opensource/0136130550/ch10lev1sec4.html 2010-06-21 23:30 they use flashcp 2010-06-21 23:30 wolfspraul: when doing mtd3: 1 of 3568 eraseblocks contain non-ubifs data 2010-06-21 23:30 neil_: the good news is, you cannot break anything! :-) 2010-06-21 23:31 hmm, don't know what that means 2010-06-21 23:31 that's a lot more intuitive 2010-06-21 23:31 wolfspraul: :-) 2010-06-21 23:31 acts like cp 2010-06-21 23:31 doesn't sound scary 2010-06-21 23:31 let's try to flash the kernel now 2010-06-21 23:31 neil_: what doyou want to try? flashcp or nandwrite? :-) 2010-06-21 23:31 wolfspraul: I've got a coin here 2010-06-21 23:32 nandwrite -p /dev/mtd1 /boot/uImage 2010-06-21 23:32 :-) 2010-06-21 23:32 wolfspraul: shall I proceed with this mtd3 format despite the warning? 2010-06-21 23:32 sure 2010-06-21 23:32 proceed 2010-06-21 23:33 there may be some options in ubiformat to nuke old erase counters/OOB data 2010-06-21 23:33 wolfspraul: only 0 of 3568 have have valid erase counter.  is that a worry? 2010-06-21 23:33 wolfspraul will mail you another if it breaks 2010-06-21 23:34 maybe we should nuke everything 2010-06-21 23:34 no it's not a worry 2010-06-21 23:34 we are formatting 2010-06-21 23:34 ideally in NAND you always want to carry forward old data, like erase counters 2010-06-21 23:34 wolfspraul: sorry, just not used to so much output from UN*X commands 2010-06-21 23:34 wolfspraul: ah, makes sense now 2010-06-21 23:34 but on the Nano, we are not in an ideal world yet 2010-06-21 23:35 bugs are fixed all over the place constantly 2010-06-21 23:35 even if you run 'ubiformat -h' and look at the example, see the second one :-) 2010-06-21 23:35 wolfspraul: no other warnings.  mtd3 done. 2010-06-21 23:36 wooooooop 2010-06-21 23:36 ubiformat -q -e : be quiet and force erase counter to 0 2010-06-21 23:36 nebajoth: these commands cannot damage anything. impossible. 2010-06-21 23:36 I'll need to put uImage on the SD before nandwrite won't I? 2010-06-21 23:36 assuming you have no valuable data in NAND 2010-06-21 23:36 neil_: it should be there already, we booted from it 2010-06-21 23:36 try: nandwrite -p /dev/mtd1 /boot/uImage 2010-06-21 23:37 wolfspraul: of course.  silly me 2010-06-21 23:37 we might even be able to reuse your rootfs and somehow uninize it into NAND, but I never tried that before 2010-06-21 23:37 ubinize 2010-06-21 23:37 god I love this thing 2010-06-21 23:37 anyway, this is about getting your nano to work, not all sorts of experiments :-) 2010-06-21 23:38 wolfspraul: done. 2010-06-21 23:38 hmm 2010-06-21 23:38 alright 2010-06-21 23:38 'halt' 2010-06-21 23:38 power on, don't press 'm', see what happens 2010-06-21 23:39 oops.  lots of "Uncorrectable error occurred" 2010-06-21 23:39 hmm 2010-06-21 23:39 ND read from offset 400000 failed -77 2010-06-21 23:39 did u-boot load the kernel properly? 2010-06-21 23:40 ERROR: can't get kernel image! 2010-06-21 23:40 ok 2010-06-21 23:40 I guess not 2010-06-21 23:40 boot from microSD again 2010-06-21 23:40 ok.  doing 2010-06-21 23:41 I'm trying the same thing on my Nano now 2010-06-21 23:41 wrote the kernel with nandwrite, rebooting... 2010-06-21 23:41 this is very cool.  I planned to boot Debian from SD but I didn't plan on learning so much so fast 2010-06-21 23:42 ah yes 2010-06-21 23:42 uncorrectable error :-) 2010-06-21 23:42 scrolling down wildly for a while 2010-06-21 23:42 that's it 2010-06-21 23:42 don't worry this has to do with the nandwrite 2010-06-21 23:42 let's try flashcp first 2010-06-21 23:42 or offsets 2010-06-21 23:42 trial and error for a while, don't we love the Chinese ! :-) 2010-06-21 23:42 knowledge can come later :-) 2010-06-21 23:43 ok, ready for flashcp command line 2010-06-21 23:43 just try you are ahead of me 2010-06-21 23:43 only watch that you focus on /dev/mtd1 :-) 2010-06-21 23:43 first 2010-06-21 23:43 mtd0 is our precious u-boot, let's not loose it 2010-06-21 23:44 mtd2 is the rootfs 2010-06-21 23:44 flash_erase 2010-06-21 23:44 sure why not 2010-06-21 23:44 good idea 2010-06-21 23:44 flash_erase /dev/mtd3? 2010-06-21 23:44 just please watch out - mtd1 only 2010-06-21 23:44 I'm used to double checking which devices I'm formatting but good point 2010-06-21 23:44 oh 2010-06-21 23:44 mtd1 2010-06-21 23:44 flash_erase /dev/mtd1 2010-06-21 23:45 nebajoth: good idea to do that before flashcp? 2010-06-21 23:45 flashcp seems to assume page-aligned data 2010-06-21 23:45 neil_: I think so 2010-06-21 23:45 especially since you've run nand write 2010-06-21 23:46 then 2010-06-21 23:46 nebajoth: ok, I'll try that first then 2010-06-21 23:46 flashcp /path/to/your/uImage /dev/mtd1 2010-06-21 23:46 nebajoth: flashcp doesn't work for me 2010-06-21 23:46 complains about not page-aligned data 2010-06-21 23:47 perhaps because of the nand write you both just ran? 2010-06-21 23:47 flash_erase only erased 512KB for me I think 2010-06-21 23:47 yeah 2010-06-21 23:47 is that the size of mtd1? 2010-06-21 23:48 you can try flash_erase /dev/mtd1 0 8 2010-06-21 23:48 that's nailed it, thanks 2010-06-21 23:49 woop 2010-06-21 23:49 flashcp says "Attempt to write not page aligned data" though 2010-06-21 23:50 hmm 2010-06-21 23:50 I just did nandwrite -p again, and now it boots! 2010-06-21 23:50 maybe the flash_erase helped 2010-06-21 23:51 we didn't erase before nandwrite though did we? 2010-06-21 23:51 no 2010-06-21 23:51 try the nandwrite -p again 2010-06-21 23:53 I think that's nailed it.  got OpenWRT logo 2010-06-21 23:53 got desktop now 2010-06-21 23:53 he. puh. finally. 2010-06-21 23:54 nandwrite works? 2010-06-21 23:54 I think your Nano is all fine. 2010-06-21 23:54 something is up with USB, for now I just blame usbboot :-) 2010-06-21 23:54 nebajoth: nandwrite after flash_erase did it 2010-06-21 23:54 cat /etc/VERSION  2010-06-15 2010-06-21 23:55 it could also be my seven-year old laptop that only supports USB 1.1, although I've never had any other USB-related trouble with it 2010-06-21 23:55 yes, possible 2010-06-21 23:55 because of usbboot 2010-06-21 23:55 can you try to ssh into the Nano? 2010-06-21 23:55 let's make sure USB works now 2010-06-21 23:55 IP is 192.168.254.101 2010-06-21 23:56 oops. I just reset the IP to 172.16.0.2 2010-06-21 23:56 sure why not 2010-06-21 23:56 just check whether you can ssh in 2010-06-21 23:56 host key has changed so I guess it works 2010-06-21 23:56 ok then 2010-06-21 23:57 that needs to be wikified 2010-06-21 23:57 be a bit patient in the first few days, there are always some quirks that need to be understood 2010-06-21 23:57 meanwhile we are working hard everywhere to make everything smoother and more solid 2010-06-21 23:57 your feedback helps a lot! 2010-06-21 23:57 Backfire 2010-06-21 23:57 for me, the making things work 2010-06-21 23:57 is the fun part 2010-06-21 23:57 and I learnt how to do flash_erase/nandwrite for the Linux kernel now. another reason to use usbboot less :-) 2010-06-21 23:57 buying a NN was really just like buying membership in a club of people who think the same things are fun that I do 2010-06-21 23:58 which is pretty epic 2010-06-21 23:58 bizarre that we needed to use flash_erase even after doing a whole-device erase to begin with 2010-06-21 23:58 no that's OK 2010-06-21 23:58 actually, we tried to use usbboot to write the kernel.  it must have written something 2010-06-21 23:58 NAND is tricky, all pieces of software need to be well synced with each other 2010-06-21 23:58 and they are not 2010-06-21 23:59 in terms of where/how they store bad block info, eec data (different eec algorithms), etc. 2010-06-21 23:59 pretty cool that you were able to sort it all out over IRC though 2010-06-21 23:59 also in general free software is not very strong on NAND related things 2010-06-21 23:59 big thanks to you all.  I now have a working NN with the latest software 2010-06-21 23:59 I am glad we have mtd-utils and ubi-utils now, they are fixing lots of bugs too