Marcus Nguyen

  • Posts

  • Joined

  • Last visited

 Content Type 


Member Map




Posts posted by Marcus Nguyen

  1. 13 minutes ago, Werner said:

    I dont know what exactly happens and what this causes. As stated XR819 is known to be unstable or even considerable broken by design (like PCIe on H6 but at least it works somehow). I own the board by myself but the first thing I did was removing the wireless antenna as I did not need it :P

    Anyway. Sure you can script yourself some kind a watchdog that checks by pinging a host outside every second or so and when a disconnect happens do something like ifdown/ifup if that helps or do forcefully rmmod and modprobe the wireless module to recover it  (if that works at all, no idea). You have to try around by yourself. Maybe you can come up with something nice.

    Thank for kind of your suggestion. I think so, we should never give up if we don't try all the ways. I think your guide is very nice, one small process can really resolve it. I ask this issue because of I think my board or my setup was problem, if it is a "natural available" bug that I don't need to spend a lot of time to investigate more :D, it should handle by some methods that fit to my application is better.

  2. 1 hour ago, Werner said:

    Can you provide a new armbianmonitor -u with the new kernel after a disconnect happens?

    How can I do that? The board was disconnected then plug cable ethernet and show the armbianmonitor right? Alternatively,  I have to use a USB comport to keep track it during connection and disconnection?


    35 minutes ago, Igor said:

    Only other option is to use proven working USB wireless solution.


    Nobody will address this Concorde fallacy.



    Does it really have no other methods? May I can write a script to check and recover the wlan by code?


    An other hand, when I update kernel from 4.19 to 5.4 I don't get lines during run



    [63639.603942] xradio_wlan mmc1:0001:1: missed interrupt
    [63983.021823] xradio_wlan mmc1:0001:1: missed interrupt
    [65262.383433] xradio_wlan mmc1:0001:1: missed interrupt
    [66343.960082] xradio_wlan mmc1:0001:1: missed interrupt


  3. On 3/6/2020 at 4:44 PM, Werner said:

    I guess what Igor meant to say was that you should search for XR819 or xradio in forums to find topics with similar issues and if users solved their issues.

    Regardless of that I'd still recommened that you upgrade your kernel to sunxi-current (to say Linux 5.4.x) and check if the issue persists.

    I have updated the kernel
    "5.4.20-sunxi #20.02.1 SMP Mon Feb 17 02:09:41 CET 2020 armv7l GNU/Linux"
    However the problem has not been resolved. Do you have another suggestion?

  4. 23 hours ago, Igor said:

    There are many many users with this board - better use a search engine and throw in: XR819 or xradio and check results.

    Sorry, I have not clearly understood your suggestion yet.  You mean that I should search and install the XR819 or xradio driver for my board to check first, right?

  5. Hi everyone,


    I have a problem when work on OPi zero wifi which is running Armbian linux sunxi 4.19.62. I used nmtui to configure wifi connection with static ip. It works fine even rebooting or re-powering up however I tried to power off the router and the result is it has never reconnected again. Next, I plugged in the ethernet cable into RJ45 port, the connection is established. I use sudo ifconfig to show the information, I saw that both the wifi (static) and ethernet are correctly then I can access via ssh or scanning the ip. One again, I continued plugging out the ethernet cable, all connections were disappeared even wifi and connection via ssh is failed. Is there anyone face on this issue? Giving me some help, please.

  6. Hi everyone,

    As the title, I would like to set the isolated cpu 3th on orange pi zero (armbian v4.19.62)


    I've try to follow this answer of ChrisK in the topic here

    And the boot.cmd file after edited as below:

    # Please edit /boot/armbianEnv.txt to set supported parameters
    setenv load_addr "0x44000000"
    setenv overlay_error "false"
    # default values
    setenv verbosity "1"
    setenv console "both"
    setenv disp_mem_reserves "off"
    setenv disp_mode "1920x1080p60"
    setenv rootfstype "ext4"
    setenv docker_optimizations "on"
    setenv devnum "0"
    setenv rootdev "/dev/mmcblk${devnum}p1"
    setenv bootargs console=ttyS0,115200 noinitrd root=/dev/mmcblk0p2 rootfstype=ext4 rootwait isolcpus=3
    # Print boot source
    itest.b *0x28 == 0x00 && echo "U-boot loaded from SD"
    itest.b *0x28 == 0x02 && echo "U-boot loaded from eMMC or secondary SD"
    itest.b *0x28 == 0x03 && echo "U-boot loaded from SPI"
    # get PARTUUID of first partition on SD/eMMC it was loaded from
    # mmc 0 is always mapped to device u-boot (2016.09+) was loaded from
    if test "${devtype}" = "mmc"; then
      part uuid mmc ${devnum}:1 partuuid;
      setenv devnum ${mmc_bootdev}
      setenv rootdev "/dev/mmcblk${mmc_bootdev}p1"
    echo "Boot script loaded from ${devtype}"
    if test -e ${devtype} ${devnum} ${prefix}armbianEnv.txt; then
    	load ${devtype} ${devnum} ${load_addr} ${prefix}armbianEnv.txt
    	env import -t ${load_addr} ${filesize}
    if test "${logo}" = "disabled"; then setenv logo "logo.nologo"; fi
    if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=ttyS0,115200 console=tty1"; fi
    if test "${console}" = "serial"; then setenv consoleargs "console=ttyS0,115200"; fi
    setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} disp.screen0_output_mode=${disp_mode} panic=10 consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} ubootsource=${devtype} usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"
    if test "${disp_mem_reserves}" = "off"; then setenv bootargs "${bootargs} sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16"; fi
    if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=memory swapaccount=1"; fi
    load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd
    load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}zImage
    if test -e ${devtype} ${devnum} "${prefix}.next"; then
    	echo "Found mainline kernel configuration"
    	load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
    	fdt addr ${fdt_addr_r}
    	fdt resize 65536
    	for overlay_file in ${overlays}; do
    		if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/overlay/${overlay_prefix}-${overlay_file}.dtbo; then
    			echo "Applying kernel provided DT overlay ${overlay_prefix}-${overlay_file}.dtbo"
    			fdt apply ${load_addr} || setenv overlay_error "true"
    	for overlay_file in ${user_overlays}; do
    		if load ${devtype} ${devnum} ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then
    			echo "Applying user provided DT overlay ${overlay_file}.dtbo"
    			fdt apply ${load_addr} || setenv overlay_error "true"
    	if test "${overlay_error}" = "true"; then
    		echo "Error applying DT overlays, restoring original DT"
    		load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
    		if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/overlay/${overlay_prefix}-fixup.scr; then
    			echo "Applying kernel provided DT fixup script (${overlay_prefix}-fixup.scr)"
    			source ${load_addr}
    		if test -e ${devtype} ${devnum} ${prefix}fixup.scr; then
    			load ${devtype} ${devnum} ${load_addr} ${prefix}fixup.scr
    			echo "Applying user provided fixup script (fixup.scr)"
    			source ${load_addr}
    	bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
    	echo "Found legacy kernel configuration"
    	load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}script.bin
    	bootz ${kernel_addr_r} ${ramdisk_addr_r}
    # Recompile with:
    # mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

    However, it seem to be not successful. I need to set isolated cpu to improve the performance of my module.

    Thank for kind help!


  7. Hi everyone,


    I am using nmtui to setup static ip both eth0 and wlan0 on orange pi zero. It works fine if only one of them was activated

    I want to use both. If LAN cable was be connected into pi, the board is run on ethernet. On other side, run on wifi when the cable was pluged out

    When I rebooted the pi without LAN cable, the eth0 auto activated lead to I can't access the module via wifi even though it is connected successful. I must connect via serial and disable eth0 after that I connected via wifi. 

  8. Hello, I am new on the embedded system. I am using Orange Pi zero and I am having stuff with wlan configuration.

    I want to run the static ip for wifi on the board and reconnect after every time rebooting

    How I do that? I use 2 files below





    auto eth0

    allow-hotplug eth0

    iface eth0 inet static






    auto wlan0

    allow-hotplug wlan0

    iface wlan0 inet manual

    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

    iface default inet static









    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev








    The eth0 works fine with this setup otherwise the wlan not active even though I used

    ifconfig wlan0 up

    but I using ifconfig wlan0 down, it got the static ip like the configuration file then I can't turn on or off using ifconfig up/down one more time

    Anyone help me?

    Thanks a lot!