View Single Post
Old 03-09-2017, 04:33 AM   #3
sahbi
Enthusiast
sahbi is on a distinguished road
 
Posts: 42
Karma: 50
Join Date: Oct 2011
Device: Sony:psr 650 , KOBO:aura h2O, KOBO:Aura One
Thanks Peter, I already know that thread and all other threads about connecting a uart usb to a kobo(but no H2O), found also other blog entries.
I describe here what I've done until now maybe it helps others:
1. put this at the end of rcS (needed for telnet)
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts

2. and this in inetd.conf (start 2 daemons)
21 stream tcp nowait root /bin/busybox ftpd -w -S /
23 stream tcp nowait root /bin/busybox telnetd -i

3. this goes in inittab
::sysinit:/etc/init.d/rcS
::respawn:/sbin/getty -L ttymxc0 115200 vt100
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::respawn:/usr/sbin/inetd -f /etc/inetd.conf

compress all in a KoboRoot.tgz, connect the H2O, deposit KoboRoot.tgz in .Kobo and let the reader upgrade.
Now I have telnet access to insmod g_serial.ko that I have cross compiled with the linaero toolchain, insmoding g_serial.ko gives an error, dependencies problems, could cirmumvent this by insmoding first arcotg_udc.ko.
Attached the "uart usb" to the host, dmesg says it's connected to ttyUSB0, configure minicom for ttyUSB0, 115200... now between "uart usb" RX to TX, TX to RX and GRND to GRND.
what now ????
sahbi is offline   Reply With Quote