Armbian for Odroid N2

Moan
Posts: 33
Joined: Fri Feb 01, 2019 11:51 pm
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 5 times
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by Moan » Mon Feb 03, 2020 8:05 pm

Hi. I saw that on: https://www.armbian.com/odroid-n2/
It's now possible to download (Buster server) with kernel: 5.4.14.

For me, "apt-get update; apt-get upgrade" doesn't find a new kernel version:
Linux odroidn2 5.4.12-meson64 #19.11.8 SMP PREEMPT Thu Jan 16 20:12:23 CET 2020 aarch64 GNU/Linux
It's also not present in armbian-config / Switch to other kernel.

I suppose it's because I have Armbian 19.11.8, and the one on download site is 20.02.0-rc1.
How should I update to 20.02 Release Candidate, without re-configuring everything? Should switching to Nightly builds do the trick?

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Mon Feb 03, 2020 10:04 pm

> Should switching to Nightly builds do the trick?

Waiting is the trick :)

Its a quality control "issue". We will not push out update (to possible brick your system) ... before at least basic testings (and possible nasty bugs are nailed down) are completed: https://forum.armbian.com/topic/12820-h ... -2002-rc1/

Soon. Few weeks to go.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Moan
Posts: 33
Joined: Fri Feb 01, 2019 11:51 pm
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 5 times
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by Moan » Mon Feb 03, 2020 10:10 pm

igorpec wrote:
Mon Feb 03, 2020 10:04 pm
Waiting is the trick :)
Hehehehe, I couldn't wait and switched to Nightly which has 20.02.0-rc1. So far everything works fine. In worst case I'll just restore an SD Card backup img :)

Sav
Posts: 180
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 31 times
Been thanked: 13 times
Contact:

Re: Armbian for Odroid N2

Unread post by Sav » Mon Feb 03, 2020 10:58 pm

Moan wrote:
igorpec wrote:
Mon Feb 03, 2020 10:04 pm
Waiting is the trick :)
Hehehehe, I couldn't wait and switched to Nightly which has 20.02.0-rc1. So far everything works fine. In worst case I'll just restore an SD Card backup img :)
Does the audio work?

Inviato dal mio GM1913 utilizzando Tapatalk


Moan
Posts: 33
Joined: Fri Feb 01, 2019 11:51 pm
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 5 times
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by Moan » Mon Feb 03, 2020 11:20 pm

Sav wrote:
Mon Feb 03, 2020 10:58 pm
Does the audio work?

Inviato dal mio GM1913 utilizzando Tapatalk
Sorry, don't know as I use it for NAS purposes. Also won't be able to test it any soon. I should have written "everything I need works".

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Tue Feb 04, 2020 7:57 am

Sav wrote:
Mon Feb 03, 2020 10:58 pm
Moan wrote:
igorpec wrote:
Mon Feb 03, 2020 10:04 pm
Waiting is the trick :)
Hehehehe, I couldn't wait and switched to Nightly which has 20.02.0-rc1. So far everything works fine. In worst case I'll just restore an SD Card backup img :)
Does the audio work?

Inviato dal mio GM1913 utilizzando Tapatalk
Multimedia patches for Amlogic are present in the kernel but I don't recall testing that nor I am sure this SOC has support for that yet. Not critical to work feature at this (early) stage.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Payano
Posts: 16
Joined: Sat Mar 02, 2019 8:57 pm
languages_spoken: english
ODROIDs: XU4
N2
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: Armbian for Odroid N2

Unread post by Payano » Mon Feb 10, 2020 4:24 am

igorpec wrote:
Tue Feb 04, 2020 7:57 am
Multimedia patches for Amlogic are present in the kernel but I don't recall testing that nor I am sure this SOC has support for that yet. Not critical to work feature at this (early) stage.
I've tested the 5.4 kernel and there is only a dummy output device.

nick793
Posts: 36
Joined: Mon Jun 24, 2019 9:35 pm
languages_spoken: english
ODROIDs: N2, GO
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Armbian for Odroid N2

Unread post by nick793 » Thu Feb 13, 2020 3:07 am

As someone who has only used Ubuntu with the HK 4.9 kernel so far, is there any significant upgrades offered by the 5.4 kernel? I assume mainline kernel support for the N2 would mean that we have kernel support for new modules/features? Or am I getting ahead of myself?

