How to build HX4700 SDG bootloader
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.
댓글
음..
많은 부분이 생략되었지만 그래도 한페이지에 정리를 ^^
아 마지막으로 cpu는 0번지를 SD/MMC 로 알도록 해줘야 할 것입니다.
Email: ssepiro(a)Sun.COM
HX4700 SDG bootloader binary files
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
댓글 달기