Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2018, 04:02 PM   #421
Alan_S
Addict
Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.Alan_S ought to be getting tired of karma fortunes by now.
 
Alan_S's Avatar
 
Posts: 317
Karma: 1012866
Join Date: Aug 2007
Location: Sisak, Croatia
Device: Kobo Aura H2O, Kobo Aura ONE
Quote:
Originally Posted by jaimelespatates View Post
Yeah, it used to react to it and reboot, altough sometimes it would crash during reboot and necessitate another reboot, but now it doesn't even react to that or anything else.
From this comment, it looks like it is something hardware, that slowly gets worse and worse (sometimes hardware slowly fails, sometimes fails completely).
Alan_S is offline   Reply With Quote
Old 07-18-2018, 05:26 PM   #422
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,272
Karma: 2859903
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by CH23 View Post
2 questions:
...
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.
tshering is offline   Reply With Quote
Old Yesterday, 03:59 AM   #423
CH23
Connoisseur
CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 86
Karma: 87474
Join Date: Nov 2016
Device: Kobo Glo HD, Kobo Clara HD
Quote:
Originally Posted by tshering View Post
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.
I censored my MAC addresses (apart from the last 2 characters), didn' t change anything else in the log:

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
g_ether.ko does exist in that location.

Last edited by CH23; Yesterday at 04:09 AM.
CH23 is offline   Reply With Quote
Old Yesterday, 11:26 AM   #424
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 7,336
Karma: 7000011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O
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; Yesterday at 11:59 AM.
NiLuJe is offline   Reply With Quote
Old Yesterday, 02:09 PM   #425
CH23
Connoisseur
CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 86
Karma: 87474
Join Date: Nov 2016
Device: Kobo Glo HD, Kobo Clara HD
Quote:
Originally Posted by NiLuJe View Post
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 :?
I tried the 3rd edit:

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; Yesterday at 02:32 PM.
CH23 is offline   Reply With Quote
Old Yesterday, 02:32 PM   #426
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 7,336
Karma: 7000011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O
@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 .
NiLuJe is offline   Reply With Quote
Old Yesterday, 03:01 PM   #427
CH23
Connoisseur
CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 86
Karma: 87474
Join Date: Nov 2016
Device: Kobo Glo HD, Kobo Clara HD
Quote:
Originally Posted by NiLuJe View Post
@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 .
i've 'reformed' your added lines to fit the last package tshering' uploaded.

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.
CH23 is offline   Reply With Quote
Old Yesterday, 04:37 PM   #428
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 7,336
Karma: 7000011
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O
@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
(Granted, that's far from the best example, since I have my USBNet script configured to generate a device-specific NIC to be able to plug multiple devices concurrently, so, the OUI (EE:19:00) matches the module arguments, but the NIC (0E:10:CB) is tweaked)).

You can tweak it after the fact w/
Code:
ifconfig usb0 hw ether xx:xx:xx:xx:xx:xx
if you really want to, but it's basically only of interest if you need to plug multiple devices concurrently, otherwise, you're fine with the defaults.

On the computer's side, I'm seeing the host_addr, as expected:
Code:
ether ee:49:00:0e:10:cb  txqueuelen 1000  (Ethernet)
EDIT: In fact, it's the host_addr that needs to be tweaked to be able to plug multiple things concurrently, so, yeah, setting the MAC on the Kobo's side serves zero purpose.

Last edited by NiLuJe; Yesterday at 04:40 PM.
NiLuJe is offline   Reply With Quote
Old Yesterday, 04:48 PM   #429
jaimelespatates
Member
jaimelespatates began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2018
Device: Kobo Touch N905C
Quote:
From this comment, it looks like it is something hardware, that slowly gets worse and worse (sometimes hardware slowly fails, sometimes fails completely).
I doubt it, because it doesn't do any of this when KSM isn't installed.
jaimelespatates is offline   Reply With Quote
Old Yesterday, 05:29 PM   #430
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,272
Karma: 2859903
Join Date: Jun 2012
Device: kobo touch
@NiLuJe and @CH23, thank you for your work. I very much appreciate your help.
tshering is offline   Reply With Quote
Old Yesterday, 05:49 PM   #431
CH23
Connoisseur
CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.CH23 knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 86
Karma: 87474
Join Date: Nov 2016
Device: Kobo Glo HD, Kobo Clara HD
Quote:
Originally Posted by tshering View Post
@NiLuJe and @CH23, thank you for your work. I very much appreciate your help.
You're more than welcome.

KSM and KOReader are the only reasons I would use an e-reader, as for me these are what make it a good device.
CH23 is offline   Reply With Quote
Old Yesterday, 10:53 PM   #432
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,232
Karma: 6220228
Join Date: Dec 2009
Location: The Heart of Texas
Device: JetBook Lite (retired), AuraHD, PDA,
Quote:
Originally Posted by CH23 View Post
You're more than welcome.

KSM and KOReader are the only reasons I would use an e-reader, as for me these are what make it a good device.
I wouldn't want to be without them nowadays.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Start Menu 08 tshering Kobo Developer's Corner 991 01-24-2018 04:57 PM
Kobo Start Menu tshering Kobo Developer's Corner 918 10-12-2017 02:32 PM
Kobo-Adding alternative readers using Kobo Start Menu Ken Maltby KOReader 59 03-22-2017 03:09 PM
Start KOReader automatically with Kobo Start Menu checcousero KOReader 2 03-07-2017 11:42 AM
Kobo Start Menu 07 tshering Kobo Developer's Corner 644 03-02-2017 06:40 AM


All times are GMT -4. The time now is 05:02 AM.


MobileRead.com is a privately owned, operated and funded community.