Re: Problems dual-booting and soft-reset

From: Daniel Tryba (bootldr.handhels.org@canopus.nl)
Date: Wed Mar 13 2002 - 18:47:09 EST


On Wed, Mar 13, 2002 at 06:17:38PM -0500, Hicks, Jamey wrote:
> > I was just testing the the minimum patition size mkdosfs will create a
> > FAT-16 fs on and according to my findings it 8Mb.
>
> I stand corrected. This is good new. Seems like FAT12 not a requirement.

I have no idea why 8Mb+ are FAT-16, according to documentation I've read
FAT-12 should be used on partitions < 16Mb ?

> > BTW even when I force a FAT 16 on a smaller partition bootldr will not
> > load the kernel/initrd :(
> >
>
> Let's try the steps manually and see how far it gets:

No need for the steps manually, boot vfat get very far (it evens
correctly loads params):

How the CF is formatted:

shaitan:/mnt# mkdosfs -v /dev/sdd1
mkdosfs 2.8 (28 Feb 2001)
/dev/sdd1 has 16 heads and 32 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 8672 sectors;
file system has 2 12-bit FATs and 4 sectors per cluster.
FAT size is 7 sectors, and provides 2156 clusters.
Root directory contains 512 slots.
Volume ID is 3c8fe171, no volume label.

shaitan:/mnt# mkdosfs -v -F 16 /dev/sdd1
mkdosfs 2.8 (28 Feb 2001)
WARNING: Not enough clusters for a 16 bit FAT! The filesystem will be
misinterpreted as having a 12 bit FAT without mount option "fat=16".
/dev/sdd1 has 16 heads and 32 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 8672 sectors;
file system has 2 16-bit FATs and 4 sectors per cluster.
FAT size is 9 sectors, and provides 2155 clusters.
Root directory contains 512 slots.
Volume ID is 3c8fe181, no volume label.

boot vfat:------------------------------------------------------------------

boot vfat
booting vfat...
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
dual_pcmcia_probe_sleeve
pcmcia_register_ops: ops=0002C334
h3600_sleeve_insert: matched driver Compaq PC Card Sleeve
cis mapping=28000000
cis[0] =00000001
  01 04 DF 4A 01 FF
  1C 04 02 D9 01 FF
  18 02 DF 01
  20 04 0A 00 00 00
  manfid[0]=0000000A
  manfid[1]=00000000
  15 13 04 01 41 70 61 63 65 72 00 43 46 31 32 38 4D 42 00 00 FF
  21 02 04 01
  funcid=00000004
    fixed disk
  22 02 01 01
  22 03 02 0C 0F
  1A 05 01 03 00 02 0F
  1B 08 C0 C0 A1 01 55 08 00 20
  1B 06 00 01 21 B5 1E 4D
  1B 0A C1 41 99 01 55 64 F0 FF FF 20
  1B 06 01 01 21 B5 1E 4D
  1B 0F C2 41 99 01 55 EA 61 F0 01 07 F6 03 01 EE 20
  1B 06 02 01 21 B5 1E 4D
  1B 0F C3 41 99 01 55 EA 61 70 01 07 76 03 01 EE 20
  1B 06 03 01 21 B5 1E 4D
end
 ide status=000000D0
C1A00594: 8A 84 EF 01 00 00 10 00-00 40 00 02 20 00 03 00 | .........@.. ...
C1A005A4: 00 DE 00 00 32 30 38 2D-39 36 32 31 30 35 20 37 | ....208-962105 7
C1A005B4: 20 20 20 20 20 20 20 20-02 00 02 00 04 00 65 76 | ......ev
C1A005C4: 42 72 36 2E 20 35 50 41-43 41 52 45 43 5F 5F 46 | Br6. 5PACAREC__F
C1A005D4: 32 31 4D 38 20 42 20 20-20 20 20 20 20 20 20 20 | 21M8 B
C1A005E4: 20 20 20 20 20 20 20 20-20 20 20 20 20 20 01 00 | ..
C1A005F4: 00 00 00 02 00 00 00 02-00 00 01 00 EF 01 10 00 | ................
C1A00604: 20 00 00 DE 03 00 00 01-00 DE 03 00 00 00 00 00 | ...............
  serial_number: 208-962105 7
  firmware_revision: evBr6. 5
  model_number: PACAREC__F21M8 B
  bytes_per_sector=00000200
  bytes_per_track=00004000
  n_sectors_per_track=00000020
  n_cylinders=000001EF
  n_heads=00000010
  n_sectors_user_addressable=00000000
cis mapping=38000000
cis[0] =00000C02
end
ptable signature=0000AA55
cmd vfat mount: partid=00000000
vfat mount: reading bpb_info
C1A00628: EB 3C 90 6D 6B 64 6F 73-66 73 00 00 02 04 01 00 | .<.mkdosfs......
C1A00638: 02 00 02 E0 21 F8 09 00-20 00 10 00 00 00 00 00 | ....!... .......
C1A00648: 00 00 00 00 00 00 29 81-E1 8F 3C 20 20 20 20 20 | ......)...<
C1A00658: 20 20 20 20 20 20 46 41-54 31 36 20 20 20 0E 1F | FAT16 ..
C1A00668: BE 5B 7C AC 22 C0 74 0B-56 B4 0E BB 07 00 CD 10 | .[|.".t.V.......
C1A00678: 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=00000013
  fat_size=00000009
  fat_size_bytes=00001200
  n_fats=00000002
  total_sectors=000021E0
  n_data_sectors=000021AD
  first_data_sector=00000033
  n_clusters=0000086B
  fat_type=00000001
root_dir_entries:
C1A02FA0: 41 62 00 6F 00 6F 00 74-00 00 00 0F 00 DD FF FF | Ab.o.o.t........
C1A02FB0: FF FF FF FF FF FF FF FF-FF FF 00 00 FF FF FF FF | ................
C1A02FC0: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 31 04 | BOOT ...1.
C1A02FD0: 6E 2C 6E 2C 00 00 31 04-6E 2C 02 00 00 00 00 00 | n,n,..1.n,......
C1A02FE0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 | ................
C1A02FF0: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 | ................
C1A03000: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 | ................
C1A03010: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 | ................
C1A03020: 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00 | ................
C1A03030: 00 00 00 00 00 00 | ......
fat:
C1A016B4: F8 FF FF FF F8 FF 04 00-05 00 06 00 07 00 08 00 | ................
C1A016C4: 09 00 0A 00 0B 00 0C 00-0D 00 0E 00 0F 00 10 00 | ................
C1A016D4: 11 00 12 00 13 00 14 00-15 00 16 00 17 00 18 00 | ................
C1A016E4: 19 00 1A 00 1B 00 1C 00-1D 00 1E 00 1F 00 20 00 | .............. .
first data:
C1A006A0: 41 62 00 6F 00 6F 00 74-00 00 00 0F 00 DD FF FF | Ab.o.o.t........
C1A006B0: FF FF FF FF FF FF FF FF-FF FF 00 00 FF FF FF FF | ................
C1A006C0: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 31 04 | BOOT ...1.
C1A006D0: 6E 2C 6E 2C 00 00 31 04-6E 2C 02 00 00 00 00 00 | n,n,..1.n,......
 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:
C1A02FC0: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 31 04 | BOOT ...1.
C1A02FD0: 6E 2C 6E 2C 00 00 31 04-6E 2C 02 00 00 00 00 00 | n,n,..1.n,......
vfat_find_file_entry: got dir entry for boot
  attr=00000010
  clusterno=00000002
  n_bytes=00000000
  vfat_find_file_entry:
C19F2C38: 50 41 52 41 4D 53 20 20-20 20 20 20 00 00 31 04 | PARAMS ..1.
C19F2C48: 6E 2C 6E 2C 00 00 31 04-6E 2C 88 04 61 00 00 00 | n,n,..1.n,..a...
+ set kernel_filename boot/zimage
  setting param <kernel_filename> to value <boot/zimage>
+ set linuxargs=initrd root=/dev/ram0 init=/linuxrc console=ttySA0
  setting param <linuxargs> to value <initrd root=/dev/ram0 init=/linuxrc console=ttySA0>
+
 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:
C1A02FC0: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 31 04 | BOOT ...1.
C1A02FD0: 6E 2C 6E 2C 00 00 31 04-6E 2C 02 00 00 00 00 00 | n,n,..1.n,......
vfat_find_file_entry: got dir entry for boot
  attr=00000010
  clusterno=00000002
  n_bytes=00000000
  vfat_find_file_entry:
C19F2BB8: 5A 49 4D 41 47 45 20 20-20 20 20 20 00 00 31 04 | ZIMAGE ..1.
C19F2BC8: 6E 2C 6E 2C 00 00 31 04-6E 2C 03 00 A4 5D 0B 00 | n,n,..1.n,...]..
 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:
