embeded/ARM2015. 2. 10. 17:24

neon은 켜져있는데.. vfpv3는 안켜줬네?


$ LD_SHOW_AUXV=1 ls

AT_HWCAP:    swp half thumb fast-mult vfp edsp neon

AT_PAGESZ:       4096

AT_CLKTCK:       100

AT_PHDR:         0x8034

AT_PHENT:        32

AT_PHNUM:        10

AT_BASE:         0x2aaab000

AT_FLAGS:        0x0

AT_ENTRY:        0x9bf0

AT_UID:          1000

AT_EUID:         1000

AT_GID:          1000

AT_EGID:         1000

AT_SECURE:       0

AT_RANDOM:       0x7e9cf967

AT_EXECFN:       /bin/ls

AT_PLATFORM:     v7l


$ cat /proc/cpuinfo

Processor       : ARMv7 Processor rev 1 (v7l)

BogoMIPS        : 799.53

Features        : swp half thumb fastmult vfp edsp neon vfpv3

CPU implementer : 0x41

CPU architecture: 7

CPU variant     : 0x2

CPU part        : 0xc08

CPU revision    : 1


Hardware        : Freescale MX51 Babbage Board

Revision        : 51120

Serial          : 0000000000000000



'embeded > ARM' 카테고리의 다른 글

arm linux patch  (0) 2015.02.20
gcc -lz 와 -z  (0) 2015.02.12
zedboard / cortex-A9 / Xilinx Zynq-7000 neon & vfpv3  (0) 2015.02.10
uboot.bin 아키텍쳐별 바이너리 차이점  (0) 2015.02.09
ARM assembly / coprocessor & NEON  (0) 2015.02.09
Posted by 구차니
embeded/ARM2015. 2. 10. 08:20

커널에서

Floating Poiint 관련 옵션을 빼면 커널 패닉이 나서 부팅이 안된다 -_-

그래서.. 커널에서 빼면 장비가 사용 불가능한지 테스트 불가 -_ㅠ


# cat /proc/cpuinfo

processor       : 0

model name      : ARMv7 Processor rev 0 (v7l)

BogoMIPS        : 1332.01

Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls

CPU implementer : 0x41

CPU architecture: 7

CPU variant     : 0x3

CPU part        : 0xc09

CPU revision    : 0


processor       : 1

model name      : ARMv7 Processor rev 0 (v7l)

BogoMIPS        : 1332.01

Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls

CPU implementer : 0x41

CPU architecture: 7

CPU variant     : 0x3

CPU part        : 0xc09

CPU revision    : 0


Hardware        : Xilinx Zynq Platform

Revision        : 0000

Serial          : 0000000000000000 


# LD_SHOW_AUXV=1 /bin/dd

AT_HWCAP:    swp half thumb fastmult vfp edsp neon vfpv3 tls

AT_PAGESZ:       4096

AT_CLKTCK:       100

AT_PHDR:         0x8034

AT_PHENT:        32

AT_PHNUM:        8

AT_BASE:         0xb6fc7000

AT_FLAGS:        0x0

AT_ENTRY:        0xe990

AT_UID:          0

AT_EUID:         0

AT_GID:          0

AT_EGID:         0

AT_SECURE:       0

AT_RANDOM:       0xbea33f12

AT_EXECFN:       /bin/dd

AT_PLATFORM:     v7l



'embeded > ARM' 카테고리의 다른 글

gcc -lz 와 -z  (0) 2015.02.12
i.MX515 EVK 보드 CPU 활성화 내용  (0) 2015.02.10
uboot.bin 아키텍쳐별 바이너리 차이점  (0) 2015.02.09
ARM assembly / coprocessor & NEON  (0) 2015.02.09
neon / co-processor 그리고 MCR MRC p16  (0) 2015.02.09
Posted by 구차니
embeded/ARM2015. 2. 9. 14:13

CFLAGS에 주니 이상해서

CC = (CROSS_COMPILE)gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp

주고 컴파일 후

$ readelf -a u-boot

로 확인해본 내용


$ readelf -a u-boot

Attribute Section: aeabi

File Attributes

  Tag_CPU_name: "5"

  Tag_CPU_arch: v5T

  Tag_ARM_ISA_use: Yes

  Tag_THUMB_ISA_use: Thumb-1

  Tag_ABI_PCS_wchar_t: 4

  Tag_ABI_FP_denormal: Needed

  Tag_ABI_FP_exceptions: Needed

  Tag_ABI_FP_number_model: IEEE 754

  Tag_ABI_align8_needed: Yes

  Tag_ABI_enum_size: int 


$ readelf -a u-boot

Attribute Section: aeabi

