|
|
#421 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 446
Karma: 1084584
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
|
Quote:
|
|
|
|
|
|
|
#422 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Thank you for trying. I uploaded a new archive to the original post, and added an explanation.
As for the windows stuff please see the text in the spoiler of this post. |
|
|
|
|
|
#423 | |
|
Bottom Text
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 332882
Join Date: Nov 2016
Device: Kobo Clara HD, Kobo Glo HD
|
Quote:
Code:
#!/bin/sh
useDropbear=${useDropbear:-"false"}
+ useDropbear=false
if [ -x ${vlasovsoftbasedir}/dropbear/dropbear ]; then
vlasovsoft_dropbear=${vlasovsoftbasedir}/dropbear
elif [ -x ${vlasovsoftbasedir}/usbnet/dropbear ]; then
vlasovsoft_dropbear=${vlasovsoftbasedir}/usbnet
fi
+ [ -x /mnt/onboard/.adds/vlasovsoft/dropbear/dropbear ]
+ vlasovsoft_dropbear=/mnt/onboard/.adds/vlasovsoft/dropbear
mode="up"
+ mode=up
if [ -f /var/run/dropbear.pid ] && [ "$useDropbear" == "true" ] && [ -d "$vlasovsoft_dropbear" ]; then
kill `cat /var/run/dropbear.pid`
mode="down"
fi
+ [ -f /var/run/dropbear.pid ]
if ifconfig | grep -q usb0; then
ifconfig usb0 down
rmmod g_ether
if [ $CPU == mx6sll ] || [ $CPU == mx6ull ]; then
rmmod usb_f_rndis
rmmod u_ether
rmmod libcomposite
rmmod configfs
else
rmmod arcotg_udc
fi
mode="down"
fi
+ grep -q usb0
+ ifconfig
[ "$mode" == "down" ] && exit
+ [ up == down ]
driver_root=/drivers/$PLATFORM/usb/gadget
+ driver_root=/drivers/mx6sll-ntx/usb/gadget
if [ ! -f /var/run/dropbear.pid ] && [ "$useDropbear" == "true" ] && [ -x "$vlasovsoft_dropbear/dropbear" ]; then
[ ! -e /usr/libexec/sftp-server ] && (mkdir -p /usr/libexec; ln -sf $vlasovsoft_dropbear/sftp-server /usr/libexec/sftp-server)
$vlasovsoft_dropbear/dropbear -E -r $vlasovsoft_dropbear/host.key.rsa -d $vlasovsoft_dropbear/host.key.dss > $vlasovsoft_dropbear/dropbear.log 2>&1
fi
+ [ ! -f /var/run/dropbear.pid ]
+ [ false == true ]
if [ $CPU == mx6sll ] || [ $CPU == mx6ull ]; then
insmod $driver_root/configfs.ko
insmod $driver_root/libcomposite.ko
insmod $driver_root/u_ether.ko
insmod $driver_root/usb_f_rndis.ko
else
insmod $driver_root/arcotg_udc.ko
fi
+ [ mx6sll == mx6sll ]
+ insmod /drivers/mx6sll-ntx/usb/gadget/configfs.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/libcomposite.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/u_ether.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/usb_f_rndis.ko
insmod $driver_root/g_ether.ko host_addr=XX:XX:XX:XX:XX:eb dev_addr=XX:XX:XX:XX:XX:ec
+ insmod /drivers/mx6sll-ntx/usb/gadget/g_ether.ko host_addr=XX:XX:XX:XX:XX:eb dev_addr=XX:XX:XX:XX:XX:ec
insmod: can't insert '/drivers/mx6sll-ntx/usb/gadget/g_ether.ko': unknown symbol in module or invalid parameter
ifconfig usb0 192.168.2.101
+ ifconfig usb0 192.168.2.101
ifconfig: SIOCSIFADDR: No such device
Last edited by CH23; 07-19-2018 at 05:09 AM. |
|
|
|
|
|
|
#424 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay, so either we're missing another dependency (which shouldn't be the case, but you never know), or the syntax for the options has changed.
I'll check the latter. EDIT: Doesn't look like anything should have changed... I *think* dmesg might actually be more verbose and spit out the actual name of the first unknown symbol, which might be helpful if you can get to it .NOTE: These MAC addresses aren't yours, we're the ones choosing them, so they won't tell anyone anything about your device .EDIT²: Possibly needs a shot of usb_f_ecm and/or usb_f_eem around the same time as f_rndis... EDIT³: @tshering: something like this, maybe :? Last edited by NiLuJe; 07-19-2018 at 12:59 PM. |
|
|
|
|
|
#425 | |
|
Bottom Text
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 332882
Join Date: Nov 2016
Device: Kobo Clara HD, Kobo Glo HD
|
Quote:
IT WORKS! now to figure out why i can't seem to SSH into the thing. Here's a log file: Code:
#!/bin/sh
useDropbear=${useDropbear:-"false"}
+ useDropbear=false
if [ -x ${vlasovsoftbasedir}/dropbear/dropbear ]; then
vlasovsoft_dropbear=${vlasovsoftbasedir}/dropbear
elif [ -x ${vlasovsoftbasedir}/usbnet/dropbear ]; then
vlasovsoft_dropbear=${vlasovsoftbasedir}/usbnet
fi
+ [ -x /mnt/onboard/.adds/vlasovsoft/dropbear/dropbear ]
+ vlasovsoft_dropbear=/mnt/onboard/.adds/vlasovsoft/dropbear
mode="up"
+ mode=up
if [ -f /var/run/dropbear.pid ] && [ "$useDropbear" == "true" ] && [ -d "$vlasovsoft_dropbear" ]; then
kill `cat /var/run/dropbear.pid`
mode="down"
fi
+ [ -f /var/run/dropbear.pid ]
if ifconfig | grep -q usb0; then
ifconfig usb0 down
rmmod g_ether
if [ $CPU == mx6sll ] || [ $CPU == mx6ull ]; then
rmmod usb_f_rndis
rmmod usb_f_ecm_subset
rmmod usb_f_eem
rmmod usb_f_ecm
rmmod u_ether
rmmod libcomposite
rmmod configfs
else
rmmod arcotg_udc
fi
mode="down"
fi
+ grep -q usb0
+ ifconfig
[ "$mode" == "down" ] && exit
+ [ up == down ]
driver_root=/drivers/$PLATFORM/usb/gadget
+ driver_root=/drivers/mx6sll-ntx/usb/gadget
if [ ! -f /var/run/dropbear.pid ] && [ "$useDropbear" == "true" ] && [ -x "$vlasovsoft_dropbear/dropbear" ]; then
[ ! -e /usr/libexec/sftp-server ] && (mkdir -p /usr/libexec; ln -sf $vlasovsoft_dropbear/sftp-server /usr/libexec/sftp-server)
$vlasovsoft_dropbear/dropbear -E -r $vlasovsoft_dropbear/host.key.rsa -d $vlasovsoft_dropbear/host.key.dss > $vlasovsoft_dropbear/dropbear.log 2>&1
fi
+ [ ! -f /var/run/dropbear.pid ]
+ [ false == true ]
if [ $CPU == mx6sll ] || [ $CPU == mx6ull ]; then
insmod $driver_root/configfs.ko
insmod $driver_root/libcomposite.ko
insmod $driver_root/u_ether.ko
insmod $driver_root/usb_f_ecm.ko
insmod $driver_root/usb_f_eem.ko
insmod $driver_root/usb_f_ecm_subset.ko
insmod $driver_root/usb_f_rndis.ko
insmod $driver_root/g_ether.ko use_eem=0 host_addr=46:0d:9e:67:69:eb dev_addr=46:0d:9e:67:69:ec
else
insmod $driver_root/arcotg_udc.ko
insmod $driver_root/g_ether.ko host_addr=46:0d:9e:67:69:eb dev_addr=46:0d:9e:67:69:ec
fi
+ [ mx6sll == mx6sll ]
+ insmod /drivers/mx6sll-ntx/usb/gadget/configfs.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/libcomposite.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/u_ether.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/usb_f_ecm.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/usb_f_eem.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/usb_f_ecm_subset.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/usb_f_rndis.ko
+ insmod /drivers/mx6sll-ntx/usb/gadget/g_ether.ko use_eem=0 host_addr=46:0d:9e:67:69:eb dev_addr=46:0d:9e:67:69:ec
ifconfig usb0 192.168.2.101
+ ifconfig usb0 192.168.2.101
Last edited by CH23; 07-19-2018 at 03:32 PM. |
|
|
|
|
|
|
#426 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@CH23: Note that that was my own script, so the caveats from #395 still apply
.I can tweak @tshering's latest version if he's busy, though, or you can do that yourself, the diff should be fairly obvious and portable to KSM's version of the script .
|
|
|
|
|
|
#427 | |
|
Bottom Text
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 332882
Join Date: Nov 2016
Device: Kobo Clara HD, Kobo Glo HD
|
Quote:
And i've changed the ip address. also MAC address but this doesn't seem to do much. Right now i have USBnet connection to the kobo, and via the web interface i ran ifconfig command, which gives me a different hardware address than I set using the USBnet script. |
|
|
|
|
|
|
#428 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@CH23: Fantastic! Thanks for your tests
.FWIW, by default, the MAC you see in ifconfig (on the device's side) is the dev_addr bit of the g_ether arguments. I have a K4 connected right now: Code:
usb0 Link encap:Ethernet HWaddr EE:19:00:0E:10:CB You can tweak it after the fact w/ Code:
ifconfig usb0 hw ether xx:xx:xx:xx:xx:xx On the computer's side, I'm seeing the host_addr, as expected: Code:
ether ee:49:00:0e:10:cb txqueuelen 1000 (Ethernet) Last edited by NiLuJe; 07-19-2018 at 05:40 PM. |
|
|
|
|
|
#429 | |
|
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2018
Device: Kobo Touch N905C
|
Quote:
|
|
|
|
|
|
|
#430 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
@NiLuJe and @CH23, thank you for your work. I very much appreciate your help.
|
|
|
|
|
|
#431 |
|
Bottom Text
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 146
Karma: 332882
Join Date: Nov 2016
Device: Kobo Clara HD, Kobo Glo HD
|
|
|
|
|
|
|
#432 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
|
|
|
|
|
|
#433 | |
|
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jul 2018
Device: Kobo Aura H2O
|
Quote:
|
|
|
|
|
|
|
#434 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
EDIT: That was a mistake, I meant to say "wifi menu". I think you could have figured that out by yourself.
As for your problem with the great wall: The most recent firmware (4.9.11311/4.9.11314) has an option to keep wifi alive without checking with the kobo server. See this post. Last edited by tshering; 07-21-2018 at 03:24 AM. |
|
|
|
|
|
#435 |
|
Member
![]() Posts: 11
Karma: 10
Join Date: Jul 2018
Device: Kobo Touch N905C
|
If anyone is interested, I fixed the problem by factory resetting my device and installing KSM 8 and then koreader. The USB works perfectly and I have no trouble rebooting the device, so the problem really is something with the KSM 9 software, altough I have no idea what that could be. Thanks for everyone's time!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kobo Start Menu 08 | tshering | Kobo Developer's Corner | 1021 | 06-29-2020 05:59 PM |
| Kobo-Adding alternative readers using Kobo Start Menu | Ken Maltby | KOReader | 75 | 01-10-2020 02:35 PM |
| Kobo Start Menu | tshering | Kobo Developer's Corner | 918 | 10-12-2017 03:32 PM |
| Start KOReader automatically with Kobo Start Menu | checcousero | KOReader | 2 | 03-07-2017 12:42 PM |
| Kobo Start Menu 07 | tshering | Kobo Developer's Corner | 644 | 03-02-2017 07:40 AM |