C1A02FC0: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 31 04 | BOOT ...1.
C1A02FD0: 6E 2C 6E 2C 00 00 31 04-6E 2C 02 00 00 00 00 00 | n,n,..1.n,......
vfat_find_file_entry: got dir entry for boot
  attr=00000010
  clusterno=00000002
  n_bytes=00000000
  vfat_find_file_entry:
C19F2BF8: 49 4E 49 54 52 44 20 20-20 20 20 20 00 00 31 04 | INITRD ..1.
C19F2C08: 6E 2C 6E 2C 00 00 31 04-6E 2C 6F 01 3E C2 18 00 | n,n,..1.n,o.>...
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:
C1A02FC0: 42 4F 4F 54 20 20 20 20-20 20 20 10 00 00 31 04 | BOOT ...1.
C1A02FD0: 6E 2C 6E 2C 00 00 31 04-6E 2C 02 00 00 00 00 00 | n,n,..1.n,......
vfat_find_file_entry: got dir entry for boot
  attr=00000010
  clusterno=00000002
  n_bytes=00000000
  vfat_find_file_entry:
C19F2BF8: 49 4E 49 54 52 44 20 20-20 20 20 20 00 00 31 04 | INITRD ..1.
C19F2C08: 6E 2C 6E 2C 00 00 31 04-6E 2C 6F 01 3E C2 18 00 | n,n,..1.n,o.>...
C0800000: 1F 8B 08 08 E6 1A 89 3C-02 03 69 6E 69 74 72 64 | .......<..initrd
C0800010: 00 EC 9D 07 78 14 D5 FA-87 77 B3 E9 05 42 EF 0A | ....x....w...B..
C0800020: 88 8A 85 84 16 20 10 90-26 25 15 90 DE 43 0A 04 | ..... ..&%...C..
C0800030: 92 6C D8 4D 20 88 85 A2-90 08 48 95 1A 14 44 20 | .l.M .....H...D
Booting vfat ... argv[2]=
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 = 00000001
Using mach_type 00000016
setting boot parameters to
initrd root=/dev/ram0 init=/linuxrc console=ttySA0
Makeing core tag at C0000100
Makeing cmdline tag at C0000114
Makeing mem32 tag at C0000190
Makeing ptable tag at C00001A0
Makeing initrd tag at C0000368
  initrd.start=C0800000
  initrd.size=0018C400
dram_size=02000000
command line is: mtdpart=bootldr@0x00000000:0x00040000,root@0x00040000:0x00FC0000 initrd root=/dev/ram0 init=/linuxrc console=ttySA0
Disabling LCD controller
linuxEntryPoint=C0008000
Booting Linux image

----------------------------------------------------------------------------

-- 
Daniel Tryba


This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:03 EST