본문 바로가기

기타[etc]

Mips 환경 구축

SMALL

$apt-get install qemu


URL : https://people.debian.org/~aurel32/qemu/mipsel/


해당 URL에서 kernel과 image를 다운 받는다.


$wget https://people.debian.org/~aurel32/qemu/mipsel/debian_squeeze_mipsel_standard.qcow2

$wget https://people.debian.org/~aurel32/qemu/mipsel/vmlinux-2.6.32-5-5kc-malta



$qemu-system-mipsel -M malta -kernel vmlinux-2.6.32-5-5kc-malta -hda debian_squeeze_mipsel_standard.qcow2 -append \"root=/dev/sda1 console=tty0\" -nographic -redir tcp:4444::22


실행 후, ssh 접속하고 apt-get 이 옳바르게 되지 않는다.

gcc gdb 설치해야.. 공부를 진행하느데.


$nano /etc/sources.list

# deb http://ftp.debian.org/debian squeeze main


#deb http://ftp.debian.org/debian squeeze main

#deb-src http://ftp.debian.org/debian squeeze main


#deb http://security.debian.org/ squeeze/updates main

#deb-src http://security.debian.org/ squeeze/updates main


# squeeze-updates, previously known as 'volatile'

#deb http://ftp.debian.org/debian squeeze-updates main

#deb-src http://ftp.debian.org/debian squeeze-updates main


deb http://archive.debian.org/debian/ squeeze main non-free contrib


그래서 위와같이 /etc/source.list 파일을 수정한다

기존에 있던 repo는 주석처리하고, 밑에 ~~ contrib 한 줄만 남겨 놓는다.

위와 같이 구성해주고

$apt-get install debian-archive-keyring

$apt-get update

위와같이 진행하고나면 


apt-get install package로 설치가 가능하다.


root@debian-mipsel:/etc/apt# gdb -v

GNU gdb (GDB) 7.0.1-debian

Copyright (C) 2009 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "mipsel-linux-gnu".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.


원하는 툴 설치하고 분석하면 된다.


LIST

'기타[etc]' 카테고리의 다른 글

C언어 정규식  (0) 2017.05.11
python idle 컬러 수정  (0) 2017.03.30
Makefile  (0) 2017.03.27
Daemon 만들기  (0) 2017.03.27
Android Forensic [/Data 추출]  (0) 2017.03.24