[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: openbsd pen drive
Make sure you also read Chris' email about the flags; he is probably
right.
So at the boot> prompt type "set howto -c" and when you get in ukc type
"change usb" and change the flags to 0x0001. This should probe usb a
whole lot earlier.
Read usb(4) for more details.
On Feb 7, 2004, at 4:16 PM, Sweetleaf wrote:
> Ok, sorry for any confusion. I am not saying that cd0 the cd is
> important
> to me, i am saying that i have noticed when booting from the /bsd on
> the
> boot cd and not a hd ..when my pen drive plugged in,, the pen drive is
> brought up and recognized as sd0 after everything else has completed.
> So
> when i installed openbsd, the computer was fully booted from the boot
> cd
> and my pen drive was available to the installer as sd0 and installed on
> this drive. So.. after the successfully install, i am booting my
> computer
> from the pen drive via... the bios setting usb-hdd and the drive at
> this
> point in the game is not sd0a it is hd0a. The boot loader finds the
> hd0a:/bsd on the pen drive and loads the kernel in memory,,, then the
> kernel starts probing and loading things and ssh is started etc.. Then
> it
> gets to the point where it tries to mount sd0a for the root but cant
> because the pen drive is not brought online as sd0a until after this so
> it fails and panics. I Watched the order in events from booting the 3.4
> boot cd and as mentioned the pen usb system whatever comes on line
> after
> the kernel finds its root. Going on the latter i assume the reason my
> kernel can not find its root of sd0a and panics is because it not
> available at the time it tries to mount it,, so i need to bring up the
> required usb stuff and pen ,, then mount the root= sd0a at the end as
> then it would be available to the kernel.
>
> Thanks marco, for the help
>
> ps: i tried the -a option and that another reason i figured the above,
> because the only options available for the "choose root prompt" is cd0
> as
> the kernel does not have the sd0 usb pen online and has booted far
> enough
> to shed the computer bios of hd0a.
>
> On Sat, 7 Feb 2004 10:46:50 -0600, "Marco Peereboom"
> <slash@peereboom.us>
> said:
>> On Feb 7, 2004, at 6:04 AM, Sweetleaf wrote:
>>
>>> Is there a way to change the way the kernel boots and loads device. I
>>> have successfully installed current on a usb pen drive (sd0)...the
>>> pen
>>> does boot via.. usb-hdd as hd0a:/bsd. The problem is that the usb pen
>>> is
>>> initialized and brought up as "sd0" after the kernel tries to load
>>> the
>>> root on sd0a which fails and causes panic because sd0a is not
>>> available
>>> yet as the usb parts have not been probe and loaded.
>>>
>> This doesn't sound right. When you installed it you used sd0; after
>> boot it should still be sd0. Check /etc/fstab to make sure / is set to
>> /dev/sd0a.
>>
>>> I noticd this when booting from the 3.4 boot cd, the root ,in this
>>> case
>>> on the cd, was successfully found and initialized then my usb system
>>> and
>>> pen were probed and brought up. So how could i change this and make
>>> the
>>> necessary usb parts come up first so the pen will be available as sd0
>>> before the it tries to set the rootdev=sd0a and fails.
>>>
>> A cd comes up as cd0 not as sd0 so this doesn't sound right either.
>>
>> Send a dmesg so that we can determine how your box is booting up. Use
>> a
>> serial cross cable connected to com1(use com1!) running 9600 N81 no
>> flow control. At the boot> prompt type "set tty com0". Send the output
>> to the list.
>>
>>> I read the faq! about how openbsd boots and thought maybe boot.conf
>>> might
>>> be able to do this but don't know how.
>>>
>> read:
>> boot.conf(8)
>> fstab(5)
>> boot(8)
>>
>> Pay attention to the -a option boot & boot.conf in case you need to
>> change the root device.
>>
>>> Thanks in advance
>>> --
>>> Sweetleaf
>>> sweetleaf@fastmail.fm
>>>
>>> --
>>> http://www.fastmail.fm - Same, same, but different…
>>>
>>
> --
> Sweetleaf
> sweetleaf@fastmail.fm
>
> --
> http://www.fastmail.fm - Accessible with your email software
> or over the web