[Scratchbox-users] porting binaries to target NFS Root Filesystem

Kelvin Xu kyoxu at hotmail.com
Tue Jan 2 05:08:31 EET 2007


Hi,

What you meant is to use the scratchbox directory as the RFS of the target 
directly using NFS? And then populate the dev directory and copying over 
necessary files for the kernel to work properly such as busybox, kernel 
modules and headers?

Regards,
Kelvin


>From: "Kalle Vahlman" <kalle.vahlman at gmail.com>
>Reply-To: zuh at iki.fi, scratchbox-users at lists.scratchbox.org
>To: scratchbox-users at lists.scratchbox.org
>Subject: Re: [Scratchbox-users] porting binaries to target NFS Root 
>Filesystem
>Date: Mon, 1 Jan 2007 23:33:35 +0200
>
>2007/1/1, Kelvin Xu <kyoxu at hotmail.com>:
>>Dear all,
>>
>>I have some questions regarding the transferring of binaries compiled 
>>using
>>ScratchBox.
>>1) In order to test the complied binaries on the target board, all i need 
>>to
>>do is copy the files from the ScratchBox Target directory to the 
>>respective
>>directories in my RFS of my target board? Do i need change any links,
>>whatsoever?
>
>No, the target directory is ready to go as-is[1]. The only things that
>have differences (apart from purely virtual filesystems like proc and
>sysfs) are /tmp and /dev. Both are mounted from the host computer.
>Now, tmp is not a broblem (as you can't rely on it anyway), but dev
>has some implications.
>
>>2) Is there anyway to direct Scratchbox to place all the complied binaries
>>directly to my target board RFS which is mounted on the host system using
>>NFS?
>
>A useful trick is to do that the other way (mount the sb target
>directory directly to the device), but as said, this needs
>targets/target_name/dev to be populated by hand. I guess you could
>mount the RFS over the scratchbox target dir, but it will also mean
>that anything installed goes there...
>
>If the packages are nice and support setting DESTDIR during install,
>one might also do this by mounting the RFS somewhere accessible inside
>the sb target and do a 'make install DESTDIR=/tmp/foo', but this has
>the same problem as above.
>
>The usual way to solve it is to use a script that generates the rootfs
>(ie. strips the cruft away).
>
>--
>Kalle Vahlman, zuh at iki.fi
>Powered by http://movial.fi
>Interesting stuff at http://syslog.movial.fi
>_______________________________________________
>Scratchbox-users mailing list
>Scratchbox-users at lists.scratchbox.org
>http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

_________________________________________________________________
Find singles online in your area with MSN Dating and Match.com! 
http://cp.intl.match.com/eng/msn/msnsg/wbc/wbc.html



More information about the Scratchbox-users mailing list