2010-07-16 03:43 Hey, I get a problem when trying to boot debian from sd card: 2010-07-16 03:43 reading uImage 2010-07-16 03:43 Unable to read uImage from mmc0:1 2010-07-16 03:43 Wrong Image Format for bootm command 2010-07-16 03:43 ERROR: can't get kernel image! 2010-07-16 03:44 then the ben locks up and needs a hard reboot 2010-07-16 03:44 the uImage is located in /boot, and the card is formated as one ext2 partition 2010-07-16 03:44 anyone have any ideas? 2010-07-16 03:46 i followed xiangfus guide here http://www.openmobilefree.net/?p=535 2010-07-16 04:02 xdpirate: try this uboot: http://downloads.qi-hardware.com/people/xiangfu/tmp/openwrt-xburst-qi_lb60-u-boot.2010.07.07.bin 2010-07-16 04:02 what is your sd card size. 2010-07-16 04:02 ? 2010-07-16 04:06 xiangfu, it's 1 gb 2010-07-16 04:07 can i still boot into openwrt with that bootloader? 2010-07-16 04:07 xdpirate: yes. 2010-07-16 04:07 ok thanks 2010-07-16 04:07 i'll try it in a bit, need to reboot into linux to flash the bootloader 2010-07-16 04:07 xdpirate: this will goto next release. when next release come up. I will remove that file. 2010-07-16 04:08 ok, already downloaded it so i'll try it in a bit, then report back :) 2010-07-16 04:08 thanks 2010-07-16 04:09 ok brb 2010-07-16 04:20 xiangfu, that bootloader worked, thanks, now the kernel boots 2010-07-16 04:20 however, i now get a kernel panic 2010-07-16 04:20 "Kernel panic - not syncing: No init found. Try passing init= option to kernel." 2010-07-16 04:21 (then it locks up and needs a hard reset) 2010-07-16 04:22 xdpirate: hmm.. check if there "/etc/preinit" in your sd card? 2010-07-16 04:23 nope, no such file 2010-07-16 04:23 shouldn't that be included in the debian lzma you linked in your blog post? 2010-07-16 04:25 xdpirate: yes. 2010-07-16 04:25 hm wierd 2010-07-16 04:27 it exists in my pc extract folder, somehow it must have not been copied to the sd card 2010-07-16 04:27 xdpirate: what is your .tar.lzma size? 2010-07-16 04:27 xdpirate: yes. 2010-07-16 04:27 33850806 bytes 2010-07-16 04:27 however it's an empty file on my pc 2010-07-16 04:28 hm it's an empty file inside the tar aswell 2010-07-16 04:28 xdpirate: it's a link file 2010-07-16 04:28 i'll try just copying it over and see what happens 2010-07-16 04:29 xdpirate: preinit -> /sbin/init 2010-07-16 04:29 aha 2010-07-16 04:30 xdpirate: you must extract in file system which allows symbolic links, so not fat. 2010-07-16 04:30 yeah, i just figured out that xD 2010-07-16 04:31 xdpirate: :) 2010-07-16 04:31 i'll log into linux again and extract directly onto sd card 2010-07-16 04:31 i had extracted the files with 7z in windows to an ntfs drive, then copying them over to the ext2 sd card 2010-07-16 04:32 thanks for your help, i'll go linux and try again :) 2010-07-16 04:33 btw, yesterday i was installing jlime from openwrt again (as i don't have SD card reader), and the download/extraction processes kept getting killed due to insufficient memory 2010-07-16 04:33 it brough my attention to the fact that fbterm is consuming 15 % of memory 2010-07-16 04:34 very fat... 2010-07-16 04:34 so i had to kill, then i extracted jlime to SD card with no problems 2010-07-16 04:35 ..which reminds me that i wanted to try nterm 2010-07-16 06:26 xiangfu, finally got it working :) had to change ext2 inode size 2010-07-16 06:27 thanks for the help 2010-07-16 06:27 however, now i'm having trouble connecting it to the pc 2010-07-16 06:27 did this: 2010-07-16 06:27 ifconfig usb0 192.168.0.197 up 2010-07-16 06:27 route add 192.168.0.204 usb0 2010-07-16 06:27 echo 1 > /proc/sys/net/ipv4/ip_forward 2010-07-16 06:27 iptables -t nat -A POSTROUTING -j MASQUERADE 2010-07-16 06:28 but when trying to telnet or ssh in I get "Unable to connect to remote host: No route to host" 2010-07-16 06:28 really this is not according to Ethernet_over_USB docu 2010-07-16 06:29 (in debian) 2010-07-16 06:29 you forgot to set interface to masquarade in itpables 2010-07-16 06:29 kyak, followed the ethernet guide here: http://pyneo.org/howto/debian/nano.html 2010-07-16 06:30 hm, ok 2010-07-16 06:30 cool 2010-07-16 06:30 > iptables -t nat -A POSTROUTING -j MASQUERADE 2010-07-16 06:30 did that 2010-07-16 06:30 pyneo is making warnings to me 2010-07-16 06:30 still get no route to host 2010-07-16 06:31 using Firefox on Windows, not supported :) crazy fanatics 2010-07-16 06:31 show the ifconfig usb0 from Ben 2010-07-16 06:33 xdpirate: it's not that 192.168.0.0/24 is the same subnet as your WLAN is it? 2010-07-16 06:36 unclouded, actually yes it is 2010-07-16 06:36 it worked in openwrt even tho it was the same subnet 2010-07-16 06:37 kyak, you can just click past the warning and enter the link again 2010-07-16 06:37 xdpirate: you could try using 10.1.1.0/24 or 172.16.1.0/24.  No point in making life hard unless you're trying to bridge the nano on to your WLAN 2010-07-16 06:37 xdpirate: sure i can :) 2010-07-16 06:37 unclouded, i am, i need to apt-get update :P 2010-07-16 06:37 and install gcc >:3 2010-07-16 06:40 xdpirate: you don't need to bridge for that.  the MASQUERADE means your workstation will send the apt-get traffic on behalf of your NanoNote 2010-07-16 06:40 ah 2010-07-16 06:41 so what should I do then? i've rebooted both the NN and the host pc now 2010-07-16 06:42 on the NN: ifconfig usb0 172.16.1.2 up; route add default gw 172.16.1.1 2010-07-16 06:44 on your host PC: sudo ifconfig usb0 172.16.0.1 up ; sudo iptables -t nat -A POSTROUTING -j MASQUERADE 2010-07-16 06:45 and the /proc/sys/net/ipv4/ip_forward thing, which must be done as root not just sudo because the shell redirect is owned by your user 2010-07-16 06:45 xdpirate: is your host PC running Debian too? 2010-07-16 06:46 unclouded, not vanilla debian but ubuntu 2010-07-16 06:47 xdpirate: sorry I made a boo boo.  "172.16.1.1 up" on the host, not "172.16.0.1 up" like I wrote 2010-07-16 06:49 now I get a "SIOCADDRT: Network is unreachable" error on the ben when trying to run "ifconfig usb0 172.16.1.2 up; route add default gw 172.16.1.1" 2010-07-16 06:54 xdpirate: I'm guessing it means that you can't add a default route via 172.16.1.1 because the kernel doesn't have a route to 172.16.1.1, which is strange because it should be directly reachable on the via the usb0 device. 2010-07-16 06:55 after rebooting ben, it now completed without fail 2010-07-16 06:55 but i still can't reach the internet 2010-07-16 06:55 xdpirate: ok, can it do "ping 172.16.1.1" though? 2010-07-16 06:55 aptitude is stuck on "0% [Connecting to ftp.debian.org]" 2010-07-16 06:56 yup, pinging the host is working alright 2010-07-16 06:56 I guess resolv.conf then 2010-07-16 06:57 Hm? 2010-07-16 06:57 edit /etc/resolv.conf on the NN and put in a line that says "nameserver 192.168.0.1", where 192.168.0.1 in that example is the DNS server on your WLAN 2010-07-16 06:57 ok thanks, i'll try 2010-07-16 06:57 echo "nameserver 8.8.8.8" > /etc/resolv.conf 2010-07-16 06:58 xdpirate: or do what kyak said, which is easier 2010-07-16 06:59 Woohoo, it's working! 2010-07-16 06:59 Thanks kyak and unclouded :) 2010-07-16 06:59 Hugely appreciated 2010-07-16 07:00 Onward to install gcc :D 2010-07-16 07:00 xdpirate: that stuff can all be automated if you like.  when I plug in my NN it's auto connected to the Internet.  it's not hard to set up if you're interested 2010-07-16 07:00 sure! 2010-07-16 07:00 that'd be swell, i'dn't have to go through this procedure every damn time :P 2010-07-16 07:01 oh btw, when running debian from the SD-card, it doesn't have access to the NAND right? 2010-07-16 07:01 wouldn't want it messing up my owrt setup 2010-07-16 07:02 not unless you run ubiattach from within Debian 2010-07-16 07:02 alrighty thanks 2010-07-16 07:03 xdpirate: by your feeling, debian is running smoothly or..? 2010-07-16 07:04 well i haven't tried any framebuffer applications yet, but the console seems alright :P 2010-07-16 07:04 i'll mainly use debian for gcc, to be honest, being able to compile on the go is awesome 2010-07-16 07:04 it's awesome and useless actually :) 2010-07-16 07:05 there are powerful scripting languages that are more suitable for programiing on th go 2010-07-16 07:05 rofl :P 2010-07-16 07:05 scripting :/ 2010-07-16 07:05 C > * 2010-07-16 07:06 I'm looking forward to the day when I can boot either OpenWRT or Debian from the same SD card 2010-07-16 07:06 when yo ureally need it "on the go", i bet you need it fast 2010-07-16 07:07 unclouded: just hack the uboot :) 2010-07-16 07:07 so unclouded, how do i automate connecting the nn to the internet with debian? :P 2010-07-16 07:07 kyak: one day, maybe when I get balls of steel :) 2010-07-16 07:08 xdpirate: thought I'd write it up on the wiki and then point you to that once I'm done 2010-07-16 07:08 Ah, awesome, thanks :) 2010-07-16 07:23 Something weird just happened, keyboard keys aren't working as they should, it seems the keyboard layout or locale was changed somehow 2010-07-16 07:27 hmm, has anyone managed to separate the lcm's shell from the bottom shell ? 2010-07-16 07:28 xdpirate: http://en.qi-hardware.com/wiki/Ethernet_over_USB#Making_it_persistent 2010-07-16 07:29 xdpirate: hopefully there aren't many mistakes in that 2010-07-16 07:29 unclouded, thanks :) 2010-07-16 07:32 kristoffer: (copy/mirror my site) hmm, you mean idbg ? 2010-07-16 07:36 xdpirate: you're welcome.  bed time for me now 2010-07-16 07:42 wpwrak, yeah 2010-07-16 07:42 wpwrak, just backup information with schematics and stuff in a wikistyle. 2010-07-16 07:44 kristoffer: hmm, the thing is that this project is still evolving. so you'd either have to track my changes or the two locations will diverge. not sure this is a good idea. 2010-07-16 07:45 i might relocate the project to projects.qi-hardware.com, though, because my git server setup is a little weird. even crashes debian's version of git, it seems :) 2010-07-16 07:50 wpwrak, I was thinking that I create an "backup" place with link to your page and try and update whenever something changes. 2010-07-16 07:53 kristoffer: a mirror. hmm, dunno. my site should be reasonably stable, and i suppose project.qi-hw is as well. if anything goes bad, i have a local copy anyway. 2010-07-16 07:54 wpwrak, alrighty then, just checking 2010-07-16 07:58 kristoffer: yeha, i think it would more likely create confusion and unnecessary work than have a practical use. but thanks anyway ! 2010-07-16 08:01 wpwrak: perhaps we could add a little general comment about your idbg work on jlime, with the proper links to the idbg web page. So if somebody is interested he/she can follow the link. It would help other jlimers to know about the useful idbg thing for nn 2010-07-16 08:04 rafa: yup, that would be perfect. i still have to make a "photo story" for the ben, and also adapt the firmware upload process (which currently relies on having an freerunner with debug board. kinda exotic requirements for much of the nanonote community :) 2010-07-16 08:06 jajaja.. no very exotic.. remember the current dependences for deb software packages.. if you need to install vim.. you need... and then a long weird list of packages appear 2010-07-16 08:06 :) 2010-07-16 08:08 rafa: openoffice-opengl-kanji ? :) 2010-07-16 08:28 wpwrak: haha :D 2010-07-16 08:28 yeah, something like that 2010-07-16 13:10 openoffice got opengl accelerated? 2010-07-16 13:11 that sounds really pointless and increadibly kewl 2010-07-16 13:17 kristoffer: it can be kind of good for presentations and graphs 2010-07-16 13:18 if your presenatation needs OGL acceleration it's probably a bit to fancy 2010-07-16 13:19 :D 2010-07-16 13:20 if one has a open gl accelerated computar, why not make use of it? :P 2010-07-16 13:58 kristoffer: vim and mutt opengl accelerated.. 2010-07-16 14:11 ? 2010-07-16 14:11 why? 2010-07-16 14:14 kristoffer: just kidding :) 2010-07-16 14:15 kristianpaul: just kidding :P 2010-07-16 14:16 for syntax highlighting ;) 2010-07-16 14:19 ah ok 2010-07-16 14:51 :D 2010-07-16 16:46 Well, I got the kernel compiled on my desktop. Just wanted to thank you people. Now, i'm trying to build some "packages" in the "openwrt-xburst-xburst" tree. How do I do that? When I do a "make" it tries to recompile _everything_. How do I avoid that? 2010-07-16 16:51 nanodev@wolf:~/dev/openwrt-xburst-xburst> make  make[1] world  make[2] target/compile  make[3] -C target/linux compile  make[2] package/cleanup  make[2] package/compile  make[3] -C package/gmu compile make -r world: build failed. Please re-run make with V=99 to see what's going on make: *** [world] Error 1 2010-07-16 16:51 ezdagor: http://en.qi-hardware.com/wiki/Porting_programs 2010-07-16 16:54 Thanks. 2010-07-16 16:54 basicly select packages as module from "make menuconfig", then run "make package/packagename/compile"(sets up the build dir) and "make package/packagename/install"(compiles and create ipg file) 2010-07-16 18:46 Lars-Peter Clausen: MTD: NAND: jz4740: Fix potential that can happen when the hardware is broken http://qi-hw.com/p/qi-kernel/f42d987 2010-07-16 18:46 Lars-Peter Clausen: jz4740: board_qilb60: Update include file paths http://qi-hw.com/p/qi-kernel/5dec571 2010-07-16 18:46 Lars-Peter Clausen: MTD: NAND: jz4740: Move include file from include/linux/mtd/ to arch/mips/include/asm/mach-jz4740/ http://qi-hw.com/p/qi-kernel/522642a 2010-07-16 18:46 Lars-Peter Clausen: fbdev: jz4740: Move include file from include/linux to arch/mips/include/asm/mach-jz4740 http://qi-hw.com/p/qi-kernel/9b0a62a 2010-07-16 18:46 Lars-Peter Clausen: fbdev: jz4740: Add special tft type lcds support. http://qi-hw.com/p/qi-kernel/2d6b4fe 2010-07-16 18:46 Lars-Peter Clausen: JZ4740: gpio: Fix LCD pins wrongly labeld as MEM pins http://qi-hw.com/p/qi-kernel/d49c41b 2010-07-16 18:46 Lars-Peter Clausen: MMC: jz4740: Avoid reloading the fifo address before each read/write http://qi-hw.com/p/qi-kernel/629b230 2010-07-16 19:41 Is it possible to listen to MP3s on the NanoNote? 2010-07-16 19:42 I've seen screenshots of a program called "Gmu" playing Mp3s.. but when I try to use mpg123, the sound is all choppy, even when downsampled. 2010-07-16 19:45 ezdagor: hello 2010-07-16 19:45 Hi, nebajoth. 2010-07-16 19:45 it is feasible to decode MP3s at a usable rate 2010-07-16 19:45 Ah. 2010-07-16 19:45 the use of MP3s is discouraged by the developers of the NanoNote 2010-07-16 19:45 so there isn't much emphasis on making it work out of the box 2010-07-16 19:45 in fact, the opposite is true 2010-07-16 19:45 however 2010-07-16 19:46 there are non-official firmware/operating systems for the NanoNote 2010-07-16 19:46 Hmm. 2010-07-16 19:46 that do play mp3 out of the box 2010-07-16 19:46 jlime is particularly popular 2010-07-16 19:46 Like OpenWRT? 2010-07-16 19:46 no 2010-07-16 19:46 Ah. 2010-07-16 19:46 openwrt, at least the official qi distribution of it, does not play mp3s out of the box 2010-07-16 19:46 Nod. 2010-07-16 19:46 they've specifically removed it 2010-07-16 19:46 in fact 2010-07-16 19:46 Yeah. I've noticed that. 2010-07-16 19:46 I myself use Debian. 2010-07-16 19:47 Me too. 2010-07-16 19:47 on my NN 2010-07-16 19:47 Same. 2010-07-16 19:47 I use a console player called cmus 2010-07-16 19:47 it works great for MP3s 2010-07-16 19:47 and FLACs 2010-07-16 19:47 URL? 2010-07-16 19:47 sec 2010-07-16 19:47 Thanks. 2010-07-16 19:47 cmus.sourceforge.net 2010-07-16 19:47 its in repos 2010-07-16 19:47 vi-like keybindings 2010-07-16 19:47 Ok. Cool. 2010-07-16 19:48 another popular option 2010-07-16 19:48 is moc 2010-07-16 19:48 I believe its package name in debians is mocp 2010-07-16 19:48 Ok. 2010-07-16 19:48 Thank you. I appreciate it. 2010-07-16 19:49 No problem 2010-07-16 19:51 nebajoth: cmus looks nice 2010-07-16 19:53 I use it every day 2010-07-16 19:53 I do internet install service calls 2010-07-16 19:53 and the work car has an AUX in 2010-07-16 19:53 I drive around all day listening to my NN 2010-07-16 19:56 ok