File Attributes

  Tag_CPU_name: "7-A"

  Tag_CPU_arch: v7

  Tag_CPU_arch_profile: Application

  Tag_ARM_ISA_use: Yes

  Tag_THUMB_ISA_use: Thumb-2

  Tag_FP_arch: VFPv3

  Tag_Advanced_SIMD_arch: NEONv1

  Tag_ABI_PCS_wchar_t: 4

  Tag_ABI_FP_denormal: Needed

  Tag_ABI_FP_exceptions: Needed

  Tag_ABI_FP_number_model: IEEE 754

  Tag_ABI_align_needed: 8-byte

  Tag_ABI_enum_size: int 


머.. 그렇게 한다고 해도.. neon이나 vfpv3가 활성화 되진 않네..

Posted by 구차니
embeded/ARM2015. 2. 9. 11:52


MRC는 R←C로

MCR은 C←R로


MCR 코프로세스번호, 0, 레지스터번호, Coprocessor 레지스터번호, c0, 0

MCR p15, 0, r4, c2, c0, 0

coprocessor 15번 2번 register에 r4 값을 전송

[링크 : http://recipes.egloos.com/5041803]


AND    논리 AND

ORR    논리 OR

EOR    논리 배타적 OR

BIC    논리 AND NOT

ORN    논리 OR NOT (Thumb-2에만 해당)

[링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0204ik/Cihdafai.html]


[링크 : http://dreamlog.tistory.com/221]

Posted by 구차니
embeded/ARM2015. 2. 9. 11:32


arm 에서 레퍼런스 확인중

NEON은 끄거나 켤수 있고

"NEON 옵션 없이 프로세서를 설정시,

모든 Advanced SIMD와 VFP 명령어의 시도의 결과는 정의되지 않은 명령어 예외발생이 된다."




MRC와 MCR 명령을 이용해서 코프로세서 p15 번에 명령을 주는데

여기서는 NEON을 비활성화 하는 것으로 보여진다.


CP15에 MRC/MCR 명령을 통해 Auxiliary Control Register에 접근할 수 있다.


뜬금(...?)없는 어셈블리 공부 하게 생겼구만 -_ㅠ

[링크 : http://infocenter.arm.com/help/topic/com.arm.doc.ddi0344k/DDI0344K_cortex_a8_r3p2_trm.pdf]

'embeded > ARM' 카테고리의 다른 글

uboot.bin 아키텍쳐별 바이너리 차이점  (0) 2015.02.09
ARM assembly / coprocessor & NEON  (0) 2015.02.09
freescale imx515 neon  (0) 2015.02.02
ARM cortex-a8 neon 활성화 체크  (0) 2015.02.02
i.mx515 uboot cross compile  (0) 2015.02.02
Posted by 구차니
embeded/ARM2015. 2. 2. 18:31

ARM 레지스터인데..

아무튼 이녀석을 어디서 제어하냐가 문제이려나..

uboot와 kernel 누구냐... 도대체 ㅠㅠ



[14]

Force NEON clock

Forces NEON clock enable active:

0 = does not prevent the processor clock generator from stopping the NEON clock, reset value

1 = prevents the processor clock generator from stopping the NEON clock.


[12]

Force NEON single issue

Forces single issue of Advanced SIMD instructions:

0 = does not force single issue of Advanced SIMD instructions, reset value

1 = forces single issue of Advanced SIMD instructions.


[5]

L1NEON

Enables caching NEON data within the L1 data cache:

0 = disables caching NEON data within the L1 data cache, reset value

1 = enables caching NEON data within the L1 data and L2 cache.

Note

NEON L1 caching should be enabled for best performance when the L2 cache is off or not present.


[링크 : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344i/Chddgcfe.html]

    [링크 : https://community.freescale.com/thread/259830]

'embeded > ARM' 카테고리의 다른 글

ARM assembly / coprocessor & NEON  (0) 2015.02.09
neon / co-processor 그리고 MCR MRC p16  (0) 2015.02.09
ARM cortex-a8 neon 활성화 체크  (0) 2015.02.02
i.mx515 uboot cross compile  (0) 2015.02.02
i.mx515 kernel cross compile  (0) 2015.02.02
Posted by 구차니
embeded/ARM2015. 2. 2. 17:56

음.. cpuinfo에서는 cpu에서 지원하는 사항을

/proc/self/auxy 에서는 레지스터를 볼 수 있다고 한다.

NEON can be detected at compile time by checking: #ifdef __ARM_NEON__

NEON can be detected at runtime on Linux by checking the CPU flags, by running "cat /proc/cpuinfo" or searching the file "/proc/self/auxv" for AT_HWCAP to check for the HWCAP_NEON bit (4096).


[링크 : http://shervinemami.info/armAssembly.html] 


일단은.. 저런 설정사항들이 있고...

AUX. control register랑은 순서가 다르네..

Linux/arch/arm/include/uapi/asm/hwcap.h


  1 #ifndef _UAPI__ASMARM_HWCAP_H

  2 #define _UAPI__ASMARM_HWCAP_H

  3 

  4 /*

  5  * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP

  6  */

  7 #define HWCAP_SWP       (1 << 0)

  8 #define HWCAP_HALF      (1 << 1)

  9 #define HWCAP_THUMB     (1 << 2)

 10 #define HWCAP_26BIT     (1 << 3)        /* Play it safe */

 11 #define HWCAP_FAST_MULT (1 << 4)

 12 #define HWCAP_FPA       (1 << 5)

 13 #define HWCAP_VFP       (1 << 6)

 14 #define HWCAP_EDSP      (1 << 7)

 15 #define HWCAP_JAVA      (1 << 8)

 16 #define HWCAP_IWMMXT    (1 << 9)

 17 #define HWCAP_CRUNCH    (1 << 10)

 18 #define HWCAP_THUMBEE   (1 << 11)

 19 #define HWCAP_NEON      (1 << 12)

 20 #define HWCAP_VFPv3     (1 << 13)

 21 #define HWCAP_VFPv3D16  (1 << 14)       /* also set for VFPv4-D16 */

 22 #define HWCAP_TLS       (1 << 15)

 23 #define HWCAP_VFPv4     (1 << 16)

 24 #define HWCAP_IDIVA     (1 << 17)

 25 #define HWCAP_IDIVT     (1 << 18)

 26 #define HWCAP_VFPD32    (1 << 19)       /* set if VFP has 32 regs (not 16) */

 27 #define HWCAP_IDIV      (HWCAP_IDIVA | HWCAP_IDIVT)

 28 #define HWCAP_LPAE      (1 << 20)

 29 #define HWCAP_EVTSTRM   (1 << 21)

 30 

 31 /*

 32  * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2

 33  */

 34 #define HWCAP2_AES      (1 << 0)

 35 #define HWCAP2_PMULL    (1 << 1)

 36 #define HWCAP2_SHA1     (1 << 2)

 37 #define HWCAP2_SHA2     (1 << 3)

 38 #define HWCAP2_CRC32    (1 << 4)

 39 

 40 #endif /* _UAPI__ASMARM_HWCAP_H */

 41 


[링크 : http://lxr.free-electrons.com/source/arch/arm/include/uapi/asm/hwcap.h#L19]


음. auxy 파일을 덤프해서 봐도 모르겠고 -_-

$ hexdump dump

0000000 0010 0000 30d7 0000 0006 0000 1000 0000

0000010 0011 0000 0064 0000 0003 0000 8034 0000

0000020 0004 0000 0020 0000 0005 0000 0009 0000

0000030 0007 0000 b000 2aaa 0008 0000 0000 0000

0000040 0009 0000 43e8 0001 000b 0000 0000 0000

0000050 000c 0000 0000 0000 000d 0000 0000 0000

0000060 000e 0000 0000 0000 0017 0000 0000 0000

0000070 0019 0000 de48 7e82 001f 0000 dff3 7e82

0000080 000f 0000 de58 7e82 0000 0000 0000 0000

0000090



찾던중에 반가운!!!!

암튼 이녀석은 실제로 활성화된 내용을 볼수 있는 것으로 생각된다!!

왜냐면!!! vfpv3 neon이 없거덩!?

이녀석은.. 일단 root로 실행해야 한다.

# LD_SHOW_AUXV=1 /bin/dd

AT_HWCAP:    swp half thumb fast-mult vfp edsp

AT_PAGESZ:       4096

AT_CLKTCK:       100

AT_PHDR:         0x8034

AT_PHENT:        32

AT_PHNUM:        9

AT_BASE:         0x2aaab000

AT_FLAGS:        0x0

AT_ENTRY:        0x143e8

AT_UID:          0

AT_EUID:         0

AT_GID:          0

AT_EGID:         0

AT_SECURE:       0

AT_RANDOM:       0x7ef2de47

AT_EXECFN:       /bin/dd

AT_PLATFORM:     v7l


[링크 : http://www.linuxquestions.org/.../what-does-proc-pid-auxv-mean-exactly-4175421876/]




'embeded > ARM' 카테고리의 다른 글

neon / co-processor 그리고 MCR MRC p16  (0) 2015.02.09
freescale imx515 neon  (0) 2015.02.02
i.mx515 uboot cross compile  (0) 2015.02.02
i.mx515 kernel cross compile  (0) 2015.02.02
i.mx515 SDMA  (0) 2015.02.02
Posted by 구차니
embeded/ARM2015. 2. 2. 17:31

$ tar -xvf u-boot-v2009.08.tar.bz2

$ tar -xvf u-boot-v2009.08-imx_10.12.01.tar.bz2

$ mv patches u-boot-2009.08

$ mv u-boot-2009.08/pathces/patch-uboot.sh ./u-boot-2009.08

$ cd u-boot-2009.08

$ chmod 777 patch-uboot.sh

$ ./patch-uboot.sh


make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi- mx51_bbg_config

make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi- -j8 


u-boot-2009.08/board/freescale$ ls

common     m5329evb     mpc8323erdb  mpc8548cds   mx31ads

m5208evbe  m5373evb     mpc832xemds  mpc8555cds   mx31pdk

m52277evb  m54451evb    mpc8349emds  mpc8560ads   mx35_3stack

m5235evb   m54455evb    mpc8349itx   mpc8568mds   mx50_rdp

m5249evb   m547xevb     mpc8360emds  mpc8569mds   mx51_3stack

m5253demo  m548xevb     mpc8360erdk  mpc8572ds    mx51_bbg

m5253evbe  mpc5121ads   mpc837xemds  mpc8610hpcd  mx53_rd

m5271evb   mpc7448hpc2  mpc837xerdb  mpc8641hpcn  p2020ds

m5272c3    mpc8260ads   mpc8536ds    mx23_evk

m5275evb   mpc8266ads   mpc8540ads   mx25_3stack

m5282evb   mpc8313erdb  mpc8541cds   mx28_evk

m53017evb  mpc8315erdb  mpc8544ds    mx31_3stack 


'embeded > ARM' 카테고리의 다른 글

freescale imx515 neon  (0) 2015.02.02
ARM cortex-a8 neon 활성화 체크  (0) 2015.02.02
i.mx515 kernel cross compile  (0) 2015.02.02
i.mx515 SDMA  (0) 2015.02.02
armv7 errata / kernel  (0) 2015.01.28
Posted by 구차니
embeded/ARM2015. 2. 2. 14:53

별거 없네 -_-a

라고 하지만 일단 칩 벤더 패치 먹이는 것 부터가 일단 난관? ㅋㅋㅋ


$ make distclean

$ make -j8 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- defconfig imx5_defconfig

$ make -j8 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- 



distclean 하면 .config 까지 날아가서 완전 새로 설정해야 한다.
그리고 help는 해당 아키텍쳐에 대해서만 나오니

$ make help

Cleaning targets:

  clean   - Remove most generated files but keep the config and

                    enough build support to build external modules

  mrproper   - Remove all generated files + config + various backup files

  distclean   - mrproper + remove editor backup and patch files


Configuration targets:

  config   - Update current config utilising a line-oriented program

  nconfig         - Update current config utilising a ncurses menu based program

  menuconfig   - Update current config utilising a menu based program

  xconfig   - Update current config utilising a QT based front-end

  gconfig   - Update current config utilising a GTK based front-end

  oldconfig   - Update current config utilising a provided .config as base

  localmodconfig  - Update current config disabling modules not loaded

  localyesconfig  - Update current config converting local mods to core

  silentoldconfig - Same as oldconfig, but quietly, additionally update deps

  randconfig   - New config with random answer to all options

  defconfig   - New config with default answer to all options

  allmodconfig   - New config selecting modules when possible

  allyesconfig   - New config where all options are accepted with yes

  allnoconfig   - New config where all options are answered with no


Other generic targets:

  all   - Build all targets marked with [*]

* vmlinux   - Build the bare kernel

* modules   - Build all modules

  modules_install - Install all modules to INSTALL_MOD_PATH (default: /)

  firmware_install- Install all firmware to INSTALL_FW_PATH

                    (default: $(INSTALL_MOD_PATH)/lib/firmware)

  dir/            - Build all files in dir and below

  dir/file.[oisS] - Build specified target only

  dir/file.lst    - Build specified mixed source/assembly target only

                    (requires a recent binutils and recent build (System.map))

  dir/file.ko     - Build module including final link

  modules_prepare - Set up for building external modules

  tags/TAGS   - Generate tags file for editors

  cscope   - Generate cscope index

  kernelrelease   - Output the release version string

  kernelversion   - Output the version stored in Makefile

  headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH

                    (default: /home/interm/Downloads/linux/linux-2.6.35.3/usr)


Static analysers

  checkstack      - Generate a list of stack hogs

  namespacecheck  - Name space analysis on compiled kernel

  versioncheck    - Sanity check on version.h usage

  includecheck    - Check for duplicate included header files

  export_report   - List the usages of all exported symbols

  headers_check   - Sanity check on exported headers

  headerdep       - Detect inclusion cycles in headers


Kernel packaging:

  rpm-pkg         - Build both source and binary RPM kernel packages

  binrpm-pkg      - Build only the binary kernel package

  deb-pkg         - Build the kernel as an deb package

  tar-pkg         - Build the kernel as an uncompressed tarball

  targz-pkg       - Build the kernel as a gzip compressed tarball

  tarbz2-pkg      - Build the kernel as a bzip2 compressed tarball


Documentation targets:

 Linux kernel internal documentation in different formats:

  htmldocs        - HTML

  pdfdocs         - PDF

  psdocs          - Postscript

  xmldocs         - XML DocBook

  mandocs         - man pages

  installmandocs  - install man pages generated by mandocs

  cleandocs       - clean all generated DocBook files


Architecture specific targets (x86):

* bzImage      - Compressed kernel image (arch/x86/boot/bzImage)

  install      - Install kernel using

                  (your) ~/bin/installkernel or

                  (distribution) /sbin/installkernel or

                  install to $(INSTALL_PATH) and run lilo

  fdimage      - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)

  fdimage144   - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)

  fdimage288   - Create 2.8MB boot floppy image (arch/x86/boot/fdimage)

  isoimage     - Create a boot CD-ROM image (arch/x86/boot/image.iso)

                  bzdisk/fdimage*/isoimage also accept:

                  FDARGS="..."  arguments for the booted kernel

                  FDINITRD=file initrd for the booted kernel


  i386_defconfig           - Build for i386

  x86_64_defconfig         - Build for x86_64


  make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build

  make V=2   [targets] 2 => give reason for rebuild of target

  make O=dir [targets] Locate all output files in "dir", including .config

  make C=1   [targets] Check all c source with $CHECK (sparse by default)

  make C=2   [targets] Force check of all c source with $CHECK


Execute "make" or "make all" to build all targets marked with [*] 

For further info see the ./README file 


아키텍쳐를 정해주면 해당 아키텍쳐에 대한 설정이 쭈욱 나온다.

imx5_defconfig 외에는 되는게 없네 -_-

$ make help ARCH=arm

Cleaning targets:

  clean  - Remove most generated files but keep the config and

                    enough build support to build external modules

  mrproper  - Remove all generated files + config + various backup files

  distclean  - mrproper + remove editor backup and patch files


Configuration targets:

  config  - Update current config utilising a line-oriented program

  nconfig         - Update current config utilising a ncurses menu based program

  menuconfig  - Update current config utilising a menu based program

  xconfig  - Update current config utilising a QT based front-end

  gconfig  - Update current config utilising a GTK based front-end

  oldconfig  - Update current config utilising a provided .config as base

  localmodconfig  - Update current config disabling modules not loaded

  localyesconfig  - Update current config converting local mods to core

  silentoldconfig - Same as oldconfig, but quietly, additionally update deps

  randconfig  - New config with random answer to all options

  defconfig  - New config with default answer to all options

  allmodconfig  - New config selecting modules when possible

  allyesconfig  - New config where all options are accepted with yes

  allnoconfig  - New config where all options are answered with no


Other generic targets:

  all  - Build all targets marked with [*]

* vmlinux  - Build the bare kernel

* modules  - Build all modules

  modules_install - Install all modules to INSTALL_MOD_PATH (default: /)

  firmware_install- Install all firmware to INSTALL_FW_PATH

                    (default: $(INSTALL_MOD_PATH)/lib/firmware)

  dir/            - Build all files in dir and below

  dir/file.[oisS] - Build specified target only

  dir/file.lst    - Build specified mixed source/assembly target only

                    (requires a recent binutils and recent build (System.map))

  dir/file.ko     - Build module including final link

  modules_prepare - Set up for building external modules

  tags/TAGS  - Generate tags file for editors

  cscope  - Generate cscope index

  kernelrelease  - Output the release version string

  kernelversion  - Output the version stored in Makefile

  headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH

                    (default: /home/interm/Downloads/linux/linux-2.6.35.3/usr)


Static analysers

  checkstack      - Generate a list of stack hogs

  namespacecheck  - Name space analysis on compiled kernel

  versioncheck    - Sanity check on version.h usage

  includecheck    - Check for duplicate included header files

  export_report   - List the usages of all exported symbols

  headers_check   - Sanity check on exported headers

  headerdep       - Detect inclusion cycles in headers


Kernel packaging:

  rpm-pkg         - Build both source and binary RPM kernel packages

  binrpm-pkg      - Build only the binary kernel package

  deb-pkg         - Build the kernel as an deb package

  tar-pkg         - Build the kernel as an uncompressed tarball

  targz-pkg       - Build the kernel as a gzip compressed tarball

  tarbz2-pkg      - Build the kernel as a bzip2 compressed tarball


Documentation targets:

 Linux kernel internal documentation in different formats:

  htmldocs        - HTML

  pdfdocs         - PDF

  psdocs          - Postscript

  xmldocs         - XML DocBook

  mandocs         - man pages

  installmandocs  - install man pages generated by mandocs

  cleandocs       - clean all generated DocBook files


Architecture specific targets (arm):

* zImage        - Compressed kernel image (arch/arm/boot/zImage)

  Image         - Uncompressed kernel image (arch/arm/boot/Image)

* xipImage      - XIP kernel image, if configured (arch/arm/boot/xipImage)

  uImage        - U-Boot wrapped zImage

  bootpImage    - Combined zImage and initial RAM disk

                  (supply initrd image via make variable INITRD=<path>)

  install       - Install uncompressed kernel

  zinstall      - Install compressed kernel

                  Install using (your) ~/bin/installkernel or

                  (distribution) /sbin/installkernel or

                  install to $(INSTALL_PATH) and run lilo


  acs5k_defconfig          - Build for acs5k

  acs5k_tiny_defconfig     - Build for acs5k_tiny

  afeb9260_defconfig       - Build for afeb9260

  am200epdkit_defconfig    - Build for am200epdkit

  am3517_evm_defconfig     - Build for am3517_evm

  ams_delta_defconfig      - Build for ams_delta

  ap4evb_defconfig         - Build for ap4evb

  assabet_defconfig        - Build for assabet

  at572d940hfek_defconfig  - Build for at572d940hfek

  at91cap9adk_defconfig    - Build for at91cap9adk

  at91rm9200dk_defconfig   - Build for at91rm9200dk

  at91rm9200ek_defconfig   - Build for at91rm9200ek

  at91sam9260ek_defconfig  - Build for at91sam9260ek

  at91sam9261ek_defconfig  - Build for at91sam9261ek

  at91sam9263ek_defconfig  - Build for at91sam9263ek

  at91sam9g20ek_defconfig  - Build for at91sam9g20ek

  at91sam9rlek_defconfig   - Build for at91sam9rlek

  ateb9200_defconfig       - Build for ateb9200

  badge4_defconfig         - Build for badge4

  bcmring_defconfig        - Build for bcmring

  cam60_defconfig          - Build for cam60

  carmeva_defconfig        - Build for carmeva

  cerfcube_defconfig       - Build for cerfcube

  cm_t35_defconfig         - Build for cm_t35

  cm_x2xx_defconfig        - Build for cm_x2xx

  cm_x300_defconfig        - Build for cm_x300

  cns3420vb_defconfig      - Build for cns3420vb

  colibri_pxa270_defconfig - Build for colibri_pxa270

  colibri_pxa300_defconfig - Build for colibri_pxa300

  collie_defconfig         - Build for collie

  corgi_defconfig          - Build for corgi

  cpu9260_defconfig        - Build for cpu9260

  cpu9g20_defconfig        - Build for cpu9g20

  cpuat91_defconfig        - Build for cpuat91

  csb337_defconfig         - Build for csb337

  csb637_defconfig         - Build for csb637

  da8xx_omapl_defconfig    - Build for da8xx_omapl

  davinci_all_defconfig    - Build for davinci_all

  devkit8000_defconfig     - Build for devkit8000

  dove_defconfig           - Build for dove

  ebsa110_defconfig        - Build for ebsa110

  ecbat91_defconfig        - Build for ecbat91

  edb7211_defconfig        - Build for edb7211

  em_x270_defconfig        - Build for em_x270

  ep93xx_defconfig         - Build for ep93xx

  eseries_pxa_defconfig    - Build for eseries_pxa

  ezx_defconfig            - Build for ezx

  footbridge_defconfig     - Build for footbridge

  fortunet_defconfig       - Build for fortunet

  g3evm_defconfig          - Build for g3evm

  g4evm_defconfig          - Build for g4evm

  h3600_defconfig          - Build for h3600

  h5000_defconfig          - Build for h5000

  h7201_defconfig          - Build for h7201

  h7202_defconfig          - Build for h7202

  hackkit_defconfig        - Build for hackkit

  htcherald_defconfig      - Build for htcherald

  igep0020_defconfig       - Build for igep0020

  imote2_defconfig         - Build for imote2

  imx23evk_defconfig       - Build for imx23evk

  imx23evk_updater_defconfig - Build for imx23evk_updater

  imx25_3stack_defconfig   - Build for imx25_3stack

  imx25_updater_defconfig  - Build for imx25_updater

  imx28evk_defconfig       - Build for imx28evk

  imx28evk_updater_defconfig - Build for imx28evk_updater

  imx5_defconfig           - Build for imx5

  imx5_updater_defconfig   - Build for imx5_updater

  integrator_defconfig     - Build for integrator

  iop13xx_defconfig        - Build for iop13xx

  iop32x_defconfig         - Build for iop32x

  iop33x_defconfig         - Build for iop33x

  ixp2000_defconfig        - Build for ixp2000

  ixp23xx_defconfig        - Build for ixp23xx

  ixp4xx_defconfig         - Build for ixp4xx

  jornada720_defconfig     - Build for jornada720

  kafa_defconfig           - Build for kafa

  kb9202_defconfig         - Build for kb9202

  kirkwood_defconfig       - Build for kirkwood

  ks8695_defconfig         - Build for ks8695

  lart_defconfig           - Build for lart

  loki_defconfig           - Build for loki

  lpd270_defconfig         - Build for lpd270

  lpd7a400_defconfig       - Build for lpd7a400

  lpd7a404_defconfig       - Build for lpd7a404

  lubbock_defconfig        - Build for lubbock

  lusl7200_defconfig       - Build for lusl7200

  magician_defconfig       - Build for magician

  mainstone_defconfig      - Build for mainstone

  mini2440_defconfig       - Build for mini2440

  mmp2_defconfig           - Build for mmp2

  msm_defconfig            - Build for msm

  mv78xx0_defconfig        - Build for mv78xx0

  mx1_defconfig            - Build for mx1

  mx21_defconfig           - Build for mx21

  mx27_defconfig           - Build for mx27

  mx31pdk_defconfig        - Build for mx31pdk

  mx3_defconfig            - Build for mx3

  mx3_updater_defconfig    - Build for mx3_updater

  mx51_defconfig           - Build for mx51

  n770_defconfig           - Build for n770

  n8x0_defconfig           - Build for n8x0

  neocore926_defconfig     - Build for neocore926

  neponset_defconfig       - Build for neponset

  netwinder_defconfig      - Build for netwinder

  netx_defconfig           - Build for netx

  nhk8815_defconfig        - Build for nhk8815

  ns9xxx_defconfig         - Build for ns9xxx

  nuc910_defconfig         - Build for nuc910

  nuc950_defconfig         - Build for nuc950

  nuc960_defconfig         - Build for nuc960

  omap_2430sdp_defconfig   - Build for omap_2430sdp

  omap_3430sdp_defconfig   - Build for omap_3430sdp

  omap_3630sdp_defconfig   - Build for omap_3630sdp

  omap3_beagle_defconfig   - Build for omap3_beagle

  omap3_defconfig          - Build for omap3

  omap3_evm_defconfig      - Build for omap3_evm

  omap3_pandora_defconfig  - Build for omap3_pandora

  omap3_stalker_lks_defconfig - Build for omap3_stalker_lks

  omap3_touchbook_defconfig - Build for omap3_touchbook

  omap_4430sdp_defconfig   - Build for omap_4430sdp

  omap_apollon_2420_defconfig - Build for omap_apollon_2420

  omap_generic_1510_defconfig - Build for omap_generic_1510

  omap_generic_1610_defconfig - Build for omap_generic_1610

  omap_generic_1710_defconfig - Build for omap_generic_1710

  omap_generic_2420_defconfig - Build for omap_generic_2420

  omap_h2_1610_defconfig   - Build for omap_h2_1610

  omap_h4_2420_defconfig   - Build for omap_h4_2420

  omap_innovator_1510_defconfig - Build for omap_innovator_1510

  omap_innovator_1610_defconfig - Build for omap_innovator_1610

  omap_ldp_defconfig       - Build for omap_ldp

  omap_osk_5912_defconfig  - Build for omap_osk_5912

  omap_perseus2_730_defconfig - Build for omap_perseus2_730

  omap_zoom2_defconfig     - Build for omap_zoom2

  omap_zoom3_defconfig     - Build for omap_zoom3

  onearm_defconfig         - Build for onearm

  orion5x_defconfig        - Build for orion5x

  overo_defconfig          - Build for overo

  palmte_defconfig         - Build for palmte

  palmtt_defconfig         - Build for palmtt

  palmz71_defconfig        - Build for palmz71

  palmz72_defconfig        - Build for palmz72

  pcm027_defconfig         - Build for pcm027

  picotux200_defconfig     - Build for picotux200

  pleb_defconfig           - Build for pleb

  pnx4008_defconfig        - Build for pnx4008

  pxa168_defconfig         - Build for pxa168

  pxa255-idp_defconfig     - Build for pxa255-idp

  pxa3xx_defconfig         - Build for pxa3xx

  pxa910_defconfig         - Build for pxa910

  qil-a9260_defconfig      - Build for qil-a9260

  raumfeld_defconfig       - Build for raumfeld

  realview_defconfig       - Build for realview

  realview-smp_defconfig   - Build for realview-smp

  rpc_defconfig            - Build for rpc

  rx51_defconfig           - Build for rx51

  s3c2410_defconfig        - Build for s3c2410

  s3c6400_defconfig        - Build for s3c6400

  s5p6440_defconfig        - Build for s5p6440

  s5p6442_defconfig        - Build for s5p6442

  s5pc100_defconfig        - Build for s5pc100

  s5pc110_defconfig        - Build for s5pc110

  s5pv210_defconfig        - Build for s5pv210

  sam9_l9260_defconfig     - Build for sam9_l9260

  shannon_defconfig        - Build for shannon

  shark_defconfig          - Build for shark

  simpad_defconfig         - Build for simpad

  spear300_defconfig       - Build for spear300

  spear310_defconfig       - Build for spear310

  spear320_defconfig       - Build for spear320

  spear600_defconfig       - Build for spear600

  spitz_defconfig          - Build for spitz

  stamp9g20_defconfig      - Build for stamp9g20

  stmp378x_defconfig       - Build for stmp378x

  stmp37xx_defconfig       - Build for stmp37xx

  sx1_defconfig            - Build for sx1

  tct_hammer_defconfig     - Build for tct_hammer

  trizeps4_defconfig       - Build for trizeps4

  u300_defconfig           - Build for u300

  u8500_defconfig          - Build for u8500

  usb-a9260_defconfig      - Build for usb-a9260

  usb-a9263_defconfig      - Build for usb-a9263

  versatile_defconfig      - Build for versatile

  viper_defconfig          - Build for viper

  xcep_defconfig           - Build for xcep

  yl9200_defconfig         - Build for yl9200

  zeus_defconfig           - Build for zeus


  make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build

  make V=2   [targets] 2 => give reason for rebuild of target

  make O=dir [targets] Locate all output files in "dir", including .config

  make C=1   [targets] Check all c source with $CHECK (sparse by default)

  make C=2   [targets] Force check of all c source with $CHECK


Execute "make" or "make all" to build all targets marked with [*] 

For further info see the ./README file


$ make -j8 ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  Kernel: arch/arm/boot/Image is ready

  SHIPPED arch/arm/boot/compressed/lib1funcs.S

  AS      arch/arm/boot/compressed/lib1funcs.o

  LD      arch/arm/boot/compressed/vmlinux

  OBJCOPY arch/arm/boot/zImage

  Kernel: arch/arm/boot/zImage is ready

  UIMAGE  arch/arm/boot/uImage

"mkimage" command not found - U-Boot images will not be built

  Image arch/arm/boot/uImage is ready 


$ mkimage

The program 'mkimage' is currently not installed. You can install it by typing:

sudo apt-get install u-boot-tools


$ sudo apt-get install u-boot-tools


기본으로는 zImage와 Image가 생성되며

uImage는 커널 컴파일시에 uImage로 해야 생성이 된다.



linux-2.6.35.3/arch/arm/boot$ file *Image

Image:  data

uImage: u-boot legacy uImage, Linux-2.6.35.3, Linux/ARM, OS Kernel Image (Not compressed), 2985820 bytes, Sun Feb  1 22:33:13 2015, Load Address: 0x70008000, Entry Point: 0x70008000, Header CRC: 0x0A03D97E, Data CRC: 0x99B88B34

zImage: Linux kernel ARM boot executable zImage (little-endian)


'embeded > ARM' 카테고리의 다른 글

ARM cortex-a8 neon 활성화 체크  (0) 2015.02.02
i.mx515 uboot cross compile  (0) 2015.02.02
i.mx515 SDMA  (0) 2015.02.02
armv7 errata / kernel  (0) 2015.01.28
NEON enabled?  (0) 2015.01.28
Posted by 구차니
embeded/ARM2015. 2. 2. 14:48

SD + MA인가 했는데

S + DMA



programmable smart DMA


[링크 : http://cache.freescale.com/files/32bit/doc/data_sheet/IMX53IEC.pdf]

'embeded > ARM' 카테고리의 다른 글

i.mx515 uboot cross compile  (0) 2015.02.02
i.mx515 kernel cross compile  (0) 2015.02.02
armv7 errata / kernel  (0) 2015.01.28
NEON enabled?  (0) 2015.01.28
armel / armhf  (0) 2015.01.26
Posted by 구차니