2022年5月16日 星期一

[Linux Kernel] filesystem掛載driver – 以stat硬碟為例

1. 到kernel run makemenuconfig
Device Drivers =>
Serial ATA (prod) and Parallel ATA (experimental) drivers =>
<M> ATA device support
< >   Force spinup device
< >   AHCI SATA support
<M>   ServerWorks Frodo / Apple K2 SATA support
[ ]     Support for Native Command Queueing (EXPERIMENTAL)
(2)     Broadcom SATA host controller port number: 1 or 2

2. Build
make
make modules
make modules_install INSTALL_MOD_PATH=./_install

3. 將_install裡的檔案拷貝到filesystem

4. 到 busybox run makemenuconfig
Linux Module Utilities  =>
[ ] Simplified modutils
[*]   insmod
[*]   rmmod
[*]   lsmod
[*]     Pretty output
[*]   modprobe
[*]     Blacklist support
[*]   depmod
會多modprobe & depmod

5. modprobe sata_svw

6. 看到sata_svw 掛載成功

沒有留言:

張貼留言