ayufan-pine64 / boot-tools

Pine A64 mass storage using FEL and u-boot
20 stars 15 forks source link

usb_bulk_send() ERROR -4: No such device (it may have been disconnected) #12

Open warrenc5 opened 3 years ago

warrenc5 commented 3 years ago
wget https://github.com/linux-sunxi/sunxi-tools/raw/master/bin/fel-sdboot.sunxi
dd if=fel-sdboot.sunxi of=/dev/sdd bs=1024 seek=8
./boot-tools/sunxi-tools/sunxi-fel -l
USB device 001:034   Allwinner A64     92c089ba:24204620:78f4c71c:0c030710

make pine64_ums
# 0x4A0000e0: is a work mode: the 0x55 is a special work mode used to force USB mass storage
# 0x4A0000e4: is a storage type: SD card
sunxi-tools/sunxi-fel -v spl boot/pine64/fes1-pine64-plus.bin
Stack pointers: sp_irq=0x00012000, sp=0x00015E08
MMU is not enabled by BROM
=> Executing the SPL... done.
sunxi-tools/sunxi-fel write-with-progress 0x4A000000 boot/pine64/u-boot-pine64-plus.bin \
        writel 0x4A0000e0 0x55 \
        writel 0x4A0000e4 0x0 \
        exe 0x4A000000
 13% [======                                          ] 509.6 kB/s, ETA 00:02 usb_bulk_send() ERROR -4: No such device (it may have been disconnected)
make: *** [Makefile:224: pine64_ums] Error 2
[132303.950131] usb 1-2: USB disconnect, device number 33
wozza@splice(1)~/mobian/boot-tools>[132304.459675] usb 1-2: new full-speed USB device number 34 using xhci_hcd
[132304.608267] usb 1-2: New USB device found, idVendor=1f3a, idProduct=efe8, bcdDevice= 2.b3
[132304.608268] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

So close - yet so far away.

warrenc5 commented 3 years ago

./sunxi-tools/sunxi-fel ver AWUSBFEX soc=00001689(A64) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000

same with-drm or master

warrenc5 commented 3 years ago

Ok - so I tried make pinebook_ums AND

[1151440.580779] usb 1-4: USB disconnect, device number 15
[1151440.581153] usb 1-4: usbfs: USBDEVFS_CONTROL failed cmd brltty rqt 128 rq 6 len 255 ret -71
[1151440.993974] usb 1-4: new high-speed USB device number 16 using xhci_hcd
[1151441.142499] usb 1-4: New USB device found, idVendor=0bb4, idProduct=0fff, bcdDevice= 2.00
[1151441.142501] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1151441.142502] usb 1-4: Product: AllWinner Technology
[1151441.142503] usb 1-4: Manufacturer: 20101201120001
[1151441.142503] usb 1-4: SerialNumber: USB Mass Storage
[1151441.143632] usb-storage 1-4:1.0: USB Mass Storage device detected
[1151441.144032] scsi host6: usb-storage 1-4:1.0
[1151442.147918] scsi 6:0:0:0: Direct-Access     USB2.0   USB Storage      0100 PQ: 0 ANSI: 2
[1151442.148217] sd 6:0:0:0: Attached scsi generic sg2 type 0
[1151442.148660] sd 6:0:0:0: [sdc] 61071360 512-byte logical blocks: (31.3 GB/29.1 GiB)
[1151442.148765] sd 6:0:0:0: [sdc] Write Protect is off
[1151442.148766] sd 6:0:0:0: [sdc] Mode Sense: 03 00 00 00
[1151442.148883] sd 6:0:0:0: [sdc] No Caching mode page found
[1151442.148884] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[1151442.170529]  sdc: sdc1 sdc3
[1151442.171508] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[1151442.600691] EXT4-fs (sdc1): recovery complete
[1151442.600695] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)

Thanks so much!