RE: Problems dual-booting and soft-reset

From: Hicks, Jamey (Jamey.Hicks@compaq.com)
Date: Thu Mar 14 2002 - 09:43:47 EST


> -----Original Message-----
> From: Daniel Tryba [mailto:bootldr.handhels.org@canopus.nl]
> Sent: Wednesday, March 13, 2002 6:47 PM
> To: familiar@handhelds.org; bootldr@handhelds.org
> Subject: Re: [Bootldr] Problems dual-booting and soft-reset
>

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

I used the spec from Microsoft, which gives specific cutoff points for FAT12, FAT16, and FAT32. I suppose I could add a parameter to override the filesystem type.

> > > 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):

The location of the root directory entries is determined in the same way for fat12 and fat16, so it finds the entries OK. For small files, it is not going to have to use the FAT entries, so it does not matter whether it correctly determines whether it is FAT12 or FAT16.
  
> 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

fat_type == 1 indicates that the bootldr thinks this is FAT12. The first cluster of data from each file will probably be read correctly (4 sectors * 512 byte per sector), but the rest is likely to be junk.

Jamey



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