Hello,
I'm a newbie for porting linux on hx4700 and I'm really interested in on that.
Inspired by the article
http://www.handhelds.org/hypermail/hx4700-port/35/3504.html, I
download the cross-toolchain from
ftp://ftp.handhelds.org/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2
and bootldr-1.2.5 from http://sdgsystems.com/pub/ipaq/hx4700/src/ and
patch from http://kmeaw.com/bootloader-1.2.5.patch.
Then I untar the bootldr-1.2.5 and apply the patch on it:
[root #] tar xf bootldr-1.2.5.tgz
[root #] cd bootldr
[root #] patch -p1 < ../bootloader-1.2.5.patch
[root #] cd /home/hx4700/
[root #] tar jxf arm-linux-gcc-3.4.1.tar.bz2
[root #] export PATH=$PATH:/home/hx4700/arm/3.4.1/bin
Then I modify the os_linux.mk and config.local.mk so that the build
could refer to cross-toolchain's include directory.
After everything is ok, I run `make' command in the source tree. The
first problem I got is it could not find "zlib.h" when compiling
bootldr.c. In bootldr.c, I replace the line:
#include "zlib.h"
with
#include "linux/zlib.h"
Then, continue my build and get another error:
[bootldr.c]
In file included from bootldr.c:85:
include/cyclone_boot.h:46: error: parse error before "u_int32_t"
So, I modify the include/bootldr.h and add the following line:
#include <sys/types.h>
Continue to run `make'. Now, the third problem come:
[bootldr.c]
bootldr.c: In function `program_flash_region':
bootldr.c:1589: warning: implicit declaration of function `crc32'
bootldr.c: At top level:
bootldr.c:2305: error: parse error before "zcalloc"
bootldr.c:2306: error: parse error before "opaque"
bootldr.c:2309: warning: return type defaults to `int'
bootldr.c: In function `zcalloc':
bootldr.c:2313: error: `items' undeclared (first use in this function)
bootldr.c:2313: error: (Each undeclared identifier is reported only once
bootldr.c:2313: error: for each function it appears in.)
bootldr.c:2313: error: `size' undeclared (first use in this function)
bootldr.c:2317: warning: return makes integer from pointer without a cast
bootldr.c: At top level:
bootldr.c:2322: error: parse error before "opaque"
bootldr.c: In function `zcfree':
bootldr.c:2325: error: `ptr' undeclared (first use in this function)
make[1]: *** [bootldr.o] Error 1
Is there anybody could help me out? Thank you very much!!
Best Regards,
Z.H. Zheng
_______________________________________________
Hx4700-port mailing list
[email protected]
https://www.handhelds.org/mailman/listinfo/hx4700-port