Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- 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