Reason I ask is I'm running a NAS on my N2 and having a really tough time with resync ops running at USB2 speed (even though normal I/O is at USB3 speed). Hoping 5.4+ might fix that but not sure if I'm getting my hopes up.

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Thu Feb 13, 2020 3:27 am

nick793 wrote:
Thu Feb 13, 2020 3:07 am
As someone who has only used Ubuntu with the HK 4.9 kernel so far, is there any significant upgrades offered by the 5.4 kernel? I assume mainline kernel support for the N2 would mean that we have kernel support for new modules/features? Or am I getting ahead of myself?

Reason I ask is I'm running a NAS on my N2 and having a really tough time with resync ops running at USB2 speed (even though normal I/O is at USB3 speed). Hoping 5.4+ might fix that but not sure if I'm getting my hopes up.
Linux kernel is just one, while path to get there takes years. And N2 is somewhere in the middle of that journey ATM. Whenever features for your use case are covered and are stable its suggested to ditch the legacy kernel and proceed to mainline. Well, going on a first train it usually brings some risk so waiting and testing is IMO the best strategy.

Download, make an image and see how it goes with your use case. Than migrate. To stay on the safe side, disable kernel upgrades and update kernel when better maturity is achieved. Check Armbian release documentation and download pages where we usually add if something critical has been found ...
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

AnjunaBeats
Posts: 40
Joined: Fri Mar 29, 2019 6:47 am
languages_spoken: english, Spanish
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Armbian for Odroid N2

Unread post by AnjunaBeats » Wed Feb 19, 2020 8:15 am

any1 knows.. if is possible install kodi for armbian?

TY!

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Thu Feb 20, 2020 4:06 am

These users thanked the author igorpec for the post (total 2):
Sav (Thu Feb 20, 2020 4:28 am) • odroid (Thu Feb 20, 2020 10:25 am)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

nick793
Posts: 36
Joined: Mon Jun 24, 2019 9:35 pm
languages_spoken: english
ODROIDs: N2, GO
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Armbian for Odroid N2

Unread post by nick793 » Thu Feb 20, 2020 6:17 am

@igorpec does this mean that mainline 5.4.y on N2 is considered "stable" now by Armbian? I'd love to upgrade to mainline to try it out but want to make sure my software RAIDs don't get messed up.

I'm not running anything graphical, just using the box with docker and as a NAS

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Fri Feb 21, 2020 3:10 am

nick793 wrote:
Thu Feb 20, 2020 6:17 am
to make sure my software RAIDs don't get messed up.
On 5.4.y we don't have stable DVFS which is why I am a bit skeptical, the rest is OK or unknown. Our testing ability is small and we have to rely on your / community testings. I am not able to give you warranty for all features even kernel will formally be declared stable. Also nobody else, so you have to test and see. Its always good to backup the urgent stuff when doing such things ...
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

SirZevo
Posts: 12
Joined: Tue Sep 17, 2019 4:17 pm
languages_spoken: English and Spanish
ODROIDs: ODROID-N2
Has thanked: 5 times
Been thanked: 1 time

Re: Armbian for Odroid N2

Unread post by SirZevo » Thu Feb 27, 2020 11:57 pm

I'm a happy user of Armbian and have been using it for years. Now it's time to use it with my N2 and I'm currently on kernel 4.9 (Armbian_20.02.3_Odroidn2_buster_legacy_4.9.213) since the ethernet connection doesn't seem to work (device does not show up at the router device overview) and the HDMI screen are completely black for mainline (Armbian_20.02.3_Odroidn2_buster_current_5.4.21). I want to use the N2 as a headless server, so kernel 4.9 is just fine. The only issue I'm having running Armbian buster with Linux 4.9.213-meson64 is the incredible low transfer speed when copying/moving files over the USB interface. I'm getting 6-10 MB/s, compared to 70-100 MB/s which I'm getting using another device. I thought the USB 3.0 interface issues were solved?

Seen from Armbian-monitor below, the cpu/IO capacity is far from the limit when transfering files at 6-10 MB/s.

Code: Select all

Time       big.LITTLE   load %cpu %sys %usr %nice %io %irq CPU C.St.
10:20:46:  667/1896MHz  3.95   5%   0%   2%   0%   2%   0% 35.4°C  0/5
10:20:51:  667/1896MHz  3.95  17%   0%   0%   0%  16%   0% 35.4°C  0/5
10:20:56:  667/1896MHz  3.95  17%   0%   0%   0%  16%   0% 35.2°C  0/5
10:21:02:  667/1896MHz  3.96  16%   0%   0%   0%  16%   0% 35.2°C  0/5
10:21:07: 1200/1896MHz  3.96  17%   0%   0%   0%  16%   0% 35.5°C  0/5
10:21:12:  667/1896MHz  3.96  16%   0%   0%   0%  16%   0% 35.2°C  0/5

User avatar
odroid
Site Admin
Posts: 33686
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 511 times
Been thanked: 506 times
Contact:

Re: Armbian for Odroid N2

Unread post by odroid » Fri Feb 28, 2020 11:02 am

Try our Ubuntu 18.04.3 image to narrow down root causes. We could get 80~100MB/s of SMB/NFS transfer speed.
It is also worth to share your lsusb -t output.

Moan
Posts: 33
Joined: Fri Feb 01, 2019 11:51 pm
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 5 times
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by Moan » Fri Feb 28, 2020 11:27 am

Hi. I think the issue for low transfer speeds might be outdated boot.ini file.
I posted about it here: viewtopic.php?p=268192#p268192

Basically, file "/boot/boot.ini" should be edited to remove "usb-xhci.tablesize=2".

History:
- Odroid N2 had USB crashes during transfers.
- Hardkernel was trying to work-around it, and updated boot.ini with the change that affected speeds.
- I asked in this topic if this change should also be applied for armbian (and it was modified).
- Hardkernel released a better kernel, where it most likely stopped crashing. And they also removed "usb-xhci.tablesize=2" from their official ubuntu's boot.ini (hope I'm not wrong regarding this).
- I asked if this "usb-xhci.tablesize=2" should be removed from armbian's boot.ini, but didn't get an answer, so I removed it manually and I get good speeds and no crashes during rsync backups.

Hope that helps.

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Fri Feb 28, 2020 2:38 pm

Moan wrote:
Fri Feb 28, 2020 11:27 am
should be removed from armbian's boot.ini, but didn't get an answer
https://github.com/armbian/build/pull/1817
These users thanked the author igorpec for the post (total 3):
Moan (Fri Feb 28, 2020 3:00 pm) • tobetter (Fri Feb 28, 2020 3:49 pm) • SirZevo (Fri Feb 28, 2020 8:19 pm)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

SirZevo
Posts: 12
Joined: Tue Sep 17, 2019 4:17 pm
languages_spoken: English and Spanish
ODROIDs: ODROID-N2
Has thanked: 5 times
Been thanked: 1 time

Re: Armbian for Odroid N2

Unread post by SirZevo » Tue Mar 03, 2020 6:49 am

Removing "usb-xhci.tablesize=2" from boot.ini fixed it :D One more thing. I've a 16 GB eMMC and a 16 GB micro SD where everything is setup on my SD card. I want to install everything to the eMMC and have executed the following dd command. I do get an error about no space left, but I don't know why since the sizes should be the same... Any ideas?

/dev/mmcblk0 is eMMC and /dev/mmcblk1 is micro SD.

Code: Select all

sudo blkid -o list
device                     fs_type    label       mount point                    UUID
---------------------------------------------------------------------------------------------------------------------
/dev/mmcblk1p1             ext4                   /                              UUID1
/dev/zram0                 ext4       log2ram     /var/log                       UUID2
/dev/zram1                 swap                   [SWAP]                         UUID3
/dev/mmcblk1                                      (in use)                       
/dev/mmcblk0               ext4                   (not mounted)               

sudo dd if=/dev/mmcblk1 of=/dev/mmcblk0 conv=fsync
dd: writing to '/dev/mmcblk0': No space left on device
30535681+0 records in
30535680+0 records out
15634268160 bytes (16 GB, 15 GiB) copied, 1094.96 s, 14.3 MB/s
Last edited by SirZevo on Tue Mar 03, 2020 7:19 am, edited 1 time in total.

Moan
Posts: 33
Joined: Fri Feb 01, 2019 11:51 pm
languages_spoken: english
ODROIDs: N2, XU4
Has thanked: 5 times
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by Moan » Tue Mar 03, 2020 7:01 am

