Development env *on* the neo?

2007-12-04 Thread Lars Hallberg
The toolchain is great news, but I rather avoid cross compiling 
completely and build native on the neo.


Building small apps should not be too slow on the neo. And having the 
build env with You on that 9 hour train trip is *good*.


As most development and testing can be performed on the desktop You 
would only need to check out and build on the neo maybe every second 
day. Would not hurt even if the build take some time!


But You don't want to build more than necessary. I have seen gcc, g++, 
make and stuff available for ipkg - but are there any dev versions of 
the libs available? And would it be possible to have stripped libs on 
the neo and install dev libs (and dev env) on the memory card?


/LaH


___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Development env *on* the neo?

2007-12-04 Thread Jay Vaughan
The toolchain is great news, but I rather avoid cross compiling  
completely and build native on the neo.




i do a lot of python work onboard the neo these days .. i have to  
say, its my favourite python machine right now.

;
--
Jay Vaughan





___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Development env *on* the neo?

2007-12-04 Thread Shawn Rutledge
On Dec 4, 2007 2:56 PM, Lars Hallberg [EMAIL PROTECTED] wrote:
 But You don't want to build more than necessary. I have seen gcc, g++,
 make and stuff available for ipkg - but are there any dev versions of
 the libs available? And would it be possible to have stripped libs on
 the neo and install dev libs (and dev env) on the memory card?

Yes all the ipkg's you need exist, but there isn't enough flash to
install them all.  What I did is reformat a MicroSD card to ext2, cp
-a /usr to the card, then modify /etc/fstab to automatically mount the
card on /usr at boot.  Then install task-base-dev and whatever else
you need.  The regular image is not modified much (since nearly all
the new files are installed under /usr), so you can still run without
that card, but if you have it mounted you have all the tools.  (I
suppose it could also be done with unionfs, that would save some
space.)  And if you reflash your phone you just need to recopy /usr to
the card (some stuff will be overwritten, but no need to re-install
all the dev packages if they have not changed) and make the
modification to fstab again.

I also have /usr/root as a second home directory so there is some
space for source trees.

I was able to compile Chicken Scheme that way, right on the phone (it
took hours), and am working (slowly) on my Display Scheme GUI.
Chicken has a Scheme-to-C compiler, so you need gcc to get compiled
binaries, and doing that with a cross compiler is even more trouble
than cross-compiling usually is; which is why I wanted to do it on the
phone.  But somebody else managed to cross-compile Chicken plus some
extensions...  someday if nobody else gets around to it, I will try to
generate the bitbake recipes for that.

I managed to compile nvi (because the busybox vi kinda sucks and vim
is kinda big).  I guess in theory you could try emacs if you're into
that.  :-)

I tried to get an svn client on the phone but did not succeed.  That
would be really useful...

___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Development env *on* the neo?

2007-12-04 Thread Lars Hallberg

Shawn Rutledge skrev:

Yes all the ipkg's you need exist, but there isn't enough flash to
install them all.  What I did is reformat a MicroSD card to ext2, cp
-a /usr to the card, then modify /etc/fstab to automatically mount the
card on /usr at boot.  Then install task-base-dev and whatever else
you need.  The regular image is not modified much (since nearly all
the new files are installed under /usr), so you can still run without
that card, but if you have it mounted you have all the tools.


Thanks, exactly what I was hoping for. Is all in the default 
repository's or did You have to hunt it down?


My plan was to mount the sd card as /dev and use 'ipkg -d /dev' to 
install all dev related. But I'm not sure about all needed to tie it all 
up (PATH, lsconfig etc).


Will try Your way insted, it's proven and I'm not really going to switch 
sd-card (unless to get a bigger one, but that uncommon enough so a 
little extra work is no problem).


Now off to flash 2007.11 and getting on to it.

Thanks again /LaH


___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Development env *on* the neo?

2007-12-04 Thread Shawn Rutledge
On Dec 4, 2007 7:13 PM, Lars Hallberg [EMAIL PROTECTED] wrote:
 Thanks, exactly what I was hoping for. Is all in the default
 repository's or did You have to hunt it down?

