warpme / miniarch

ArchLinux ARM SD card images for quick start with ArchLinux on ARM SBC & TV Boxes
GNU General Public License v2.0
90 stars 7 forks source link

TX1 install issues. #59

Open guile124 opened 1 week ago

guile124 commented 1 week ago

I'm trying to install miniarch in a Tanix TX1 clone (wudong manufacturer). I followed all steps of the "how to install" file in the TX1 image. The TX1 device is in a fel mode and detected by linux laptop (lsusb) with result: ALLWINNER technology sunxi Soc OTG connector in FEL/flashing mode

However when i launch the 'boot-kernel-via-usb.sh' i get: Awaiting for device ... ./boot-hernel-via-usb.sh: 10: not found

The result of ls -l boot-kernel-via-usb.sh sunxi-fel

-rwxr-xr-x 1 for boot-kernel and same for sunxi-fel

What am i doing wrong? Any suggestion to test?

guile124 commented 1 week ago

Ok, solved using sudo bash boot-kernel-via-usb.sh. However, now I get this: Awaiting device ... Device discovered. Good!!! Starting upload U-Boot, Linux Kernel, DTB to device ... Found DT name in SPL header: sun50i-h313-tanix-tx1 Stack pointers: sp_irq=0x00021400, sp=0x00053FFC MMU is not enabled by BROM. => Executing the SPL... done. usb_bulk_send() ERROR -7: Operation timed out. Booting Linux kernel on device. Please wait ... Now you can (re)connect the USB key with rootfs ...

After this, the next step fails when I change the USB to TX1; nothing happens. My master device is LUbuntu 22.04.5 LTS

Tried many things: new USB, new usb-usb cable, re-burned the image, rebooted both devices, downgrade sunxi-tools to version 1.4.1.... Any help is welcome.

warpme commented 1 week ago

Hi I uploaded new image for tx1. There is also alternative image (v1.2) - for tx1 boxes with different dram chip. May you download and try?

guile124 commented 1 week ago

I have tried it, but the same problem persists: usb_bulk_send() ERROR -7: Operation timed out, when I run the script. Interestingly, it then prints 'Booting Linux kernel on device. Please wait... Now you can (re)connect the USB key with rootfs...I don't know if the error is ignored and the script completes its function or not. However the next step connecting usb to TX1 do not work. Do you have any suggestions I could try? I really appreciate your time. Thank you!

warpme commented 1 week ago

This looks definitelly like issue with running sunxi-fel on Your system. I updated script and also built sunxi-fel from latest sources (see attached files). Try with these. If this will still report issues - you may try install sunxi-tools package on your system and then try to use script.

btw: script uses sunxi-fel from dir where script resides - so always copy sunxi-fel to script dir boot-kernel-via-usb.sh.zip sunxi-fel.zip

guile124 commented 1 week ago

Thanks Piotr!, same problem persists with the new files: usb_bulk_send() ERROR -7: Operation timed out. I also tried with another system Manjaro based with different Arquitecture, tried also with the last and 1.4.1 of sunxi-tools, tried with many diferents usb sticks and usb cables 2.0 and 3.0. I'm starting to think that the problem might be with my device. Since it's not a Tanix but a Wudung, maybe the assembler has modified something. Have other users reported a successful installation?

warpme commented 6 days ago

May you send me pictures of pcb? Also: what Linux distros you tried?

guile124 commented 6 days ago

I've tried Lubuntu 22.04.5 LTS and Manjaro xfce 24.1.1 if you suggest any other i can try. _ 20241020_170532

The heat sink doesn't allow you to see much, I could remove it if necessary, or if you need something in more detail, I'll proceed. The manufacturer of the device is Shenzhen Oranth Tech, same than Tanix.