From: Peter Greis <peter_greis@ya...> - 2006-03-08 09:39:42
>> More to the point: I added tinyx to the build and
>> pushed the root_fs over 4MB. Is there an easy way
>> build software so I can put it on a CF card (or NFS
>> mount as /usr/local) ? Likewise, how does one
>> package without having to rebuild everything ?
>You can extract the bits you want from
>copy them to a CF card or whatnot. With the new
>you can also "make tarball" which will just tar up
>root instead of creating a JFFS2 image thereof.you
can >then untar
>that tarball onto your CF card if you want.
Sure, but at that point the package is installed. How
can the install directory for individual packages be
changed ? For example, if the install directory for
tinyx is /usr/local, then it would be trivial to tar
it off to somewhere else. I am also assuming here that
once this is done I can remove /usr/local from the
root and remake the jffs2 image.
Ideally I would like to nfs mount a /usr/local for
development (on the gumstix), then use a CF card for
/usr/local once I have everything working.
>To remove one thing without rebuilding everything,
turn off the thing
>you don't want in the buildroot config, then rm -rf
>root, then make. the buildroot will re-copy all the
>from the various build_arm_nofpu/* directories into
>root again, and of course it will leave out the
package you turned off.
FWIW, I have 2.6.15 gumstix connected to SuSE
2.6.13-15.8-default via usbnet, in case anyone is
interest. Also - the usbnet-copy-to-tmp-and-reflash
worked like a charm. With a few spare minutes I will
add this to the wiki.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
From: Dave Hylands <dhylands@gm...> - 2006-03-08 14:54:57
> Sure, but at that point the package is installed. How
> can the install directory for individual packages be
> changed ? For example, if the install directory for
> tinyx is /usr/local, then it would be trivial to tar
> it off to somewhere else. I am also assuming here that
> once this is done I can remove /usr/local from the
> root and remake the jffs2 image.
Unfortunately, it varires on a package by package basis. But,
bsaically look at the .mk file for the package in question. The
variable TARGET_DIR points to gumstix-buildroot/build_arm_nofpu/root
The install directories are typically relative to that. So for tinyx, I see=
plus a few other references. You may want to introduce a new variable,
say TARGET_OPT_DIR, and change all occurences of TARGET_DIR to
TARGET_OPT_DIR and have TARGET_OPT_DIR be $(TARGET_DIR)/opt (thus
making /opt be the mount point).
You'd probably need to move opt out of root before building the jffs2 image=
Vancouver, BC, Canada