Just do ipkg install like usual (assuming you have set things up so
that the phone has 'net access, like via NAT over USB)

 My plan was to mount the sd card as /dev and use 'ipkg -d /dev' to
 install all dev related.

/dev has a reserved meaning (device nodes).

 But I'm not sure about all needed to tie it all
 up (PATH, lsconfig etc).

Maybe ipkg -d takes care of some of the work for you, but I haven't
tried lately (seems like something was not quite right when I tried it
on the zaurus a while back).

___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Development env *on* the neo?

2007-12-04 Thread Lars Hallberg

Shawn Rutledge skrev:

On Dec 4, 2007 7:13 PM, Lars Hallberg [EMAIL PROTECTED] wrote:

Thanks, exactly what I was hoping for. Is all in the default
repository's or did You have to hunt it down?


Just do ipkg install like usual (assuming you have set things up so
that the phone has 'net access, like via NAT over USB)


great!

But I hit some kind of brick wall...

The dfu-util that comes with 2007-11 cant run om my ubuntu 7.10 (gutsy) 
system (seams not to be recognized as a binary at all. MD5 sum is OK, 
and yes, execute rights is set). The only other I found is from April, 
it runs but feels too old.


Specially as the README tell me to flash uboot (my is from May). Have no 
debugboard so I really not willing to take extra chances on that. 
Reports of usb trouble in gutsy does not make it feel better :-/


BTW: readme say 'use August uboot' but ther is a newer in 2007-11 dir 
itself. Is that less stable? Maybe I should wait for it to be stable, 
not having a debugboard I realy want to flash uboot as few times as ever 
possibly.


Might later attempt putting kernel stuff on hold and upgrade with ipkg. 
If it renders phone unusable (until reflash) it's OK. But I really want 
a working 'pda' for developing.



My plan was to mount the sd card as /dev and use 'ipkg -d /dev' to
install all dev related.


/dev has a reserved meaning (device nodes).


Doh, t late at night... should *realy* not attempt flashing uboot 
now :-)



But I'm not sure about all needed to tie it all
up (PATH, lsconfig etc).


Maybe ipkg -d takes care of some of the work for you, but I haven't
tried lately (seems like something was not quite right when I tried it
on the zaurus a while back).


OK, Thanks for the info.

/LaH


___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Development env *on* the neo?

2007-12-04 Thread Joshua Layne
First, while I have done basically what you are talking about, I am now a
believer in cross compile environments, even with all their pain.  Several
years ago, I built roadmap-gtk2 on my h2200 ipaq because I couldn't then
get the cross compile environment set up.  It took over a day and locked
the system up more then once (it actually elapsed over 3 days).  The same
build takes about 15 minutes on my Epia MII 1.2GHz desktop (and that isn't
a _fast_ system - just quiet :)

Lars Hallberg wrote:
 Shawn Rutledge skrev:
 On Dec 4, 2007 7:13 PM, Lars Hallberg [EMAIL PROTECTED] wrote:

 My plan was to mount the sd card as /dev and use 'ipkg -d /dev' to
 install all dev related.
 But I'm not sure about all needed to tie it all
 up (PATH, lsconfig etc).

 Maybe ipkg -d takes care of some of the work for you, but I haven't
 tried lately (seems like something was not quite right when I tried it
 on the zaurus a while back).

ipkg-link (from ipkg-utils) does what you want (and is what I used).  I
don't know how available it is in the current images - you may need to
build it yourself.  It can bork your system a bit if you don't know what
you are doing (your system becomes dependent on that SD card, basically)
but when set up properly - it allows you to do all this stuff pretty
seemlessly.

ipkg -d by itself does nothing except install the package to that location
- if it is a library or anything else that needs to be found in a system
path, you either have to set up all the symlinks manually, or you have to
use ipkg-link.

you can install everything you want to the card (provided they are not
dependent on each other) and then run 'ipkg-link $card' (whatever your card
is) and it will link everything found on the card.

YMMV, you should be able to find packages for most if not all of what you
need in the way of libraries, compilers, etc...

Rgds,
josh



___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Development env *on* the neo?

2007-12-04 Thread Jay Vaughan
My plan was to mount the sd card as /dev and use 'ipkg -d /dev' to  
install all dev related. But I'm not sure about all needed to tie  
it all up (PATH, lsconfig etc).




lame path name.  use /hak instead.

(or set your phone up to boot from SD and then just install  
everything you need like normal ..)


;
--
Jay Vaughan





___
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community