Problem with 'boot vfat'

From: Ken Kittlitz <ken.kittlitz_at_au-zone.com>
Date: Mon, 04 Nov 2002 13:03:43 -0700

Hi folks, I'm trying to boot a MontaVista Linux kernel off a vfat file
system (in compact flash). The boot gets to stage where the kernel zimage
is uncompressed, but then the system hangs as it tries to boot the kernel.
The zimage file exists in /boot/zimage ; the compressed filesystem, of type
cramfs, exists in /boot/initrd.

I've been able to successfully install the Familiar jffs2 image using the
same equipment (including flash card), so I don't think I'm up against a
hardware issue.

I'm using bootldr version 2.18.54 on an H3850.

The gory trace follows. Thanks for any assistance you can provide!

boot> boot vfat
h3600_sleeve_init_module
h3600_generic_pcmcia_init_module: registering sleeve drivers
registering sleeve driver 000311BC
registering sleeve driver 00031208
registering sleeve driver 00031170
h3600_sleeve_insert: no spi read, defaulting sleeve vendor
h3600_sleeve_insert: no spi read, defaulting sleeve deviceid
  sleeve vendorid=00001125
  sleeve deviceid=0000D7C3
pcmcia_probe_sleeve
   probing for dual pcmcia sleeve
   dual_pcmcia_linkup[0]->prc=00000000
pcmcia_register_ops: ops=000311DC
h3600_sleeve_insert: matched driver Compaq PC Card Sleeve
cis mapping=28000000
cis[0] =00000001
   01 04 DF 72 01 FF
   1C 04 03 D9 01 FF
   18 02 DF 01
   20 04 45 00 01 04
   manfid[0]=00000045
   manfid[1]=00000000
   15 17 04 01 53 75 6E 44 69 73 6B 00 53 44 50 00 35 2F 33 20 30 2E 36 00 FF
   80 03 14 08 00
   21 02 04 01
   funcid=00000004
     fixed disk
   22 02 01 01
   22 03 02 0C 01
   04 DF 72 01 FF 1C 04 03 D9 01 FF 18 02 DF 01 20 04 45 00 01 04 15 17 04
01 53 75 6E 44 69 73 6B 00 53 44 50 00 35 2F 33 20 30 2E 36 00 FF 80 03 14
08 00 21 02 04 01 22 02 01 01 22 03 02 0C F0 01 07 F6 03 01 EE 21 1B 06 02
01 21 B5 1E 4D 1B 12 C3 41 99 27 55 4D 5D 75 EA 61 70 01 07 76 03 01 EE 21
1B 06 03 01 21 B5 1E 4D 1B 04 07 00 28 D3 14 00 FF FF FF FF FF FF FF FF FF
FF FF FF F0 01 07 F6 03 01 EE 21 1B 06 02 01 21 B5 1E 4D 1B 12 C3 41 99 27
55 4D 5D 75 EA 61 70 01 07 76 03 01 EE 21 1B 06 03 01 21 B5 1E 4D 1B 04 07
00 28 D3 14 00 FF FF FF FF FF FF FF FF FF FF FF FF 00 80 2E 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
   serial_number: 06210221419
   firmware_revision: Vdg 1.23
   model_number: SanDisk SDCFB-64
   n_sectors_user_addressable=00000000
   bytes_per_sector=00000240
   major_version=00000000
   minor_version=00000000
   flags=0000848A
   ACTUAL bytes_per_sector=00000200
