Altera_Forum
Honored Contributor
9 years agomtd: partition "JFFS2 Filesystem" doesn't end on an erase block -- force read-only
Hello everybody
I am trying to boot linux with mmu kernel from rocket boards (http://rocketboards.org/foswiki/documentation/niosiilinuxusermanual) in a ARRIA V GX STARTER KIT . I can boot linux with filesystem from ram and looking at initialization i see a error mounting the filesystem (mtd: partition "JFFS2 Filesystem" doesn't end on an erase block -- force read-only) why this is happening?U-Boot 2013.01.01-00121-g32c1d91-dirty (Mar 09 2016 - 11:43:09)
CPU : Nios-II
SYSID : 00001234, Fri Mar 04 21:14:35 2016
BOARD : ARRIA V
ERROR: too many flash sectors
*** Warning - bad CRC, using default environment
Net: No ethernet found.
Hit any key to stop autoboot: 0# # Booting kernel from Legacy Image at d6000000 ...
Image Name: Linux-3.10.31-ltsi-05131-g55fdf0
Image Type: NIOS II Linux Kernel Image (gzip compressed)
Data Size: 3384377 Bytes = 3.2 MiB
Load Address: d0000000
Entry Point: d0000000
Verifying Checksum ... OK# # Flattened Device Tree blob at d5000000
Booting using the fdt blob at 0xd5000000
Uncompressing Kernel Image ... OK
Linux version 3.10.31-ltsi-05131-g55fdf0e-dirty (franz@franz-vpcpu-alloc: s0 r0
d32768 u32768 alloc=1*32768
pcpu-alloc: 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttyJ0,115200 root=/dev/mtdblock0 rootfstype=jffs2 r
w
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Sorting __ex_table...
Memory available: 250024k/7573k RAM (1567k kernel code, 6006k data)
NR_IRQS:64 nr_irqs:64 0
Calibrating delay loop... 72.70 BogoMIPS (lpj=36352)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
bio: create slab <bio-0> at 0
Switching to clocksource timer
jffs2: version 2.2. (NAND) -® 2001-2006 Red Hat, Inc.
msgmni has been set to 488
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
ttyJ0 at MMIO 0x8000058 (irq = 1) is a Altera JTAG UART
console enabled, bootconsole disabled
console enabled, bootconsole disabled
loop: module loaded
0.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chi
p ID 0x008963
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0x0,size=0x8000,blocks=4
erase region 1: offset=0x20000,size=0x20000,blocks=1023
1 ofpart partitions found on MTD device 0.flash
Creating 1 MTD partitions on "0.flash":
0x000006000000-0x000007fdffff : "JFFS2 Filesystem"
mtd: partition "JFFS2 Filesystem" doesn't end on an erase block -- force read-on
ly
mousedev: PS/2 mouse device common for all mice
Freeing unused kernel memory: 5536K (d0189000 - d06f1000)
Starting logging: OK
Initializing random number generator... done.
Starting network...
ip: socket: Function not implemented
ip: socket: Function not implemented
Welcome to Nios II
nios2 login: root
login: root login on 'ttyJ0'# ls# ls# cd ..# ls
?[1;34mbin?[0m ?[1;34mhome?[0m ?[1;36mlib32?[0m ?[1;34mmnt?[0m
?[1;34mroot?[0m ?[1;34msys?[0m ?[1;34mvar?[0m
?[1;34mdev?[0m ?[1;32minit?[0m ?[1;36mlinuxrc?[0m ?[1;34mopt?[0m
?[1;36mrun?[0m ?[1;34mtmp?[0m
?[1;34metc?[0m ?[1;34mlib?[0m ?[1;34mmedia?[0m ?[1;34mproc?[0m
?[1;34msbin?[0m ?[1;34musr?[0m# and why these strange characters are appearing? "?[1;34mhome?[0m" when i try to boot filesystem from cfi i have a error and the system crash........ could someone please help me? thank you....