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

Programming, for all ages and all languages.
Post Reply
micro
Member
Member
Posts: 27
Joined: Sun May 04, 2008 5:40 pm

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

Post 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
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

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

Post by Dex »

May be you could look into DS emulators for linux.
micro
Member
Member
Posts: 27
Joined: Sun May 04, 2008 5:40 pm

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

Post 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?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

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

Post 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.. ;)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Firestryke31
Member
Member
Posts: 550
Joined: Sat Nov 29, 2008 1:07 pm
Location: Throw a dart at central Texas
Contact:

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

Post 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...
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

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

Post 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
micro
Member
Member
Posts: 27
Joined: Sun May 04, 2008 5:40 pm

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

Post by micro »

tnanks everyone,
:P :P , so many come, i think i need to try to see which one i need. difficulte :-)
micro
Member
Member
Posts: 27
Joined: Sun May 04, 2008 5:40 pm

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

Post 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:
Post Reply