Skip to contentSkip to conversation

xip AND sync burst modus

DISCUSSION Konstantin Kletschke 2 participants 3 messages Mar 3, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi people!

I am still desperately trying to get this XIP stuff stable running in conjuntion with the sync burst modus of intel K3 flash devices.

General I think the XIP Kernel runs well.
I set up the PageModeEmulation Mode between the flash device and the i.MX microcontroller and a XIP Kernel is running fine with the root file system on the same device, no problems.

But XIP is only saving time on my computer, if I succesfully enable the sync burst modus of the flash interface.

Sometimes a XIP kernel boots with sync burst mode enabled but it breaks while mounting the root filesystem, most often at the same place. Of course I think I set up the sync burst modus wrong so the interface is unstable and all is my fault.

But what I wonder is, when I put the xip Kernel into the
Flash in sync burst modus but mounted the root via nfs all worked very fine, including mountig reading an writing jffs2 filesystems in the flash device.
Also there are some other issues which are working well when sync burst modus is enabled but should not when my setup is broken:

mtest in u-boot runs fine.

imls in u-boot _always_ looks like:

scb9328> imls
Image at 10040000:

   Image Name:   Linux-2.6.10-rc2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1357940 Bytes =  1.3 MB              

Load Address: 08008000
Entry Point: 08008000
Verifying Checksum ... OK
^^^^^^^^^^^^^^^^^^
crc32 around varying regions with different length _always_ have same checksums when repeated.

The mounting of the root file system breaks _always_ this way:

Probing scb9328_flash at physical address 0x10000000 (16-bit buswidth)
scb9328_flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
5 cmdlinepart partitions found on MTD device scb9328_flash
Creating 5 MTD partitions on "scb9328_flash":
0x00000000-0x00020000 : "U-boot"
0x00020000-0x00040000 : "U-boot_env"
0x00040000-0x00240000 : "kernel"
0x00240000-0x00740000 : "root"
0x00740000-0x01000000 : "fs"
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
jffs2_scan_dirent_node(): Name CRC failed on node at 0x00037448: Read 0x9acd7a6e, calculated 0x2dcc220b jffs2_scan_dirent_node(): Name CRC failed on node at 0x0006c4ac: Read 0x03371d6d, calculated 0xb77e85a5 jffs2_scan_dirent_node(): Name CRC failed on node at 0x0008f20c: Read 0xb08c7dea, calculated 0xc2706a75
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 60K

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Reset, bootm:

jffs2_scan_dirent_node(): Name CRC failed on node at 0x00037448: Read 0x9acd7a6e, calculated 0x2dcc220b Name for which CRC failed is (now) 'ld-uClibc-0.9.26r', ino #186 jffs2_scan_dirent_node(): Name CRC failed on node at 0x0006c4ac: Read 0x03371d6d, calculated 0xb77e85a5 Name for which CRC failed is (now) 'libresolv-0.Ñ', ino #209
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0008f20c: Read 0xb08c7dea, calculated 0xc2706a75 Name for which CRC failed is (now) 'modules.ieeeÞ', ino #222
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 76K

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Regardeless if xip kernel, classic non xip kernel loaded per tftpboot and started via bootm, classic setup with boot by copying and decompressing into ram by u-boot.

Has anybody sync burst modus on intel K3 flash running with an ARM9 based microcontroller whome I can share experiences with?

As said. Of course my hardware setup may be broken, but there are so many software constellations, which always breaks the same way! I would 100% blame hardware setup if things would break a little else every boot or such...

Kind regards, Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF
#1 lore raw
Quoted 10 lines · Konstantin Kletschke

Hi people!

I am still desperately trying to get this XIP stuff stable running in conjuntion with the sync burst modus of intel K3 flash devices.

General I think the XIP Kernel runs well.
I set up the PageModeEmulation Mode between the flash device and the i.MX microcontroller and a XIP Kernel is running fine with the root file system on the same device, no problems.

What is PageModeEmulation?

Quoted 2 lines

But XIP is only saving time on my computer, if I succesfully enable the sync burst modus of the flash interface.

I don't understand this statement. Can you clarify?

Quoted 21 lines

Sometimes a XIP kernel boots with sync burst mode enabled but it breaks while mounting the root filesystem, most often at the same place. Of course I think I set up the sync burst modus wrong so the interface is unstable and all is my fault.

But what I wonder is, when I put the xip Kernel into the
Flash in sync burst modus but mounted the root via nfs all worked very fine, including mountig reading an writing jffs2 filesystems in the flash device.
Also there are some other issues which are working well when sync burst modus is enabled but should not when my setup is broken:

mtest in u-boot runs fine.

imls in u-boot _always_ looks like:

scb9328> imls
Image at 10040000:

   Image Name:   Linux-2.6.10-rc2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1357940 Bytes =  1.3 MB
Quoted 6 lines

Load Address: 08008000
Entry Point: 08008000
Verifying Checksum ... OK
^^^^^^^^^^^^^^^^^^
crc32 around varying regions with different length _always_ have same checksums when repeated.

Can you give an example?
Is the crc32 for a given length always the same?

Quoted 50 lines

The mounting of the root file system breaks _always_ this way:

Probing scb9328_flash at physical address 0x10000000 (16-bit buswidth)
scb9328_flash: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
5 cmdlinepart partitions found on MTD device scb9328_flash
Creating 5 MTD partitions on "scb9328_flash":
0x00000000-0x00020000 : "U-boot"
0x00020000-0x00040000 : "U-boot_env"
0x00040000-0x00240000 : "kernel"
0x00240000-0x00740000 : "root"
0x00740000-0x01000000 : "fs"
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
jffs2_scan_dirent_node(): Name CRC failed on node at 0x00037448: Read 0x9acd7a6e, calculated 0x2dcc220b jffs2_scan_dirent_node(): Name CRC failed on node at 0x0006c4ac: Read 0x03371d6d, calculated 0xb77e85a5 jffs2_scan_dirent_node(): Name CRC failed on node at 0x0008f20c: Read 0xb08c7dea, calculated 0xc2706a75
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 60K

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Reset, bootm:

jffs2_scan_dirent_node(): Name CRC failed on node at 0x00037448: Read 0x9acd7a6e, calculated 0x2dcc220b Name for which CRC failed is (now) 'ld-uClibc-0.9.26r', ino #186 jffs2_scan_dirent_node(): Name CRC failed on node at 0x0006c4ac: Read 0x03371d6d, calculated 0xb77e85a5 Name for which CRC failed is (now) 'libresolv-0.Ñ', ino #209
jffs2_scan_dirent_node(): Name CRC failed on node at 0x0008f20c: Read 0xb08c7dea, calculated 0xc2706a75 Name for which CRC failed is (now) 'modules.ieeeÞ', ino #222
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 76K

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Regardeless if xip kernel, classic non xip kernel loaded per tftpboot and started via bootm, classic setup with boot by copying and decompressing into ram by u-boot.

Has anybody sync burst modus on intel K3 flash running with an ARM9 based microcontroller whome I can share experiences with?

As said. Of course my hardware setup may be broken, but there are so many software constellations, which always breaks the same way! I would 100% blame hardware setup if things would break a little else every boot or such...

Kind regards, Konsti

Quoted 8 lines

--
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

If the XIP kernel is working but jffs2 fails I would assume one of the following is true:
1-your kernel code is not bursting
2-your jffs2 image is bad
3-your jffs2 code is bad
4-your flash is in status mode when the system starts mounting

I would try another flash based fs. If another flash based fs mounts.
Then it is less likely 2,3, and 4 are problems. Try using cramfs
patched with the CELF cramfs-linear-xip-3.patch from
http://tree.celinuxforum.org/CelfPubWiki/PatchArchive it doesn't patch cleanly to 2.6.10 but the fix is easy to do manually.

#2 lore raw

Am 2005-03-03 10:15 -0800 schrieb Jared Hulbert:

Quoted 1 line

What is PageModeEmulation?

That is a access mode which is a bit faster than the classical bus arbitration mode possible with the interface between the i.MX cpu and the intel K3 devices. I think this is nit i.MX specific but intel specific to their sync burst devices.

Quoted 4 lines
Quoted 2 lines

But XIP is only saving time on my computer, if I succesfully enable the sync burst modus of the flash interface.

I don't understand this statement. Can you clarify?

I wan't to save boot up time on this computer. xip saves time there due to the fact it does not copy itself into SDRAM.

Quoted 5 lines
Quoted 2 lines

crc32 around varying regions with different length _always_ have same checksums when repeated.

Can you give an example?
Is the crc32 for a given length always the same?

Yes.

Quoted 6 lines

If the XIP kernel is working but jffs2 fails I would assume one of the following is true:
1-your kernel code is not bursting
2-your jffs2 image is bad
3-your jffs2 code is bad
4-your flash is in status mode when the system starts mounting

I later figured out this evening, that mounting the jffs2 breaks even with kernel running out of SDRAM with sync burst enabled in the same way (same sector addresses).
So 1 is false, 2 also since the same image works fine when not bursting. The jffs code _may_ be bad because a delay is required after probing before mounting the flash.
So 3 is true or 4 or still my fault because I am to stupid to set up burst mode.
My initial mail was also intended to get to know, if there are any people who say they implemented the same and their hardware is ok and bursts fine with jffs2.

Quoted 5 lines

I would try another flash based fs. If another flash based fs mounts.
Then it is less likely 2,3, and 4 are problems. Try using cramfs
patched with the CELF cramfs-linear-xip-3.patch from
http://tree.celinuxforum.org/CelfPubWiki/PatchArchive it doesn't patch cleanly to 2.6.10 but the fix is easy to do manually.

Does this apply to 2.6.11-rc2 also? I will try to do so.

Konsti

Signature · 2 lines
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E  A080 1E69 3FDA EF62 FCEF