From 4abbd21bab96dc79352c1127fbab629b0c656315 Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Fri, 20 May 2022 13:40:35 -0700 Subject: [PATCH] add device host to ncm module --- SD_ROOT/wz_mini/run_mmc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SD_ROOT/wz_mini/run_mmc.sh b/SD_ROOT/wz_mini/run_mmc.sh index 12b9395..52fc9a6 100755 --- a/SD_ROOT/wz_mini/run_mmc.sh +++ b/SD_ROOT/wz_mini/run_mmc.sh @@ -262,10 +262,12 @@ if [[ "$ENABLE_USB_DIRECT" == "true" ]]; then #wipe the bits to set the ID_PIN devmem 0x10000040 32 0x0b000FFF + host_macaddr=$(echo $HOSTNAME|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/') + insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/libcomposite.ko insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/u_ether.ko insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/usb_f_ncm.ko - insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/g_ncm.ko iManufacturer=wz_mini_ncm dev_addr=$USB_DIRECT_MAC_ADDR + insmod /opt/wz_mini/lib/modules/3.10.14__isvp_swan_1.0__/kernel/drivers/usb/gadget/g_ncm.ko iManufacturer=wz_mini_ncm host_addr=$host_macaddr dev_addr=$USB_DIRECT_MAC_ADDR sleep 1