Serial debugging

Hi again after some months off.

My Khadas Edge V won’t load anything else besides Android, so I’m trying to load a new Uboot from Serial Debugging Tool (boot from SPI flash tutorial) to see if with a new uboot the other firmware images work. I’ve followed the serial debugging tool tutorial and I get to this point:

ttgspd spd s=15,B150000=4106
ttgspd speed=38400
ttgspd spd s=13,B150000=4106
ttgspd speed=9600
ttgspd spd s=13,B150000=4106
ttgspd speed=9600
NOT CK_TAPI
ttgspd spd s=4106,B150000=4106
ttgspd speed=1500000
? line speed - 1500000
Connecting to /dev/ttyUSB0, speed 1500000
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------

Here I can’t write anything in the terminal. I was able to write there only once (I did nothing different than the other times), and could get into the Edge so the Serial and kermit configurations are ok. But I can’t get in again. Any insight?

Edit: log from dmesg the connection seems to fall down and reconnect. Tried to attatch the TTL to USB on USB 2.0 and USB 3.0:

[ 1157.359277] usb 1-4: new full-speed USB device number 5 using xhci_hcd
[ 1157.507858] usb 1-4: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00
[ 1157.507864] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1157.507867] usb 1-4: Product: USB-Serial Controller
[ 1157.507870] usb 1-4: Manufacturer: Prolific Technology Inc.
[ 1157.676752] usbcore: registered new interface driver usbserial_generic
[ 1157.676774] usbserial: USB Serial support registered for generic
[ 1157.686865] usbcore: registered new interface driver pl2303
[ 1157.686892] usbserial: USB Serial support registered for pl2303
[ 1157.686926] pl2303 1-4:1.0: pl2303 converter detected
[ 1157.687752] usb 1-4: pl2303 converter now attached to ttyUSB0
[ 2587.190214] perf: interrupt took too long (2611 > 2500), lowering kernel.perf_event_max_sample_rate to 76500
[ 4225.922309] radeon_dp_aux_transfer_native: 32 callbacks suppressed
[ 6808.545268] radeon_dp_aux_transfer_native: 200 callbacks suppressed
[ 7275.525792] usb 1-4: USB disconnect, device number 5
[ 7275.526233] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 7275.526279] pl2303 1-4:1.0: device disconnected
[ 7807.768404] usb 1-4: new high-speed USB device number 6 using xhci_hcd
[ 7807.925687] usb 1-4: New USB device found, idVendor=0bda, idProduct=0153, bcdDevice=57.13
[ 7807.925692] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7807.925695] usb 1-4: Product: USB2.0-CRW
[ 7807.925698] usb 1-4: Manufacturer: Generic
[ 7807.925701] usb 1-4: SerialNumber: 20120926571200000
[ 7808.031723] usbcore: registered new interface driver usb-storage
[ 7808.032867] usbcore: registered new interface driver uas
[ 7808.033901] ums-realtek 1-4:1.0: USB Mass Storage device detected
[ 7808.036328] scsi host6: usb-storage 1-4:1.0
[ 7808.036401] usbcore: registered new interface driver ums-realtek
[ 7809.070691] scsi 6:0:0:0: Direct-Access     Generic- SD/MMC/MS PRO    1.00 PQ: 0 ANSI: 4
[ 7809.071683] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 7810.008228] sd 6:0:0:0: [sdc] 62521344 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 7810.008656] sd 6:0:0:0: [sdc] Write Protect is off
[ 7810.008659] sd 6:0:0:0: [sdc] Mode Sense: 2f 00 00 00
[ 7810.009167] sd 6:0:0:0: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 7810.011544]  sdc: sdc1
[ 7810.013251] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 8119.918206] usb 1-4: USB disconnect, device number 6
[ 8135.043151] usb 1-4: new full-speed USB device number 7 using xhci_hcd
[ 8135.191839] usb 1-4: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00
[ 8135.191844] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8135.191847] usb 1-4: Product: USB-Serial Controller
[ 8135.191850] usb 1-4: Manufacturer: Prolific Technology Inc.
[ 8135.193405] pl2303 1-4:1.0: pl2303 converter detected
[ 8135.194247] usb 1-4: pl2303 converter now attached to ttyUSB0
[ 9140.021799] usb 1-4: USB disconnect, device number 7
[ 9140.022309] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[ 9140.022346] pl2303 1-4:1.0: device disconnected
[ 9174.333524] usb 1-4: new full-speed USB device number 8 using xhci_hcd
[ 9174.482008] usb 1-4: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00
[ 9174.482010] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9174.482011] usb 1-4: Product: USB-Serial Controller
[ 9174.482011] usb 1-4: Manufacturer: Prolific Technology Inc.
[ 9174.483023] pl2303 1-4:1.0: pl2303 converter detected
[ 9174.483550] usb 1-4: pl2303 converter now attached to ttyUSB0
[ 9913.933997] e1000e: enp0s31f6 NIC Link is Down
[10347.380624] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[10920.917373] perf: interrupt took too long (3415 > 3263), lowering kernel.perf_event_max_sample_rate to 58500
[11058.172052] usb 1-4: USB disconnect, device number 8
[11058.172522] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[11058.172559] pl2303 1-4:1.0: device disconnected
[11083.791063] usb 1-8: USB disconnect, device number 4
[11086.904043] usb 1-5: new full-speed USB device number 9 using xhci_hcd
[11087.061629] usb 1-5: New USB device found, idVendor=04d9, idProduct=a096, bcdDevice= d.08
[11087.061634] usb 1-5: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[11087.061637] usb 1-5: Product: USB Keyboard
[11087.067276] input: USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:04D9:A096.0007/input/input25
[11087.124638] hid-generic 0003:04D9:A096.0007: input,hidraw3: USB HID v1.11 Keyboard [USB Keyboard] on usb-0000:00:14.0-5/input0
[11087.131649] input: USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:04D9:A096.0008/input/input26
[11087.188383] input: USB Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:04D9:A096.0008/input/input27
[11087.188675] input: USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:04D9:A096.0008/input/input28
[11087.189128] hid-generic 0003:04D9:A096.0008: input,hiddev0,hidraw4: USB HID v1.11 Keyboard [USB Keyboard] on usb-0000:00:14.0-5/input1
[11087.191621] hid-generic 0003:04D9:A096.0009: hiddev1,hidraw5: USB HID v1.11 Device [USB Keyboard] on usb-0000:00:14.0-5/input2
[11099.264163] usb 1-8: new full-speed USB device number 10 using xhci_hcd
[11099.412845] usb 1-8: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 3.00
[11099.412850] usb 1-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[11099.412853] usb 1-8: Product: USB-Serial Controller
[11099.412856] usb 1-8: Manufacturer: Prolific Technology Inc.
[11099.414406] pl2303 1-8:1.0: pl2303 converter detected
[11099.415254] usb 1-8: pl2303 converter now attached to ttyUSB0

Maybe @goenjoy can help you

1 Like

Ok I managed to get in, and log in with user: khadas, password: khadas.

Now the problem is that the “load” and other commands from the tutorial won’t work. And when I insert the SD, the command line says:

khadas@Khadas:~$ [ 893.001610] vccio_sd: unsupportable voltage range: 3300000-3000000uV

What’s that?