Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ARM: change of CHOST in /etc/make.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
coRpTitan
n00b
n00b


Joined: 21 Aug 2005
Posts: 55
Location: Czech Republic, Brno

PostPosted: Wed Feb 15, 2012 12:14 pm    Post subject: ARM: change of CHOST in /etc/make.conf Reply with quote

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
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Mon Feb 27, 2012 10:11 am    Post subject: Reply with quote

Let me guess: Raspberry Pi?
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8721
Location: ~Brussels - Belgique

PostPosted: Mon Feb 27, 2012 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
fikiz
Apprentice
Apprentice


Joined: 07 Mar 2005
Posts: 282
Location: Italy

PostPosted: Tue Feb 28, 2012 11:27 am    Post subject: Reply with quote

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
View user's profile Send private message
coRpTitan
n00b
n00b


Joined: 21 Aug 2005
Posts: 55
Location: Czech Republic, Brno

PostPosted: Sat Mar 10, 2012 8:06 am    Post subject: Reply with quote

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
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Fri May 11, 2012 6:58 pm    Post subject: Reply with quote

I got mine today:
https://forums.gentoo.org/viewtopic-t-878755.html#p7035498
I'm using the gentoo userspace with the kernel shipped with the arch-image currently. I got my compiled kernel to run but ethernet-driver doesn't work ... :/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum