'arm'에 해당되는 글 3건

  1. 2016.07.24 arm, mips 2.6에 gcc 설치하기
  2. 2016.07.19 strace 4.12 arm cross compile min version 2.6.32
  3. 2016.06.27 arm gdb cross-comile

arm 이나 mips테스트 할 때 가까 가용하는 qemu 이미지 사이트

3.2 는 apt-get 이 되는데 2.6은 apt-get 이 되지 않는다

메인 사이트가 더이상 서비스 되지 않기 때문이다.


$ sudo apt-get install build-essential


그래서 gcc를 설치하려면 위 명령어 한개만 치면 되는데

여러개 막 설치해 주어야 하고 귀찮은 일들이 많이 일어난다

이때 아카이빙을 source.lists에 넣으면 apt-get 을 사용할 수 있게 된다.

 

(참고)

데비안 아카이빙 사이트

http://archive.debian.org/debian-archive/


(참고)

qemu download

All images are 25GiB images in QCOW2 format on which a Debian Squeeze or Wheezy system has been installed. The standard images correspond to a "Standard system" installation, while the desktop images correspond to a "Standard system" + "Desktop environment" with Gnome, KDE and Xfce environments. On Wheezy the original default desktop environment is Gnome and the default display manager is GDM. These can not work in QEMU, as Gnome needs an accelerated graphics card, which is not provided by QEMU. Moreover both Gnome and GDM need more than the default 128MiB memory provided on QEMU. They have therefore been replaced respectively by Xfce and LightDM on the Wheezy desktop image. Both Gnome and GDM are still installed on the image, and the original default can be restored using the following commands: - update-alternatives --auto x-session-manager - echo /usr/sbin/gdm3 > /etc/X11/default-display-manager The other installation options are the following: - Keyboard: US - Locale: en_US - Mirror: ftp.debian.org - Hostname: debian-armel - Root password: root - User account: user - User password: user To use these images, you need to install QEMU 1.1.0 (or later). Start QEMU with the following arguments: - qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda debian_squeeze_armel_standard.qcow2 -append "root=/dev/sda1" - qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.32-5-versatile -initrd initrd.img-2.6.32-5-versatile -hda debian_squeeze_armel_desktop.qcow2 -append "root=/dev/sda1" - qemu-system-arm -M versatilepb -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.img-3.2.0-4-versatile -hda debian_wheezy_armel_standard.qcow2 -append "root=/dev/sda1" - qemu-system-arm -M versatilepb -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.img-3.2.0-4-versatile -hda debian_wheezy_armel_desktop.qcow2 -append "root=/dev/sda1" By default QEMU emulates a machine with 128MiB of RAM. The -m option increases or decreases the size of the RAM. It is however limited to 256MiB. If you don't want to start QEMU in graphic mode, you can use the -nographic option. The image is configured to display a login prompt on the first serial port (ttyAMA0). If you want to switch the boot messages to the serial port, you need to add "console=ttyAMA0" after "root=/dev

(참고)

https://people.debian.org/~aurel32/qemu/armel/


'MEMO' 카테고리의 다른 글

ubuntu KVM 가상화 설치  (0) 2016.07.25
linux version information  (0) 2016.07.24
strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
FATAL: kernel too old 문제  (0) 2016.07.19
arm gdb cross-comile  (0) 2016.06.27
Posted by goldpapa
,

크로스 컴파일 환경을 구축한다 (인터넷 참조)


Next we'll build the strace itself:


1. 최신 소스 다운로드 https://sourceforge.net/projects/strace

2. 적당히 압축을 푼다

3. cd ./strace-4.12

4. Set the necessary global variables 

export export CC=arm-linux-gnueabi-gcc

(Replace with path to your cross compiler)

5. ./configure --host=arm-linux-gnueabi --prefix='/home/w00t/strace' 

6. make 


w00t@ubuntu64svr14:~/strace-4.12$ ls strace

strace


w00t@ubuntu64svr14:~/strace-4.12$ file strace

strace: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=91104ca9b9d0ba127993601d3a9cea104b72269d, not stripped




'MEMO' 카테고리의 다른 글

linux version information  (0) 2016.07.24
arm, mips 2.6에 gcc 설치하기  (0) 2016.07.24
FATAL: kernel too old 문제  (0) 2016.07.19
arm gdb cross-comile  (0) 2016.06.27
strace 바이너리 모음  (0) 2016.06.25
Posted by goldpapa
,

arm gdb cross-comile

MEMO 2016. 6. 27. 21:56

가끔 필요한테 찾으려면 취찮아지는 것


Install Arm cross-compiler (14-04, 16-04)


sudo apt-get install emdebian-archive-keyring

sudo apt-get install libc6-armel-cross libc6-dev-armel-cross

sudo apt-get install binutils-arm-linux-gnueabi

sudo apt-get install gcc-arm-linux-gnueabi

sudo apt-get install g++-arm-linux-gnueabi

sudo apt-get install u-boot-tools

sudo apt-get install libncurses5-dev


출처) http://noplanlife.com/?p=1293



At first we need to build the termcap library:

1. wget ftp://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz

2. tar xvzf termcap-1.3.1.tar.gz

3. cd ./termcap-1.3.1

4. export CC=arm-linux-gnueabi-gcc

5. ./configure --host=arm-linux-gnueabi --prefix=/home/w00t/termcap

6. make

7. make install (불필요)


Next we'll build the gdb itself:

1. wget http://ftp.gnu.org/gnu/gdb/gdb-7.10.tar.gz

2. tar xvzf gdb-7.10.tar.gz

3. cd ./gdb-7.10

4. Set the necessary global variables 

export export CC=arm-linux-gnueabi-gcc

(Replace with path to your cross compiler)


export LDFLAGS="-static -L/home/w00t/termcap/lib"

Replace the path to your TermCap library


export CFLAGS="-g -O2 -I/home/w00t/termcap/include"

Replace the path to your TermCap library


5. ./configure --host=arm-linux-gnueabi --prefix='/home/w00t/gdb' --disable-werror

6. make 

7. make install (불필요)


출처) http://tigertop.blogspot.kr/2011/03/building-gdb-72-for-arm-architecture-on.html


ubuntu64svr14:~/gdb-7.10$ file ./gdb/gdbserver/gdbserver

./gdb/gdbserver/gdbserver: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=d0e0fb8a014279d9029472ca2523739925ac9d6d, not stripped

gdbserver7.10


ubuntu64svr14:~/gdb-7.10$ file ./gdb/gdb

./gdb/gdb: ELF 32-bit LSB  executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=5ee712c726e880631e060d899e88c93fd8661c82, not stripped


'MEMO' 카테고리의 다른 글

strace 4.12 arm cross compile min version 2.6.32  (0) 2016.07.19
FATAL: kernel too old 문제  (0) 2016.07.19
strace 바이너리 모음  (0) 2016.06.25
ARM gdb-peda 설치  (0) 2016.04.01
ROPgadget Tool  (0) 2016.03.31
Posted by goldpapa
,