WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: skip connected usb devices check while booting  (Read 234 times)

Offline halma

  • Full Member
  • ***
  • Posts: 138
skip connected usb devices check while booting
« on: September 20, 2018, 05:08:31 PM »
Hi,

is it possible to skip the usb connect devices check while picore on raspberry is booting, and check/scan for usb device if picore is done with booting ?
Thanks
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5935
Re: skip connected usb devices check while booting
« Reply #1 on: September 20, 2018, 05:23:48 PM »
Hi halma
You could try the kernel boot code:
Code: [Select]
usbcore.nousb
Found at this site:
https://www.mjmwired.net/kernel/Documentation/kernel-parameters.txt
They state:
Quote
usbcore.nousb   [USB] Disable the USB subsystem

Offline Paul_123

  • Sr. Member
  • ****
  • Posts: 430
Re: skip connected usb devices check while booting
« Reply #2 on: September 21, 2018, 10:09:01 AM »
Unless the bootcode waitusb=xx is on the command line, the boot process does not wait for any USB devices.

udev does everything in the background.  Perhaps describe what you are trying to do.

Offline halma

  • Full Member
  • ***
  • Posts: 138
Re: skip connected usb devices check while booting
« Reply #3 on: September 21, 2018, 01:09:55 PM »
when i reboot the raspyberry with tc9.x, my external usb drive takes seconds to respond on the next bootprocess and i want to skip that delay, so that the system boots really fast without interrupting, after the system has booted an script can run in the background, like udev or so, and scan the /sys/class/scsi_disk folder for new devices and can, if configured, mount the drive or partition on it.
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1681
Re: skip connected usb devices check while booting
« Reply #4 on: September 21, 2018, 09:59:05 PM »
Are you booting from USB a device? If I'm not mistaken, you can specify the boot device with the  root="..."  boot code.
Other than that, the  tce="..."   boot code can be used to specify a device (via label or UUID) plus  /tce-bla-bla  directory, which overcomes the need to search for the tce dir on every device connected.
Though, not sure if that would prevent other Devices from spinning up / initiating and made be ready for reading, if that's what's slows things down for you.
Maybe you want to enable syslog and check what take that much time.
Download a copy and keep it handy: Core book ;)

Offline halma

  • Full Member
  • ***
  • Posts: 138
Re: skip connected usb devices check while booting
« Reply #5 on: September 22, 2018, 12:44:36 PM »
Hi Misalf, i am booting from an (raspberry/picore 9.x Armv7)SD-Card
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline tatemono

  • WikiUser
  • *
  • Posts: 18
Re: skip connected usb devices check while booting
« Reply #6 on: September 23, 2018, 09:54:28 AM »
I am using TC v8.0 and it does not support external USB drive by default.
If TC v9.0.3 still does not support external USB drive by default, I suggest that let your system not run tce-load to load the device driver of external USB storage devices until the boot process was completed.