eMMc and SD card might have a different size by few MB, few KB, or even just few Bytes.
I have some SD cards from different manufacturers (or just different versions from the same) and they all differ with size. I also had problems restoring backups to different cards.

What I did to fix is, was using: https://github.com/Drewsif/PiShrink under Linux.
Basically, you would first need to backup your sd card to .img, use pishrink, burn the shrinked .img back to sd card, copy it over to eMMc and then resize main partitions to greater size as needed. I never had eMMc so I don't know how this process would look like. I believe you would have to select some range of sd card to copy (where all partitions are). Hope someone else can provide better solution for it.

SirZevo
Posts: 12
Joined: Tue Sep 17, 2019 4:17 pm
languages_spoken: English and Spanish
ODROIDs: ODROID-N2
Has thanked: 5 times
Been thanked: 1 time

Re: Armbian for Odroid N2

Unread post by SirZevo » Tue Mar 03, 2020 6:43 pm

Thanks for the tip! I'll try this later this week by backing up my SD card to .img on an external drive, boot up SD card and use PiShrink to compress the image on the external drive and then write the compressed image directly to my eMMC. I guess that should do the trick. Next time I do a clean install I'll probably boot up any OS on my SD, download the image I want to use and write it directly to the eMMC with dd.

nick793
Posts: 36
Joined: Mon Jun 24, 2019 9:35 pm
languages_spoken: english
ODROIDs: N2, GO
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Armbian for Odroid N2

Unread post by nick793 » Thu Mar 12, 2020 12:46 am

igorpec wrote:
Fri Feb 21, 2020 3:10 am
nick793 wrote:
Thu Feb 20, 2020 6:17 am
to make sure my software RAIDs don't get messed up.
On 5.4.y we don't have stable DVFS which is why I am a bit skeptical, the rest is OK or unknown. Our testing ability is small and we have to rely on your / community testings. I am not able to give you warranty for all features even kernel will formally be declared stable. Also nobody else, so you have to test and see. Its always good to backup the urgent stuff when doing such things ...
Gotcha, so I'm happy to report that I downloaded the latest armbian image and tried out testing and my RAIDs are blindingly fast compared to before - I did have to manually remove the usb-xhci.tablesize=2 from boot.ini first though. DVFS is still wonky but it looks like the folks over in the mainline kernel thread might have finally found a fix for that. Has something to do with compiling the CPU clock generator statically in the kernel rather than loading them in as a module it looks like.

viewtopic.php?f=176&t=33993&start=650#p285593

I'd submit a PR on armbian/build but tbh I don't know where this parameter lives so I don't want to mess your builds up.

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Thu Mar 12, 2020 3:59 am

>I'd submit a PR on armbian/build but tbh I don't know where this parameter lives so I don't want to mess your builds up.

https://github.com/armbian/build/blob/m ... nfig#L7194
and
https://github.com/armbian/build/blob/m ... nfig#L7234
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
odroid
Site Admin
Posts: 33686
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 511 times
Been thanked: 506 times
Contact:

Re: Armbian for Odroid N2

Unread post by odroid » Thu Mar 12, 2020 10:25 am

I think it should be a built-in driver instead of a module.

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Thu Mar 12, 2020 10:36 pm

These users thanked the author igorpec for the post (total 2):
odroid (Fri Mar 13, 2020 9:53 am) • brad (Fri Mar 13, 2020 2:37 pm)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

nick793
Posts: 36
Joined: Mon Jun 24, 2019 9:35 pm
languages_spoken: english
ODROIDs: N2, GO
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Armbian for Odroid N2

Unread post by nick793 » Thu Mar 12, 2020 11:38 pm

Thanks igorpec!!

nick793
Posts: 36
Joined: Mon Jun 24, 2019 9:35 pm
languages_spoken: english
ODROIDs: N2, GO
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Armbian for Odroid N2

Unread post by nick793 » Fri Mar 13, 2020 7:41 am

That did the trick! DVFS for the first time since I tried the 5.4.y kernel seems to be running properly. First boot after compiling 5.4.25 I have 2 cpu policies and the 4 big cores seem to be running at 1.7GHz and the 2 little cores at 1.9GHz!

Here's a 7z benchmark that just completed:

Code: Select all

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,6 CPUs LE)

LE
CPU Freq:  1700  1702  1701  1700  1701  1701  1702  1702  1702

