have an embedded linux box . I am trying to reduce boot time by making so many features as modules . So that i wll have a thin uImage .
I made sata driver (mv_sata ) as a loadable kernel module . But when the
box boots up and trying to mount /dev/sda ( it is a sata harddisk ) . it is failing .
$ fdisk /dev/sda
the above command gives an error message " unable to open /dev/sda"
$ mkfs.ext3 /dev/sda
this commnand also gives the same message " unable to open /dev/sda"
But after loading the driver using
$ modprobe mv_sata
i can do fdisk ,mkfs.ext3 and mount all .
My question is : -> Is there any way linux can load the module by itself if it needs to mount a sata drive ??
Start Free Trial