Page 1 of 1

is there a method to test boot of the ARM in the linux

Posted: Thu Dec 18, 2008 2:04 am
by micro
hi,
i am studing the boot code of the ARM in the linux,

i want to modify and complie only one file , like head-armv.s, and stop at start_kernel.

set up the environment, with ARMUlator,
use the genromfs to generate the ROMFS as the boot.rom
and then to debug the head-armv

i just think about it ,

welcome any advice....

thanks

Re: is there a method to test boot of the ARM in the linux

Posted: Thu Dec 18, 2008 9:57 am
by Dex
May be you could look into DS emulators for linux.

Re: is there a method to test boot of the ARM in the linux

Posted: Thu Dec 18, 2008 11:21 pm
by micro
Dex wrote:May be you could look into DS emulators for linux.
thank you , Dex

i find the DS enulator, and i see all it's site say it used in GAME,
I see nothing about arm in the emulator,
does it can work with arm processor?

Re: is there a method to test boot of the ARM in the linux

Posted: Fri Dec 19, 2008 12:11 am
by Brynet-Inc
QEMU has an ARM target, Linux images are made available on the download page.

People don't often realize that QEMU emulates multiple architectures.. ;)

Re: is there a method to test boot of the ARM in the linux

Posted: Fri Dec 19, 2008 10:44 am
by Firestryke31
micro wrote: i find the DS enulator, and i see all it's site say it used in GAME,
I see nothing about arm in the emulator,
does it can work with arm processor?
The Nintendo DS is powered by 2 ARM processors (along with some other hardware for graphics, sound, etc.).
Wikipedia wrote:CPUs: Two ARM processors, an ARM946E-S main CPU and ARM7TDMI co-processor at clock speeds of 67 MHz and 33 MHz respectively. The ARM946E-S CPU processes 3D rendering and the ARM7TDMI processes 2D rendering for DS games and Game boy Advance gameplay.
The emulator, in order to properly emulate the games, would then have to emulate these two processors.

I also do homebrew development for the GBA on occasion, so I just happened to remember this...

Re: is there a method to test boot of the ARM in the linux

Posted: Fri Dec 19, 2008 11:17 am
by Dex
As Firestryke31 pointed out the Ds and GBA user's ARM processors, which need emulating, there is not one ARM there are many, but other than adding more opcodes etc, they work basically the same.
For example in this link, http://www.ndsemulator.com/nintendo-ds/ideas.htm
you can read
What is really emulated in iDeaS
- arm7 and arm9 processors with the exception of some of the opcodes of arm9.
- A few the arm7 calls to bios are emulated.
- All two the screens are emulated and give all the 3d output and gba output,
naturally with big limitations.
- The touch screen works but only with the adc sets to 12 bits.
- The Real Time Clock is summary emulated.
Linux ver here:
http://www.ndsemulator.com/nintendo-ds/ ... wnload.htm

Also see this topic: http://forum.osdev.org/viewtopic.php?f= ... t=arm+boot

Re: is there a method to test boot of the ARM in the linux

Posted: Fri Dec 19, 2008 6:59 pm
by micro
tnanks everyone,
:P :P , so many come, i think i need to try to see which one i need. difficulte :-)

Re: is there a method to test boot of the ARM in the linux

Posted: Sat Dec 20, 2008 8:29 pm
by micro
:oops: :cry:

hi :
thanks all.
i try DS, but in my opinion i think it is not strong enough,
i just want to start a system from the bootloader and then head of the kernel and last main function.


hi Brynet-Inc :
I try to control QEMU, and down QEMU-0.9.0 and 0.9.1, and the test code down from the QEMU website, it work well in the MS windows
but when i run QEMU-0.9.1 at REDHAT9 in the VM with test code, it stop just at" BOOT kernel...." ... confused..

So i just run it in MS windows, when i add the uclinux "image.bin" and "linux" and the QEMU stop at the serial0 console...
why? anyone can tell how to compile the linux or uclinux can run on the QEMU??
thanks ... :oops: