How to build HX4700 SDG bootloader

hb_kim의 이미지

1. Get the required toolchain and install it.
http://www.handhelds.org/moin/moin.cgi/Linux26ToolsAndSources

2. Get the boot loader source code
http://www.sdgsystems.com/pub/ipaq/hx4700/src/bootldr-1.2.0.tar.gz

3. Mindlessly type "make", hoping it to build everything and misserably fail.

4. (Optionally) Post questions to mailing list and get absolutely no response.

5. Realize that the 3.4.1 toolchain does not come with everything. Get a complete one somewhere, install then use it from now on. (This includes changing the .bash_profile to modify the PATH) I happened to already have complete 3.4.2 toolchain for some other project.

6. Get zlib source code.
http://www.zlib.net/

7. Cross-build zlib library.
prefix=/usr/local/arm/3.4.2/ CC=/usr/local/arm/3.4.2/bin/arm-linux-gcc ./configure
make install

8. Open os_linux.mk in the bootloader source directory and modify following 2 lines.
LIBZ_INCLUDE_DIR=`which arm-linux-gcc| sed -e 's/bin\/arm-linux-gcc/include/'`
LIBZ_LIB_DIR=`/usr/bin/which arm-linux-gcc| sed -e "s/bin\/arm-linux-gcc/lib/"`

9. Then make. Few files will be created.

10. Open doit in the bootloader source directory and modify lines accessing the SD/MMC reader.

11. Execute doit to get a file named 'romfile' and (optinally) flash the binary into the SD/MMC card.

12. Now you are free to modify the source and get your own bootloader running.

댓글

ssepiro의 이미지

많은 부분이 생략되었지만 그래도 한페이지에 정리를 ^^

아 마지막으로 cpu는 0번지를 SD/MMC 로 알도록 해줘야 할 것입니다.

Email: ssepiro(a)Sun.COM

chris_fr_pl의 이미지

Hello,

Thank you very much for posting your howto ! (but just wondering why on a Korean website - it wasn't easy to register here)
Anyway, having deployed your method, I have a question about the .orig, .original and especially the binary file romfile.orig.
I cannot use the bootloader that I compiled. After putting it on an SD card as explained in the file doit, my bootloader doesn't boot. The hp bootloader detect it on the SD card, flashes it and then nothing happens. But when I put the binary file romfile.orig directly on the sd card (dd if=romfile.orig of=/dev/sdf) the SDG bootloader boots...
Why there are binary files in the source folder ??? How to generate the romfile.orig ?

Thank you in advance.

Krzysztof Witek

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.