Add init script to load modules
This commit is contained in:
parent
2f9568acff
commit
7de83c4ebc
|
|
@ -610,6 +610,7 @@ else
|
|||
# cp $(SYSDRV_DIR)/tools/board/luckfox_config/luckfox-config $(SYSDRV_DIR_OUT_ROOTFS)/usr/bin/
|
||||
# cp $(SYSDRV_DIR)/tools/board/luckfox_config/luckfox_switch_rgb_resolution $(SYSDRV_DIR_OUT_ROOTFS)/usr/bin/
|
||||
cp $(SYSDRV_DIR)/tools/board/android-tools/S99usb0config $(SYSDRV_DIR_OUT_ROOTFS)/etc/init.d/
|
||||
cp $(SYSDRV_DIR)/tools/board/buildroot/S99loadmodules $(SYSDRV_DIR_OUT_ROOTFS)/etc/init.d/
|
||||
endif
|
||||
|
||||
buildroot_clean:
|
||||
|
|
|
|||
25
sysdrv/tools/board/buildroot/S99loadmodules
Executable file
25
sysdrv/tools/board/buildroot/S99loadmodules
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
load_modules() {
|
||||
depmod
|
||||
modprobe rk_dvbm
|
||||
modprobe video_rkcif
|
||||
modprobe video_rkisp
|
||||
modprobe phy-rockchip-csi2-dphy-hw
|
||||
modprobe phy-rockchip-csi2-dphy
|
||||
modprobe sc3336
|
||||
echo 1 > /sys/module/video_rkcif/parameters/clr_unready_dev
|
||||
echo 1 > /sys/module/video_rkisp/parameters/clr_unready_dev
|
||||
modprobe rga3
|
||||
modprobe mpp_vcodec
|
||||
modprobe rockit mcu_fw_path=/lib/firmware/hpmcu_wrap.bin mcu_fw_addr=0xff6ff000 isp_max_h=1296
|
||||
}
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
load_modules
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Loading…
Reference in New Issue
Block a user