RAM size:    3698 MB,  # CPU hardware threads:   6
RAM usage:   1323 MB,  # Benchmark threads:      6

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       5619   476   1148   5466  |     122048   560   1858  10408
23:       6064   520   1189   6179  |     115220   542   1838   9970
24:       5819   516   1212   6258  |     118110   564   1839  10367
25:       5561   536   1184   6350  |     115677   562   1831  10295
----------------------------------  | ------------------------------
Avr:             512   1183   6063  |              557   1842  10260
Tot:             535   1512   8162

Monitoring output recorded while running the benchmark:

Time       big.LITTLE   load %cpu %sys %usr %nice %io %irq   CPU  C.St.
18:35:37: 1704/1896MHz  1.90  12%   2%   5%   0%   3%   1%     °C  0/10
18:35:42: 1704/1896MHz  1.75   4%   1%   2%   0%   0%   0%     °C  0/10
18:35:47: 1704/1896MHz  1.61   1%   0%   0%   0%   0%   0%     °C  0/10
18:35:54: 1704/1896MHz  1.80  59%   2%  57%   0%   0%   0%     °C  0/10
18:35:59: 1704/1896MHz  2.14  89%   1%  87%   0%   0%   0%     °C  0/10
18:36:04: 1704/1896MHz  2.61  86%   0%  84%   0%   0%   0%     °C  0/10
18:36:10: 1704/1896MHz  2.88  88%   2%  85%   0%   0%   1%     °C  0/10
18:36:16: 1704/1896MHz  3.21  96%   2%  92%   0%   0%   0%     °C  0/10
18:36:21: 1704/1896MHz  3.03  72%   1%  69%   0%   0%   0%     °C  0/10
18:36:26: 1704/1896MHz  3.43  95%   3%  90%   0%   0%   1%     °C  0/10
18:36:32: 1704/1896MHz  3.64  98%   3%  94%   0%   0%   1%     °C  0/10
18:36:38: 1704/1896MHz  4.37  96%   2%  93%   0%   0%   0%     °C  0/10
One issue that seems to still be here is hwmon can't read temp data from the cpu temp sensors. Not sure if that's a kernel feature or something else in armbian though

SirZevo
Posts: 12
Joined: Tue Sep 17, 2019 4:17 pm
languages_spoken: English and Spanish
ODROIDs: ODROID-N2
Has thanked: 5 times
Been thanked: 1 time

Re: Armbian for Odroid N2

Unread post by SirZevo » Sat Mar 14, 2020 9:26 pm

I'm trying to disable UAS mode for specific external harddrives when using Armbian on N2, but it doesn't seem to work...

Method 1:

Code: Select all

#Add usb-storage.quirks=0123:3210:u at the end of setenv bootargs "..." in /boot/armbianEnv.txt when VID=0123 and PID=3210.
sed -i "s/{overscan}/{overscan} usb-storage.quirks=0123:3210:u/g" /boot/armbianEnv.txt
update-initramfs -u
reboot
Method 2:

Code: Select all

echo "options usb-storage quirks=0123:3210:u" > /etc/modprobe.d/disable_uas.conf
reboot
Any ideas?
Last edited by SirZevo on Fri Mar 20, 2020 7:56 am, edited 1 time in total.

SirZevo
Posts: 12
Joined: Tue Sep 17, 2019 4:17 pm
languages_spoken: English and Spanish
ODROIDs: ODROID-N2
Has thanked: 5 times
Been thanked: 1 time

Re: Armbian for Odroid N2

Unread post by SirZevo » Thu Mar 19, 2020 10:14 pm

Let's start over again with the basics regarding my last post. Am I right that usb_storage is built-in and not loaded as a module? If so, then method 2 would/should not work, as expected. Concerning method 1, let's say that the correct way to add boot parameters to disable UAS is adding usb-storage.quirks=0xVID:0xPID:u to setenv bootargs "..." in /boot/armbianEnv.txt, do I need to rebuild the boot image afterwards? Is running update-initramfs -u enough or do I need to rebuild boot image with something as cd /boot/; ./mkscr; instead?

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Fri Mar 20, 2020 3:10 am

Method setting via kernel boot parameters should work. You don't need to do anything else other then adding it to the boot script. Check kernel boot log afterwards if they were applied correctly ... as example:

