Arch Linux Installed

Post Reply
mashman
Posts: 2
Joined: Tue Dec 04, 2018 11:58 am
languages_spoken: english
ODROIDs: H2
Has thanked: 0
Been thanked: 0
Contact:

Arch Linux Installed

Unread post by mashman » Tue Dec 04, 2018 12:08 pm

Hi All,

New to Odroid but i've now installed Arch linux on my new H2.

has anyone got any reccomendations on kernel configuration? i'm working though the list of errors in my dmesg.

eg.

[drm] GuC: No firmware known for this platform!
[drm] HuC: No firmware known for this platform!
ucsi_acpi USBC000:00: Failed to reset PPM! Trying again..
ucsi_acpi USBC000:00: failed to reset PPM!
ucsi_acpi USBC000:00: PPM init failed (-110)
platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

Hossie
Posts: 26
Joined: Tue Feb 28, 2017 1:10 am
languages_spoken: english, german
ODROIDs: XU4, H2, Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by Hossie » Wed Dec 05, 2018 4:54 am

GuC/HuC Firmware is normally not needed.
https://wiki.archlinux.org/index.php/in ... re_loading

I don't find both other errors on my Gentoo kernel:

Code: Select all

odroidh2 ~ # dmesg | grep ppm -i
odroidh2 ~ # dmesg | grep regulat -i
odroidh2 ~ # 

User avatar
odroid
Site Admin
Posts: 32732
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 220 times
Been thanked: 368 times
Contact:

Re: Arch Linux Installed

Unread post by odroid » Wed Dec 05, 2018 10:22 am

@Hossie,
Can you tell me how you installed Gentoo?
Some Korean users reported Gentoo minimal image install-amd64-minimal-20181113T214502Z.iso couldn't boot on H2.

Hossie
Posts: 26
Joined: Tue Feb 28, 2017 1:10 am
languages_spoken: english, german
ODROIDs: XU4, H2, Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by Hossie » Thu Dec 06, 2018 1:36 am

Yes indeed the grub based EFI kernel doesn't seem to boot (the livecd doesnt boot and the installed system also didn't boot).

I only succeeded in booting with an ubuntu stick for the installation and then generating an EFI stub kernel ( https://wiki.gentoo.org/wiki/EFI_stub_kernel )

User avatar
odroid
Site Admin
Posts: 32732
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 220 times
Been thanked: 368 times
Contact:

Re: Arch Linux Installed

Unread post by odroid » Thu Dec 06, 2018 9:14 am

@Hossie,
Thank you for the explanation.

@mashman,
Sorry for my rude hijacking.

User avatar
graysky
Posts: 143
Joined: Wed Jul 13, 2016 9:11 am
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by graysky » Thu Dec 06, 2018 9:25 am

@OP - You might try posting to the Arch bbs: https://bbs.archlinux.org

r2binx
Posts: 8
Joined: Wed Dec 19, 2018 6:03 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by r2binx » Wed Dec 19, 2018 6:06 am

Hi, my H2 will probably arrive this week and I plan to install arch as well.

Were you able to resolve this problem?
also, was there anything unusual in the setup process?
thanks!

mashman
Posts: 2
Joined: Tue Dec 04, 2018 11:58 am
languages_spoken: english
ODROIDs: H2
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by mashman » Fri Dec 21, 2018 7:07 am

I haven't resolved this yet, I'm yet to put in the time. Apart from this, it is running really well. There have been no driver issues. The install was pretty straight forward using arch iso install via a USB. I was new to the efi install method but after I got my head around that, it was fine using emmc as the os storage. I'm only using the H2 for MPD audio and a headless server so I can't talk to the display drivers just yet.
Interested to know what the I can do to optimise the kernel next. I'm not sure if there are .config files to try for the H2 out there. Power management is important for me so please share whatever you discover.

Sent from my XT1039 using Tapatalk


r2binx
Posts: 8
Joined: Wed Dec 19, 2018 6:03 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by r2binx » Sun Dec 23, 2018 7:25 pm

So I just installed arch as well on a NVMe though but I'm not getting the same error like you do. Perhaps this is related to emmc?
You were right, the installation is really straightforward and I'm actually impressed how smooth it works. The only issue I have is that the fan isn't displayed. That's all I get

Code: Select all

$ sensors
acpitz-acpi-0
Adapter: ACPI interface
temp1:        +41.0 C  (crit = +95.0 C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 0:        +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 1:        +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 2:        +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 3:        +42.0 C  (high = +105.0 C, crit = +105.0 C)

Yes Man
Posts: 6
Joined: Fri Jan 12, 2018 8:57 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by Yes Man » Sat Dec 29, 2018 12:44 am

r2binx wrote:
Sun Dec 23, 2018 7:25 pm
So I just installed arch as well on a NVMe though but I'm not getting the same error like you do. Perhaps this is related to emmc?
You were right, the installation is really straightforward and I'm actually impressed how smooth it works. The only issue I have is that the fan isn't displayed. That's all I get

Code: Select all

$ sensors
acpitz-acpi-0
Adapter: ACPI interface
temp1:        +41.0 C  (crit = +95.0 C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 0:        +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 1:        +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 2:        +42.0 C  (high = +105.0 C, crit = +105.0 C)
Core 3:        +42.0 C  (high = +105.0 C, crit = +105.0 C)
Which means that GPU acceleration of 2D + 3D + video decoding is enabled, stable, and at full speed ?
Also, did you by any chance benchmark SSD performance, in IOPS and 4K files, with fio ?
If not, would you be willing to do so ?

Hossie
Posts: 26
Joined: Tue Feb 28, 2017 1:10 am
languages_spoken: english, german
ODROIDs: XU4, H2, Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by Hossie » Sat Dec 29, 2018 3:01 am

I can give you my Gentoo Stats. Those are probably similar as both are rolling release distros with recent software.

Disk: Samsung SSD 970 EVO 250GB

Code: Select all

fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
test: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
fio-3.7
Starting 1 process
test: Laying out IO file (1 file / 4096MiB)
Jobs: 1 (f=1): [m(1)][100.0%][r=204MiB/s,w=67.3MiB/s][r=52.3k,w=17.2k IOPS][eta 00m:00s]
test: (groupid=0, jobs=1): err= 0: pid=4461: Fri Dec 28 18:59:08 2018
   read: IOPS=52.2k, BW=204MiB/s (214MB/s)(3070MiB/15059msec)
   bw (  KiB/s): min=206456, max=210480, per=100.00%, avg=208768.27, stdev=998.91, samples=30
   iops        : min=51614, max=52620, avg=52192.07, stdev=249.70, samples=30
  write: IOPS=17.4k, BW=68.1MiB/s (71.4MB/s)(1026MiB/15059msec)
   bw (  KiB/s): min=67848, max=70928, per=100.00%, avg=69774.40, stdev=747.27, samples=30
   iops        : min=16962, max=17732, avg=17443.60, stdev=186.82, samples=30
  cpu          : usr=34.96%, sys=65.06%, ctx=43, majf=0, minf=8
  IO depths    : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
     issued rwts: total=785920,262656,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=64

Run status group 0 (all jobs):
   READ: bw=204MiB/s (214MB/s), 204MiB/s-204MiB/s (214MB/s-214MB/s), io=3070MiB (3219MB), run=15059-15059msec
  WRITE: bw=68.1MiB/s (71.4MB/s), 68.1MiB/s-68.1MiB/s (71.4MB/s-71.4MB/s), io=1026MiB (1076MB), run=15059-15059msec

Disk stats (read/write):
  nvme0n1: ios=778704/260206, merge=0/2, ticks=62077/3530, in_queue=55745, util=98.27%

Yes Man
Posts: 6
Joined: Fri Jan 12, 2018 8:57 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by Yes Man » Sat Dec 29, 2018 6:09 am

Thanks Hossie.
That 970 EVO is on a permanent holiday. It's underutilised. I had hopes for at least 80K read and 40K write IOPS.
Especially considering that the iodepth was set to 64, which is more of a server load (fio command default is 1).
Looks like the CPU and/or PCIe 2.0 lane speed are choking the SSD. Or maybe Linux is just not asynchronously buffering I/Os. Waiting after every single request for it to finish. And then send the next batch of 64. This would reduce I/O latency, but increase the number of fetches.
But I'm going way off-topic here. Thanks once again for posting the result.

Hossie
Posts: 26
Joined: Tue Feb 28, 2017 1:10 am
languages_spoken: english, german
ODROIDs: XU4, H2, Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by Hossie » Thu Jan 03, 2019 1:17 am

Are you sure about that? I put in the same command on my new XPS13 Coffee-Lake-i7 and it ran at 89.2k and 29.8k IOPS. Not sure 40k is a relastic value here.

Yes Man
Posts: 6
Joined: Fri Jan 12, 2018 8:57 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by Yes Man » Thu Jan 03, 2019 3:32 am

Then it must be the CPU of the ODROID-H2 holding the score back. That drive is capable of 40K real write IOPS.
EDIT: It's my bad. I was comparing the results of a 500GB model to your 250GB model. The 500GB model has quite a bit better 4K IOPS performance than the 250GB model.
Even when comparing the IOPS quoted by Samsung, between the 250GB and 500GB models, there is quite a gap.
EDIT 2: This doesn't help either : "4 x PCIe 2.0 for one M.2 NVMe storage".

p37
Posts: 33
Joined: Sat Jun 30, 2018 5:32 pm
languages_spoken: german
ODROIDs: odroid c2 odroid h2
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by p37 » Wed Jan 30, 2019 11:22 pm

Hello

I have a problem with screen flicker shortly after logging in under Arch -linux

dmesg:

Code: Select all

 [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun
Bios and Archlinux are up to date
and xf86-video-intel is not installed.

After a long search I found this boat entry

intel_idle.max_cstate=1

i have tested cstate=1-4 and specified that i should use intel_idle.max_cstate=2
solve the problem, but that doesn't seem to be a good solution (energy management)

inxi -Fxxx:

Code: Select all

System:
  Host: OdiH2 Kernel: 4.20.5-arch1-1-ARCH x86_64 bits: 64 compiler: gcc 
  v: 8.2.1 Desktop: LXDE 0.9.3 info: lxpanel wm: Openbox 3.6.1 
  dm: LightDM 1.28.0 Distro: Arch Linux 
Machine:
  Type: Desktop Mobo: HARDKERNEL model: ODROID-H2 v: 1.0 
  serial: <root required> UEFI: American Megatrends v: 5.13 date: 12/05/2018 
CPU:
  Topology: Quad Core model: Intel Celeron J4105 bits: 64 type: MCP 
  arch: Goldmont Plus rev: 1 L2 cache: 4096 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 11984 
  Speed: 901 MHz min/max: 800/2500 MHz Core speeds (MHz): 1: 799 2: 799 
  3: 799 4: 799 
Graphics:
  Device-1: Intel driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:3185 
  Display: x11 server: X.Org 1.20.3 driver: modesetting unloaded: fbdev,vesa 
  alternate: intel resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics 600 (Geminilake 2x6) 
  v: 4.5 Mesa 18.3.2 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel driver: snd_hda_intel v: kernel bus ID: 00:0e.0 
  chip ID: 8086:3198 
  Sound Server: ALSA v: k4.20.5-arch1-1-ARCH 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  driver: r8169 v: kernel port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
  IF: enp2s0 state: down mac: 00:1e:06:45:01:5c 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  driver: r8169 v: kernel port: d000 bus ID: 03:00.0 chip ID: 10ec:8168 
  IF: enp3s0 state: down mac: 00:1e:06:45:01:5d 
  Device-3: Realtek RTL8188EUS 802.11n Wireless Network Adapter type: USB 
  driver: r8188eu bus ID: 1-4.2:5 chip ID: 0bda:8179 
  IF: wlp0s21f0u4u2 state: up mac: 80:3f:5d:10:35:20 
Drives:
  Local Storage: total: 3.87 TiB used: 2.63 TiB (68.0%) 
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 250GB 
  size: 232.89 GiB speed: 31.6 Gb/s lanes: 4 serial: S465NB0K824844M 
  rev: 1B2QEXE7 scheme: GPT 
  ID-2: /dev/sda type: USB vendor: Western Digital model: WD Elements 25A1 
  size: 3.64 TiB serial: 575835314441384C37534648 rev: 1014 scheme: GPT 
Partition:
  ID-1: / size: 160.03 GiB used: 52.02 GiB (32.5%) fs: ext4 
  dev: /dev/nvme0n1p2 
  ID-2: /boot size: 511.0 MiB used: 109.6 MiB (21.4%) fs: vfat 
  dev: /dev/nvme0n1p1 
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 152 Uptime: 24m Memory: 7.61 GiB used: 622.5 MiB (8.0%) 
  Init: systemd v: 240 Compilers: gcc: 8.2.1 Shell: bash v: 5.0.0 
  running in: lxterminal inxi: 3.0.29   
Can an Archlinux user confirm the behaviour?
With the Lubuntu Livecd the problem does not occur ?
I read in several forums that a bios update helped ?


Best regards
p37

(As always translated with DeepL please understand)

p37
Posts: 33
Joined: Sat Jun 30, 2018 5:32 pm
languages_spoken: german
ODROIDs: odroid c2 odroid h2
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by p37 » Thu Jan 31, 2019 12:07 am

Unfortunately, I had to find out that

intel_idle.max_cstate=2

but it doesn't help, it just takes longer until the screen flickers and

[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun

appears in dmesg?

p37
Posts: 33
Joined: Sat Jun 30, 2018 5:32 pm
languages_spoken: german
ODROIDs: odroid c2 odroid h2
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by p37 » Sun Feb 03, 2019 10:21 pm

Hello

I have now opened a thread in the Arch Linux Forum
https://bbs.archlinux.de/viewtopic.php?id=32263

I would be happy if an Arch linux user answers and confirms the problem?

Best regards
p37

p37
Posts: 33
Joined: Sat Jun 30, 2018 5:32 pm
languages_spoken: german
ODROIDs: odroid c2 odroid h2
Has thanked: 0
Been thanked: 0
Contact:

Re: Arch Linux Installed

Unread post by p37 » Wed May 29, 2019 10:52 pm

Hello,
I have now solved the problem with the help of compton.

Please take a look for yourself
https://bbs.archlinux.de/viewtopic.php? ... 52#p370152

best regards
p37

obi
Posts: 3
Joined: Fri Nov 01, 2019 8:21 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Arch Linux Installed

Unread post by obi » Fri Nov 01, 2019 9:10 am

Hello,

I am trying to install gentoo on the H2 and can't get a working kernel together, I installed everything with a Ubuntu server usb boot and managed to get grub to start on boot but am now stuck at a frozen screen right after the kernel load.

If anyone has a working kernel config that they are willing to share I would be grateful.

fvolk
Posts: 300
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, HC1, H2
Has thanked: 0
Been thanked: 11 times
Contact:

Re: Arch Linux Installed

Unread post by fvolk » Fri Nov 01, 2019 7:01 pm

Gentoo runs fine on the H2,
but be sure to use Grub 2.04-r1 for boot as the default Grub 2.02-r4 hangs with black screen and blinking cursor on boot.

obi
Posts: 3
Joined: Fri Nov 01, 2019 8:21 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Arch Linux Installed

Unread post by obi » Sat Nov 02, 2019 7:11 am

My problem wasn't with the bootloader but that the kernel was hanging. I went through the whole config again and got it working, I ended up using a EFI stub kernel instead of any bootloader.

If anyone needs a simple barebones vanilla kernel 5.3.8 config: https://pastebin.com/Hj9Hnk4k

I use it as a headless server so there is no modesetting or anything special (modules are disabled, as well as wifi and anything I don't need). But it boots without a problem through grub or directly from UEFI with systemd or openrc.

User avatar
rooted
Posts: 6924
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 278 times
Been thanked: 71 times
Contact:

Re: Arch Linux Installed

Unread post by rooted » Sat Nov 02, 2019 3:39 pm

Thanks for sharing, glad you got it working.

obi
Posts: 3
Joined: Fri Nov 01, 2019 8:21 am
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Arch Linux Installed

Unread post by obi » Tue Nov 05, 2019 7:28 am

rooted wrote:
Sat Nov 02, 2019 3:39 pm
Thanks for sharing, glad you got it working.
You're welcome.

A little update to my kernel config: https://pastebin.com/chzFx0EU

I added quiet boot parameter for a little speedup (now that I don't need debuging info), support for CPU temperature sensors, added microcode update (you have to download 06-7a-01 microcode from intels github https://github.com/intel/Intel-Linux-Pr ... Data-Files and put it in /lib/firmware/intel-ucode/ or change the path in the kernel config for it to work), removed some stuff that was not in use and changed cpu family to core2 for some added optimization.

FYI if you are using systemd you might get a 1 minute delay before you can login due to entropy. I read it's a bug in 4.16+ kernels but don't quote me on that. Installing rng-tools and adding it to boot solved the problem for me.
These users thanked the author obi for the post:
rooted (Tue Nov 05, 2019 8:24 pm)

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 0 guests