cis mapping=38000000
cis[0] =00000002
end
ptable signature=0000AA55
cmd vfat mount: partid=00000000
vfat mount: reading bpb_info
C1A0063C: EB 3C 90 6D 6B 64 6F 73-66 73 00 00 02 04 01 00 | .<.mkdosfs......
C1A0064C: 02 00 02 00 00 F8 7A 00-20 00 08 00 00 00 00 00 | ......z. .......
C1A0065C: E0 E8 01 00 00 00 29 6E-25 C0 3D 20 20 20 20 20 | ......)n%.=
C1A0066C: 20 20 20 20 20 20 46 41-54 31 36 20 20 20 0E 1F | FAT16 ..
C1A0067C: BE 5B 7C AC 22 C0 74 0B-56 B4 0E BB 07 00 CD 10 | .[|.".t.V.......
C1A0068C: 5E EB F0 32 E4 CD 16 CD-19 EB FE 54 | ^..2.......T
   oemname=mkdosfs
   sectors_per_cluster=00000004
   n_reserved_sectors=00000001
   n_root_entries=00000200
   root_dir_sectors=00000020
   first_root_dir_sector=000000F5
   fat_size=0000007A
   fat_size_bytes=0000F400
   n_fats=00000002
   total_sectors=0001E8E0
   n_data_sectors=0001E7CB
   first_data_sector=00000115
   n_clusters=000079F2
   fat_type=00000002
root_dir_entries:
C1A02F7C: 42 41 43 4B 55 50 20 20-50 50 43 10 00 00 00 00 | BACKUP PPC.....
C1A02F8C: 00 00 00 00 00 00 81 52-85 2C 02 00 00 00 00 00 | .......R.,......
C1A02F9C: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 00 00 | BOOT .....
C1A02FAC: 00 00 00 00 00 00 25 44-5E 2D 03 00 00 00 00 00 | ......%D^-......
C1A02FBC: 49 4E 53 54 41 4C 4C 20-20 20 20 10 00 00 00 00 | INSTALL .....
C1A02FCC: 00 00 00 00 00 00 50 56-5E 2D 44 0F 00 00 00 00 | ......PV^-D.....
C1A02FDC: 41 69 00 6D 00 61 00 67-00 65 00 0F 00 71 73 00 | Ai.m.a.g.e...qs.
C1A02FEC: 00 00 FF FF FF FF FF FF-FF FF 00 00 FF FF FF FF | ................
C1A02FFC: 49 4D 41 47 45 53 20 20-20 20 20 10 00 00 94 50 | IMAGES ....P
C1A0300C: 64 2D 5F 2D 00 00 | d-_-..
fat:
C1A0B98C: F8 FF FF FF F8 FF F8 FF-F8 FF 06 00 07 00 08 00 | ................
C1A0B99C: 09 00 0A 00 0B 00 0C 00-0D 00 0E 00 0F 00 10 00 | ................
C1A0B9AC: 11 00 12 00 13 00 14 00-15 00 16 00 17 00 18 00 | ................
C1A0B9BC: 19 00 1A 00 1B 00 1C 00-1D 00 1E 00 1F 00 20 00 | .............. .
first data:
C1A006B4: 42 41 43 4B 55 50 20 20-50 50 43 10 00 00 00 00 | BACKUP PPC.....
C1A006C4: 00 00 00 00 00 00 81 52-85 2C 02 00 00 00 00 00 | .......R.,......
C1A006D4: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 00 00 | BOOT .....
C1A006E4: 00 00 00 00 00 00 25 44-5E 2D 03 00 00 00 00 00 | ......%D^-......
  Reading params from file: /boot/params
vfat_find_file_entry: fname='boot/params'
                     dirname='boot'
                    basename='PARAMS'
vfat_find_dir_entry: fname='boot'
                    dirname=''
                   basename='boot'
   searching root_dir_entries
   vfat_find_dir_entry:
C1A02F9C: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 00 00 | BOOT .....
C1A02FAC: 00 00 00 00 00 00 25 44-5E 2D 03 00 00 00 00 00 | ......%D^-......
vfat_find_file_entry: got dir entry for boot
   attr=00000010
   clusterno=00000003
   n_bytes=00000000
vfat_read_clusters_offset: reached VFAT_EOC at bytes_read=00000800
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000003
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000000
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000004
    n_bytes=000000AE
   vfat_find_file_entry succeeded:
C19F23BC: 50 41 52 41 4D 53 20 20-20 20 20 20 00 00 00 00 | PARAMS ....
C19F23CC: 21 00 00 00 00 00 25 44-5E 2D 04 00 AE 00 00 00 | !.....%D^-......
+ set linuxargs="initrd root=/dev/ram0 init=/linuxrc console=ttySA0
ramdisk_size=8192 ramdisk_blocksize=4096"
   setting param <linuxargs> to value <initrd root=/dev/ram0 init=/linuxrc
console=ttySA0 ramdisk_size=8192 ramdisk_blocksize=4096>
+ set initrd_filename /boot/initrd
   setting param <initrd_filename> to value </boot/initrd>
+ set kernel_filename /boot/zimage
   setting param <kernel_filename> to value </boot/zimage>
  Reading kernel from file: /boot/zimage
vfat_find_file_entry: fname='/boot/zimage'
                     dirname='/boot'
                    basename='ZIMAGE'
vfat_find_dir_entry: fname='/boot'
                    dirname=''
                   basename='boot'
   searching root_dir_entries
   vfat_find_dir_entry:
C1A02F9C: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 00 00 | BOOT .....
C1A02FAC: 00 00 00 00 00 00 25 44-5E 2D 03 00 00 00 00 00 | ......%D^-......
vfat_find_file_entry: got dir entry for /boot
   attr=00000010
   clusterno=00000003
   n_bytes=00000000
vfat_read_clusters_offset: reached VFAT_EOC at bytes_read=00000800
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000003
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000000
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000004
    n_bytes=000000AE
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000005
    n_bytes=00089B50
   vfat_find_file_entry succeeded:
C19F23DC: 5A 49 4D 41 47 45 20 20-20 20 20 20 00 00 1D 81 | ZIMAGE ....
C19F23EC: 5E 2D 00 00 00 00 1D 81-5E 2D 05 00 50 9B 08 00 | ^-......^-..P...
  Reading initrd from file: /boot/initrd
vfat_find_file_entry: fname='/boot/initrd'
                     dirname='/boot'
                    basename='INITRD'
vfat_find_dir_entry: fname='/boot'
                    dirname=''
                   basename='boot'
   searching root_dir_entries
   vfat_find_dir_entry:
C1A02F9C: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 00 00 | BOOT .....
C1A02FAC: 00 00 00 00 00 00 25 44-5E 2D 03 00 00 00 00 00 | ......%D^-......
vfat_find_file_entry: got dir entry for /boot
   attr=00000010
   clusterno=00000003
   n_bytes=00000000
vfat_read_clusters_offset: reached VFAT_EOC at bytes_read=00000800
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000003
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000000
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000004
    n_bytes=000000AE
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000005
    n_bytes=00089B50
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000119
    n_bytes=00715214
   vfat_find_file_entry succeeded:
C19F23FC: 49 4E 49 54 52 44 20 20-20 20 20 20 00 00 00 00 | INITRD ....
C19F240C: 00 00 00 00 00 00 02 8B-5D 2D 19 01 14 52 71 00 | ........]-...Rq.
vfat_find_file_entry: fname='/boot/initrd'
                     dirname='/boot'
                    basename='INITRD'
