From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 7 15:40:14 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 630AB106566B; Thu, 7 Jun 2012 15:40:14 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B67218FC16; Thu, 7 Jun 2012 15:40:13 +0000 (UTC) Received: by bkvi18 with SMTP id i18so845572bkv.13 for ; Thu, 07 Jun 2012 08:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wqyG2UvduT3cUdeRAr3vUisOstrIOuDVxhv8Md1CbTg=; b=rmPfLKR3UEPZXObSPcdbu7WOKM8lPF5wW5RoIBMMOBhJ/kon8PDGbY3z/S0JRq8g78 +NBFnxrxH7elbFQmcZDXskBeZH1uNfhvbY5DrehZmE+UD5jZf+MKxq+FzDEEj0cBQudh TmfMjaSd2nQacLGa59Hvh+Hag8f/9+H0H70AmX2xXKsUu0h/AMTbxbr+Mntzj2NcuPXB iBOWxNZGtm5sbU6m1LjqTGpTwaecl3CcwbZBEG31QIWozOPTnn1o3p+dzGelY6JJgThE 6XGSv94iuHia+DFzImtBTKYfx6iYCcg/ESg/jsGu6yaJ3s3zuCl2+i8FB/uauCm9f4MF XL5w== MIME-Version: 1.0 Received: by 10.205.117.3 with SMTP id fk3mr1992059bkc.136.1339083612638; Thu, 07 Jun 2012 08:40:12 -0700 (PDT) Received: by 10.204.171.138 with HTTP; Thu, 7 Jun 2012 08:40:12 -0700 (PDT) Received: by 10.204.171.138 with HTTP; Thu, 7 Jun 2012 08:40:12 -0700 (PDT) In-Reply-To: <20120607.135825.592.1@DOMY-PC> References: <20120606.161514.685.1@DOMY-PC> <201206070821.40068.jhb@freebsd.org> <20120607.135825.592.1@DOMY-PC> Date: Thu, 7 Jun 2012 16:40:12 +0100 Message-ID: From: Chris Rees To: rank1seeker@gmail.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hackers@freebsd.org Subject: Re: CD bootcode 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: Thu, 07 Jun 2012 15:40:14 -0000 On Jun 7, 2012 2:58 PM, wrote: > > ----- Original Message ----- > From: John Baldwin > To: freebsd-hackers@freebsd.org > Cc: rank1seeker@gmail.com > Date: Thu, 7 Jun 2012 08:21:39 -0400 > Subject: Re: CD bootcode > > > On Wednesday, June 06, 2012 12:15:14 pm rank1seeker@gmail.com wrote: > > > FreeBSD's CD bootcode '/boot/cdboot' is targeting stage 3 boot -> loader > > > For example, stage 2 boot '/boot/boot' is attempting the same. > > > > > > In my case of a '/boot/loader', '/boot' is a symlink! > > > > > > So if '/boot/boot' works with symlinks, why '/boot/cdboot' doesn't! > > > Yes, I did use Rock-Ridge extensions, upon creation of 'cd.iso' > > > > Because I didn't make cdboot's lookup routine handle symlinks. It > > also doesn't look at Rock-Ridge extensions and only uses the base > > ISO-9660 directory entries. That was enough fun to write in assembly. > > OTOH, CD sectors are 2k, so you do have that much room to work with > > and can probably fit a more advanced directory lookup into cdboot. > > > > I'm happy to review any patches you come up with. > > > > -- > > John Baldwin > > > I need to correct myself. > BOTH stage 2 boot '/boot/boot' AND '/boot/cdboot' don't work with symlinks! > > '/boot/boot' on UFS sees symlink as file, same as '/boot/cdboot' does so on Rock-Ridge. > > I can handle '/boot/boot' by providing full path to loader via 'boot.config' > '/boot/cdboot' doesn't have such a file, so in '/usr/src/sys/boot/i386/cdboot/cdboot.s': > -- > loader_paths: .asciz "/BOOT/LOADER" > .asciz "/boot/loader" > .byte 0 > -- > > I injected third '.asciz' line with full path to 'loader' and recompiled it. > And what is first line "/BOOT/LOADER" doing in there ?!? > Because strict ISO9660 8.3 is case insensitive and uses caps? Chris