public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: fukuy@mue.biglobe.ne.jp
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] v850 Redboot question
Date: Sat, 22 Nov 2003 05:48:00 -0000	[thread overview]
Message-ID: <2036.145248.968367928173393.fukuy@mue.biglobe.ne.jp> (raw)

Hi,

 I am trying to port Redboot on v850 evaluation board. This board is
similar to CEB V850E/MA1 board. Somehow I build redboot.elf file, and
I installed the Redboot image on this target board.
 But it stopped "Intialize hardware" section in vectors.S. its line
in vectors.S is as follows,

  jarl  _cyg_hal_hardware_init,r31

 When I examined closely, it stopped cyg_hal_plf_serial_init() function 
in hal_diag.c. By GDB, it stopped in other line.(drv_api.c)

 What do I do to run redboot on this board ?

 Thanks a lot for your help

---
fukuy@mue.biglobe.ne.jp

 $ v850-elf-gdb ./install/bin/redboot
 ...
 (gdb) target sim
 (gdb) load
 Loading section .rom_vectors, size 0x440 vma 0x0
 Loading section .text, size 0x88a2 vma 0x440
 Loading section .rodata, size 0x1758 vma 0x8ce4
 Loading section .ram_vectors, size 0x680 vma 0x8000000
 Loading section .data, size 0xb0c vma 0x8000680
 Start address 0x0
 Transfer rate: 372272 bits in <1 sec.
 (gdb) b drv_api.c:1
 ...
 (gdb) r
 Starting program: /vhome/fukuy/ecos/work2/./install/bin/redboot.elf
 
 Breakpoint 1, cyg_hal_deliver_exception (code=0, data=0)
    at ../../ecos-2.0/packages/hal/common/v2_0/src/drv_api.c:929
 929     }
 (gdb) x/i $pc
 0x0 <cyg_hal_deliver_exception>:        cmp     r0, r10
 (gdb) s
 cyg_drv_interrupt_get_cpu (vector=0)
    at ../../ecos-2.0/packages/hal/common/v2_0/src/drv_api.c:920
 920     }
 (gdb) x/i $pc
 0x4 <cyg_drv_interrupt_get_cpu+4>:      mov     1, r10
 (gdb) s
 cyg_drv_interrupt_unmask_intunsafe (vector=0)
    at ../../ecos-2.0/packages/hal/common/v2_0/src/drv_api.c:808
 808         HAL_DISABLE_INTERRUPTS(old_ints);
 (gdb) x/i $pc
 0x6 <cyg_drv_interrupt_unmask_intunsafe+6>:     st.w    r10, 4144[r11]
 (gdb) s
 809         HAL_INTERRUPT_UNMASK( vector );
 (gdb) x/i $pc
 0xa <cyg_drv_interrupt_unmask_intunsafe+10>:    jarl    0xffffff58, lp
 (gdb) s
 core: 2 byte read to unmapped address 0xffffff58 at 0xffffff58
 
 Program received signal SIGSEGV, Segmentation fault.
 Cannot access memory at address 0xfffffef4.
 (gdb)

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

                 reply	other threads:[~2003-11-22  5:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2036.145248.968367928173393.fukuy@mue.biglobe.ne.jp \
    --to=fukuy@mue.biglobe.ne.jp \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).