[ 0.000000] Kernel command line: root=UUID=951bb1dc-5694-414d-98e1-04848ecc7098 rootfstype=ext4 rootwait console=tty1 consoleblank=0 video=mxcfb0:dev=hdmi,1920x1080m60,if=RGB24,bpp=32 coh
erent_pool=2M cma=256M@2G rd.dm=0 rd.luks=0 rd.lvm=0 raid=noautodetect pci=nomsi vt.global_cursor_default=0 loglevel=1 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

SirZevo
Posts: 12
Joined: Tue Sep 17, 2019 4:17 pm
languages_spoken: English and Spanish
ODROIDs: ODROID-N2
Has thanked: 5 times
Been thanked: 1 time

Re: Armbian for Odroid N2

Unread post by SirZevo » Fri Mar 20, 2020 7:55 am

Thank you very much, Igor! I'll try it out later this week. Have a good one! :)

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Sun Mar 22, 2020 12:30 am

Updated images and repository (apt update & upgrade)

current = 5.4.27
legacy = 4.19.216
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Sun Mar 22, 2020 12:33 am

SirZevo wrote:
Fri Mar 20, 2020 7:55 am
Thank you very much, Igor! I'll try it out later this week. Have a good one! :)
Due to enabling this https://github.com/armbian/build/blob/m ... n2.conf#L8 boot script is overwritten on each update. This is needed to ensure kernel family changing is working properly. FYI I hope this will be properly changed until next update ...
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

istanbulls
Posts: 163
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 60 times
Been thanked: 8 times
Contact:

Re: Armbian for Odroid N2

Unread post by istanbulls » Sun Mar 22, 2020 8:35 pm

igorpec wrote:
Sun Mar 22, 2020 12:30 am
Updated images and repository (apt update & upgrade)

current = 5.4.27
legacy = 4.19.216
The system does not boot after updating.

How should I change the boot.ini?

legacy = 4.19.216

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Mon Mar 23, 2020 8:39 am

I just updated legacy image (previous version from the download section) to latest, no problems: http://ix.io/2f0W and switched to current kernel Linux odroidn2 5.4.27-meson64 #20.02.5 SMP PREEMPT Sat Mar 21 15:17:05 CET 2020 aarch64 GNU/Linux http://ix.io/2f0X

Did you update some very old (testing) image?

How did you update? What is your installation?
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

istanbulls
Posts: 163
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 60 times
Been thanked: 8 times
Contact:

Re: Armbian for Odroid N2

Unread post by istanbulls » Mon Mar 23, 2020 9:17 pm

I updated version 4.19.213
apt update
apt upgrade
reboot

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Tue Mar 24, 2020 1:46 am

Can't break it no matter what I do. Can you supply content of /boot ... but probably it was just a combination of some old image, have you change something in the system?
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

mskwon
Posts: 1
Joined: Mon Sep 30, 2019 4:00 am
languages_spoken: english
ODROIDs: ODroid N2 4GB
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Armbian for Odroid N2

Unread post by mskwon » Sun Mar 29, 2020 6:03 am

I had the same problem with the boot not working after the upgrade. The upgrade overwrote my "set rootdev" line in my boot.ini so that it was directed towards the SD card instead of my previous setting which pointed towards a UUID entry.
These users thanked the author mskwon for the post:
istanbulls (Sun Mar 29, 2020 5:44 pm)

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Sun Mar 29, 2020 7:17 am

mskwon wrote:
Sun Mar 29, 2020 6:03 am
I had the same problem with the boot not working after the upgrade. The upgrade overwrote my "set rootdev" line in my boot.ini so that it was directed towards the SD card instead of my previous setting which pointed towards a UUID entry.
Thank this is a bug indeed. Thanks, will be fixed asap.
These users thanked the author igorpec for the post:
mskwon (Sun Mar 29, 2020 10:04 am)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

User avatar
igorpec
Posts: 499
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 19 times
Been thanked: 50 times
Contact:

Re: Armbian for Odroid N2

Unread post by igorpec » Tue Mar 31, 2020 8:06 am

mskwon wrote:
Sun Mar 29, 2020 6:03 am
I had the same problem with the boot not working after the upgrade. The upgrade overwrote my "set rootdev" line in my boot.ini so that it was directed towards the SD card instead of my previous setting which pointed towards a UUID entry.
I did few tests and it works for me. Can you describe the exact process to make this bug happen?
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 2 guests