[Gta04-owner] Cross-compiling qtmoko-armhf

Hermann Schwärzler hermann.schwaerzler at chello.at
Tue Mar 5 14:21:18 CET 2013


Hello Radek

On 03/05/2013 12:05 PM, Radek Polak wrote:
[...]
> Hmm the gcc binary is now differently named, fixed this in git now:
[...]
> The check is to determined if we have toolchain installed. If not then
> finish_chroot_install.sh is launched - should be launched for the first
> time only.

OK. I see. I was under the impression (and am pretty sure now after
checking back) that .../usr/bin/arm-linux-gnueabi-gcc (or in the hf-case
.../usr/bin/arm-linux-gnueabihf-gcc-4.7) is only available in the chroot
after *running* finish_chroot_install.sh.
So the existence of .../usr/bin/arm-linux-gnueabi... does not indicate
that finish_chroot_install.sh is missing but that it wasn't run yet.
That's why I think you should use
[ ! -e ../qtmoko-chroot/finish_chroot_install.sh ]
in that particular if-clause.


>> And another "problem" I had: For making the instructions in your README
>> work I had to move the cloned git-repo to qtmoko-chroot/root/qte/qtmoko.
>> Is this there right way to do it or is there a better way to this?
> 
> Interesting - you should not need to copy the sources inside chroot -
> instead the script should do binded mounts in the chroot. So maybe there
> something failed. Maybe you started the chroot script from other
> directory? It must be exactly as the README says:
> sudo scripts/qtmoko-chroot-armhf.sh
> this creates for me following bind mount:
> /dev/sda1 on /home/radek/qte/qtmoko-chroot/root/qte type ext4
> (rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered)
> You can do mount to check if it's created for you too.

My real problem was that cdebootstrap threw an error (due to the
previously mentioned bug in my version of it). So the "until ... do"
loop in line 37 was endless and I had to cancel the script which in turn
lead to the bind-mounts not being done.
Now after fixing the script (using debootstrap) and rerunning it I
indeed see the mounts!

Thanks.
Hermann



More information about the Gta04-owner mailing list