Skip to content

Instantly share code, notes, and snippets.

@kunthar
Created November 4, 2016 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunthar/56cdf7aedfb7fcffa2a246d6df5114aa to your computer and use it in GitHub Desktop.
Save kunthar/56cdf7aedfb7fcffa2a246d6df5114aa to your computer and use it in GitHub Desktop.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 3.6G 1023M 2.6G 29% /
devtmpfs 42M 0 42M 0% /dev
tmpfs 122M 0 122M 0% /dev/shm
tmpfs 122M 8.4M 113M 7% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 122M 0 122M 0% /sys/fs/cgroup
root@FriendlyARM:~# uname -a
Linux FriendlyARM 3.4.39-h3 #1 SMP PREEMPT Thu Aug 4 12:41:33 CST 2016 armv7l armv7l armv7l GNU/Linux
fa@FriendlyARM:~$ cat /proc/cpuinfo
Processor : ARMv7 Processor rev 5 (v7l)
processor : 0
BogoMIPS : 4799.99
processor : 1
BogoMIPS : 4799.99
processor : 2
BogoMIPS : 4799.99
processor : 3
BogoMIPS : 4799.99
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
Hardware : sun8i
Revision : 0000
Serial : 04005035c218241f04ce
==================== o ======================
fa@FriendlyARM:~$ gcc -march=native -Q --help=target
The following options are target specific:
-mabi= aapcs-linux
-mabort-on-noreturn [disabled]
-mandroid [disabled]
-mapcs [disabled]
-mapcs-float [disabled]
-mapcs-frame [disabled]
-mapcs-reentrant [disabled]
-mapcs-stack-check [disabled]
-march= armv7ve
-marm [disabled]
-masm-syntax-unified [disabled]
-mbig-endian [disabled]
-mbionic [disabled]
-mcallee-super-interworking [disabled]
-mcaller-super-interworking [disabled]
-mcpu= [default]
-mfix-cortex-m3-ldrd [enabled]
-mfloat-abi= hard
-mfp16-format= none
-mfpu= vfpv3-d16
-mglibc [enabled]
-mhard-float
-mlittle-endian [enabled]
-mlong-calls [disabled]
-mneon-for-64bits [disabled]
-mnew-generic-costs [disabled]
-mold-rtx-costs [disabled]
-mpic-data-is-text-relative [enabled]
-mpic-register=
-mpoke-function-name [disabled]
-mprint-tune-info [disabled]
-mrestrict-it [enabled]
-msched-prolog [enabled]
-msingle-pic-base [disabled]
-mslow-flash-data [disabled]
-msoft-float
-mstructure-size-boundary= 0x20
-mthumb [enabled]
-mthumb-interwork [enabled]
-mtls-dialect= gnu
-mtp= auto
-mtpcs-frame [disabled]
-mtpcs-leaf-frame [disabled]
-mtune= [default]
-muclibc [disabled]
-munaligned-access [enabled]
-mvectorize-with-neon-double [disabled]
-mvectorize-with-neon-quad [enabled]
-mword-relocations [disabled]
Known ARM ABIs (for use with the -mabi= option):
aapcs aapcs-linux apcs-gnu atpcs iwmmxt
Known ARM architectures (for use with the -march= option):
armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc
iwmmxt iwmmxt2 native
Known __fp16 formats (for use with the -mfp16-format= option):
alternative ieee none
Known ARM FPUs (for use with the -mfpu= option):
crypto-neon-fp-armv8 fp-armv8 fpv4-sp-d16 fpv5-d16 fpv5-sp-d16 neon neon-fp-armv8 neon-fp16 neon-vfpv4 vfp vfp3 vfpv3 vfpv3-d16 vfpv3-d16-fp16 vfpv3-fp16 vfpv3xd vfpv3xd-fp16 vfpv4 vfpv4-d16
Valid arguments to -mtp=:
auto cp15 soft
Known floating-point ABIs (for use with the -mfloat-abi= option):
hard soft softfp
Known ARM CPUs (for use with the -mcpu= and -mtune= options):
arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700
arm700i arm710 arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920 arm920t arm922t arm926ej-s arm940t
arm946e-s arm966e-s arm968e-s arm9e arm9tdmi cortex-a12 cortex-a15 cortex-a15.cortex-a7 cortex-a17 cortex-a17.cortex-a7 cortex-a5 cortex-a53 cortex-a57 cortex-a57.cortex-a53 cortex-a7 cortex-a72
cortex-a72.cortex-a53 cortex-a8 cortex-a9 cortex-m0 cortex-m0.small-multiply cortex-m0plus cortex-m0plus.small-multiply cortex-m1 cortex-m1.small-multiply cortex-m3 cortex-m4 cortex-m7 cortex-r4
cortex-r4f cortex-r5 cortex-r7 ep9312 exynos-m1 fa526 fa606te fa626 fa626te fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 marvell-pj4 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100
strongarm1110 xgene1 xscale
TLS dialect to use:
gnu gnu2
MEMORY SHIT:
#Increase swap area
sudo mkdir -p /var/cache/swap/
sudo dd if=/dev/zero of=/var/cache/swap/swap0 bs=1M count=512
sudo chmod 0600 /var/cache/swap/swap0
sudo mkswap /var/cache/swap/swap0
sudo swapon /var/cache/swap/swap0
The swap file is not used after a restart. It can be integrated in /etc/fstab to use it after restart:
/var/cache/swap/swap0 none swap sw 0 0
RUN:
make CFLAGS="-march=armv7ve"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment