Jump to content

ambrosa

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Italy

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. My zero 2W is up and running since 24 hours connected to my home AP: Well, with dmsg I see this strange warning (full dmesg is available here https://pastebin.com/k8UKtcn7 (...omissis...) [ 13.027050] Bluetooth: BNEP socket layer initialized [ 13.031947] Bluetooth: MGMT ver 1.22 [ 13.053665] NET: Registered PF_ALG protocol family [ 32.661337] systemd[1036]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [20576.474383] sprdwl:sprdwl_fc_add_share_credit, 536, mode:1 closed, index:0, share it [25584.837527] systemd-journald[462]: Received client request to flush runtime journal. [25585.155087] systemd-journald[462]: Received client request to relinquish /var/log/journal/9ea513b1f16a4a4ca76c6c07f2c9668e access. [79314.887653] sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) [79314.927176] sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) root@orangepizero2w:/var/log# Any idea ?
  2. No, in OrangePiOS there is not a sun50i-h616-usb0-host.dts. I've created myself the file sun50i-h616-usb0-host.dts decompiling the .dtbo with dtc ( dtc -I dtb -O dts -o sun50i-h616-usb0-host.dts sun50i-h616-usb0-host.dtbo ) and the content is very simple (see my previous post). Really, the dtbo content is very simple and the dtbo itself works fine in Armbian. I don't see any error or problem. If you wish the .dts, it's simple decompiling the .dtbo as I do. So IMHO I don't see any reason for NOT including this file in Armbian distro for Zero 2W...
  3. SOLVED ! I've downloaded OrangePi OS for Zero 2W and I've extracted sun50i-h616-usb0-host.dtbo file (I attach it to this post for your convenience). Its content is (after decompiling with dtc): /dts-v1/; / { fragment@0 { target = <0xffffffff>; __overlay__ { dr_mode = "host"; status = "okay"; }; }; fragment@1 { target = <0xffffffff>; __overlay__ { status = "okay"; }; }; fragment@2 { target = <0xffffffff>; __overlay__ { status = "okay"; }; }; fragment@3 { target = <0xffffffff>; __overlay__ { status = "okay"; }; }; __fixups__ { usbotg = "/fragment@0:target:0"; usbphy = "/fragment@1:target:0"; ehci0 = "/fragment@2:target:0"; ohci0 = "/fragment@3:target:0"; }; }; dr_mode for USB0 now is changed to "host" (previous was "peripheral", readed from sun50i-h618-orangepi-zero2w.dtb file) I've copied sun50i-h616-usb0-host.dtbo in my Zero 2W /boot/dtb/allwinner/overlay and changed my armbianEnv.txt file adding overlays=usb0-host : verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun50i-h616 overlays=usb0-host rootdev=UUID=126910c7-be5b-485f-93bb-92826884bb66 rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u reboot and I connect my ESP32 board to USB0 (with a USBC <-> USBC cable : ESP32 board has an USBC connector). It works ! After connected the board, a /dev/ttyUSB0 device appears and esptool works fine: (esptoolenv) root@orangepizero2w:/boot# esptool.py chip_id esptool.py v4.8.0 Found 1 serial ports Serial port /dev/ttyUSB0 Connecting.... Detecting chip type... ESP32-S3 Chip is ESP32-S3 (QFN56) (revision v0.2) Features: WiFi, BLE, Embedded Flash 8MB (GD) Crystal is 40MHz MAC: 48:ca:43:56:13:68 Uploading stub... Running stub... Stub running... Warning: ESP32-S3 has no Chip ID. Reading MAC instead. MAC: 48:ca:43:56:13:68 Hard resetting via RTS pin... Question: is it possible to add sun50i-h616-usb0-host.dtbo file to Armbian distro ? For all people who need it..... Thanks sun50i-h616-usb0-host.zip
  4. Hi @robertoj Well, as I said before in my first post, reading the official OrangePi documentation about Zero 2W (page 275), it seems that in OrangePiOS there is a /boot/dtb/allwinner/overlay/sun50i-h616-usb0-host.dtbo that should be used exactly for this purpose: enable USB HOST mode in Zero 2W But this file IS MISSING in Armbian and this sounds strange for me. Do I need to install OrangePiOS and 'extract' sun50i-h616-usb0-host.dtbo and copy into my Armbian installation ? This can be a solution ?
  5. ambrosa

    ambrosa

  6. Hi @robertoj For a real comparison I've installed just now a Debian 12 Bookworm in my PC (I've created a guest virtual machine using Virtualbox) so I can compare what happens into PC world and into OrangePi Zero 2W world. Into my Debian 12 bookworm : 1) modprobe cp210x (USB-serial driver needed to connect ESP device), lsmod show that module is correctly loaded (cp210x and usbserial) 2) I connect with an USB cable the ESP device to my PC 3) board take power supply from USB and automatically power on 4) magically a /dev/ttyUSB0 device is showed up 5) esptool.py works fine Into OrangePi Debian 12 bookworm "minimal": 1) the same 2) the same 3) the same 4) NOPE: no /dev/ttyUSB0 and no messages into dmesg as device was not connected at all I suppose, as written in my previous post, that Orange Pi Zero 2W has USBC ports not configured as HOST. So my problem is: How can I configure/enable one USBC port as USB HOST ?? Probably it's required to add some DTB overlay, but I don't know how... ๐Ÿ™‚
  7. Hi Guys. I'm a newbie about this little board and Armbian, so please be patient with me ๐Ÿ™‚ Zero 2W has 2 USB-C port. I read from original manual (about OrangePi image https://drive.google.com/drive/folders/1KIZMMDBlqf1rKmOEhGH7_7A-COAgYoGZ ) page 116 USB0 and USB1, both of these interfaces can be used to power the development board, and they can also be used as USB2.0 HOST interfaces. The difference between USB0 and USB1 is that in addition to being set to HOST mode, USB0 can also be set to Device mode, while USB1 only has HOST mode and at page 275 there are detailed instructions about enable USB0 as HOST: this require the DTB overlay sun50i-h616-usb0-host.dtbo that is missing in Armbian (I cannot find it into /boot/dtb/allwinner/overlay ) I need to enable USB0 (or USB1) as host mode: using USB port I will try to connect an ESP32 board and, using Zero 2W, control it with ESPTOOL.PY. At time of writing, I cannot find any /dev/ttyUSB* device in my fresh Armbian installation. Have you any idea how to enable USB and to set as HOST ? Thank you.
ร—
ร—
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines