Linux version

Discussion in 'Suggestions' started by dampfan, May 20, 2017.

  1. dampfan

    dampfan Member

    Joined:
    May 18, 2017
    Messages:
    50
    Likes Received:
    19
    Are there any plans for a Linux version of the NFE tools?

    If i could upload Arctic Foy to my devices with Linux, i wouldn't have to boot Windows anymore (what I do regard as big plus, in comfort, easy of use and in security/privacy).
     
    Red White likes this.
  2. ReikoKitsune

    ReikoKitsune Developer
    NFE Team

    Joined:
    May 4, 2017
    Messages:
    674
    Likes Received:
    589
    May be in the 2020 ;)
     
  3. dampfan

    dampfan Member

    Joined:
    May 18, 2017
    Messages:
    50
    Likes Received:
    19
  4. Majkl1st

    Majkl1st New Member

    Joined:
    May 20, 2017
    Messages:
    8
    Likes Received:
    3
    I successfully managed to pair NFE Toolbox and upload ArcticFox FW into two eLeaf Picos, one iStick TC 200W and one Cuboid - on my Linux box - using Oracle VM VirtualBox with Windows 7 installed inside. Just be sure to append "JOYETECH USB" or similar device into the virtual machine before pairing it.

    Also if you cannot upload ArcticFox FW and almost brick your Pico (hold + and - to unbrick), check USB devices of the Virtual Machine again at the very moment the upload freezes. Pico (maybe other mods as well) tends to change its USB name and address during this step for a brief moment.
     
    Red White and Uncle_Brr like this.
  5. prispewnic

    prispewnic Member

    Joined:
    May 17, 2017
    Messages:
    50
    Likes Received:
    4
    I also, use VB to run NFE. If developers do not plan a native solution, we can try to create a proprietary one, based on wine. This is not an ideal solution, but we can try :) In any case, this will be faster, than waiting for 2020 :D
     
  6. Majkl1st

    Majkl1st New Member

    Joined:
    May 20, 2017
    Messages:
    8
    Likes Received:
    3
    The thing is Wine does not have any USB hardware compatibility. For example, when running any emulator via Wine, one cannot assign controls to a usb controller (unless he's using joy2key or similar workaround). That's why using VB is our only option so far.
    The NFE Toolbox source code is open, maybe there is a way to make a minimalistic CLI firmware updater, just for uploading ArcticfoxFW into the mod.
     
  7. SpityuHun

    SpityuHun New Member

    Joined:
    Jun 4, 2017
    Messages:
    1
    Likes Received:
    0
    please make linux version...
     
  8. kodus

    kodus New Member

    Joined:
    Jun 25, 2017
    Messages:
    21
    Likes Received:
    9
    O RLY?
    [​IMG]

    Install fresh wine (2.0.1 or later) from winehq.org
    Install fresh winetricks from https://github.com/Winetricks/winetricks (the file is here)
    Install .net 4.0:
    $winetricks dotnet40
    Then make device accesable (rw) for user (or do all of this as root :))
    $sudo chmod 606 /dev/hidraw(X) (the last hidraw that appears after mod has been connected, this must be done after each mod connection)
    And boot wine, run service for work with HID devices and launch main program:
    $wineboot
    $wine cmd
    z:\>net start winebus
    z:\>cd /d d:\path\to\nfe-tools\in\wine
    d:\path\to\nfe-tools\in\wine>NToolbox.exe
    (https://wiki.winehq.org/Hid)

    That has been done in Mint 17.3.
    Just out of curiosity :)

    Attempt to flash firmware failed -- mod is not visible after restart.

    Английским владею только на чтение, поэтому написал, как умел.
    Если какой- труЪ-красноглазик обвесит всё это скриптами, будет, думаю, хорошо.

    И да, при попытке прошить мод перезагружается и не видится компом. Что-то надо перезапустить или ещё где скомандовать, но это позже.
     
    #8 kodus, Jun 26, 2017
    Last edited: Jul 1, 2017
    Majkl1st, Caliban, Gedeon and 2 others like this.
  9. Majkl1st

    Majkl1st New Member

    Joined:
    May 20, 2017
    Messages:
    8
    Likes Received:
    3
    Thanks for the info :) Still it's more work than it's worth. I have no trouble booting up my WinVM once a month just to upgrade AF on my vaping device.
     
  10. spalife

    spalife New Member

    Joined:
    Mar 23, 2018
    Messages:
    21
    Likes Received:
    12
  11. ReikoKitsune

    ReikoKitsune Developer
    NFE Team

    Joined:
    May 4, 2017
    Messages:
    674
    Likes Received:
    589
    I knew NFE Toolbox can be run on the Linux/OS X through wine and other windows environemt emulators.
    Original question was about native support.
     
  12. spalife

    spalife New Member

    Joined:
    Mar 23, 2018
    Messages:
    21
    Likes Received:
    12
    Jumped a hoop there, from Forum topic to thread topic.
    My intention was to save your resources on macOS port.

    Thanks for the well Designed, Developed, Documented Firmware.
     
    ReikoKitsune likes this.
  13. dil3mm4

    dil3mm4 Active Member

    Joined:
    May 22, 2017
    Messages:
    170
    Likes Received:
    56
    @ReikoKitsune it's about time.... :D:D:D:D:D:D:D
     
    Red White and maelstrom2001 like this.
  14. maelstrom2001

    maelstrom2001 Developer
    NFE Team

    Joined:
    May 4, 2017
    Messages:
    1,749
    Likes Received:
    1,605
    My apologies :) but it's PODs and strange devices time. It's a miracle that we still have the community :)
     
  15. dil3mm4

    dil3mm4 Active Member

    Joined:
    May 22, 2017
    Messages:
    170
    Likes Received:
    56
    Ooof, I don't even know what a POD is lmaooo.
    I've been out of the game so long.
    Yesterday I've restores my wismec Rx gen3 dual and I was happy enough to found you guys still here providing Arcticfox.
    Hope you guys are all doing well.
     
    TinaEire, Uncle_Brr and maelstrom2001 like this.
  16. Red White

    Red White New Member

    Joined:
    Oct 2, 2017
    Messages:
    23
    Likes Received:
    1
    My guess is that he's talking about those fancy POD-systems (puff-on-demand, I guess?).
    Weirdly enough, one can say, but I'm about to flash Arctic Fox firmware into my third newly acquired device (iStick by Eleaf, once again), so I'm still interested if there's anything planned about further support of Nuvoton devices.

    Actually, sharing P1x protocol version specs could help attracting new enthusiasts, don't you think so?
     
    #16 Red White, Aug 1, 2020
    Last edited: Jan 31, 2021
  17. dastardley

    dastardley New Member

    Joined:
    Oct 18, 2022
    Messages:
    2
    Likes Received:
    0
    I'm try to run NToolbox.exe on Linux (6.0.2-arch1-1), but I'm stuck on "Connect device with" with my mod not recognized ("Device is disconnected") in the ArcticFox Configuration.

    $ wine --version
    wine-7.19

    $ dmesg
    [ 1014.688697] usb 2-1.4: New USB device found, idVendor=0416, idProduct=5020, bcdDevice= 0.00
    [ 1014.688712] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1014.688717] usb 2-1.4: Product: HID Transfer
    [ 1014.688722] usb 2-1.4: Manufacturer: Nuvoton
    [ 1014.688726] usb 2-1.4: SerialNumber: A02015081302
    [ 1014.691457] input: Nuvoton HID Transfer as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:0416:5020.0009/input/input26
    [ 1014.691604] hid-generic 0003:0416:5020.0009: input,hidraw4: USB HID v1.10 Device [Nuvoton HID Transfer] on usb-0000:00:1d.0-1.4/input0


    I have create a personalized udev rule:
    ACTION=="add", KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020", GROUP="arcticfox", MODE="0660", TAG+="uucp", TAG+="udev-acl", TAG+="uaccess"
    ACTION=="remove", KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="5020"


    $ ls /dev/hidraw* -lisa
    crw-rw---- 1 root arcticfox 241, 4 18 ott 11.22 /dev/hidraw4


    Of course I'm in the "arcticfox" group

    $ WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks --unattended dotnet40 corefonts
    $ WINEARCH=win32 WINEPREFIX=~/.wine32 wine NToolbox.exe


    Here the output log: https://pastebin.com/tj430cWW

    I have no problem using NToolbox under VirtualBox with Windows 10

    Any hints or suggests...thanks!
     
  18. maelstrom2001

    maelstrom2001 Developer
    NFE Team

    Joined:
    May 4, 2017
    Messages:
    1,749
    Likes Received:
    1,605
  19. dastardley

    dastardley New Member

    Joined:
    Oct 18, 2022
    Messages:
    2
    Likes Received:
    0
    Hey, thank you for your answer.

    In really, I have already compiled and installed the suggested sw (NFE), but I don't know if it cover all features of Arctic Fox (configuration, monitor, flash, etc...)...for this reason I would like also install the official "client".

    Anyway NFE with Qt5 is really nice!