Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi Scott,
> Until you can successfully write your environment to flash you will get the warning message. Also, I tried the cfi_flash.c that I sent you on two different boards (EP1C20 and PCI-5441) and it works ok for me. However, both boards use 8-bit devices and do not implement data cache. If you have a data cache, I don't think cfi_flash.c will work -- it's currently not coded to use the ld/st io instructions. Thank for your remind. I use nios/f core before, so when I change to nios/s core. My flash seems to work. I download uImage(kernel) to my flash(offset=0x0) and run ==>bootm 0, my kernel is booted. <div class='quotetop'>QUOTE </div> --- Quote Start --- ==> bootm 0 # # Booting image at 00000000 ... ?nbsp; Image Name:?nbsp; Mtx uClinux 1.4 ?nbsp; Image Type:?nbsp; Nios-II Linux Kernel Image (gzip compressed) ?nbsp; Data Size:??753694 Bytes = 736 kB ?nbsp; Load Address: 01000000 ?nbsp; Entry Point:?01000000 ?nbsp; Verifying Checksum ... OK ?nbsp; Uncompressing Kernel Image ... OK Linux version 2.6.11-uc0 (LiangYi@liangyi) (gcc version 3.4.1 (Altera Nios II 5.0 b73))# 1 Fri Sep 30 00:36:27 2005 uClinux/Nios II Altera Nios II support ?2004 Microtronix Datacom Ltd. setup_arch: No persistant network settings signature at 003F0000 Built 1 zonelists Kernel command line: root=/dev/mtdblock0 ro 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: 6352k/8192k RAM, 0k/0k ROM (1426k kernel code, 295k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 NIOS serial driver version 0.0 ttyS0 (irq = 2) is a builtin NIOS UART Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x80800800 (irq = 1) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize eth0: Open Ethernet Core Version 1.0 ?oeth_probe: 65536 Khz Nios: 16 RX, 16 TX buffs ???????NO Custom HW ALIGN. ???????CONFIG_NIOS2_HW_MULX??defined. ???????CONFIG_NIOS2_HW_MUL_OFF NOT defined. Microtronix map: Found 1 x16 devices at 0x0 in 16-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 Microtronix development partition definition Creating 2 MTD partitions on "Microtronix map": 0x00200000-0x00800000 : "romfs" mtd: partition "romfs" extends beyond the end of device "Microtronix map" -- size truncated to 0x200000 0x00000000-0x00200000 : "loader/kernel" NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP established hash table entries: 512 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) NET: Registered protocol family 1 NET: Registered protocol family 17 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,0)[/b] --- Quote End --- I can not load filesystem. I first build filesystem project in Nios IDE, then I gzip the romfs.bin > romfs.bin.gz. I download romfs.bin.gz to flash at offset=0x200000. Right? How you do it? I have run Mtx uClinux ok in my board under Nios IDE(Directly upload .bin to board). Misfortune, the board I use is borrowed from other people. I have to return it today. Thank you all the same. LiangYi