From: G E. <gel...@gm...> - 2006-10-11 23:36:11
|
hi ken, thanks! very helpful. do your instructions essentially augment the gumstix's root file system with python and gcc (whatever else is in the rootfs.img on the mmc)? so, i can build my own kernel/buildroot and these commands just add python and gcc after boot. is that correct? then i access python via /rfs? greg On Oct 11, 2006, at 4:22 PM, ken staton wrote: > On 10/10/06, G Elliott <gel...@gm...> wrote: >> hi, >> >> i'm looking to put python on an old basix 400bt that only has a 4MB >> flash. currently, it seems python takes up about 7-8MB of my >> connex's memory, so there's no way it will fit on the basix. >> >> question: how difficult would it be to install python on an mmc card >> and have it run from there? how might one go about doing this? >> would it be possible to simply move the binaries and libraries? what >> would i need to move? > > Here is a mmc bundle that you can unzip on a mm card: > http://www.gumstix.com/~ken/development_systems/devsys_mmc_r1090.zip > > It has a gumstix-factory.script that loads a 2.6.17 kernel with > ext2 built in. > You'll need a 2.6.17 kernel on your gumstix for this to work since > its rootfs > at boot is the jffs2 copy in flash. The new kernel loop mounts an > ext2 image > that is pivot_root'ed. The image includes Python and gcc > > Make these changes to the root filesystem in flash: > > rm /etc/motd > > edit /etc/network/interfaces > remove or comment out these lines: > auto usb > auto eth0 > auto mwlan0 > > edit /etc/modules > add this line: > loop > > create a file named devsys.sh with this content: > > #!/bin/sh > mount /mnt/mmc > mount -t ext2 -o loop -o ro /mnt/mmc/rootfs.img /rfs > mount -t ramfs ramfs /rfs/mnt/oldroot > > wait > cd /rfs > /sbin/pivot_root . /rfs/mnt/oldroot > cd /root > /root/setup_ramfs.sh > > echo "development system is ready" > > > ======== end of devsys.sh ======== > > chmod +x devsys.sh > > mkdir /rfs > > start the development system: > > . ./devsys.sh > > > > I'll have a CF version of this soon (just requires a different > gumstix-factory.script) > and more detailed directions for how to build your own on the wiki > as soon as > I find the time. > > Regards, > Ken > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |