All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Henningsen <stephan-grub2@asklandd.dk>
To: grub-devel@gnu.org
Subject: Trouble booting CF card in PCMCIA port from GRUB2
Date: Mon, 20 Apr 2009 23:58:37 +0200	[thread overview]
Message-ID: <49ECF00D.4040000@asklandd.dk> (raw)

Hi,

My goal is to make my old laptop boot a live Linux dist from the CF card
inserted into an adapter in the PCMCIA port.  After booting a GRUB2
image, the laptop's hard disk drive can be put to sleep and I'll have a
 silent netbook.

I'm experimenting with this rather simple problem, but on a somewhat
strange setup.  Please don't bother suggesting a different setup, unless
it is absolutely necessary and conforms to my requirements mentioned below

Surely this experiment can be reproduced with just one laptop, but I'm
using two.  My normal (host) laptop runs Ubuntu 8.10 and is used for
everyday usage, including compiling.  My old (target) laptop has no
cdrom drive, no floppy drive, no working USB flash or PCMCIA CF boot
support from BIOS, is running an old and obsolete Ubuntu.  Still, both
laptops work, and while experimenting I don't want to replace their
existing legacy GRUB replaced by GRUB2 or otherwise contaminate them
with experimental files.



On the host laptop I've built a svn checkout of GRUB2 and installed it
into an isolated directory under /opt:

mkdir -p /opt/grub2
cd /opt/grub2
svn co svn://svn.sv.gnu.org/grub/trunk/grub2 ./src
cd src
./autogen.sh
./configure --prefix=/opt/grub
make  &&  make install

This is not important for this issue, but included for completeness: I
have this weird/magic opt-setup that automatically sets up the proper
paths it /opt to something like this:

export PATH=$PATH:/opt/grub2/sbin:/opt/grub2/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/grub2/lib
export MANPATH=$MANPATH:/opt/grub2/share/man



I've build a GRUB2 image on the host for the target.  Keeping things in
one single image file helps to keep things simple and reduces the number
of files to manage to a minimum:

/opt/grub2/bin/grub-mkimage -o grub2.img \
	pc ata ext2 linux \
	normal help minicmd ls cat search tar memdisk



Then I copied the grub2.imb to the target laptop's /boot/ dir.  I added
this entry in the /boot/grub/menu.lst of the legacy GRUB:

title	GRUB2 Image
root	(hd0,0)
kernel	/boot/grub2.img


When I boot the target laptop, it first hits legacy GRUB.  Here I select
to boot the "GRUB2 Image", and now I have the "grub>" prompt of GRUB2.

grub> ls
(ata0) (ata0,1) (ata0,2) (ata0,3)

As you see, only ata0 is shown, which is the target laptop's harddrive.
 The PCMCIA slot or the card in it isn't shown!



Am I doing something wrong?  Is this a known issue?  What now?  I'd like
to help if I can =)


-- 
Stephan




             reply	other threads:[~2009-04-20 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-20 21:58 Stephan Henningsen [this message]
2009-04-22  6:11 ` Trouble booting CF card in PCMCIA port from GRUB2 ebik
2009-04-22  9:54 ` Urja Rannikko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49ECF00D.4040000@asklandd.dk \
    --to=stephan-grub2@asklandd.dk \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.