From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Sat, 30 Oct 2004 16:15:15 +0200 Subject: [U-Boot-Users] Re: emulate u-boot in gdb In-Reply-To: <20041027012643.95630.qmail@web60003.mail.yahoo.com> (Luc Verbist's message of "Tue, 26 Oct 2004 18:26:43 -0700 (PDT)") References: <20041027012643.95630.qmail@web60003.mail.yahoo.com> Message-ID: <87k6t89tsc.fsf@deepthought.outer.space.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Luc, > I am looking into SkyEye and busy in creating an extension for > potentially ipaq (cheap finished hardware to play with for embedded > software/ui development). > > How can I debug a boot loader such as u-boot in a emulator/simulator > environment ? Good question. I have only thought for a short while about this question, but I think in such an environment, you need only small pieces of U-Boot. Of course you don't have real hardware to setup in a debugger (so I guess, but I have never used one) things like setting up a memory controller etc. will probably not work without emulating all of the hardware of a "real system" - and I guess this is simply not possible to have emulators for all hardware components. So what you would need for such an environment would be U-Boot stripped from all the hardware inits which is probably a major surgery on the sources. Try asking on the U-Boot mailing list (I cc'ed the list) as there are _very probably_ more competent people in this field. > Is it possible to debug u-boot in a arm-linux-gdb environment ? If I > assign this to memory 0x000000 and put 'set $pc =0' should that work > ? ... it didn't when I tried It is of course possible to debug U-Boot on ARM systems - we did ports for some ARM based boards - but again putting U-Boot at address 0 is a much bigger question. What board config did you use? What address does this image think it runs from? And what address was U-Boot linked for? You have to load the U-Boot image there - but again I think the U-Boot hardware inits will cause you grief. > I searched the web but could not find any good result. Can give me > some direction ? I hope I did ;) Cheers Detlev -- ;; Self-replicator in ELisp ((lambda (l) (prin1-to-string (list l (list (quote quote) l)))) (quote (lambda (l) (prin1-to-string (list l (list (quote quote) l))))))