From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 17 02:19:20 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6746F106566C for ; Wed, 17 Jun 2009 02:19:20 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id B31FB8FC15 for ; Wed, 17 Jun 2009 02:19:19 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id n5H2JETK009624 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 17 Jun 2009 11:49:17 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: rick-freebsd2008@kiwi-computer.com Date: Wed, 17 Jun 2009 11:49:11 +0930 User-Agent: KMail/1.9.10 References: <200906162350.40221.doconnor@gsoft.com.au> <20090616172306.GA91395@keira.kiwi-computer.com> In-Reply-To: <20090616172306.GA91395@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2063780.9gze3232bq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200906171149.13433.doconnor@gsoft.com.au> X-Spam-Score: -3.537 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-hackers@freebsd.org Subject: Re: Loader reading FAT X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 02:19:20 -0000 --nextPart2063780.9gze3232bq Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 17 Jun 2009, Rick C. Petty wrote: > On Tue, Jun 16, 2009 at 11:50:38PM +0930, Daniel O'Connor wrote: > > Unfortunately I can't get the loader to read a FAT partition which > > surprises me because I think it should be able to.. I believe that > > libstand can do it (I can see the code :) however when I list the > > USB stick device I get an empty directory listing. > > I read somewhere that there isn't enough space in the boot2 loader to > put such logic. You're only guaranteed 15 512-byte sectors or 7680 > bytes, if you use any UFS partition. It's pretty tight; I think you > will find it difficult to insert another file system in there, > especially one as complicated as msdos. libstand is 223 KB, so it's > not as trivial as you think. > > Theoretically it would be possible: for example, if you're willing to > set aside a separate partition you would have as much room as you > want. Or if you put it at the front of a UFS partition, you have > just under 256 KB of room since our UFS code will search for the > superblock at a byte offset of 262144, but there aren't any knobs to > newfs so you'd have to hack it together. Take a look at > /usr/src/sys/boot/i386/boot2/ for starters. In effect I will be doing that, I can make a syslinux memdisk which=20 holds boot0/1/2 + loader in a UFS partition. I would just prefer to be=20 able to read the kernel, modules & MFS root off FAT32. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2063780.9gze3232bq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iD8DBQBKOFKh5ZPcIHs/zowRAovJAJ0SO3iqoxoSazlmIgqT64jMZXg+MQCfcfYx UB2QV0FLJ2IW5i2C6HjLgW4= =ugH4 -----END PGP SIGNATURE----- --nextPart2063780.9gze3232bq--