Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

How to rice RPi's ARM1176JZF-S

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
Author
Message
necktwi
Apprentice
Apprentice
Posts: 171
Joined: Fri Aug 24, 2018 1:21 pm

How to rice RPi's ARM1176JZF-S

  • Quote

Post by necktwi » Sat Nov 03, 2018 4:48 pm

How to rice Broadcom BCM2835 @700MHz ARM11 ARM1176JZF-S

currently I've set CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
Top
erm67
l33t
l33t
User avatar
Posts: 653
Joined: Tue Nov 01, 2005 5:31 pm
Location: EU
Contact:
Contact erm67
Website

  • Quote

Post by erm67 » Sun Nov 04, 2018 10:43 pm

You can try

Code: Select all

cat /proc/cpuinfo 
to see the CPU features

and, since you have a recent gcc,

Code: Select all

gcc -march=native -Q --help=target -v - </dev/null

Code: Select all

gcc -mcpu=native -Q --help=target -v - </dev/null
to see what options are detected by gcc and maybe improve them, detection still isn't perfect on arm.

Usually using -mcpu is more powerful than using -march
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Top
Etal
Veteran
Veteran
User avatar
Posts: 1932
Joined: Fri Jul 15, 2005 3:01 pm

  • Quote

Post by Etal » Mon Nov 05, 2018 1:00 am

You can do:

Code: Select all

-mcpu=arm1176jzf-s
“And even in authoritarian countries, information networks are helping people discover new facts and making governments more accountable.”– Hillary Clinton, Jan. 21, 2010
Top
necktwi
Apprentice
Apprentice
Posts: 171
Joined: Fri Aug 24, 2018 1:21 pm

  • Quote

Post by necktwi » Wed Nov 07, 2018 12:52 pm

If i stick in -mcpu=arm1176jzf-s in CFLAGS then emerge says
[bug=]-mcpu=arm1176jzf-s conflicts with -march=armv6j[/bug]

Code: Select all

gcc -march=native -Q --help=target -v - </dev/null
says -march=armv6zk

to rice, should I set -mcpu=arm1176jz-s and -march=armv6zk? or is it same as setting -march=native -mcpu=native or not mentioning -march and -mcpu defaults to native or rpi?

I understand that -mcpu and -march are necessary on crossdev to rice.
Top
erm67
l33t
l33t
User avatar
Posts: 653
Joined: Tue Nov 01, 2005 5:31 pm
Location: EU
Contact:
Contact erm67
Website

  • Quote

Post by erm67 » Wed Nov 07, 2018 8:06 pm

necktwi wrote:If i stick in -mcpu=arm1176jzf-s in CFLAGS then emerge says
[bug=]-mcpu=arm1176jzf-s conflicts with -march=armv6j[/bug]

Code: Select all

gcc -march=native -Q --help=target -v - </dev/null
says -march=armv6zk

to rice, should I set -mcpu=arm1176jz-s and -march=armv6zk? or is it same as setting -march=native -mcpu=native or not mentioning -march and -mcpu defaults to native or rpi?

I understand that -mcpu and -march are necessary on crossdev to rice.
try setting all 3, it shouldn't hurt

-mcpu=arm1176jz-s -march=armv6zk -mtune=arm1176jz-s

Hopefully gcc's native autodetection works for your cpu ...
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Top
necktwi
Apprentice
Apprentice
Posts: 171
Joined: Fri Aug 24, 2018 1:21 pm

  • Quote

Post by necktwi » Thu Nov 08, 2018 3:31 am

But my cpu is arm1176jzf-s, not arm1176jz-s. but

Code: Select all

gcc -mcpu=native -Q --help=target -v - </dev/null
says -mcpu=arm1176jz-s.

what should i use? arm1176jzf-s or arm1176jz-s?
Top
erm67
l33t
l33t
User avatar
Posts: 653
Joined: Tue Nov 01, 2005 5:31 pm
Location: EU
Contact:
Contact erm67
Website

  • Quote

Post by erm67 » Thu Nov 08, 2018 1:21 pm

Apparently the 'f' means the CPU has a math coprocessor (FPU), what is the output of
cat /proc/cpuinfo?

If fp or vfp are listed as feautures than probaly gcc is right.
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Top
necktwi
Apprentice
Apprentice
Posts: 171
Joined: Fri Aug 24, 2018 1:21 pm

  • Quote

Post by necktwi » Thu Nov 08, 2018 1:25 pm

Code: Select all

(RPi1B2):~ # cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2835
Revision        : 000e
Serial          : 00000000a674e968
so i should use -mcpu=arm1176jz-s as gcc mis-derived? though my processor is arm1176jzf-s?
Top
erm67
l33t
l33t
User avatar
Posts: 653
Joined: Tue Nov 01, 2005 5:31 pm
Location: EU
Contact:
Contact erm67
Website

  • Quote

Post by erm67 » Thu Nov 08, 2018 2:51 pm

I told you -march native isn't working correctly on ARM :lol: :lol: :lol:
Use the right one, unless of course -mcpu=arm1176jz-s+fp exists and is the same as arm1176jzf-s, gcc turns on most features by default
Ok boomer
True ignorance is not the absence of knowledge, but the refusal to acquire it.
Ab esse ad posse valet, a posse ad esse non valet consequentia

My fediverse account: @erm67@erm67.dynu.net
Top
Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy