ArchLinux in Udoo board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ArchLinux in Udoo board

ArchLinux in Udoo board

This document shows the steps for the creation of Archlinux and kernel 4.18.5 on the UDOO board.

Required material:

UDOO board, Ubuntu 16.04 and SD card.

Firts we need u-boot (universal bootloader), for that reason we need update the host.

$ sudo apt-get update

Then we need the file *.img and SPL for the file system

$ wget http://os.archlinuxarm.org/os/imx6/boot/udoo/SPL

$ wget http://os.archlinuxarm.org/os/imx6/boot/udoo/u-boot.img

pastedImage_3.png

Kernel 4.18.5 and file system:

$ sudo mkdir archlinux

$ wget http://os.archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz

$ sudo tar -xzvf  ArchLinuxARM-armv7-latest.tar.gz

$ sudo rm -rf *.tar.gz

You must have the following files

pastedImage_5.png

Now  We are going to burn the memory, we need a 16Gb of space:

pastedImage_6.png

We need to make sure it is empty

pastedImage_7.png

Then partitions:

$ sudo fdisk /dev/sdc

O,

P,

N,

P,

1

space, 8192

default,

W

At the end the sdc is partition, then create the filesystem partition

$ sudo mkfs.ext4 /dev/sdc1

The working directory

$ sudo mkdir mnt

mount the partition 1

$ sudo mount /devsdc1 mtn/

Now we where the kernel and filesystem are and copy all the file in mnt:

$ sudo cp -vr * ~/mnt/

pastedImage_1.png

Once it finish we execute

$ sync

then unmount the partition of sdc1:

$ sudo umount mnt/

Now is moment to load the SPL and u-boot:

pastedImage_2.png

pastedImage_3.png

and

$ sync

we retire the sd and turn on the board. Now you are on ArchLinux.

pastedImage_4.png

user: alarm                  root: Root

Pass: alarm                 pass: root

Now the firts thing we must do it is upgrade the keys:

$ pacman -key --init

$ pacman -key --populate archlinuxarm

$ pacman -Syyuu

We can add another user:

$ useradd - m -g user  -s /bin/bash user_name

$ passwd user_name

$ paman -S sudo

$ visudo

Root ALL= (ALL) ALL

user_name ALL=(ALL) ALL

$ exit

pastedImage_1.png

For the graphic we are going to install the xorg:

$ sudo pacman -S xorg-server

$ sudo pacman -S xorg-apps

Now we can execute startx and observe the windows of xorg

$ startx

To have a windows gestor:

$ sudo pacman -S sddm

$ sudo pacman -S plasma kde-applications

$ sudo systemctl enable sddm

Reboot and you are ArchLinux graphics windows

pastedImage_2.png

Labels (3)
Tags (2)
%3CLINGO-SUB%20id%3D%22lingo-sub-1124229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EArchLinux%20in%20Udoo%20board%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1124229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20document%20shows%20the%20steps%20for%20the%20creation%20of%20Archlinux%20and%20kernel%204.18.5%20on%20the%20UDOO%20board.%3C%2FP%3E%3CP%3ERequired%20material%3A%3C%2FP%3E%3CP%3EUDOO%20board%2C%20Ubuntu%2016.04%20and%20SD%20card.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EFirts%20we%20need%20u-boot%20(universal%20bootloader)%2C%20for%20that%20reason%20we%20need%20update%20the%20host.%3C%2FP%3E%3CP%3E%24%20sudo%20apt-get%20update%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThen%20we%20need%20the%20file%20*.img%20and%20SPL%20for%20the%20file%20system%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%20background%3A%20whitesmoke%3B%20border%3A%20none%3B%20padding%3A%200in%3B%22%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20color%3A%20%23333333%3B%22%3E%24%20wget%20%3CA%20href%3D%22http%3A%2F%2Fos.archlinuxarm.org%2Fos%2Fimx6%2Fboot%2Fudoo%2FSPL%24%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fos.archlinuxarm.org%2Fos%2Fimx6%2Fboot%2Fudoo%2FSPL%3C%2FA%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%20background%3A%20whitesmoke%3B%20border%3A%20none%3B%20padding%3A%200in%3B%22%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20color%3A%20%23333333%3B%22%3E%24%20wget%20%3CA%20href%3D%22http%3A%2F%2Fos.archlinuxarm.org%2Fos%2Fimx6%2Fboot%2Fudoo%2Fu-boot.img%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fos.archlinuxarm.org%2Fos%2Fimx6%2Fboot%2Fudoo%2Fu-boot.img%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%20style%3D%22width%3A%20505px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69458iBDC19731665CEF53%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_3.png%22%20alt%3D%22pastedImage_3.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EKernel%204.18.5%20and%20file%20system%3A%3C%2FP%3E%3CP%3E%24%20sudo%20mkdir%20archlinux%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%20background%3A%20whitesmoke%3B%20border%3A%20none%3B%20padding%3A%200in%3B%22%3E%24%20%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20color%3A%20%23333333%3B%22%3Ewget%20http%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%20color%3A%20%23333333%3B%22%3E%3A%2F%2Fos.archlinuxarm.org%2Fos%2FArchLinuxARM-armv7-latest.tar.gz%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%24%20sudo%20tar%20-xzvf%26nbsp%3B%20ArchLinuxARM-armv7-latest.tar.gz%3C%2FP%3E%3CP%3E%24%20sudo%20rm%20-rf%20*.tar.gz%3C%2FP%3E%3CP%3EYou%20must%20have%20the%20following%20files%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_5.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_5.png%22%20style%3D%22width%3A%20724px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69542iE2579A53D3B94FD6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_5.png%22%20alt%3D%22pastedImage_5.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ENow%26nbsp%3B%20We%20are%20going%20to%20burn%20the%20memory%2C%20we%20need%20a%2016Gb%20of%20space%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_6.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_6.png%22%20style%3D%22width%3A%20427px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69585iF2E45E1AAD0DF66F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_6.png%22%20alt%3D%22pastedImage_6.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EWe%20need%20to%20make%20sure%20it%20is%20empty%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_7.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_7.png%22%20style%3D%22width%3A%20697px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69633i15302EB24042EA4C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_7.png%22%20alt%3D%22pastedImage_7.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThen%20partitions%3A%3C%2FP%3E%3CP%3E%24%20sudo%20fdisk%20%2Fdev%2Fsdc%3C%2FP%3E%3CP%3E%3CSPAN%3EO%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EP%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EN%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EP%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E1%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Espace%2C%208192%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Edefault%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EW%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAt%20the%20end%20the%20sdc%20is%20partition%2C%20then%20create%20the%20filesystem%20partition%20%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%24%20sudo%20mkfs.ext4%20%2Fdev%2Fsdc1%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20working%20directory%3C%2FP%3E%3CP%3E%24%20sudo%20mkdir%20mnt%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Emount%20the%20partition%201%3C%2FP%3E%3CP%3E%24%20sudo%20mount%20%2Fdevsdc1%20mtn%2F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ENow%20we%20where%20the%20kernel%20and%20filesystem%20are%20and%20copy%20all%20the%20file%20in%20mnt%3A%3C%2FP%3E%3CP%3E%24%20sudo%20cp%20-vr%20*%20~%2Fmnt%2F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20646px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69365iCB3ECBA89338EB2D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EOnce%20it%20finish%20we%20execute%3C%2FP%3E%3CP%3E%24%20sync%3C%2FP%3E%3CP%3Ethen%20unmount%20the%20partition%20of%20sdc1%3A%3C%2FP%3E%3CP%3E%24%20sudo%20umount%20mnt%2F%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ENow%20is%20moment%20to%20load%20the%20SPL%20and%20u-boot%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%20style%3D%22width%3A%20646px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69410iF4217B0F237CB2E4%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_2.png%22%20alt%3D%22pastedImage_2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%20style%3D%22width%3A%20716px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69457i3B0E1F2204804C54%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_3.png%22%20alt%3D%22pastedImage_3.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eand%3C%2FP%3E%3CP%3E%24%20sync%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Ewe%20retire%20the%20sd%20and%20turn%20on%20the%20board.%20Now%20you%20are%20on%20ArchLinux.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_4.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_4.png%22%20style%3D%22width%3A%20573px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69499i8BFF782C2997228F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_4.png%22%20alt%3D%22pastedImage_4.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Euser%3A%20alarm%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20root%3A%20Root%3C%2FP%3E%3CP%3EPass%3A%20alarm%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20pass%3A%20root%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ENow%20the%20firts%20thing%20we%20must%20do%20it%20is%20upgrade%20the%20keys%3A%3C%2FP%3E%3CP%3E%24%20pacman%20-key%20--init%3C%2FP%3E%3CP%3E%24%20pacman%20-key%20--populate%20archlinuxarm%3C%2FP%3E%3CP%3E%24%20pacman%20-Syyuu%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EWe%20can%20add%20another%20user%3A%3C%2FP%3E%3CP%3E%24%20useradd%20-%20m%20-g%20user%26nbsp%3B%20-s%20%2Fbin%2Fbash%20user_name%3C%2FP%3E%3CP%3E%24%20passwd%20user_name%3C%2FP%3E%3CP%3E%24%20paman%20-S%20sudo%3C%2FP%3E%3CP%3E%24%20visudo%3C%2FP%3E%3CP%3ERoot%20ALL%3D%20(ALL)%20ALL%3C%2FP%3E%3CP%3Euser_name%20ALL%3D(ALL)%20ALL%3C%2FP%3E%3CP%3E%24%20exit%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20643px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69455i760075BBDE9C6BF7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EFor%20the%20graphic%20we%20are%20going%20to%20install%20the%20xorg%3A%3C%2FP%3E%3CP%3E%24%20sudo%20pacman%20-S%20xorg-server%3C%2FP%3E%3CP%3E%24%20sudo%20pacman%20-S%20xorg-apps%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ENow%20we%20can%20execute%20startx%20and%20observe%20the%20windows%20of%20xorg%3C%2FP%3E%3CP%3E%24%20startx%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ETo%20have%20a%20windows%20gestor%3A%3C%2FP%3E%3CP%3E%24%20sudo%20pacman%20-S%20sddm%3C%2FP%3E%3CP%3E%24%20sudo%20pacman%20-S%20plasma%20kde-applications%3C%2FP%3E%3CP%3E%24%20sudo%20systemctl%20enable%20sddm%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EReboot%20and%20you%20are%20ArchLinux%20graphics%20windows%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%20style%3D%22width%3A%20587px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69541iF615338FC3276FED%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_2.png%22%20alt%3D%22pastedImage_2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1124229%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX6S%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX6SL%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Ei.MX6SoloX%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-20-2018 10:10 AM
Updated by: