[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ARMulator (Re: psion5/geofox)



日曜日は make World やってました.(_o_)


> Date: Sun, 12 Dec 1999 02:09:24 +0900 (JST)
> Subject: Re: psion5/geofox
> From: sakamoto@cec.co.jp (Kazuki Sakamoto)
>  > sakamoto さんの「自前の code」試してみます?
...
> arm-netbsdで、compileできると思います。

そんなわけで早速やってみようとしたんですが,
arm-netbsd を構築しようとしたらなんか失敗しちゃいました(;_;).
egcs で NetBSD パッチを求められるんですが….

--

しょーがないので unified bfd でやってみました(^^;).

(0) MACHINE_ARCH=arm32 で gas/ld.new/binutils/egcs をコンパイル.
(1) mkdir arm32/stand して boot-geofox.tgz 展開して (1) でコンパイル.

--(ここから)--
% file boot.bin
boot.bin: NetBSD/arm32 executable not stripped
% objdump -d boot.bin | head

boot.bin:     file format a.out-arm-netbsd

Disassembly of section .text:

c0028000 <start>:
c0028000:       ea000003        b       c0028014 <La1>
c0028004:       c0028000        andgt   r8, r2, r0
c0028008:       c002aca8        andgt   sl, r2, r8, lsr #25
c002800c:       c002803c        andgt   r8, r2, ip, lsr r0
--(ここまで)--

(2) binary 化された``boot''を``bootsim.rom''という名前に変更.
(3) NetBSD/i386 1.4L でコンパイルした arm-linux-gdb を起動.

--(ここから)--
% arm-linux-gdb
...
(gdb) target sim
Connected to the simulator.
(gdb) run
Starting program:  
warning: No executable file specified.
warning: No program loaded.
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
...
^C
Program received signal SIGINT, Interrupt.
No program loaded.
(gdb)
--(ここまで)--

だそーです(をい).

--

使えそうですかね?

--
Y. Takizawa	(滝沢陽三)
you@nightbreak.org, takizawa@computer.org
``Don't feel as if the key to successful computing is only in your hands.''