<qwebirc23069>
in nanonote how much memory is required to boot the system and work properly
<qwebirc23069>
also if I am using micro SD card and will it be allocated to particular inode always or different ?
<qwebirc23069>
anybody answer my query
<qwebirc23069>
how can i develop a GUI application fro nanonote
<nitin_gupta>
can anybody help be building GUI based application for nanonote
<wpwrak>
there are a few people who have done GUI stuff on the NN. may take a while for them to wake up, though :)
<kyak>
nitin_gupta: what's your question?
<nitin_gupta>
I want to develop a GUI based application
<nitin_gupta>
how to develop it and compile  it
<zear>
nitin_gupta, first you have to choose the gui library you want to use, then you develop your app and finally you use the mips cross compiler to build a binary
<zear>
i haven't been paying attention to the default owrt distro, but it probably is still framebuffer only, so your only choice would be libSDL (unless qt or gtk for framebuffer are ported already). There are however X11 based distros for the nanonote, namely Debian and JLime. Both should offer you a greater variety of gui libs to choose
<wolfspraul>
zear: sdl, qt and gtk+ all work (minus bugs) in the OpenWrt images
<wolfspraul>
but yes it's all framebuffer based, unlike Jlime which is all X-based
<wolfspraul>
kristianpaul: do you mind if we rename the wiki page GPS_Open_Stack to GPS_Free_Stack?
<zear>
nitin_gupta, SDL is the most portable one, it can run on non-posix architectures, like wince. The problem with libSDL is it doesn't offer you any ready gui elements. You'd have to design the whole gui from scratch. But it is also it's feature, as you can design any graphical app you want, there are no predefined gui limits like in qt or gtk
<qi-bot>
[commit] Werner Almesberger: boom/mbq2lst: utility to generate a KiCad-style BOM from a more human-friendly http://qi-hw.com/p/eda-tools/7190706
<nitin_gupta>
I have developed console based application and it is running properly but no idea about GUI one
<wpwrak>
... which brings us back to the quest for a toolchain/SDK like the one we had in Openmoko :)
<kyak>
nitin_gupta: you should spend some time reading
<wolfspraul>
wow great, you mean you have already cross-compiled an app for the NanoNote?
<nitin_gupta>
yes
<nitin_gupta>
but that is just a simple single C file
<wolfspraul>
then why do you ask me about walking you through the cross compilation procedure?
<wpwrak>
it's not nice at all that cross-compilation gets tied to the guts of the distro build process like this. granted, openwrt is less suffering than, say, OE, but still ...
<wolfspraul>
how/where did you get the cross compiler?
<wolfspraul>
wpwrak: actually OpenWrt is able to generate nice SDKs and 'ImageBuilder' including everything you need to get started
<wolfspraul>
we just haven't foudn the discipline yet to regularly publish these things, and documentation for how to use them
<nitin_gupta>
ok
<nitin_gupta>
dont worry I will put all my findings on my blog for all NN users and developers
<nitin_gupta>
the only thing left with me is GUI based app .
<xiangfu>
wpwrak: by reading Bas and your email about dpkg-shalips warning. I still don't know which is your decide ?  (sorry for my bad English)
<xiangfu>
wpwrak: I think about the Debian package I just ignore those warning.
<wpwrak>
xiangfu: ah, i haven't replied yet, sorry. i think just ignoring the warnings is okay for now.
<xiangfu>
wpwrak: ok.
<wpwrak>
xiangfu: fped isn't the sort of thing you'd run on a very constrained system anyway, so having a few unnecessary library dependencies isn't too bad. (besides, everyone else probably has them too ;-)
<xiangfu>
wpwrak: ok.
<wpwrak>
xiangfu: and it seems a clean solution to the problem is something distribution makers, whoever maintains pkg-config, and the binutils guys will have to figure out. i guess that may take a while :)
<xiangfu>
wpwrak: after add "-Wl,--as-needed" to Makefile line 40 : CFLGAS... then recompile the package. I still got those warning. if there something wrong? I think I add it to a correct line.
<wpwrak>
when linking, CFLAGS aren't used :) you could either introduce LDFLAGS or just add it to the "fped:" rule directly
<wpwrak>
actually ... let me add LDFLAGS. that doesn't hurt.
<wpwrak>
done. r5986
<xiangfu>
wpwrak: thanks. :)
<xiangfu>
wpwrak: git svn rebase ing...  then create a new debian package with 5986.
<wpwrak>
it's not a change you need to push if you don't want to. the result is exactly the same as in the previous revision.
<wpwrak>
it's now just a little easier to add linker flags.
<wpwrak>
ah, if you want to, you can now of course override LDFLAGS in the package-making script. it's a little dangerous because LDFLAGS may be non-empty in the future, but for now, that would be an easy way to add -Wl,--as-needed to the package build process.
<xiangfu>
wpwrak: yes. I just want sync to upstream since I already know there is a commit. I think I will take 5986 as a TAG now.
<wpwrak>
alright
<xiangfu>
wpwrak: I want learn more hardware stuff. Can you recommend some books for me. thanks.
<xiangfu>
wpwrak: I want understand more about 'clock' 'bus' etc.
<xiangfu>
wpwrak: thanks.
<wpwrak>
most of the time, the best book is life ;-) there are lots of very specialized things you need to know, and the general books usually don't cover them. however, there are a few useful ones ... lemme look them up ...
<wpwrak>
for a general introduction, "Designing Embedded Hardware" by John Catoulis (O'Reilly) isn't too bad
<wpwrak>
then there's "The Circuit Designer's Companion" by Tim Williams (Elsevier). it's about electronics in general and at a slightly more advanced level. it tells you want to look for to make sure your circuits actually work in real life, not only on paper.
<xiangfu>
wpwrak: very thanks. (first try to find this book in China :)
<wpwrak>
yeah, that's the two i would recommend. there are more detailed books on electronics and some of the theoretical stuff, but i haven't found one that's really an overall big improvement over what those two have. sometimes the more detailed books have better material on some very specific problem, but that's usually a matter of luck.
<wpwrak>
they're pretty well-globalized: i got the o'reilly in india and the other in taiwan :)
<xiangfu>
stock exhausted in amazon.cn
<qbject>
Morning everyone.
<qbject>
Wolfspraul: are there nonfunctional bnns out there somewhere available to someone intersted in doing some mechanical reverse-engineering?
<wpwrak>
up next on "does it blend ?" the ben nanoparticles ;-)
<wolfspraul>
no right now I don't have anything. even finding the parts for Werner took a bit of time, and some are still missing.
<wolfspraul>
I think tuxbrain has 3 or 4 returned devices, maybe they could be used, but give me a bit of time.
<wolfspraul>
I will definitely remember your request and we can do something if you are interested.
<qbject>
Wolfspraul: I'm well aware of Werner's good work. My interest is designing a housing which can be programmed by hand or even be made on manual equipment, rather than contouring or injection-molding.
<qbject>
Thanks! If nothing comes up I'll likely buy a spare from djbclark, but I appreciate you keeping an ear open.
<wpwrak>
qbject: (nanoparticles) "mechanical reverse-engineering" has a bit of that sound :)
<wpwrak>
qbject: maybe ask on the list of there's anyone not too far from you with a broken one ?
<wpwrak>
s/of/if/
<qbject>
Ohhh. I see. "Yeah, we'll just feed it to the gray goo and see what comes out."
<rafa>
wolfspraul: let me check.. I should, if no I get it easy ;)
<qwebirc35353>
ok
<wolfspraul>
need your help a litte...
<wolfspraul>
I also need a nice line about the latest Jlime status
<wolfspraul>
and at the bottom under 'plans for the future' I want to say something about the Jlime/OpenWrt dual-boot plan we have now
<wolfspraul>
there is still a lot of work to make it a reality, so not sure what exactly we want to say about it, or who
<wolfspraul>
rafa: the latest Jlime beta can still play mp3, right?
<rafa>
wolfspraul: Okey, no problem, I will upload the screenshot and also I will write the status thing
<wolfspraul>
yes, great
<wpwrak>
hmm, debian needs a very recent u-boot. how come ?
<qwebirc35353>
rafa: could did you find something
<wolfspraul>
and we do have to fully eradicate mp3, at least for anything we are talking about and linking to from the qi servers
<rafa>
wolfspraul: well, the latest Jlime beta could play mp3, but no with gmu.. and we have not said nothing that it can.. it is just mplayer which was built with many codecs.. But well, I have not seen people playing mp3 with muffinman because we never said that mplayer is okey for that :)
<qwebirc35353>
wpwrak: I do not know why, but I did it
<wpwrak>
(trying to see if there's a clue why so many people end up with bricked NNs after trying to install debian)
<rafa>
wolfspraul: But, we already were talking to make a beta release without those mp3/mp4 problems inside
<wpwrak>
qwebirc35353: does your NN still boot or has it joined the ranks of the bricked-by-debian ? :)
<wolfspraul>
rafa: that is not enough. the patent owners are not stupid and the technicians they have on staff will have an easy time demoing mp3 playing to their lawyers...
<wolfspraul>
rafa: maybe we want to postpone the Jlime news to the 12/1 community news then?
<wolfspraul>
11/1 is overloaded anyway
<qwebirc35353>
wpwrak: my NN still boots openwrt, but I can not boot debian off the SD
<rafa>
wolfspraul: yes, I know. So as we already discussed we (I) will make a beta4 version for qi/resellers without patents problems
<wolfspraul>
yes, I think in 12/1 we can make a bigger Jlime news section, I like that better
<wolfspraul>
what do you think?
<wolfspraul>
if you look at the 11/1 news, you could fill an average tech magazine with that content already... :-)
<rafa>
wolfspraul: yes, I agree, because that was my idea : to release beta4 with a version without patent problems
<wolfspraul>
great!
<wolfspraul>
then let's do this
<wolfspraul>
I move the jlime snippets from 11/1 to 12/1
<rafa>
okey, great
<wolfspraul>
when you have a beta4 screenshot (right after boot), upload it into the wiki and embed in the 12/1 news
<wolfspraul>
just fill in whatever you want to say in 12/1, it's a wiki...
<wpwrak>
wolfspraul: (tech magazine) that's why you need an 11/18 ;-)
<qwebirc35353>
Just out in the open, I wonder if anyone has been SUCCESSFULLY able to use debian
<rafa>
wolfspraul: okey, I will.
<rafa>
qwebirc35353: sorry, let me check. Which bootloader do you have?
<wpwrak>
wolfspraul: remember the old c't ? monthly and the size of a telephone book. then they switched to twice a month. a good example to copy :)
<rafa>
qwebirc35353: you know that=
<rafa>
?
<qwebirc35353>
thats ok, I understand you guys are busy
<qwebirc35353>
let me get that information
<wpwrak>
grrr. 10/18. that 11 keeps on confusing me :-(
<wolfspraul>
wpwrak: it's too much work on my end. I'd rather do bi-monthly even.
<wolfspraul>
I also need to spend time on getting people to join, that's more important than me doing this or that.
<qwebirc35353>
this is the bootloader that I am using openwrt-xburst-qi_lb60-u-boot.bin
<wolfspraul>
and I need a lot of time to spread our news link to people, because the problem of most news is that they are not read by anybody :-)
<wolfspraul>
but I agree 11/1 is too much so I already moved some to 12/1, maybe will more more
<wpwrak>
wolfspraul: (no time) maybe try again to outsource it then ?
<wolfspraul>
I enjoy, it also forces me to look at what's going on.
<wolfspraul>
for example I am currently git cloning Takeshi Matuya's Linux on LM32 tree :-)
<wolfspraul>
Matsuya
<wolfspraul>
I cannot always just point people to that URL but I actually don't know at all what is going on...
<wolfspraul>
wpwrak: did you see the 11/1 news? they are getting in shape :-)
<wpwrak>
wolfspraul: (enjoy) yes, but if you can't keep up with the news, something's wrong
<rafa>
wpwrak: the debian wiki page at qi says that you should update just uboot.. if you do that then maybe you break the rest of nand?.. No sure, but I need to nerase the whole nand when flashing stuff, then flash uboot, kernel and nand rootfs.
<wpwrak>
wolfspraul: when will you close 11/1 ?
<wolfspraul>
SIE is crazy short on facts, I have to dig out some things.
<qwebirc35353>
wpwrak: so people have brick their NN from flashing debian?
<wolfspraul>
these guys are just not talking... :-)
<wpwrak>
rafa: hmm, that would be a candidate
<rafa>
qwebirc35353: that looks like a proper uboot. What did you get with debian?. I mean... which are the symptoms?
<wpwrak>
qwebirc35353: whenever someone shows up here with a bricked NN, it's debian. not sure if there are so many people trying debian that this is just the normal rate of mishap or if something's wrong there
<qwebirc35353>
rafa: well when I stick the sd card and press M will powering on, it says file system not found
<rafa>
qwebirc35353: okey.. I understand that you did an ext2 filesystem on first partition on sd right?
<qwebirc35353>
wpwrak: well I assume if one person did it that it could be atleast done once
<qwebirc35353>
which I have yet to have done yet
<rafa>
qwebirc35353: did you install debian from openwrt or from your pc?
<rafa>
qwebirc35353: how big is your  SD? how big is your first partition?
<rafa>
qwebirc35353: now you have a couple of question that you need to reply :)
<wpwrak>
rafa: a test would be to flash u-boot, then change something trivial (such that it doesn't break, maybe some progress message) and flash again
<qwebirc35353>
I did have an ext filesystem put it was not the first partition
<wpwrak>
rafa: if you get the new, all is well, if you get  old | new  then we know what's happening
<rafa>
qwebirc35353: then there is your problem
<qwebirc35353>
rafa I installed it from my pc
<rafa>
qwebirc35353: you need ext2 on first partition
<qwebirc35353>
my SD is 16GB
<wpwrak>
rafa: (flash without prior erase, like the wiki page suggests)
<rafa>
qwebirc35353: uboot just reads the first partition as ext2
<rafa>
qwebirc35353: so if you want debian there.. you need to creat the ext2 fs on first partition on your sd
<wolfspraul>
qwebirc35353: that's a bug in u-boot
<wolfspraul>
u-boot's ext2 handling is buggy for large SD cards or large partitions/filesystems
<wolfspraul>
I have never seen it with cards up to 2 gb
<rafa>
qwebirc35353: and the SD looks big as well.. like wolfspraul is telling
<qwebirc35353>
rafa: when I put the SD back into my computer the file system was not there anymore
<wolfspraul>
with 4 and 8 it's hit and miss, all my 16 cards show the bug
<wolfspraul>
xiangfu is on it
<wpwrak>
wolfspraul: that may be a nice project for carlos' students: make an sd card simulator (SD implemented in the SIE's FPGA) that accesses a real file for the data
<rafa>
qwebirc35353: if you can get a smaller sd I would advise you to try to create an ext2 fs on first partition.. and if you can try to make it no so big (2gb should be okey)
<wolfspraul>
qwebirc35353: you can try a small partition on the big card, say 1 gb or so
<qwebirc35353>
the lowest SD card I have is a 4GB
<wpwrak>
wolfspraul: that way, it may be easier to debug such problems
<wolfspraul>
try with a small partition, even on the 16gb card, and let us know
<rafa>
qwebirc35353: that should be okey.. try to make a first ext2 partitiont there and  put debian
<wolfspraul>
it's a simple little software bug, but annoying
<wolfspraul>
when you have beta4, screenshot, dual-booting plans etc. just update the page
<qwebirc35353>
wolfspraul: ok I will try a smaller partion
<rafa>
wpwrak: uboot flashing test.. yeah.. that should show something I guess
<rafa>
wolfspraul: great.. thanks for that.. I will fill the details when something is ready
<rafa>
qwebirc35353: remember that you should do the ext2 partition as first partition
<wpwrak>
wolfspraul: you may want to consider making an end-of-the-year update, too. first of all, you may be away/busy around 1/1, so you avoid piling up too much, and second, many people will have time to play over the holidays, so there may be a larger amount of news early in january
<qwebirc35353>
rafa: is there a way to do this via fdisk /dev/sdb1 method as posted on the site
<qwebirc35353>
or should I just do the partion via gpart on my linux machine?
<wpwrak>
qwebirc35353: fdisk /dev/sdb  ! not /dev/sdb1
<rafa>
qwebirc35353: mm? what do you mean?.. you should run fdisk /dev/sdb
<rafa>
qwebirc35353: and you can do that on you linux machine (PC)
<rafa>
your
<qwebirc35353>
wpwrak: yes, that was a typo, sorry
<wpwrak>
qwebirc35353: (typo) darn. i was hoping to have found the problem :)
<qwebirc35353>
lol, thanks for trying
<rafa>
qwebirc35353: something important that you maybe already know.. but you need to mount before "tar xvzf debian rootfs" and then UMOUNT the thing
<qwebirc35353>
ok
<wolfspraul>
scary to see us juggling over /dev/sdwhatever here. if you are root, the disk you are booting from may only be a character away...
<wpwrak>
wolfspraul: compared to learning how to make nitroglycerine, this learning process is quite gentle :)
<qi-bot>
[commit] Werner Almesberger: Improve scalability by splitting the distributor cache. Additional cleanup and http://qi-hw.com/p/eda-tools/57fc0bd
<qi-bot>
[commit] Werner Almesberger: boom/dist/dk/dk-catq.pl: category regexp was mis-designed and it had a typo. http://qi-hw.com/p/eda-tools/310e886
<qi-bot>
[commit] Werner Almesberger: Removed knowledge about distributors from manufacturers and (partially) from http://qi-hw.com/p/eda-tools/83d4e70