- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do uclinux porting on my own board, use the "uClinux-dist-20060803" released kernel, custom the kernel as follow:
---------------------------------------------------------- Memory Technology Devices (MTD) --> <*> Memory Technology Device (MTD) support [*] MTD partitioning support <*> Direct char device access to MTD devices <*> Caching block device access to MTD devices RAM/ROM/Flash chip drivers --> <*> Support for Altera EPCS Device Mapping drivers for chip access --> <*> Maps for Altera EPCS Configuration Device File systems --> Miscellaneous filesystems --> <*> Journalling Flash File System v2 (JFFS2) support ------------------------------------------------------------------ then try "make", but there are some errors: -------------------------------------------------------------------- make[3]: Leaving directory `/home/gaobing/uClinux-dist/user/games' [ ! -d "init" ] || ( touch init/.sgbuilt_user && make -j1 -C init ) || exit $? make[3]: Entering directory `/home/gaobing/uClinux-dist/user/init' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/gaobing/uClinux-dist/user/init' [ ! -d "mtd-utils" ] || ( touch mtd-utils/.sgbuilt_user && make -j1 -C mtd-utils ) || exit $? make[3]: Entering directory `/home/gaobing/uClinux-dist/user/mtd-utils' gcc -I/usr/include -I. -Dprintk=printf -DKERN_NOTICE= -DKERN_WARNING= -c -o build/compr_zlib.o compr_zlib.c compr_zlib.c:38:18: error: zlib.h: 没有那个文件或目录 compr_zlib.c: 在函数 ‘zlib_compress’ 中: compr_zlib.c:81: 错误:‘z_stream’ 未声明 (在此函数内第一次使用) compr_zlib.c:81: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其 compr_zlib.c:81: 错误:所在的函数内只报告一次。) compr_zlib.c:81: 错误:syntax error before ‘strm’ compr_zlib.c:91: 错误:‘strm’ 未声明 (在此函数内第一次使用) compr_zlib.c:95: 错误:‘Z_OK’ 未声明 (在此函数内第一次使用) compr_zlib.c:110: 错误:‘Z_PARTIAL_FLUSH’ 未声明 (在此函数内第一次使用) compr_zlib.c:121: 错误:‘Z_FINISH’ 未声明 (在此函数内第一次使用) compr_zlib.c:122: 错误:‘Z_STREAM_END’ 未声明 (在此函数内第一次使用) compr_zlib.c: 在函数 ‘zlib_decompress’ 中: compr_zlib.c:143: 错误:‘z_stream’ 未声明 (在此函数内第一次使用) compr_zlib.c:143: 错误:syntax error before ‘strm’ compr_zlib.c:150: 错误:‘strm’ 未声明 (在此函数内第一次使用) compr_zlib.c:154: 错误:‘Z_OK’ 未声明 (在此函数内第一次使用) compr_zlib.c:166: 错误:‘Z_FINISH’ 未声明 (在此函数内第一次使用) compr_zlib.c:168: 错误:‘Z_STREAM_END’ 未声明 (在此函数内第一次使用) make[3]: *** [build/compr_zlib.o] 错误 1 make[3]: Leaving directory `/home/gaobing/uClinux-dist/user/mtd-utils' make[2]: *** [mtd-utils] 错误 2 make[2]: Leaving directory `/home/gaobing/uClinux-dist/user' make[1]: *** [all] 错误 2 make[1]: Leaving directory `/home/gaobing/uClinux-dist/user' make: *** [subdirs] 错误 1 -------------------------------------------------------------------- It seems the library-include problem, in "make menuconfig", I choose "none" library include, did it wrong? What should I do to exclude the errers? Need help,ths! giantice 02th Feb 2007Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will need zlib to build user/mtd-utils/build/mkfs.jffs2.
Make sure you have zlib install in your Linux PC.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Feb 2 2007, 12:05 PM you will need zlib to build user/mtd-utils/build/mkfs.jffs2.
make sure you have zlib install in your linux pc.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21139)
--- quote end ---
--- Quote End --- hi hippo, thanks for your help, now I can successfully make the kernel, but when I download and mount the jffs2, there is problem: ------------------------------------- /> mount -t jffs2 /dev/mtdblock0 /mnt jffs2: Too few erase blocks (0) mount: Mounting /dev/mtdblock0 on /mnt failed: Invalid argument /> ------------------------------------ I see the post before as follow: ---------------------------------------- You need to learn flash programmer before using mtd. First, resize your cfi flash to 4M base addr 0 ,in sopc builder, and regenerate sof. Then enable epcs mtd and cfi mtd, in drivers/mtd/maps/ edit epcs_map.c CODE static struct mtd_partition epcs_partitions[] = { { .name = "sof_kernel", .size = 0x200000, .offset = 0x000000, } }; static const char *part_probes[] __initdata = {NULL}; edit altera.c CODE static struct mtd_partition alteramap_partitions[] = { { .name = "romfs/jffs2", .size = 0x400000, .offset = 0x000000, } }; Rebuild kernel image from the start "make clean", "make linux_hwselect....".... Follow the wiki, http://nioswiki.jot.com/wikihome/operating...flashprogrammer (http://nioswiki.jot.com/wikihome/operating...flashprogrammer) To program sof and zImage to your EPCS. And erase cfi flash. ---------------------------------------- Did it the problem of epcs_map.c and edit altera.c. I use the EPCS4, which is as large as 512Kbytes. Should edit the files of epcs_map.c and edit altera.c? How to do it. Waiting your reply, ths! Ths again for the bison problem I post before, I download the bison package installed ,then make success, there is no ftp build problems. giantice 02th Feb 2007
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[ ] Detect non-CFI AMD/JEDEC-compatible flash chips
Don't detect non-CFI.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
wow shit http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif
http://nencyalba.info/beastiality/694824 (http://nencyalba.info/beastiality/694824) regards, E31- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And please note, the epcs4 is used to store fpga config, plus kernel image.
So there won't be much space left for jffs2.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page