Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: halma on September 20, 2018, 08:08:31 PM

Title: skip connected usb devices check while booting
Post by: halma on September 20, 2018, 08: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
Title: Re: skip connected usb devices check while booting
Post by: Rich on September 20, 2018, 08: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
Title: Re: skip connected usb devices check while booting
Post by: Paul_123 on September 21, 2018, 01:09:01 PM
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.
Title: Re: skip connected usb devices check while booting
Post by: halma on September 21, 2018, 04: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.
Title: Re: skip connected usb devices check while booting
Post by: Misalf on September 22, 2018, 12:59:05 AM
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.
Title: Re: skip connected usb devices check while booting
Post by: halma on September 22, 2018, 03:44:36 PM
Hi Misalf, i am booting from an (raspberry/picore 9.x Armv7)SD-Card
Title: Re: skip connected usb devices check while booting
Post by: tatemono on September 23, 2018, 12:54:28 PM
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.