You are not logged in.

#1 2016-06-14 23:18:43

zeitue
Member
From: United States
Registered: 2016-06-14
Posts: 2

C.H.I.P. flasher! Chrome App on Arch Linux

Hello, I'm new to Arch Linux, I've been using it for about 2 months and, before that I used Ubuntu for 8 years.

I'm trying to convert the instructions from http://docs.getchip.com/chip.html#linux-specific, which are written for Ubuntu to Arch Linux.
However, Arch Linux seem not to have either a plugdev or a dialout group. I'm pretty sure I cannot just create these groups. So are there alternatives on Arch Linux or is there another method to achieve this?

sudo usermod -a -G dialout $(logname)
sudo usermod -a -G plugdev $(logname)

# Create udev rules 
echo -e 'SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="1010", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip-fastboot"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="1010", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip-fastboot"
SUBSYSTEM=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", GROUP="plugdev", MODE="0660" SYMLINK+="usb-serial-adapter"
' | sudo tee /etc/udev/rules.d/99-allwinner.rules
sudo udevadm control --reload-rules

Thank you


CPU: 4x Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz; Memory: 12GB; Swap: 12GB;  Graphics: NVIDIA GeForce 940M;
OS: Antergos (Arch Linux); Web Browser: Google Chrome, Opera, Web; Shells: ZSH, GNOME Shell;
Programming Languages: C, C++, Java, Ruby, Perl, Python, MIPS Assembly, Arm Assembly, X86 Assembly, 68HC11 Assembly, Clojure, Shell script, HTML, CSS, Javascript, HAML, and Matlab.

Offline

#2 2016-06-14 23:29:56

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: C.H.I.P. flasher! Chrome App on Arch Linux

Sure. Just create the group and add your user to it or change the udev rules file to be a group that your user is already in.


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

#3 2016-06-15 00:05:00

zeitue
Member
From: United States
Registered: 2016-06-14
Posts: 2

Re: C.H.I.P. flasher! Chrome App on Arch Linux

Thanks that worked perfectly. I did not know you could just make up groups.


below is my edited code for if anyone else needs it for the C.H.I.P. flasher!

sudo groupadd plugdev
sudo groupadd dialout
sudo usermod -a -G dialout $USER
sudo usermod -a -G plugdev $USER


# Create udev rules
echo -e 'SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="efe8", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="1010", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip-fastboot"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f3a", ATTRS{idProduct}=="1010", GROUP="plugdev", MODE="0660" SYMLINK+="usb-chip-fastboot"
SUBSYSTEM=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", GROUP="plugdev", MODE="0660" SYMLINK+="usb-serial-adapter"
' | sudo tee /etc/udev/rules.d/99-allwinner.rules
sudo udevadm control --reload-rules

CPU: 4x Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz; Memory: 12GB; Swap: 12GB;  Graphics: NVIDIA GeForce 940M;
OS: Antergos (Arch Linux); Web Browser: Google Chrome, Opera, Web; Shells: ZSH, GNOME Shell;
Programming Languages: C, C++, Java, Ruby, Perl, Python, MIPS Assembly, Arm Assembly, X86 Assembly, 68HC11 Assembly, Clojure, Shell script, HTML, CSS, Javascript, HAML, and Matlab.

Offline

#4 2016-07-17 08:02:52

stevefolta
Member
Registered: 2016-07-17
Posts: 1

Re: C.H.I.P. flasher! Chrome App on Arch Linux

It looks like the "uucp" group is Arch's equivalent of "dialout", so you should just add yourself to that instead of creating "dialout".

Offline

Board footer

Powered by FluxBB