View Single Post
Old 02-26-2019, 08:44 PM   #23
tonyyng
Enthusiast
tonyyng began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Jan 2019
Device: none
Here's an idea.

In u-boot land on the kobo, I entered the following commands:

Code:
eBR-1A # mf_usb
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_VBUS
IspHandle......................PHPDC_MODE_SOFTCT
IspHandle......................PHPDC_IE_RESM
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_RESM
IspHandle........................PHPDC_IE_RST
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_RESM
IspHandle........................PHPDC_IE_RST
[isp_WaitForConfigure] download into 0x33fa8cf0
USB success!
+phgPdc_Remove
-phPdc_Remove
eBR-1A # help loadum
loadum buf    - USB downaload address
eBR-1A # md 0a4c0000
0a4c0000: 00000000 00000000 00080008 00000000    ................
0a4c0010: 00080008 00000000 61006100 61006100    .........a.a.a.a
0a4c0020: 00fc00fc 00180018 00000000 00000000    ................
0a4c0030: 008c008c 00000000 00000000 00000000    ................
0a4c0040: 00000000 00000000 00000000 00000000    ................
0a4c0050: 00000000 00000000 00200020 00000000    ........ . .....
0a4c0060: 00ff00ff 00000000 00000000 00000000    ................
0a4c0070: 00010001 00000000 00040004 00000000    ................
0a4c0080: 00000000 00000000 00000000 00000000    ................
0a4c0090: 00000000 00000000 00000000 00000000    ................
0a4c00a0: 00000000 00000000 00000000 00000000    ................
0a4c00b0: 00000000 00000000 00000000 00000000    ................
0a4c00c0: 00000000 00000000 00020002 00000000    ................
0a4c00d0: 00000000 00000000 00000000 00000000    ................
0a4c00e0: 82308230 00150015 00000000 00000000    0.0.............
0a4c00f0: 00000000 00000000 00000000 00000000    ................

eBR-1A # loadum 0a4c0000
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_VBUS
IspHandle......................PHPDC_MODE_SOFTCT
IspHandle......................PHPDC_IE_RESM
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_RESM
IspHandle........................PHPDC_IE_RST
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_RESM
IspHandle........................PHPDC_IE_RST
[isp_WaitForConfigure] download into 0x0a4c0000
I have a Raspberry Pi connected to the Kobo with a USB cable. On it, I see the following:

Code:
dmesg (after issuing the loadum command on the kobo)
[ 4145.637023] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
[ 4145.797869] usb 1-1.4: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 64
[ 4145.797878] usb 1-1.4: config 1 interface 0 altsetting 0 bulk endpoint 0x3 has invalid maxpacket 64
[ 4145.798820] usb 1-1.4: New USB device found, idVendor=5345, idProduct=1234
[ 4145.798825] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4145.798829] usb 1-1.4: Product: SEC S3C24X0A SMDK B/D
[ 4145.798833] usb 1-1.4: Manufacturer: SAMSUNG CO.,LTD.

lsusb output
Bus 001 Device 007: ID 5345:1234 Owon PDS6062T Oscilloscope
I'm thinking I could write a python script to send the mtdblock6 bytes to loadum. This library looks like it has the necessary support.

Don't spend any time with the Windows XP apps and drivers. I'll poke away at the python approach and see how that goes.
tonyyng is offline   Reply With Quote