[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems getting started with PC686 BSP

  On 09/15/2010 05:58 PM, Steven Grunza wrote:
>> -----Original Message-----
>> From: Ralf Corsepius [mailto:ralf.corsepius at rtems.org]
>> Sent: Wednesday, September 15, 2010 11:41 AM
>> To: Steven Grunza
>> Cc: rtems-users at rtems.org
>> Subject: Re: Problems getting started with PC686 BSP
>> On 09/15/2010 04:16 PM, Steven Grunza wrote:
>>> I've been trying to get the hello_world example to work on a Dell
>> laptop
>>> without success.
>>> I'm using a USB boot from a flash drive (the laptop doesn't have
>> a
>>> floppy drive).
>>> My grub.conf is:
>>> default=0
>>> timeout=15
>>> title RTEMS pc686-tests-hello.exe
>>>           root (hd0,0)
>>>           kernel /boot/images/pc686-tests-hello.exe
>> Note: root(hd0,0)
>>> J:\>dir /s
>>>    Volume in drive J has no label.
>>>    Volume Serial Number is 4C8F-D1DD
>> Note: Drive "J:"
>> This doesn't match.
> The machine I used to grab the directory listing isn't the same machine on which I'm testing.  Sorry for the confusion.
> The laptop I'm trying to use for testing is a Dell Latitude D400 with an NTFS formatted internal drive (not mine so I don't want to re-image the internal drive).  The BIOS is set to boot from USB storage first.  Booting a USB flash drive formatted with MS-DOS results in drive "C:" being the flash drive.  Booting my USB flash drive with GRUB brings up the GRUB menu.  Since it can find the .ralf image (but doesn't like it) is it correct to assume that the correct root setting is (hd0,0)?
>> grub's (hd0,0) would be the first partion on the first hard-disk
>> (In DOS
>> terms: Drive "C:").
>> An USB stick DOS sees as "J:" (9th drive) is very unlikely to be
>> grub's
>> (hda,0).
>> What I actually is is hard to tell, because both Linux and grub
>> don't
>> number drives by consecutive letters.
>> What is the drive name Linux sees your flash drive rsp. the
>> partition on
>> the flash drive?
> I'm not sure I understand your question but my build machine is a Linux box running CentOS5.  The flash drive shows up as /dev/sdb and I mount the /dev/sdb1 partition to /mnt in order to copy files to the flash drive

/dev/sdb1 == First partition on the 2nd drive.

=> root (hd1,0)

> [root at stm32dbg /]# fdisk -l /dev/sdb
> Disk /dev/sdb: 2021 MB, 2021654528 bytes
> 63 heads, 62 sectors/track, 1010 cylinders
> Units = cylinders of 3906 * 512 = 1999872 bytes
>     Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1   *           1        1010     1972499    b  W95 FAT32
> If I boot with the GRUB USB flash drive and enter the command line menu I can enter
> find (hd0,0)/boot/im
> and then press the {TAB} key.  The line then changes to
> find (hd0,0)/boot/images/
> GRUB responds to the command "find /boot/images/pc686-hello.exe" with "(hd0,0)"
Very odd ... Are you sure this is /dev/sdb1 you are looking at? Could it 
be you are looking into /dev/sda1?

Is your BIOS reordering drives rsp. does the BIOS order of the drives 
change depending upon whether you boot from USB or HD (Some BIOSes do so)?