Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote End --- updated link, http://www.fps-tech.net/ (http://www.fps-tech.net/) <div align='right'><{post_snapback}> (index.php?act=findpost&pid=17210)</div> --- Quote End --- Thanks I got it. I following guide : +++++++++++++++++++++++++++++++++++++++++++++++++++++ Or if you use cfi flash, in kernel menuconfig, 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 --> [*] Detect flash chips by Common Flash Interface (CFI) probe [*] Detect non-CFI AMD/JEDEC-compatible flash chips [*] Support for AMD/Fujitsu flash chips (3) Retry failed commands (erase/program) Mapping drivers for chip access --> [*] Maps for Altera Nios Development Kit File systems --> Miscellaneous filesystems --> <*> Journalling Flash File System v2 (JFFS2) support Then rebuild the kernel, and boot nios2 uclinux. It should display jffs2 support and detect mtd partitions. +++++++++++++++++++++++++++++++++++++++++++++++++++++ Then I rebuild zImage and use nios2-download -g zImage to download my DVB, I did not program the zImage to dvb flash. When nios2-download is complete , display boot information: +++++++++++++++++++++++++++++++++++++++++++++++++++++ Altera Nios II support © 2004 Microtronix Datacom Ltd. setup_arch: No persistant network settings signature at 007F0000 Built 1 zonelists Kernel command line: PID hash table entries: 128 (order: 7, 2048 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory available: 13824k/16384k RAM, 0k/0k ROM (1329k kernel code, 1039k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 JFFS2 version 2.2. © 2001-2003 Red Hat, Inc. NIOS serial driver version 0.0 ttyS0 (irq = 2) is a builtin NIOS UART ttyS1 (irq = 5) is a builtin NIOS UART ttyS2 (irq = 6) is a builtin NIOS UART io scheduler noop registered io scheduler deadline registered smc_probe: 50000 Khz Nios SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6) eth0: SMC91C11xFD(rev:1) at 0x80800300 IRQ:3 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07:ed:00:00:00 smc_probe: 50000 Khz Nios Altera NDK flash (AMD): Found 1 x8 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 Altera NDK flash (AMD): CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 4 MTD partitions on "Altera NDK flash (AMD)": 0x00200000-0x00600000 : "romfs/jffs2" 0x00000000-0x00200000 : "loader/kernel" 0x00600000-0x00700000 : "User configuration" 0x00700000-0x00800000 : "safe configuration" NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) NET: Registered protocol family 1 NET: Registered protocol family 17 Freeing unused kernel memory: 928k freed (0x115a000 - 0x1241000) init started: BusyBox v1.1.1-pre0 (2006.05.18-03:02+0000) multi-call binary eth0:PHY 100BaseT eth0:PHY Full Duplex BusyBox v1.1.1-pre0 (2006.05.18-03:02+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. # +++++++++++++++++++++++++++++++++++++++++++++++++++++ Then I use mount cmd: +++++++++++++++++++++++++++++++++++++++++++++++++++++# mount -t jffs2 /dev/mtdblock0 /mnt Eep. No valid nodes for ino# 1# +++++++++++++++++++++++++++++++++++++++++++++++++++++ I mount faile. Why? How can I solve it? Thanks a lot!