https://www.funtoo.org/api.php?action=feedcontributions&user=Necrose99&feedformat=atom
Funtoo - User contributions [en]
2024-03-28T13:44:43Z
User contributions
MediaWiki 1.36.2
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34722
Funtoo ARM64 CPU WIKI
2020-12-14T23:22:12Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
{{file|name=/etc/portage/make.conf|desc=My rpi4 make.conf file|body=<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
CFLAGS="${COMMON_FLAGS}"<br />
CXXFLAGS="${COMMON_FLAGS}"<br />
FCFLAGS="${COMMON_FLAGS}"<br />
FFLAGS="${COMMON_FLAGS}"<br />
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"<br />
}}<br />
<br />
''''''<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) with a few force use edits<br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
<br />
------------ template to swap --- edit more ltr --stash for now.<br />
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=<br />
# /etc/host.conf:<br />
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29<br />
}}<br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34721
Funtoo ARM64 CPU WIKI
2020-12-14T23:18:48Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
{{file|name=/etc/portage/make.conf|desc=My rpi4 make.conf file|body=<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
CFLAGS="${COMMON_FLAGS}"<br />
CXXFLAGS="${COMMON_FLAGS}"<br />
FCFLAGS="${COMMON_FLAGS}"<br />
FFLAGS="${COMMON_FLAGS}"<br />
#GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"<br />
}}<br />
<br />
''''''<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) with a few force use edits<br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
<br />
------------ template to swap --- edit more ltr --stash for now.<br />
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=<br />
# /etc/host.conf:<br />
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29<br />
}}<br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34720
Funtoo ARM64 CPU WIKI
2020-12-14T23:15:53Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
{{file|name=/etc/portage/make.conf|desc=My rpi4 make.conf file|body=<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
CFLAGS="${COMMON_FLAGS}"<br />
CXXFLAGS="${COMMON_FLAGS}"<br />
FCFLAGS="${COMMON_FLAGS}"<br />
FFLAGS="${COMMON_FLAGS}"<br />
#GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"<br />
}}<br />
<br />
''''''<br />
<br />
<br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
<br />
------------ template to swap --- edit more ltr --stash for now.<br />
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=<br />
# /etc/host.conf:<br />
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29<br />
}}<br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34719
Funtoo ARM64 CPU WIKI
2020-12-14T23:14:58Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
{{file|name=/etc/portage/make.conf|desc=My rpi4 make.conf file|body=<br />
#COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
#CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
#CFLAGS="${COMMON_FLAGS}"<br />
#CXXFLAGS="${COMMON_FLAGS}"<br />
#FCFLAGS="${COMMON_FLAGS}"<br />
#FFLAGS="${COMMON_FLAGS}"<br />
#GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize"<br />
}}<br />
<br />
''''''<br />
<br />
<br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
<br />
------------ template to swap --- edit more ltr --stash for now.<br />
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=<br />
# /etc/host.conf:<br />
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29<br />
}}<br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34718
Funtoo ARM64 CPU WIKI
2020-12-14T23:11:15Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
<br />
'''filename=/etc/portage/make.conf'''<br />
<br />
<code> COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
CFLAGS="${COMMON_FLAGS}"<br />
<br />
CXXFLAGS="${COMMON_FLAGS}"<br />
<br />
FCFLAGS="${COMMON_FLAGS}"<br />
<br />
FFLAGS="${COMMON_FLAGS}"<br />
<br />
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize" </code><br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
<br />
------------ template to swap --- edit more ltr --stash for now.<br />
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=<br />
# /etc/host.conf:<br />
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29<br />
}}<br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34717
Funtoo ARM64 CPU WIKI
2020-12-14T23:10:48Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
<br />
'''filename=/etc/portage/make.conf'''<br />
<br />
<code> COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -mneon-for-64bits ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
CFLAGS="${COMMON_FLAGS}"<br />
CXXFLAGS="${COMMON_FLAGS}"<br />
FCFLAGS="${COMMON_FLAGS}"<br />
FFLAGS="${COMMON_FLAGS}"<br />
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize" </code><br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
<br />
------------ template to swap --- edit more ltr --stash for now.<br />
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=<br />
# /etc/host.conf:<br />
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29<br />
}}<br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34414
Funtoo ARM64 CPU WIKI
2020-11-22T06:16:19Z
<p>Necrose99: </p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
<br />
'''filename=/etc/portage/make.conf'''<br />
<br />
<code> COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"</code><br />
<br />
<code>CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2" </code><br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
<br />
------------ template to swap --- edit more ltr --stash for now.<br />
{{file|name=/etc/foo.conf|desc=My foo.conf file|body=<br />
# /etc/host.conf:<br />
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29<br />
}}<br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34413
Funtoo ARM64 CPU WIKI
2020-11-22T06:14:45Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
<br />
'''filename=/etc/portage/make.conf'''<br />
<br />
<code> COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"</code><br />
<br />
<code>CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2" </code><br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...<br />
<br />
<br />
== '''Thunder X2''' Server/Workstation == <br />
on [[User:Necrose99|Necrose99]] ([[User talk:Necrose99|talk]]) 06:14, November 22, 2020 (UTC)Necrose99's shopping list https://www.asacomputers.com/Cavium-ThunderX-ARM.html<br />
No settings for this ATM... but i might have in a few weeks . <br />
48 cores upto x2 up to 90 in some server chassis. <br />
''Thunder x3 or successor is planed.'' <br />
<br />
<br />
<br />
== Ampere® Altra™ Server/Workstation ==<br />
(offers up to 80 cores at up to 3.0 GHz speed with sustained turbo) https://www.anandtech.com/show/15733/ampere-emag-system-a-32core-arm64-workstation/7<br />
No settings for this ATM...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34412
Funtoo ARM64 CPU WIKI
2020-11-22T06:02:41Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
<br />
'''filename=/etc/portage/make.conf'''<br />
<br />
<code> COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"</code><br />
<br />
<code>CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2" </code><br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34411
Funtoo ARM64 CPU WIKI
2020-11-22T06:02:30Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
<br />
'''filename=/etc/portage/make.conf'''<br />
<br />
<code> COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"</code><br />
<code>CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2" </code><br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags ('''app-portage/cpuid2cpuflags''' output) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34410
Funtoo ARM64 CPU WIKI
2020-11-22T06:01:35Z
<p>Necrose99: /* RPI4/Rock64 Rock64pro and Pinebookpro laptop. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
<br />
'''filename=/etc/portage/make.conf'''<br />
<br />
<code> COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2" </code><br />
<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags (app-portage/cpuid2cpuflags) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34409
Funtoo ARM64 CPU WIKI
2020-11-22T06:00:30Z
<p>Necrose99: /* Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings , included for reference and or adding in.<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
filename=/etc/portage/make.conf<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags (app-portage/cpuid2cpuflags) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34408
Funtoo ARM64 CPU WIKI
2020-11-22T05:59:59Z
<p>Necrose99: /* Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above. */</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings<br />
<br />
=== '''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. === <br />
<br />
filename=/etc/portage/make.conf<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags (app-portage/cpuid2cpuflags) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...</div>
Necrose99
https://www.funtoo.org/index.php?title=Funtoo_ARM64_CPU_WIKI&diff=34407
Funtoo ARM64 CPU WIKI
2020-11-22T05:59:38Z
<p>Necrose99: Created page with "<small>https://www.funtoo.org/Funtoo_CPU_Database</small> === <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully gr..."</p>
<hr />
<div><small>https://www.funtoo.org/Funtoo_CPU_Database</small><br />
=== <big>Unfortunately This page has nil for Arm64 CPU's and documentation however THIS page below Will hopefully grow till added to above.</big> ===<br />
<br />
https://wiki.gentoo.org/wiki/Safe_CFLAGS#ARM still has older Settings<br />
<br />
'''RPI4/Rock64 Rock64pro and Pinebookpro laptop'''. <br />
filename=/etc/portage/make.conf<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/package.use/00cpu-flags (app-portage/cpuid2cpuflags) <br />
<br />
For Rpi4 soon Vulkan-vc? gpu for now Vc4 , Odroid-X4 ? Rock64/Pine64/Pinebook varriants also mali/bifrost panfrost kernel mode drivers , Panfrost being opensource. <br />
https://raw.githubusercontent.com/necrose99/arm64-portage/master/mesa template ...</div>
Necrose99
https://www.funtoo.org/index.php?title=Talk:Funtoo_CPU_Database&diff=34406
Talk:Funtoo CPU Database
2020-11-22T05:49:56Z
<p>Necrose99: Created page with "Funtoo_ARM64_CPU_WIKI"</p>
<hr />
<div>[[Funtoo_ARM64_CPU_WIKI]]</div>
Necrose99
https://www.funtoo.org/index.php?title=Cpuid2cpuflags&diff=34395
Cpuid2cpuflags
2020-11-16T15:28:07Z
<p>Necrose99: /* cpuinfo2cpuflags */</p>
<hr />
<div>== cpuinfo2cpuflags ==<br />
There is no program '''cpuinfo2cpuflags''' but '''cpuid2cpuflags''' which can be emerged.<br />
<br />
''' emerge app-portage/cpuid2cpuflags''' <br />
<br />
https://github.com/mgorny/cpuid2cpuflags <br />
Quick how too use :<br />
<br />
''$ mkdir /etc/portage/package.use # if not used yet<br />
$ echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpuflags'' <br />
<br />
''[[Raspberry Pi 4|rpi4]] sample arm64 : edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2''<br />
<br />
Gentoo-wiki bits:<br />
<br />
[https://wiki.gentoo.org/wiki/CPU_FLAGS_X86#Using_cpuid2cpuflags CPU_FLAGS_X86] is a USE_EXPAND variable containing instruction set and other CPU-specific features.<br />
<br />
[https://packages.gentoo.org/useflags/search?q=cpu_flags_ppc CPU_FLAGS_PPC] is a USE_EXPAND variable containing instruction set and other CPU-specific features.<br />
<br />
[https://packages.gentoo.org/useflags/search?q=cpu_flags_arm CPU_FLAGS_ARM] is a USE_EXPAND variable containing instruction set and other CPU-specific features. page:<br />
<br />
<br />
Stub:page so feel free to expand & Expound upon..</div>
Necrose99
https://www.funtoo.org/index.php?title=Cpuid2cpuflags&diff=34394
Cpuid2cpuflags
2020-11-16T15:21:47Z
<p>Necrose99: Created page with "== cpuinfo2cpuflags == There is no program '''cpuinfo2cpuflags''' but '''cpuid2cpuflags''' which can be emerged. ''' emerge app-portage/cpuid2cpuflags''' https://github.com..."</p>
<hr />
<div>== cpuinfo2cpuflags ==<br />
There is no program '''cpuinfo2cpuflags''' but '''cpuid2cpuflags''' which can be emerged.<br />
<br />
''' emerge app-portage/cpuid2cpuflags''' <br />
<br />
https://github.com/mgorny/cpuid2cpuflags <br />
<br />
$ mkdir /etc/portage/package.use # if not used yet<br />
$ echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpuflags <br />
<br />
''rpi4 sample arm64 : edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2''<br />
<br />
[https://wiki.gentoo.org/wiki/CPU_FLAGS_X86#Using_cpuid2cpuflags CPU_FLAGS_X86] is a USE_EXPAND variable containing instruction set and other CPU-specific features.<br />
[https://packages.gentoo.org/useflags/search?q=cpu_flags_ppc CPU_FLAGS_PPC] is a USE_EXPAND variable containing instruction set and other CPU-specific features.<br />
[https://packages.gentoo.org/useflags/search?q=cpu_flags_arm CPU_FLAGS_ARM] is a USE_EXPAND variable containing instruction set and other CPU-specific features. page:</div>
Necrose99
https://www.funtoo.org/index.php?title=User_talk:Pnoecker/Raspberry_Pi_4&diff=34393
User talk:Pnoecker/Raspberry Pi 4
2020-11-16T15:09:30Z
<p>Necrose99: </p>
<hr />
<div>https://github.com/necrose99/arm64-portage <br />
tends to have repos etc, but not yet a funtoo branch... '''POWERUSER flags''' , ye be warned.. may take more manual overrides till deps are solved.. <br />
maake.conf <br />
<br />
https://github.com/gentoo-mirror/lto-overlay adds 3rd pass optimize for gcc.. <br />
<br />
[[cpuid2cpuflags]] output: 00cpu-flags for package.use / or screen (simular) */* CPU_FLAGS_ARM: edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2 <br />
<br />
cortex-a72.cortex-a5 cpu type on odroid , rpi4 , Rock64 Rock64pro or Pinebook-Pro <br />
however Gpu drivers for vc4 and or vulkan soon on rpi4 .. mali/panfrost on others for Rock64/pine64 etc. <br />
useful for [[mesa]]<br />
<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53 ${GRAPHITE} ${CPU_FLAGS_ARM64}"<br />
CPU_FLAGS_ARM64="edsp neon thumb vfp vfpv3 vfpv4 vfp-d32 crc32 v4 v5 v6 v7 v8 thumb2"<br />
CFLAGS="${COMMON_FLAGS}"<br />
CXXFLAGS="${COMMON_FLAGS}"<br />
FCFLAGS="${COMMON_FLAGS}"<br />
FFLAGS="${COMMON_FLAGS}"<br />
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize" <br />
<br />
a few Tweaks for CPU flags</div>
Necrose99
https://www.funtoo.org/index.php?title=User:Necrose99&diff=34392
User:Necrose99
2020-11-16T14:32:23Z
<p>Necrose99: Created page with "https://bugs.funtoo.org/browse/FL-7677 Wiki Page : base temporary ME: '''Security Engineer''' / '''Pentesting'''/ '''Security Researcher''' << bit lame/temporary>> Welc..."</p>
<hr />
<div>https://bugs.funtoo.org/browse/FL-7677 <br />
<br />
Wiki Page : base temporary <br />
ME: '''Security Engineer''' / '''Pentesting'''/ '''Security Researcher''' << bit lame/temporary>> <br />
<br />
Welcome , for Doing [[arm64]] [[Gentoo]] / Funtoo Binhost For '''Security research''' and or Pentoo <br />
<br />
https://www.funtoo.org/Funtoo_Containers , for a Funtoo , [https://github.com/pentoo Pentoo] , Gentoo package repo.. <br />
<gallery><br />
[[File:Ghostbusters.jpg|thumb|Don't Cross The Streams]]<br />
</gallery> for Most users on the Funtoo Side Crossing package repos might be dangerous , however users on Dev-Funtoo Side or bleeding edge may have use for some of Gentoo packages and or less rebuilding if so. and yes Pentoo for Secops research mixed into Gentoo repo , <br />
<br />
I'm not quite as familiar with all of Funtoo's features being from Long term Gentoo side , however willing to Set up chroot for works etc. <br />
<br />
'''Gentoo Metaverse/Universe VIEW''' , Funtoo , Redcore , Pentoo (Gentoo Pentesting Live iso) Google's Chrome OS,etc,etc. <br />
I see funtoo as having a few more LTS stable refinements. but a member of the Greater Meta... <br />
<br />
'''EOL''' https://www.raspberrypi.org/forums/viewtopic.php?p=1750206#p1750206 / https://github.com/sakaki-/gentoo-on-rpi-64bit <br />
with her EOL notice this has kinda stilted things .. <br />
<br />
Gentoo/Funtoo Binhost , with Pentoo also , <br />
<br />
https://github.com/necrose99/arm64-portage <<Wishlist automatic mirroring with Filters in branches.>> Filter files or minor Git-diff , but sync all files but for were not wanted IE systemd branch... needs a funtoo branch for opernrc/etc...</div>
Necrose99
https://www.funtoo.org/index.php?title=File:Ghostbusters.jpg&diff=34391
File:Ghostbusters.jpg
2020-11-16T14:14:48Z
<p>Necrose99: </p>
<hr />
<div>meme</div>
Necrose99
https://www.funtoo.org/index.php?title=Frankenchroot/Manual_Binary_Format_Setup&diff=33887
Frankenchroot/Manual Binary Format Setup
2020-07-13T00:48:10Z
<p>Necrose99: /* Setting up binfmt_misc and Starting the Service RISCV64 */</p>
<hr />
<div>{{Warning|This page is for advanced users and reference only. It is recommended that you use the [[Frankenchroot/Binary Format Setup|Binary Format Setup]] steps as this automates this process for you and makes things tremendously easier.}}<br />
<br />
===''Building and Installing the Wrapper Binary''===<br />
<br />
{{file|name=qemu-arm-wrapper.c|lang=C|desc=qemu arm wrapper|body=<br />
/*<br />
* Call QEMU binary with additional "-cpu cortex-a7" argument.<br />
*<br />
* Copyright (c) 2018 sakaki <sakaki@deciban.com><br />
* License: GPL v3.0+<br />
*<br />
* Based on code from the Gentoo Embedded Handbook<br />
* ("General/Compiling_with_qemu_user_chroot")<br />
*/<br />
<br />
#include <string.h><br />
#include <unistd.h><br />
<br />
int main(int argc, char **argv, char **envp) {<br />
char *newargv[argc + 3];<br />
<br />
newargv[0] = argv[0];<br />
newargv[1] = "-cpu";<br />
newargv[2] = "cortex-a7";<br />
<br />
memcpy(&newargv[3], &argv[1], sizeof(*argv) * (argc -1));<br />
newargv[argc + 2] = NULL;<br />
return execve("/usr/local/bin/qemu-arm", newargv, envp);<br />
}<br />
}}<br />
<br />
{{console|body=<br />
###i## gcc -static -O3 -s -o qemu-arm-wrapper qemu-arm-wrapper.c<br />
}}<br />
<br />
{{console|body=<br />
###i## cp -av /usr/bin/qemu-arm /mnt/piroot/usr/local/bin/qemu-arm<br />
###i## cp -av qemu-arm-wrapper /mnt/piroot/usr/local/bin/qemu-arm-wrapper<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ":arm:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-arm-wrapper:" > /proc/sys/fs/binfmt_misc/register<br />
<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service ARM64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64:' > /proc/sys/fs/binfmt_misc/register<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service RISCV64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':riscv64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64:' > /proc/sys/fs/binfmt_misc/register <br />
}}<br />
notes from https://wiki.debian.org/RISC-V#Qemu<br />
<br />
{{console|body=<br />
###i## rc-service binfmt restart<br />
}}<br />
<br />
{{console|body=<br />
###i## rc-service binfmt status<br />
}}<br />
<br />
<br />
{{warning|The preceding wrapper and binfmt_misc register string were for arm 32bit. They *MUST* be edited for aarch64.}} <br />
<br />
{{tip|<br />
The following code will create the binfmt_misc register string for the arch you are emulating in usermode Qemu. This is only needed for targets other than the arm target already packaged for you above. Usage is as followed:<br />
<br />
{{console|body=<br />
###i## chmod +x masky<br />
###i## masky /path/to/foreign/binary<br />
}}<br />
<br />
* Paste the output to /proc/sys/fs/binfmt_misc/register<br />
* Change "arm" in the following code to whatever you want the name of the binfmt_misc name to be when it is registered <br />
* Change /usr/local/bin/qemu-arm-wrapper to the name of your wrapper<br />
<br />
{{file|name=masky|lang=python|desc=masky|body=<br />
<br />
#!/usr/bin/python3<br />
import sys<br />
import struct<br />
import string<br />
import codecs<br />
<br />
printable_chars = set(string.printable)<br />
printable_chars = set()<br />
def print_out_hexstring(hexstring):<br />
to_process = hexstring<br />
while len(to_process):<br />
ascii_value = chr(int(to_process[:2], 16))<br />
to_process = to_process[2:]<br />
if ascii_value in printable_chars:<br />
sys.stdout.write(ascii_value)<br />
else:<br />
sys.stdout.write("\\x" + "{0:02x}".format(ord(ascii_value)))<br />
<br />
chunk_as_hexstring = ""<br />
with open(sys.argv[1], 'rb') as f:<br />
for x in range(0,19):<br />
chunk_as_hexstring += f.read(1).hex()<br />
mask_as_hexstring = "fffffffffffffffcfffffffffffffffffeffff"<br />
mask = int(mask_as_hexstring, 16)<br />
chunk = int(chunk_as_hexstring, 16)<br />
out_as_hexstring = hex(chunk & mask)[2:]<br />
sys.stdout.write(":arm:M::")<br />
print_out_hexstring(out_as_hexstring)<br />
sys.stdout.write(":")<br />
print_out_hexstring(mask_as_hexstring)<br />
sys.stdout.write(":/usr/local/bin/qemu-arm-wrapper:\n")<br />
}}<br />
<br />
}}</div>
Necrose99
https://www.funtoo.org/index.php?title=Frankenchroot/Manual_Binary_Format_Setup&diff=33886
Frankenchroot/Manual Binary Format Setup
2020-07-13T00:46:56Z
<p>Necrose99: <!--https://wiki.debian.org/RISC-V#Qemu -- upstream source --!> move coment here.</p>
<hr />
<div>{{Warning|This page is for advanced users and reference only. It is recommended that you use the [[Frankenchroot/Binary Format Setup|Binary Format Setup]] steps as this automates this process for you and makes things tremendously easier.}}<br />
<br />
===''Building and Installing the Wrapper Binary''===<br />
<br />
{{file|name=qemu-arm-wrapper.c|lang=C|desc=qemu arm wrapper|body=<br />
/*<br />
* Call QEMU binary with additional "-cpu cortex-a7" argument.<br />
*<br />
* Copyright (c) 2018 sakaki <sakaki@deciban.com><br />
* License: GPL v3.0+<br />
*<br />
* Based on code from the Gentoo Embedded Handbook<br />
* ("General/Compiling_with_qemu_user_chroot")<br />
*/<br />
<br />
#include <string.h><br />
#include <unistd.h><br />
<br />
int main(int argc, char **argv, char **envp) {<br />
char *newargv[argc + 3];<br />
<br />
newargv[0] = argv[0];<br />
newargv[1] = "-cpu";<br />
newargv[2] = "cortex-a7";<br />
<br />
memcpy(&newargv[3], &argv[1], sizeof(*argv) * (argc -1));<br />
newargv[argc + 2] = NULL;<br />
return execve("/usr/local/bin/qemu-arm", newargv, envp);<br />
}<br />
}}<br />
<br />
{{console|body=<br />
###i## gcc -static -O3 -s -o qemu-arm-wrapper qemu-arm-wrapper.c<br />
}}<br />
<br />
{{console|body=<br />
###i## cp -av /usr/bin/qemu-arm /mnt/piroot/usr/local/bin/qemu-arm<br />
###i## cp -av qemu-arm-wrapper /mnt/piroot/usr/local/bin/qemu-arm-wrapper<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ":arm:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-arm-wrapper:" > /proc/sys/fs/binfmt_misc/register<br />
<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service ARM64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64:' > /proc/sys/fs/binfmt_misc/register<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service RISCV64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':riscv64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64:' > /proc/sys/fs/binfmt_misc/register<br />
}}<br />
<br />
<br />
{{console|body=<br />
###i## rc-service binfmt restart<br />
}}<br />
<br />
{{console|body=<br />
###i## rc-service binfmt status<br />
}}<br />
<br />
<br />
{{warning|The preceding wrapper and binfmt_misc register string were for arm 32bit. They *MUST* be edited for aarch64.}} <br />
<br />
{{tip|<br />
The following code will create the binfmt_misc register string for the arch you are emulating in usermode Qemu. This is only needed for targets other than the arm target already packaged for you above. Usage is as followed:<br />
<br />
{{console|body=<br />
###i## chmod +x masky<br />
###i## masky /path/to/foreign/binary<br />
}}<br />
<br />
* Paste the output to /proc/sys/fs/binfmt_misc/register<br />
* Change "arm" in the following code to whatever you want the name of the binfmt_misc name to be when it is registered <br />
* Change /usr/local/bin/qemu-arm-wrapper to the name of your wrapper<br />
<br />
{{file|name=masky|lang=python|desc=masky|body=<br />
<br />
#!/usr/bin/python3<br />
import sys<br />
import struct<br />
import string<br />
import codecs<br />
<br />
printable_chars = set(string.printable)<br />
printable_chars = set()<br />
def print_out_hexstring(hexstring):<br />
to_process = hexstring<br />
while len(to_process):<br />
ascii_value = chr(int(to_process[:2], 16))<br />
to_process = to_process[2:]<br />
if ascii_value in printable_chars:<br />
sys.stdout.write(ascii_value)<br />
else:<br />
sys.stdout.write("\\x" + "{0:02x}".format(ord(ascii_value)))<br />
<br />
chunk_as_hexstring = ""<br />
with open(sys.argv[1], 'rb') as f:<br />
for x in range(0,19):<br />
chunk_as_hexstring += f.read(1).hex()<br />
mask_as_hexstring = "fffffffffffffffcfffffffffffffffffeffff"<br />
mask = int(mask_as_hexstring, 16)<br />
chunk = int(chunk_as_hexstring, 16)<br />
out_as_hexstring = hex(chunk & mask)[2:]<br />
sys.stdout.write(":arm:M::")<br />
print_out_hexstring(out_as_hexstring)<br />
sys.stdout.write(":")<br />
print_out_hexstring(mask_as_hexstring)<br />
sys.stdout.write(":/usr/local/bin/qemu-arm-wrapper:\n")<br />
}}<br />
<br />
}}</div>
Necrose99
https://www.funtoo.org/index.php?title=Frankenchroot/Manual_Binary_Format_Setup&diff=33885
Frankenchroot/Manual Binary Format Setup
2020-07-13T00:44:46Z
<p>Necrose99: <!--https://wiki.debian.org/RISC-V#Qemu -- upstream source --!> move coment here.</p>
<hr />
<div>{{Warning|This page is for advanced users and reference only. It is recommended that you use the [[Frankenchroot/Binary Format Setup|Binary Format Setup]] steps as this automates this process for you and makes things tremendously easier.}}<br />
<br />
===''Building and Installing the Wrapper Binary''===<br />
<br />
{{file|name=qemu-arm-wrapper.c|lang=C|desc=qemu arm wrapper|body=<br />
/*<br />
* Call QEMU binary with additional "-cpu cortex-a7" argument.<br />
*<br />
* Copyright (c) 2018 sakaki <sakaki@deciban.com><br />
* License: GPL v3.0+<br />
*<br />
* Based on code from the Gentoo Embedded Handbook<br />
* ("General/Compiling_with_qemu_user_chroot")<br />
*/<br />
<br />
#include <string.h><br />
#include <unistd.h><br />
<br />
int main(int argc, char **argv, char **envp) {<br />
char *newargv[argc + 3];<br />
<br />
newargv[0] = argv[0];<br />
newargv[1] = "-cpu";<br />
newargv[2] = "cortex-a7";<br />
<br />
memcpy(&newargv[3], &argv[1], sizeof(*argv) * (argc -1));<br />
newargv[argc + 2] = NULL;<br />
return execve("/usr/local/bin/qemu-arm", newargv, envp);<br />
}<br />
}}<br />
<br />
{{console|body=<br />
###i## gcc -static -O3 -s -o qemu-arm-wrapper qemu-arm-wrapper.c<br />
}}<br />
<br />
{{console|body=<br />
###i## cp -av /usr/bin/qemu-arm /mnt/piroot/usr/local/bin/qemu-arm<br />
###i## cp -av qemu-arm-wrapper /mnt/piroot/usr/local/bin/qemu-arm-wrapper<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ":arm:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-arm-wrapper:" > /proc/sys/fs/binfmt_misc/register<br />
<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service ARM64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64:' > /proc/sys/fs/binfmt_misc/register<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service RISCV64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':riscv64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64:' > /proc/sys/fs/binfmt_misc/register<br />
}}<br />
<br />
<br />
{{console|body=<br />
###i## rc-service binfmt status<br />
}}<br />
<br />
{{warning|The preceding wrapper and binfmt_misc register string were for arm 32bit. They *MUST* be edited for aarch64.}} <br />
<br />
{{tip|<br />
The following code will create the binfmt_misc register string for the arch you are emulating in usermode Qemu. This is only needed for targets other than the arm target already packaged for you above. Usage is as followed:<br />
<br />
{{console|body=<br />
###i## chmod +x masky<br />
###i## masky /path/to/foreign/binary<br />
}}<br />
<br />
* Paste the output to /proc/sys/fs/binfmt_misc/register<br />
* Change "arm" in the following code to whatever you want the name of the binfmt_misc name to be when it is registered <br />
* Change /usr/local/bin/qemu-arm-wrapper to the name of your wrapper<br />
<br />
{{file|name=masky|lang=python|desc=masky|body=<br />
<br />
#!/usr/bin/python3<br />
import sys<br />
import struct<br />
import string<br />
import codecs<br />
<br />
printable_chars = set(string.printable)<br />
printable_chars = set()<br />
def print_out_hexstring(hexstring):<br />
to_process = hexstring<br />
while len(to_process):<br />
ascii_value = chr(int(to_process[:2], 16))<br />
to_process = to_process[2:]<br />
if ascii_value in printable_chars:<br />
sys.stdout.write(ascii_value)<br />
else:<br />
sys.stdout.write("\\x" + "{0:02x}".format(ord(ascii_value)))<br />
<br />
chunk_as_hexstring = ""<br />
with open(sys.argv[1], 'rb') as f:<br />
for x in range(0,19):<br />
chunk_as_hexstring += f.read(1).hex()<br />
mask_as_hexstring = "fffffffffffffffcfffffffffffffffffeffff"<br />
mask = int(mask_as_hexstring, 16)<br />
chunk = int(chunk_as_hexstring, 16)<br />
out_as_hexstring = hex(chunk & mask)[2:]<br />
sys.stdout.write(":arm:M::")<br />
print_out_hexstring(out_as_hexstring)<br />
sys.stdout.write(":")<br />
print_out_hexstring(mask_as_hexstring)<br />
sys.stdout.write(":/usr/local/bin/qemu-arm-wrapper:\n")<br />
}}<br />
<br />
}}</div>
Necrose99
https://www.funtoo.org/index.php?title=Frankenchroot/Manual_Binary_Format_Setup&diff=33884
Frankenchroot/Manual Binary Format Setup
2020-07-13T00:40:07Z
<p>Necrose99: /* Setting up binfmt_misc and Starting the Service */</p>
<hr />
<div>{{Warning|This page is for advanced users and reference only. It is recommended that you use the [[Frankenchroot/Binary Format Setup|Binary Format Setup]] steps as this automates this process for you and makes things tremendously easier.}}<br />
<br />
===''Building and Installing the Wrapper Binary''===<br />
<br />
{{file|name=qemu-arm-wrapper.c|lang=C|desc=qemu arm wrapper|body=<br />
/*<br />
* Call QEMU binary with additional "-cpu cortex-a7" argument.<br />
*<br />
* Copyright (c) 2018 sakaki <sakaki@deciban.com><br />
* License: GPL v3.0+<br />
*<br />
* Based on code from the Gentoo Embedded Handbook<br />
* ("General/Compiling_with_qemu_user_chroot")<br />
*/<br />
<br />
#include <string.h><br />
#include <unistd.h><br />
<br />
int main(int argc, char **argv, char **envp) {<br />
char *newargv[argc + 3];<br />
<br />
newargv[0] = argv[0];<br />
newargv[1] = "-cpu";<br />
newargv[2] = "cortex-a7";<br />
<br />
memcpy(&newargv[3], &argv[1], sizeof(*argv) * (argc -1));<br />
newargv[argc + 2] = NULL;<br />
return execve("/usr/local/bin/qemu-arm", newargv, envp);<br />
}<br />
}}<br />
<br />
{{console|body=<br />
###i## gcc -static -O3 -s -o qemu-arm-wrapper qemu-arm-wrapper.c<br />
}}<br />
<br />
{{console|body=<br />
###i## cp -av /usr/bin/qemu-arm /mnt/piroot/usr/local/bin/qemu-arm<br />
###i## cp -av qemu-arm-wrapper /mnt/piroot/usr/local/bin/qemu-arm-wrapper<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ":arm:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-arm-wrapper:" > /proc/sys/fs/binfmt_misc/register<br />
<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service ARM64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64:' > /proc/sys/fs/binfmt_misc/register<br />
}}<br />
<br />
===''Setting up binfmt_misc and Starting the Service RISCV64''===<br />
<br />
{{console|body=<br />
<br />
###i## echo ':riscv64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64:' > /proc/sys/fs/binfmt_misc/register<br />
}}<br />
<!--https://wiki.debian.org/RISC-V#Qemu -- upstream source --!> <br />
{{console|body=<br />
###i## rc-service binfmt status<br />
}}<br />
<br />
{{warning|The preceding wrapper and binfmt_misc register string were for arm 32bit. They *MUST* be edited for aarch64.}} <br />
<br />
{{tip|<br />
The following code will create the binfmt_misc register string for the arch you are emulating in usermode Qemu. This is only needed for targets other than the arm target already packaged for you above. Usage is as followed:<br />
<br />
{{console|body=<br />
###i## chmod +x masky<br />
###i## masky /path/to/foreign/binary<br />
}}<br />
<br />
* Paste the output to /proc/sys/fs/binfmt_misc/register<br />
* Change "arm" in the following code to whatever you want the name of the binfmt_misc name to be when it is registered <br />
* Change /usr/local/bin/qemu-arm-wrapper to the name of your wrapper<br />
<br />
{{file|name=masky|lang=python|desc=masky|body=<br />
<br />
#!/usr/bin/python3<br />
import sys<br />
import struct<br />
import string<br />
import codecs<br />
<br />
printable_chars = set(string.printable)<br />
printable_chars = set()<br />
def print_out_hexstring(hexstring):<br />
to_process = hexstring<br />
while len(to_process):<br />
ascii_value = chr(int(to_process[:2], 16))<br />
to_process = to_process[2:]<br />
if ascii_value in printable_chars:<br />
sys.stdout.write(ascii_value)<br />
else:<br />
sys.stdout.write("\\x" + "{0:02x}".format(ord(ascii_value)))<br />
<br />
chunk_as_hexstring = ""<br />
with open(sys.argv[1], 'rb') as f:<br />
for x in range(0,19):<br />
chunk_as_hexstring += f.read(1).hex()<br />
mask_as_hexstring = "fffffffffffffffcfffffffffffffffffeffff"<br />
mask = int(mask_as_hexstring, 16)<br />
chunk = int(chunk_as_hexstring, 16)<br />
out_as_hexstring = hex(chunk & mask)[2:]<br />
sys.stdout.write(":arm:M::")<br />
print_out_hexstring(out_as_hexstring)<br />
sys.stdout.write(":")<br />
print_out_hexstring(mask_as_hexstring)<br />
sys.stdout.write(":/usr/local/bin/qemu-arm-wrapper:\n")<br />
}}<br />
<br />
}}</div>
Necrose99
https://www.funtoo.org/index.php?title=Talk:Frankenchroot/Manual_Binary_Format_Setup&diff=33883
Talk:Frankenchroot/Manual Binary Format Setup
2020-07-13T00:27:09Z
<p>Necrose99: /* make.conf used on rpi4 / Rock64 Pro (USER Necrose99) some bits swiped from Sabayon. for modularity. */ new section</p>
<hr />
<div>/*<br />
* Call QEMU binary with additional "-cpu cortex-a7" argument.<br />
*<br />
* Copyright (c) 2018 sakaki <sakaki@deciban.com><br />
* License: GPL v3.0+<br />
*<br />
* Based on code from the Gentoo Embedded Handbook<br />
* ("General/Compiling_with_qemu_user_chroot")<br />
* added Rock64pro/rock64/RPI4 cpu statment <br />
* COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53" make.conf<br />
*/<br />
<br />
#include <string.h><br />
#include <unistd.h><br />
<br />
int main(int argc, char **argv, char **envp) {<br />
char *newargv[argc + 3];<br />
<br />
newargv[0] = argv[0];<br />
newargv[1] = "-cpu";<br />
newargv[2] = "cortex-a72.cortex-a53";<br />
<br />
memcpy(&newargv[3], &argv[1], sizeof(*argv) * (argc -1));<br />
newargv[argc + 2] = NULL;<br />
return execve("/usr/local/bin/qemu-arm", newargv, envp);<br />
}<br />
<br />
== make.conf used on rpi4 / Rock64 Pro (USER Necrose99) some bits swiped from Sabayon. for modularity. ==<br />
<br />
# These settings were set by the catalyst build script that automatically<br />
# built this stage.<br />
# Please consult /usr/share/portage/config/make.conf.example for a more<br />
# detailed example.<br />
<br />
## https://github.com/necrose99/arm64-portage/blob/master/make.conf.production<br />
# some of my greatest hits... granted i need to cleave much in this use flags repo.<br />
COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53"<br />
CFLAGS="${COMMON_FLAGS} ${GRAPHITE}"<br />
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -floop-parallelize-all"<br />
CXXFLAGS="${COMMON_FLAGS}"<br />
FCFLAGS="${COMMON_FLAGS}"<br />
FFLAGS="${COMMON_FLAGS}"<br />
# WARNING: Changing your CHOST is not something that should be done lightly.<br />
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.<br />
CHOST="aarch64-unknown-linux-gnu"<br />
#aarch64-cortex_a53-linux-gnu<br />
<br />
# NOTE: This stage was built with the bindist Use flag enabled<br />
# former PORTDIR="/usr/portage"<br />
<br />
PORTDIR="/var/db/repos/gentoo"<br />
DISTDIR=/var/gentoo/distfiles<br />
PKGDIR="/packages"<br />
<br />
# This sets the language of build output to English.<br />
# Please keep this setting intact when reporting bugs.<br />
LC_MESSAGES=C<br />
FEATURES="${FEATURES} getbinpkg ${FEATURES_2} ${FEATURES_3}"<br />
FEATURES_2="buildpkg distcc parallel-fetch usepkg protect-owned compressdebug splitdebug parallel-install"<br />
#binpkg-multi-instance useful for local rebuilds with differing flags but some hosts no like xpaks ,,<br />
#FEATURES_3="binpkg-multi-instance"<br />
<br />
PORTAGE_BINHOST="https://isshoni.org/pi64pie<br />
https://raw.githubusercontent.com/necrose99/gentoo-binhost/aarch64-coretexa53-linux-gnu/"<br />
<br />
GRUB_PLATFORMS="arm arm64 pc uboot xen "<br />
## pc woeusb if making pc/aarch64 w10 on rpi, uboot/efi for rpi/rock64<br />
ACCEPT_LICENSE="*"<br />
ACCEPT_KEYWORDS="~arm64 arm64"<br />
# ** for more forceful...<br />
<br />
#GRAPHITE stuff"<br />
GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-block -floop-parallelize-all -fgraphite-identity"<br />
# -ftree-vectorize ${GRAPHITE}"<br />
<br />
## llvm add arm64 server targets , amd /nvidia also [cavium thunderx2 servers use nvidia also can run nvidia gpu/tesla]<br />
LLVM_TARGETS="AArch64 BPF AMDGPU ARM X86 NVPTX neon amd64 RISCV Mips WebAssembly RISCV" #NVPTX add nivida<br />
#<br />
#know llvm targets,<br />
# LLVM_TARGETS="(AArch64) AMDGPU* ARM* BPF NVPTX* X86* -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV% -Sparc -SystemZ -WebAssembly% -XCore<br />
<br />
# for use when compiling locally<br />
MAKEOPTS="-j5 -l4"<br />
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4 --with-bdeps=y --keep-going=y --color=y --binpkg-respect-use=y --autounmask-continue=y --binpkg-changed-deps=y"<br />
# for use with compiling with distcc only<br />
#MAKEOPTS="-j32 -l4"<br />
#EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=4"<br />
#EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going=y" --autounmask-continue y --binpkg-changed-deps y<br />
<br />
VIDEO_CARDS="nouveau fglrx nvidia panfrost vc4 iris freedreno tegra intel vivante radeon lima"<br />
<br />
#PORTAGE_GPG_DIR="/etc/portage/gpg"<br />
<br />
LINGUAS="be fo hy la no en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh"<br />
L10N="be fo hy la no en af ar az bg bn br bs ca cs cy da de el en-GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt-BR ro ru rw se sk sl sr sr-Latn ss sv ta tg tr uk uz vi zh-CN zh-TW es-AR es-ES fy ga gu nb nn pt-PT sv zh am es-419 fil id kn ml mr sw te th "<br />
### test langs<br />
<br />
<br />
## USE ##<br />
SAB_BAD="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss -branding -esd"<br />
SAB_MEDIA="musicbrainz sdl pulseaudio wmf fame cdr dvi mp3rtp xine cddb alsa dvb dvd bluray network dvdread ipod audiofile artswrappersuid dvdr jack dri cdda libav mjpeg mmx joystick xvmc cpudetection v4l v4l2 wavpack vpx vdpau svg"<br />
SAB_CODECS="x264 x265 gsm lame opus dv mp3 stream live openal theora ogg a52 win32codecs matroska xvid flac ffmpeg aac speex real dts musepack"<br />
SAB_SYSTEM="cjk unicode gnutls nptl gcj udev logind -consolekit kerberos acl dbus bash-completion lzo rar policykit xcb bzip2 bidi wifi lm_sensors acpi usb pcmcia bluetooth irda ieee1394 perl python numa"<br />
SAB_FILESYS="fat hfs jfs xfs ntfs reiserfs sysfs inotify lzma lz4 lzo"<br />
SAB_PRINT="cups ppds foomatic-db gimpprint freetype xprint scanner"<br />
SAB_XSYS="cairo X opengl png gif gtk qt4 qt5 qt3support xpm tiff xinerama aiglx svg gphoto2 dga lcd openexr wayland multitarget"<br />
SAB_DESKTOP="kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal visualization avahi startup-notification accessibility"<br />
SAB_BROWSER="nsplugin firefox mozdevelop xulrunner"<br />
SAB_COMMS="jabber msn yahoo icq irc aim rss slp mail imap http2 tk sqlite sctp bluetooth"<br />
SAB_TEST="minipentoo upnp kerberos ldap odbc gold ocaml neon equalizer egl wavepak vpx schroedinger twolame cdio armvfp cdio vdpau vaapi d3d9 gles1 openmax tools icu sctp<br />
sha3 blake2 expat nettle zstd xar z3 colord brotli ssh samba rtmp metalink cookie_check numpy"<br />
USE="${SAB_BAD} ${SAB_MEDIA} ${SAB_CODECS} ${SAB_SYSTEM} ${SAB_FILESYS} ${SAB_PRINT} ${SAB_XSYS} ${SAB_DESKTOP} ${SAB_BROWSER} ${SAB_COMMS}${XUSE}"<br />
XUSE="-kdeprefix -arts -qt3 -beagle -gnome -evo -mono -eds -apm -oss \<br />
-branding -esd musicbrainz sdl pulseaudio wmf fame cdr dvi mp3rtp \<br />
xine cddb alsa dvb dvd bluray network dvdread ipod audiofile \<br />
artswrappersuid dvdr jack dri cdda libav mjpeg mmx joystick \<br />
xvmc cpudetection v4l v4l2 wavpack vpx vdpau svg x264 x265 gsm \<br />
lame opus dv mp3 stream live openal theora ogg a52 \<br />
win32codecs matroska xvid flac ffmpeg aac speex real dts musepack cjk \<br />
unicode gnutls nptl gcj udev logind -consolekit kerberos acl \<br />
dbus bash-completion lzo rar policykit xcb bzip2 bidi wifi \<br />
lm_sensors acpi usb pcmcia bluetooth irda ieee1394 perl python \<br />
numa fat hfs jfs xfs ntfs reiserfs sysfs inotify lzma lz4 \<br />
cups ppds foomatic-db gimpprint freetype xprint scanner cairo X \<br />
opengl png gif gtk qt4 qt5 qt3support xpm tiff xinerama aiglx \<br />
gphoto2 dga lcd openexr wayland multitarget \<br />
kdehiddenvisibility gmp libnotify rdesktop pda zeroconf kdeenablefinal \<br />
visualization avahi startup-notification accessibility nsplugin \<br />
firefox mozdevelop xulrunner jabber msn yahoo icq irc aim rss \<br />
slp mail imap http2 tk sqlite sctp minipentoo upnp ldap odbc \<br />
gold ocaml neon equalizer egl wavepak schroedinger twolame cdio \<br />
armvfp vaapi d3d9 gles1 openmax tools icu sha3 blake2 expat \<br />
nettle zstd xar z3 colord brotli ssh samba rtmp cookie_check \<br />
numpy -systemd valgrind guile"<br />
<br />
INPUT_DEVICES="evdev void wacom "<br />
## rpi dosnet need as many VC's however targeting servers now also , calverium has nvida soc, softiron is amd...<br />
VIDEO_CARDS="fbdev vesa radeonsi radeon fbdev vc4 nouveau amdgpu radeon neon vdpau egl radeonsi vmware freedreno panfrost mali virgl"<br />
#nouveau NVIDA-arm64 neon arm/arm64<br />
LIRC_DEVICES="audio audio_alsa devinput pctv"<br />
ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y"<br />
CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template"<br />
<br />
<br />
## OFFICE ##<br />
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher"<br />
<br />
## QEMU ##<br />
QEMU_USER_TARGETS="alpha arm aarch64 armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64"<br />
QEMU_SOFTMMU_TARGETS="x86_64 arm aarch64 cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64"<br />
<br />
USE_PYTHON="3.6"<br />
<br />
PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8 python3_9"<br />
#mgorny python hack tip. can force for newer 36 py.. etc.. if i get wind of coming py34 deprication<br />
## python-3.5 tending to fuck with crap on rpi3-64 , server not so bad since newer ver.<br />
## PYTHON_COMPAT_OVERRIDE='pypy3'<br />
#pypy pypy3 wont build on 2 gigs+++ =< RPI3 has a gig.<br />
<br />
# Some more forced targets<br />
# update me .. PHP_TARGETS="php5-6"<br />
RUBY_TARGETS="ruby25 ruby26 ruby27"<br />
# ruby24 fails to comiple on rpi3 perhaps on Bannanpi64 or with more RAM, it will sit on R-PI3 for dayz....<br />
<br />
# https://github.com/gentoo/dotnet layman -a dotnet<br />
DOTNET_TARGETS="net45 net40 net50 net60"<br />
<br />
# Setup GRUB platforms<br />
GRUB_PLATFORMS="arm arm64"<br />
<br />
# Support both 64bit and 32bit<br />
ABI_arm64="arm64 arm32 lp64 lp32" ## would be a plus.<br />
<br />
## PORTAGE CONFIG ##<br />
##PORTDIR_OVERLAY="/usr/local/portage"<br />
PORTDIR_OVERLAY="/var/lib/layman/"<br />
<br />
#source /var/lib/layman/make.conf<br />
CONFIG_PROTECT="/usr/share/config/kdm /etc /etc/conf.d /etc/init.d"<br />
# /lib/modules mask is useful for our internal tinderbox<br />
CONFIG_PROTECT_MASK="/etc/skel /lib/modules"<br />
<br />
# Set PORTDIR for backward compatibility with various tools:<br />
# gentoo-bashcomp - bug #478444<br />
# euse - bug #474574<br />
# euses and ufed - bug #478318<br />
<br />
## xpak sometimes are usable othertimes metadata, dont sftp cleanly...</div>
Necrose99
https://www.funtoo.org/index.php?title=Talk:Frankenchroot/Manual_Binary_Format_Setup&diff=33882
Talk:Frankenchroot/Manual Binary Format Setup
2020-07-13T00:25:21Z
<p>Necrose99: qemu-arm64-rpi4-rock64-wrapper.c</p>
<hr />
<div>/*<br />
* Call QEMU binary with additional "-cpu cortex-a7" argument.<br />
*<br />
* Copyright (c) 2018 sakaki <sakaki@deciban.com><br />
* License: GPL v3.0+<br />
*<br />
* Based on code from the Gentoo Embedded Handbook<br />
* ("General/Compiling_with_qemu_user_chroot")<br />
* added Rock64pro/rock64/RPI4 cpu statment <br />
* COMMON_FLAGS="-O2 -pipe -march=armv8-a+crc+crypto -mcpu=cortex-a72.cortex-a53" make.conf<br />
*/<br />
<br />
#include <string.h><br />
#include <unistd.h><br />
<br />
int main(int argc, char **argv, char **envp) {<br />
char *newargv[argc + 3];<br />
<br />
newargv[0] = argv[0];<br />
newargv[1] = "-cpu";<br />
newargv[2] = "cortex-a72.cortex-a53";<br />
<br />
memcpy(&newargv[3], &argv[1], sizeof(*argv) * (argc -1));<br />
newargv[argc + 2] = NULL;<br />
return execve("/usr/local/bin/qemu-arm", newargv, envp);<br />
}</div>
Necrose99