maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Scratchbox under 64 bit Linux alternative (https://talk.maemo.org/showthread.php?t=23937)

tz1 2008-09-28 18:00

Scratchbox under 64 bit Linux alternative
 
I have dual-boot 32 bit and 64 bit Ubuntu, but usually boot into 64 bit. I am running 64 bit but have scratchbox working (except for kernel compiles which requries a "mmap" program I get permission denied).

First, I have /dev/sda2 as 32 bit Ubuntu, /dev/sda3 as /home, and /dev/sda4 as 64 bit Ubuntu as the default.

/dev/sda2 has scratchbox installed and working and I was using that.

So, booting into 64 bit:

I mount the 32 bit linux as /media/UBUNTU on bootup.

I switch to root (sudo -s).

Then I mount the duplicate proc in the right places using "mount -a -t proc" as root.

After that I "chroot /media/UBUNTU", then run "/etc/init.d/scratchbox-core start"

I do "su myaccount", then "scratchbox" and it works.

apt-get works. So does all the build stuff except the kernel as I've noted (and which I'm working on tracking down).

This is my mtab:

Code:

/dev/sda2 /media/UBUNTU ext3 rw,relatime,errors=remount-ro 0 0

proc            /media/UBUNTU/proc          proc    defaults        0      0
proc            /media/UBUNTU/scratchbox/users/tz/proc          proc    defaults        0      0


Bundyo 2008-09-28 20:14

Re: Scratchbox under 64 bit Linux alternative
 
There's no need for 32bit chroot, scratchbox works ok with the normal 32bit libs installed.

Jaffa 2008-09-29 12:00

Re: Scratchbox under 64 bit Linux alternative
 
This previous discussion on using ia32-libs, setarch and no chroot may help:

http://www.internettablettalk.com/fo...ad.php?t=22934

lorelei 2008-09-29 12:39

Re: Scratchbox under 64 bit Linux alternative
 
I ended with running scratchbox into a 32-bit virtual machine with VirtualBox ... not exactly ideal, but I like this solution...

allnameswereout 2008-09-29 16:16

Re: Scratchbox under 64 bit Linux alternative
 
Quote:

Originally Posted by lorelei (Post 228345)
I ended with running scratchbox into a 32-bit virtual machine with VirtualBox ... not exactly ideal, but I like this solution...

This is what I'm using as well, but VirtualBox doesn't support KVM (not even VBox 2.0.2). On other machines I use libvirt + KVM + frontend (RedHat's open source utilities); these work well. I'm not satisfied with the VBox solution for one because of the overhead, and because I _have_ to unload KVM kmods. I'm going to try Jaffa's solution. A VM does allow one to easily transfer it to an other computer, clone the image, which are advantages. I believe VMware 64 bit does support HVM.

tz1 2008-09-30 15:16

Re: Scratchbox under 64 bit Linux alternative
 
The alternative for installing on 64 bit (at least with the scripts) fails. Even with setarch i386, apt-get update insists on looking for arm64 binaries in binary-arm64 directories and can't find them.

kapitain 2008-10-04 14:27

Re: Scratchbox under 64 bit Linux alternative
 
My solution was vmware. I run 32 bit ubuntu hardy on vmware and things work quite smoothly. Finally I have build environment to play with. Started by compiling xbill :-)

http://asd.fi/~petri/romu/xbill_on_maemo_small.png

allnameswereout 2008-10-04 20:28

Re: Scratchbox under 64 bit Linux alternative
 
Quote:

Originally Posted by tz1 (Post 228865)
The alternative for installing on 64 bit (at least with the scripts) fails. Even with setarch i386, apt-get update insists on looking for arm64 binaries in binary-arm64 directories and can't find them.

Yes, true. The problem lies not in setarch though. Lets discuss it in the relevant thread... ^^


All times are GMT. The time now is 04:39.

vBulletin® Version 3.8.8