Antony Abi Rached

Members
  • Content Count

    30
  • Joined

  • Last visited

About Antony Abi Rached

  • Rank
    Advanced Member

Recent Profile Visitors

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

  1. Antony Abi Rached

    Activate RTS CTS on serial port

    Hello @martinayotte. I copied the /etc/fstab of the image that works in the /etc/fstab of the image that is not working. Then I changed the UUID of the corresponding disks (SSD and SD). It worked I can now use the new image of armbian and boot from SD and have the filesystem on rootfs. Thanks for the help again. Regards, Antony
  2. Antony Abi Rached

    Activate RTS CTS on serial port

    @martinayotte i just tested the hardware flow control with the newest armbian neo core image that i donwloaded today from the website. Both RTS and CTS worked with this image. So i have the following results with these two images: *Armbian_5.38_Nanopineo_Debian_stretch_next_4.14.14 : 1) hardware flow control doesn't work normally. 2) mount the file system on ssd disk and boot from sd card work normally. *Armbian_5.65_Nanopineo_Debian_stretch_next_4.14.14 : 1) hardware flow control work normally. 2) mount the file system on ssd disk and boot from sd card doesn't work normally. Hope I helped you with the tests that I did. Regards, Antony
  3. Antony Abi Rached

    Activate RTS CTS on serial port

    @martinayotte I forgot to mention this information. I am using the following nanopi neo core image : Armbian_5.38_Nanopineo_Debian_stretch_next_4.14.14 The reason why I am using this image is using the SSD disk for file system with the SD card for boot. We already discussed this issue with you : Regards, Antony
  4. Antony Abi Rached

    Activate RTS CTS on serial port

    @martinayotte thanks again for the help. Regards, Antony
  5. Antony Abi Rached

    Activate RTS CTS on serial port

    Thanks for your reply @martinayotte. I am not using a RS485 halfduplex operation. I have two devices that are communicating using serial port (UART) and I would like to use hardware flow control because it is recommended for the communication that I am doing. The RTS and CTS in my case will help the two devices know if they are ready to send/receive data. What I am finding strange is that when I activate RTS and CTS, the mode function of the CTS GPIO only switch to ALT5. The RTS GPIO stays as "OUTPUT mode". Shouldn't the RTS GPIO switch also to ALT5? Regards, Antony
  6. Antony Abi Rached

    Activate RTS CTS on serial port

    Hello again, I tested the hardware flow control after adding "param_uart1_rtscts=1" to /boot/armbianEnv.txt. The CTS of the nanopi worked normally. (The GPIO mode of the CTS switched to ALT5). The RTS didn't work. (The GPIO mode of the RTS didn't switch to ALT5). I did the serial communication test between the nanopi and a raspberrypi. Why do you thing the RTS is not working? Thanks in advance. Regards, Antony
  7. Antony Abi Rached

    Activate RTS CTS on serial port

    Hello guys, I am trying to use hardware flow control over the uart 1 of a nanopi neo core that I am using with a minishield. The GPIO pins of RX,TX,RTS and CTS of uart 1 based on this documentation (http://wiki.friendlyarm.com/wiki/index.php/Mini_Shield_for_NanoPi_NEO_Core/Core2) are G6,G7,G8 and G9. First of all I downloaded WiringNP in order to see the status of each GPIO. Before activating the rts cts on uart1, the figure "beforeActivatingRTSCTS" is the output of the command "gpio readall" . Then I added to the /boot/armbianEnv.txt the following overlay : param_uart1_rtscts=1 I rebooted the nanopi. After reboot, the figure "AfterActivatingRTSCTS" is the output of the command "gpio readall". As you can see, the GPIOG9 switched to ALT5 but GPIOG8 stayed the same. I am supposing that the ALT5 is the Alternate function for RTS CTS. Is that right? Why the GPIOG8 didn't change to ALT5 after activating the RTS CTS ? Is there something that I am doing wrong to activate these pins? Do I need to instruct the serial port driver to use the hardware flow control signals? Thanks in advance. Regards, Antony
  8. Antony Abi Rached

    nand-sata-install script

    Hello again, I did the test again. I executed nand-sata-install script using armian-config. At the end, I didn't rebbot. I mounted the SSD disk manually. I modified /mnt/nand-sata-install.g3nZk2/etc/fstab and removed the line corresponding to the EMMC storage. I checked that /boot/armbianEnv.txt is pointing to the SSD disk. I rebooted and got the following serial debug logs. I got the same problem. P.S: I checked /etc/fstab before rebooting. I figured out that the EMMC storage is only mounted in /etc/fstab. I am really out of ideas regarding this problem. Hope what I explained and the logs help you figure out the problem. Regards, Antony SerialDebug.txt
  9. Antony Abi Rached

    nand-sata-install script

    @martinayotte I forget to remove it from fstab when I did the test again. I will do it now and get back to you. Thank you really for the help. Antony
  10. Antony Abi Rached

    nand-sata-install script

    @martinayotte I retried the test with the most recent image of nanopi neo core. Here is the full serial debug logs. Like you said, I guess that I didn't send the full logs previously. As you see from the logs, there is emergency mode. I tried to press Ctrl D like they said but it didnt worked. What do think about that? Regards, Antony SerialDebug.txt
  11. Antony Abi Rached

    nand-sata-install script

    @martinayotte I tried to use an old image of nanopi neo core. I downloaded it around 5 months ago and the name of the image is Armbian_5.38_Nanopineo_Debian_stretch_next_4.14.14.img. When I try to use the nand-sata-install script with this machine, it works normally. I boot from SD card and my file system is on the SSD disk. Regards, Antony
  12. Antony Abi Rached

    nand-sata-install script

    @martinayotte I made sure that my serial connection is done correctly with the nanopi and redo the reboot. I got this : U-Boot 2018.05-armbian (Sep 12 2018 - 10:40:28 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: FriendlyARM NanoPi NEO DRAM: 512 MiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 Loading Environment from EXT4... ** File not found /boot/boot.env ** ** Unable to read "/boot/boot.env" from mmc0:1 ** Failed (-5) In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 230454 bytes read in 34 ms (6.5 MiB/s) Unknown command 'bmp' - try 'help' starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... EHCI timed out on TD - token=0xd8d80 Regards, Antony
  13. Antony Abi Rached

    nand-sata-install script

    @martinayotte you can find attached the serial debug when rebooting. Thanks for the help. Regards, Antony SerialDebug.txt
  14. Antony Abi Rached

    nand-sata-install script

    Content of /boot/armbianEnv.txt : verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 overlays=usbhost1 usbhost2 rootdev=UUID=4c5efd27-eb4c-4bf4-b605-6bb7fa395ac9 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u rootfstype=ext4 So normally rootdev points to the SSD disk. The format rootdev=UUID=... is correct? Regards, Antony
  15. Antony Abi Rached

    nand-sata-install script

    You can find also the output of "sudo lsblk -o name,mountpoint,size,type,ro,label,uuid" command : NAME MOUNTPOINT SIZE TYPE RO LABEL UUID sda 55.9G disk 0 └─sda1 /mnt/nand-sata-install.eGPTd1 55.9G part 0 4c5efd27-eb4c-4bf4-b605-6bb7fa395ac9 mmcblk0 7.4G disk 0 └─mmcblk0p1 / 7.3G part 0 1e83c9ce-2656-44f4-880c-b36e49cdde63 mmcblk1 7.3G disk 0 ├─mmcblk1p1 40M part 0 boot 2979-8F05 └─mmcblk1p2 7.2G part 0 rootfs ff313567-e9f1-5a5d-9895-3ba130b4a864 mmcblk1boot0 4M disk 1 mmcblk1boot1 4M disk 1 zram0 /var/log 50M disk 0 zram1 [SWAP] 61.7M disk 0 zram2 [SWAP] 61.7M disk 0 zram3 [SWAP] 61.7M disk 0 zram4 [SWAP] 61.7M disk 0 Regards, Antony