Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

1 flash programming question :)

Altera_Forum
Honored Contributor II
1,494 Views

i use altera cyclone board,the flash's capacity is 8M¡£my uclinux kernel is about 2099k, filesystem is about 1987k. 

while i download the kernel, filesystem is covered.  

error:Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,0) 

download the filesystem,kernel is covered. 

sometimes the safe configuration is covered too(red led is on). 

 

the flash still worked well,but yesterday the problem happened. 

 

 

please tell me how to solve it,thank u!!!!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
268 Views

the information: 

 

uClinux/Nios II 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

 

setup_arch: No persistant network settings signature at 007F0000 

Built 1 zonelists 

Kernel command line: root=/dev/mtdblock0 ro 

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: 14384k/16384k RAM, 0k/0k ROM (1480k kernel code, 327k data) 

Mount-cache hash table entries: 512 (order: 0, 4096 bytes) 

NET: Registered protocol family 16 

NIOS serial driver version 0.0 

ttyS0 (irq = 4) is a builtin NIOS UART 

Serial: JTAG UART driver $Revision: 1.3 $ 

ttyJ0 at MMIO 0x80920820 (irq = 1) is a jtag_uart 

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize 

smc_probe: 50000 Khz Nios 

SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6) 

eth0: SMC91C11xFD(rev:1) at 0x80910300 IRQ:6 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07: 

ed:00:00:00 

smc_probe: 50000 Khz Nios 

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 

ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx 

CF: ctl=1 

hda: Hitachi CV 7.1.1, CFA DISK drive 

Using anticipatory io scheduler 

ide0 at 0x80900800-0x80900807,0x80900838 on irq 8 

hda: max request size: 128KiB 

hda: 31488 sectors (16 MB) w/1KiB Cache, CHS=246/4/32 

hda:<6>check_part[0]=17230780: hda1 

res=1:<4>CFI: Found no Microtronix map device at location zero 

JEDEC: Found no Microtronix map device at location zero 

NET: Registered protocol family 2 

IP: routing cache hash table of 512 buckets, 4Kbytes 

TCP: Hash tables configured (established 1024 bind 2048) 

NET: Registered protocol family 1 

NET: Registered protocol family 17 

VFS: Cannot open root device "mtdblock0" or unknown-block(0,0) 

Please append a correct "root=" boot option 

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) 

 

---------then stop,7-seg led is 88.
0 Kudos
Altera_Forum
Honored Contributor II
268 Views

If you can remove something you don&#39;t really need in kernel, and make the kernel smaller than 2M, that will be the best. If you can not reduce the size of kernel to less than 2M, I would recommend u-boot, which allows you to compress the kernel to less than 1M.

0 Kudos
Altera_Forum
Honored Contributor II
268 Views

it&#39;s ok ! thank wentao very much!!!

0 Kudos
Reply