DNW로 FAlinux사의 ezboot를 램에 올려서 실행시키는 방법에 대해 질문드립니다.

hglee76의 이미지

안녕하세요.

DNW를 이용해서 ezboot를 램에 직접 올려서 실행까지 되는 것을 확인해보고 싶은데 돌아가지가 안네요....

상황은
BOOT_START=0x57e00000
BOOT_IRQ=0x57e01000
BOOT_MAIN=0x57e01008

기본 어드레스는 이를 바탕으로 설정하였습니다.
그리고 로더스크립트 main쪽은 0x57e01000로 설정해놓았습니다.

재미있는게 nand의 block0에 writing 했을때는 잘 돌아갑니다.

분석을 해보면
ezboot가 들어가 있는 nand영역에서 block 사이즈 만큼 읽어서 BOOT_START=0x57e00000부터 writing해주고 실제 main함수(BOOT_MAIN=0x57e01008)로 뛰면서 끝이 납니다.

구글링을 해봐도 정보가 전혀 없네요. ㅜㅠ...

Nor 부팅 후에 DNW를 이용해서 BOOT_START=0x57e00000 번지에 USB writing을 해준 후 DNW가 실행 시키면 data abort(Exception)가 뜹니다.

DNW가 다운로드 후에 PC를 BOOT_START=0x57e00000로 넘겨 주는게 아닌가요????

참고로 같은 조건에서 상기의 주소로 U-BOOT를 램에 올리면 잘 돌아 갑니다.

사이즈 때문에 사용하려하는데 무슨 뾰족한 수가 없을 까요???

DNW로 ezboot를 램에 올려서 돌려 보신 분이 있었으면 좋겠습니다.

많은 답변 기다립니다.

관심 갖아 주셔서 미리 감사드려요...

추가 자료:
* Make(image 생성)
for i in $(DIRS) ; do make -C $$i || exit $? ; done
dd if=arch_$(MCU)/start/start_org of=image/$(BOOT_IMAGE) bs=1k conv=sync
dd if=main/main_org of=image/$(BOOT_IMAGE) bs=1k seek=4 ==> start_org를 4Kb로 만들어서 main_org와 붙임.
chmod 777 image/$(BOOT_IMAGE)

* memory_map.
#define BOOT_START (DRAM_START + 0x07E00000)
#define BOOT_IRQ (DRAM_START + 0x07E01000)
#define BOOT_MAIN (DRAM_START + 0x07E01008) ==> start.s에서 램(0x57E00000~)에 ezboot를 copy시킨 후에 jump 시킴
#define BOOT_STACK (DRAM_START + 0x07E80000)
#define BOOT_WORK_START (DRAM_START + 0x07F00000) // 일반적인 부트 로더 작업 영역
#define BOOT_SIZE (128*1024)

* main-ld script file.
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_ram_entry)
SECTIONS
{
. = 0x57E01000;

. = ALIGN(4);
.text : { *(.text) }

. = ALIGN(4);
.rodata : { *(.rodata) }

. = ALIGN(4);
.data : { *(.data) }

. = ALIGN(4);
.got : { *(.got) }

. = ALIGN(4);
.bss :
{ _bstart = . ; *(.bss) *(COMMON) ; _bend = .; }
}

* start-ld-script
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
. = 0x00000000;

. = ALIGN(4);
.text :
{
start.o (.text)
gpio.o (.text)
memory.o (.text)
nand.o (.text)

. = 0x00000800;
serial.o (.text)
*(.text)
}

. = ALIGN(4);
.rodata : { *(.rodata) }

. = ALIGN(4);
.data : { *(.data) }

. = ALIGN(4);
.got : { *(.got) }

. = ALIGN(4);
.bss : { *(.bss) }
}

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.