vfat_find_dir_entry: fname='/boot'
                    dirname=''
                   basename='boot'
   searching root_dir_entries
   vfat_find_dir_entry:
C1A02F9C: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 00 00 | BOOT .....
C1A02FAC: 00 00 00 00 00 00 25 44-5E 2D 03 00 00 00 00 00 | ......%D^-......
vfat_find_file_entry: got dir entry for /boot
   attr=00000010
   clusterno=00000003
   n_bytes=00000000
vfat_read_clusters_offset: reached VFAT_EOC at bytes_read=00000800
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000003
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000010
    first_cluster=00000000
    n_bytes=00000000
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000004
    n_bytes=000000AE
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000005
    n_bytes=00089B50
find_file_in_dir: ÔÞ
    attr=00000020
    first_cluster=00000119
    n_bytes=00715214
   vfat_find_file_entry succeeded:
C19F23FC: 49 4E 49 54 52 44 20 20-20 20 20 20 00 00 00 00 | INITRD ....
C19F240C: 00 00 00 00 00 00 02 8B-5D 2D 19 01 14 52 71 00 | ........]-...Rq.
C0800000: 1F 8B 08 08 A3 26 BF 3D-02 03 63 72 61 6D 66 73 | .....&.=..cramfs
C0800010: 2E 37 35 39 35 00 CC BD-79 3C 95 5D F7 07 7C 70 | .7595...y<.]..|p
C0800020: 8E 39 54 A6 42 51 94 79-9E A7 CC 21 32 4F 65 08 | .9T.BQ.y...!2Oe.
C0800030: E7 E0 98 39 C7 14 2A 53-66 C9 94 8A 92 21 43 99 | ...9..*Sf....!C.
Booting vfat...
kernel partition base C0008000
kernel_magic=E1A00000
kernel_region_words[9]=016F2818
Linux ELF flash_imgstart=C0008000 size=00000000 dest=C0000000 offset=00008000
MMU Control=C19F4071
MMU PIDVAM=00000000
Skipping kernel copy by request.
C0008000: E1A00000
C0008004: E1A00000
C0008008: E1A00000
C000800C: E1A00000
C0008010: E1A00000
C0008014: E1A00000
C0008018: E1A00000
C000801C: E1A00000
C0008020: EA000002
C0008024: 016F2818
root_filesystem_name=ide
Grabbed linuxargs, argc = 00000000
Using mach_type 00000089
setting boot parameters to
initrd root=/dev/ram0 init=/linuxrc console=ttySA0 ramdisk_size=8192
ramdisk_blocksize=4096
Makeing core tag at C0000100
Makeing cmdline tag at C0000114
Makeing mem32 tag at C00001D4
Makeing ptable tag at C00001E4
Makeing initrd tag at C00003D8
   initrd.start=C0800000
   initrd.size=00715214
dram_size=04000000
command line is:
mtdpart=bootldr_at_0x00000000:0x00040000,root_at_0x00040000:0x01F80000,asset_at_0x01FC0000:0x00040000
initrd root=/dev/ram0 init=/linuxrc console=ttySA0 ramdisk_size=8192
ramdisk_blocksize=4096
Disabling LCD controller
linuxEntryPoint=C0008000
Booting Linux image
Uncompressing Linux........................................ done, booting
the kernel.

---
Ken Kittlitz
Au-Zone Technologies, Inc.
http://www.au-zone.com
Received on Mon Nov 04 2002 - 20:02:53 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:10:43 EDT