public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Relson, David" <david.relson@orion-sys.com>
To: <gentoo-embedded@lists.gentoo.org>
Subject: [gentoo-embedded] USB Boot Problem
Date: Wed, 10 Feb 2010 13:57:59 -0500	[thread overview]
Message-ID: <91FA647A1A781F41BBB0359765C90C15F70A1A@mailsvr.orion-sys.com> (raw)

G'day,

I've got a USB boot problem.

My target hardware is a PC/104 card with a Vortex86sx processor and a
128MB DOM (disk-on-module) for mass storage.  

Currently the test version of the card has a 1GB DOM which is
partitioned as follows:

       Device Boot      Start         End      Blocks  Id System
    /dev/hda1   *           1         141      142096+  6 FAT16
    /dev/hda2             142         991      856800  83 Linux

The BIOS boots to the FAT16 partition where ldlinux.sys takes over and
starts linux and all is fine.  

When I insert my USB flash drive, it is recognized as:

    usb 1-1.2: new high speed USB device using ehci_hcd and address 3
    usb 1-1.2: configuration #1 chosen from 1 choice
    scsi0 : SCSI emulation for USB Mass Storage devices
    usb-storage: device found at 3
    usb-storage: waiting for device to settle before scanning

    scsi 0:0:0:0: Direct-Access   SanDisk  Cruzer Micro  0.1  PQ: 0
ANSI: 2
    sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors: (1.02 GB/977
MiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
    sd 0:0:0:0: [sda] Assuming drive cache: write through
    sd 0:0:0:0: [sda] 2001888 512-byte hardware sectors: (1.02 GB/977
MiB)
    sd 0:0:0:0: [sda] Write Protect is off
    sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
    sd 0:0:0:0: [sda] Assuming drive cache: write through
     sda: sda1
    sd 0:0:0:0: [sda] Attached SCSI removable disk
    usb-storage: device scan complete

I need to create a rescue/install USB flash drive.  

At present my test flash drive has ldlinux.sys and the same kernel used
by the device.  Booting with "linux root=/dev/hda2" works fine.  However
for rescue purposes I need "linux root=/dev/sda" (or equivalent).

When I boot with "linux root=/dev/sda1", I get the following

    VFS: Cannot open root device "sda1" or unknown-block(0,0)
    Please append a correct "root=" boot option; here are the available
partitions:
    0300      1000944 hda driver: ide-gd
      0301      142096 hda1
      0302      856800 hda2
    Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)

Evidently /dev/sda1 hasn't yet mounted.  The boot process runs into the
same problem when I use /dev/sda or /dev/sda2 for "root=".

In the past I've seen similar kernel panics when the kernel lacks the
proper disk driver.  Since the system boots fine from the DOM, I believe
my kernel has all the device drivers built in (except scsi_wait_scan.ko
which is a module).

How do I fix the boot problem?  Anybody familiar with this problem and
have a recommendation or, even better, a solution? 

Regards,

David





             reply	other threads:[~2010-02-10 19:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-10 18:57 Relson, David [this message]
2010-02-10 19:14 ` [gentoo-embedded] USB Boot Problem Manuel Lauss
2010-02-10 19:29 ` James Ausmus
2010-02-10 19:43 ` joerg.faschingbauer
2010-02-10 21:37   ` [gentoo-embedded] USB progress [ was: USB Boot Problem ] David Relson
2010-02-10 22:12     ` Manuel Lauss
2010-02-11  0:51       ` Peter Stuge

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=91FA647A1A781F41BBB0359765C90C15F70A1A@mailsvr.orion-sys.com \
    --to=david.relson@orion-sys.com \
    --cc=gentoo-embedded@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox