Forum Discussion
Altera_Forum
Honored Contributor
19 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- QUOTE [SOPC Builder]$ nios2-flash-programmer --sof=UP4_API.sof --base=0x00000000 --erase WARNING: Default charset MS950 not supported, using ISO-8859-1 instead May 4, 2006 10:07:46 PM - (??) nios2-flash-programmer: Launching Quartus Progra mer to download: UP4_API.sof Send (64) failed. Unable to synchronize with target. May 4, 2006 10:08:12 PM - (???) nios2-flash-programmer: Error opening target ha dware May 4, 2006 10:08:12 PM - (???) nios2-flash-programmer: In order to program flash, you must first create a purpose-built flash-programming design (i.e. FPGA configuration) and associate it with your particular board. The Nios development kit is delivered with purpose-bu lt flash-programming designs pre-built for several development boards. If you w sh to program flash on your own board, you must first create a flash-programming design. The process of creating a flash-programming design for your board is mostly automated. From a bash-shell, execute this script: mk_target_board --help The help-message includes references to other documentation on programming flash and targeting Nios systems to custom board designs. - exiting. /cygdrive/c/zImage_dir [SOPC Builder]$ hi all i don't erase flash under SDK shell with using "nios2-flash-programmer ". how to use should be erased my flash memory? Thx in advance ! hippo Posted May 4 2006, 10:26 AM QUOTE(jay_1025 @ May 4 2006, 02:22 AM) hi all when i have excuted command "mount -t jffs2 /dev/mtdblock0 /mnt" then got so long messages for JFFS2 ................. sad.gif uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/dev/mtdblock0 PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 6444k/8192k RAM, 0k/0k ROM (1184k kernel code, 467k data) Mount-cache hash table entries: 512 SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub JFFS2 version 2.2. (NAND) © 2001-2003 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered (default) Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x80c81120 (irq = 1) is a jtag_uart Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 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 1 MTD partitions on "Altera NDK flash (AMD)": 0x00000000-0x00400000 : "romfs/jffs2" usbmon: debugfs is not available driver isp1362-hcd, 2005-04-04 isp1362-hcd isp1362-hcd: ISP1362 Host Controller isp1362_hc_reset: isp1362-hcd isp1362-hcd: new USB bus registered, assigned bus number 1 isp1362-hcd isp1362-hcd: irq 4, io mem 0x80c810d0 isp1362_hc_start: isp1362-hcd isp1362-hcd: ISP1362 Memory usage: isp1362-hcd isp1362-hcd: ISTL: 2 * 256: 512 @ $0000:$0100 isp1362-hcd isp1362-hcd: INTL: 16 * ( 64+8): 1152 @ $0200 isp1362-hcd isp1362-hcd: ATL : 32 * ( 64+8): 2304 @ $0680 isp1362-hcd isp1362-hcd: USED/FREE: 3968 128 usb usb1: configuration# 1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ISP1362 Host Controller, irq 4 Initializing USB Mass Storage driver... usbcore: registered new driver usb-storage USB Mass Storage support registered. Freeing unused kernel memory: 368k freed (0x138000 - 0x193000) init started: BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) multi-call binary BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. # mount -t jffs2 /dev/mtdblock0 /mnt jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0100 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xff04 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0908 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x0d0c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x1110 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x1514 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x1918 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x1d1c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x2120 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2524 in stead . . . Further such events for this erase block will not be printed jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0000: 0x0100 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0004: 0xff04 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0008: 0x0908 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f000c: 0xff0c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0010: 0x1110 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0014: 0xff14 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0018: 0x1918 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f001c: 0xff1c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0020: 0x2120 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0024: 0xff24 in stead Further such events for this erase block will not be printed Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes empty_blocks 0, bad_blocks 0, c->nr_blocks 64 mount: Mounting /dev/mtdblock0 on /mnt failed: Input/output error# how to set can be mounted JFFS2 filesystem successfully ? Thx in anvance ! try erase the flash once with nios2-flash-programmer . Or later you can try to build a jffs2 image , read the epcs guide of Jdhar. jffs2 wants it blank or have a valid jffs2 image.[/b] --- Quote End --- Hi jay_1025: Have you solve these problem now? My lab have been stolen before two weeks ago, our cpu and memory all lost,so I couldn't do it about three weeks, when I run my program, I get the same message as you, could you help me? THX! Regards! Goral