8cba What is CAM_BOOT_DELAY in RELENG_9? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Non-i386 / amd64 > Embedded

Embedded Having questions related to ARM/MIPS devices which are not desktops and which usually serve a single purpose such as routers, switches, PDAs, etc?

Reply
 
Thread Tools Display Modes
  #1  
Old March 30th, 2012, 20:59
rusma rusma is offline
Junior Member
 
Join Date: Jul 2009
Location: Oslo, Norway
Posts: 87
Thanks: 3
Thanked 0 Times in 0 Posts
Default What is CAM_BOOT_DELAY in RELENG_9?

I am in the process of doing a source upgrade from RELENG_8 to RELENG_9 on my Sheevaplug. I have to have some kind of delay in the kernel for the root filesystem to be recognized because of the USB SATA enclosure being slow, up to now I have used
Code:
option CAM_BOOT_DELAY=4000
but this option does not seem enough in RELENG_9 (kernel booting drops me into a mountroot shell, which is the same happening in RELENG_8 without CAM_BOOT_DELAY). I can post the kernel config if needed. There is already one other person on this forum experiencing this.

I should mention that the option is not standard and is enabled by patching sys/conf/options and sys/cam/cam_xpt.c. I can supply the hyperlink to the FreeBSD mailing list thread if needed.

I have tried addressing this in both freebsd-stable and freebsd-usb mailing lists this week since someone on the #bsdusb channel on the EFnet IRC network suggested I did.

Last edited by rusma; March 30th, 2012 at 21:37.
Reply With Quote
  #2  
Old April 12th, 2012, 18:12
Sebulon's Avatar
Sebulon Sebulon is offline
Member
 
Join Date: Nov 2010
Location: Uppsala, Sweden
Posts: 558
Thanks: 24
Thanked 93 Times in 78 Posts
Default

@rusma

I can't give you a straight solution, but I can say that I have installed and running countless systems like this (boot/root on USB) on server HW varying high and low (HP, Dell, Fujitsu Supermicro etc) as well as desktop systems, home computers, just about anything short of the kitchen sink Versions used have been 8.0-RELEASE, 8-STABLE, 9.0-RELEASE, 9-STABLE, with varying results.

Especially HP servers have been the most difficult, where some models just haven't worked at all. Also some not working at first and then changed to another USB-stick worked great, it's a little hit and miss in my opinion. But the times it hasn't worked it has been earlier just after BIOS POST, when BTX is supposed to kick in. But after initial boot, when it has reached mountroot, with:

/boot/loader.conf
Code:
kern.cam.boot_delay=10000
It has always been able to continue. One thing you can try is just to change USB-port to an "earlier" one, if possible? The ones directly on the MB .e.g.

/Sebulon
Reply With Quote
Reply

Tags
arm, cam_boot_delay, mountroot

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] cvsuping from RELENG_8_2 to RELENG_9; unable to build kernel matoatlantis Installing & Upgrading 3 January 14th, 2012 00:44


All times are GMT +1. The time now is 08:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0