Pешил попробовать прикрутить JFFS к NAND flash на дистрибутиве uClinux от EmbeddedArtists (
http://electronix.ru/forum/index.php?showtopic=25390 ).
Грабли возникли в самом начале. MTD не работает без режима "General setup-->Kernel-mode alignment trap handler".
А при включеном режиме "Kernel-mode alignment trap handler" возникает ошибка при загрузке:
CODE
Linux version 2.6.5-ucLPC (ivan@ivan) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 fr7
CPU: NXP-LPC2468 [24680000] revision 0 (ARMvundefined/unknown)
Machine: LPC2468, NXP
On node 0 totalpages: 8192
DMA zone: 0 pages, LIFO batch:1
Normal zone: 8192 pages, LIFO batch:2
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/romfs console=ttyS0,38400N8
PID hash table entries: 256 (order 8: 2048 bytes)
Console: colour dummy device 80x30
Memory: 32MB = 32MB total
Memory: 30856KB available (1281K code, 192K data, 52K init)
Calibrating delay loop... 80.48 BogoMIPS
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
NET: Registered protocol family 16
NetWinder Floating Point Emulator V0.97 (double precision)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 6) is a 16550A
ttyS1 at MMIO 0x0 (irq = 7) is a 16550A
Begin loading romfs driver...
NAND flash: ID = 0XF1, size = 134217728 bytes, block = 64 pages
Using anticipatory io scheduler
romfs: unknown partition table
loop: loaded (max 8 devices)
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 2048)
NET: Registered protocol family 1
NET: Registered protocol family 15
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 52K
Internal error: Oops - undefined instruction: 0 [#1]
CPU: 0
pc : [<a000f5dc>] lr : [<a000d05c>] Not tainted
sp : a1fdbf90 ip : 00000000 fp : 00000000
r10: 00000000 r9 : 00000000 r8 : 60000013
r7 : ef90000b r6 : 00000000 r5 : 00000000 r4 : 00000000
r3 : a013af10 r2 : a015ad48 r1 : a015ad20 r0 : a013af10
Flags: nZcv IRQs off FIQs on Mode SVC_32 Segment user
Internal error: Oops - undefined instruction: 0 [#2]
CPU: 0
pc : [<a00159ac>] lr : [<a0014ca4>] Not tainted
sp : a1fdbbec ip : a1fdbc24 fp : a1fdbc20
r10: a016a998 r9 : 05000101 r8 : a00276d8
r7 : 00000000 r6 : a1fdbc44 r5 : e585417c r4 : 05000101
r3 : 00000000 r2 : 00000000 r1 : a016a980 r0 : 00000000
Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment user
Internal error: Oops - undefined instruction: 0 [#3]
CPU: 0
pc : [<a0010ecc>] lr : [<00000001>] Not tainted
sp : a1fdbab8 ip : 60000093 fp : a1fdbadc
r10: a1fda000 r9 : a000f1f4 r8 : 00000000
r7 : a013c258 r6 : a013b854 r5 : 60000013 r4 : a1fdbba4
r3 : 00000001 r2 : 00000000 r1 : 00000a80 r0 : a013b988
Flags: nzCv IRQs off FIQs on Mode SVC_32 Segment user
Internal error: Oops - undefined instruction: 0 [#4]
CPU: 0
pc : [<a0010ecc>] lr : [<00000001>] Not tainted
sp : a1fdb984 ip : 60000093 fp : a1fdb9a8
r10: a1fda000 r9 : a000f1f4 r8 : 00000000
r7 : a013c258 r6 : a013b854 r5 : 20000093 r4 : a1fdba70
r3 : 00000001 r2 : 00000000 r1 : 00000c12 r0 : a013b988
Flags: nzCv IRQs off FIQs on Mode SVC_32 Segment user
Internal error: Oops - undefined instruction: 0 [#5]
.......
.......
.......
Може кто подскажет, как же мне побороть сие?