View previous topic :: View next topic |
Author |
Message |
coRpTitan n00b
Joined: 21 Aug 2005 Posts: 55 Location: Czech Republic, Brno
|
Posted: Wed Feb 15, 2012 12:14 pm Post subject: ARM: change of CHOST in /etc/make.conf |
|
|
Hello,
I'm preparing Gentoo OS for new device(will be based on arm1176jzf-s CPU).
I've created QEMU with this CPU:
Code: | qemu-system-arm -kernel gentoo_kernel -M versatilepb -cpu arm1176 -hda rootfs.ext4 -hdb swap.swap -m 256 -append "root=/dev/sda loglevel=7" -serial stdio |
Then I installed following stage3: armv5tel. I know that my CPU is armv6, but when I used armv6 stage3 machine didn't booted up. So I decided to use stage3 for armv5tel and change CHOST as well as CLAGS to compile it for my CPU.
My problem is that when I change some values in /etc/make.conf and run emerge --info it still shows me old values. When I do the same on Gentoo machine where I have i686 and put into /etc/make.conf for example i999 and run emerge --info then it will print me new value(999) for CHOST.
Is there any specific procedure how I can change CHOST on ARM architecture? Do I need to execute some special command to apply changes I made to /etc/make.conf on ARM?
P.S.: I was following: http://www.gentoo.org/doc/en/change-chost.xml and there is only mentioned to edit /etc/make.conf and then re-compile gcc,binutils,glibc.
Thank you for help. _________________ Please don't forget to put [SOLVED] into your topic if problem is resolved. |
|
Back to top |
|
|
jannis Guru
Joined: 05 Dec 2004 Posts: 340 Location: Germany / Bavaria / Aschaffenburg
|
Posted: Mon Feb 27, 2012 10:11 am Post subject: |
|
|
Let me guess: Raspberry Pi? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8721 Location: ~Brussels - Belgique
|
Posted: Mon Feb 27, 2012 11:20 am Post subject: |
|
|
Hello,
The CHOST change is only valable for compatible architectures (e.g. switching from a i386 to a i686, or changing the vendor tag). I don't know if it would work for ARM architectures.
IMHO the best way is to create a new cross-compile environment and cross-build a simple chroot. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
fikiz Apprentice
Joined: 07 Mar 2005 Posts: 282 Location: Italy
|
Posted: Tue Feb 28, 2012 11:27 am Post subject: |
|
|
coRpTitan,
may I ask you how did you compile the kernel for qemu?
I was able to compile a kernel chroot-ing into a gentoo stage3-armv4tl following this guide:
http://www.gentoo.org/proj/en/base/embedded/handbook/?part=1&chap=5
But qemu-system-arm won't boot my kernel, and I'm thinking I've chosen some wrong kernel options.
Could you show me your .config file?
thanks. |
|
Back to top |
|
|
coRpTitan n00b
Joined: 21 Aug 2005 Posts: 55 Location: Czech Republic, Brno
|
Posted: Sat Mar 10, 2012 8:06 am Post subject: |
|
|
jannis wrote: | Let me guess: Raspberry Pi? |
Correct :]
fikiz:
Basically I've been following this example: http://www.cnx-software.com/2011/10/18/raspberry-pi-emulator-in-ubuntu-with-qemu/
Differences were: I used emerge to get qemu, not downloading sources manually and install.
Kernel config is here: https://data.tntwrk.info/rasp_config
If you want to use this one, be sure you will modify at least CONFIG_CROSS_COMPILE - this is where I have stored my cross compile tools. _________________ Please don't forget to put [SOLVED] into your topic if problem is resolved. |
|
Back to top |
|
|
jannis Guru
Joined: 05 Dec 2004 Posts: 340 Location: Germany / Bavaria / Aschaffenburg
|
|
Back to top |
|
|
|