Armbian for Odroid N2

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

Re: Armbian for Odroid N2

Unread post by igorpec » Thu Aug 22, 2019 1:38 am

- added minimal image (≈ 500Mb) Debian Buster image.
- tested AC wireless +BT drivers for RTL 88x2BU
- added direct download mirrors (scroll down)

https://www.armbian.com/odroid-n2/
These users thanked the author igorpec for the post (total 4):
CI6N0Z (Thu Aug 22, 2019 6:01 pm) • elatllat (Fri Aug 23, 2019 10:34 am) • pask876 (Mon Aug 26, 2019 5:50 pm) • Moan (Mon Aug 26, 2019 11:48 pm)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

pask876
Posts: 6
Joined: Thu Jun 06, 2019 4:37 am
languages_spoken: english, italiano
ODROIDs: N2
Has thanked: 6 times
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by pask876 » Mon Aug 26, 2019 5:59 pm

I have been using armbian buster image for almost a week: it's working well, although I see some errors in the dmesg in particular relating to zram0. For example:

Code: Select all

  EXT4-fs warning (device zram0): ext4_dirent_csum_verify:353: inode #11: comm find: No space for directory leaf checksum. Please run e2fsck -D.
[44771.938370] EXT4-fs error (device zram0): ext4_readdir:196: inode #11: comm find: path /var/log/lost+found: directory fails checksum at offset 4096 

system version is:

Code: Select all

pask@droid:~$  uname -a
Linux droid 4.9.185-odroidn2 #41 SMP PREEMPT Sat Jul 20 14:09:25 CEST 2019 aarch64 GNU/Linux

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

Re: Armbian for Odroid N2

Unread post by igorpec » Tue Aug 27, 2019 12:18 am

> although I see some errors in the dmesg in particular relating to zram0

On some older kernels zram had troubles but I think this error is safe to ignore. Worst case disable zram enhancement in /etc/defaults/armbian-zram
These users thanked the author igorpec for the post:
pask876 (Wed Aug 28, 2019 3:06 pm)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

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

Re: Armbian for Odroid N2

Unread post by Moan » Thu Aug 29, 2019 9:59 am

Hi. Does file "boot.ini" gets updated with armbian updates?

I'm asking because my /boot/boot.ini file doesn't have changes from:
viewtopic.php?p=264047#p264047
usb-xhci.tablesize=2
An I looking at the right file? Should I put this change manually?

I'm keep experiencing USB3.0 Hard Drive errors during rsync jobs :/ Pretty annoying as this device was supposed to be my NAS replacement.

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

Re: Armbian for Odroid N2

Unread post by igorpec » Thu Aug 29, 2019 3:22 pm

> Hi. Does file "boot.ini" gets updated with armbian updates?

By default no. We can force updating but package has to be build with a special option.

We keep a copy of ini here:

https://github.com/armbian/build/blob/m ... oid-n2.ini (add this value right now)

> An I looking at the right file? Should I put this change manually?

Yes, just change /boot/boot.ini and reboot. Don't know if we have to adjust default IRQs as well ... ?
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

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

Re: Armbian for Odroid N2

Unread post by Moan » Fri Aug 30, 2019 6:48 am

Thank you for your detailed answers, igorpec.

I posted about this issue in a separated topic, and @elatllat proposed to try switching to kernel 5.3 using the following method:
viewtopic.php?p=267058#p267058

Code: Select all

#install the best archive tool
apt install -y p7zip-full

# backup
mkdir -p ~/backup/boot
mv /media/boot/* ~/backup/boot/

# switch
7z x ~/boot.7z -o/media/boot/
7z x ~/modules.7z -o/lib/modules/

# if using a sdcard
#perl -pi -e 's/blk0/blk01/g' /media/boot/boot.ini

# apply 
sync
shutdown -r now
I have some questions you might know answers to:
1. If I decide to try it (of course after full backup of the OS image), should I replace "/media/boot/boot.ini" to "/boot/boot.ini" for compatibility with armbian?
2. Do you think it would boot fine after switching to 5.3 kernel, or are you maybe aware of some issues reported?
3. Would "apt upgrade" switch back to kernel 4.19 if I had 5.3 working?

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

Re: Armbian for Odroid N2

Unread post by igorpec » Fri Aug 30, 2019 2:03 pm

1. If I decide to try it (of course after full backup of the OS image), should I replace "/media/boot/boot.ini" to "/boot/boot.ini" for compatibility with armbian?
2. Do you think it would boot fine after switching to 5.3 kernel, or are you maybe aware of some issues reported?
3. Would "apt upgrade" switch back to kernel 4.19 if I had 5.3 working?
1. I don't know.
2. No warranty. It might, but it also might fully break. 5.3.y is not near end usage.
3. No.

Once development kernel landed to Armbian (not yet at this point - I tried once but it didn't work), then at least switching is on the end-user level - from a menu. But if your new testing kernel doesn't boot, you are on your own to get it back to live.
These users thanked the author igorpec for the post:
Moan (Wed Sep 04, 2019 4:46 am)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

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

Re: Armbian for Odroid N2

Unread post by Moan » Thu Sep 12, 2019 10:03 am

Hello.
I'd like to ask if a kernel with USB fixes for Odroid N2 is already available in the Nightly Armbian build?
It's supposed to be: 4.9.190-62
For me it shows:
root@odroidn2:~# uname -a
Linux odroidn2 4.9.190-odroidn2 #10 SMP PREEMPT Mon Sep 9 02:25:29 CEST 2019 aarch64 GNU/Linux
I'm asking, because Odroid also updated boot.ini again (removing usb-xhci.tablesize=2), but it seems to not be updated in https://github.com/armbian/build/blob/m ... oid-n2.ini yet. That's why I'm also not sure about the kernel, however the build date suggest it would already have fixes included.

Greetings.

gandalf33
Posts: 4
Joined: Wed Oct 23, 2019 6:42 pm
languages_spoken: english
ODROIDs: N2-2GB
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by gandalf33 » Wed Oct 23, 2019 6:50 pm

tobetter wrote:
Wed Jul 17, 2019 2:18 am
ralph_DE wrote:
Wed Jul 17, 2019 1:28 am
Hi,
I installed the Armbian OS on my N2 and can boot from SD. Then I used armbian-config to copy bootloader and system to an EMMC. But it does not boot from the EMMC with the SD removed. The copy/update the bootloader command does not help either.
Is it possible to flash the OS image directly to the EMMC and will it boot then?
What can I do?

Ralph
You can download the Armbian OS image *.img to your SD card, boot from uSD as Armbian installed and eMMC memory card is attached.
From the command line, this command will flash the OS image to your eMMC.

Code: Select all

$ sudo dd if=<Armbian/OS/image/file/in/uSD> of=/dev/mmclbk0 conv=fsync
$ sync
Once everything is done, you can remove uSD and try to boot from eMMC.

If this way does not work, Petitboot also can help you to boot from eMMC no matter eMMC has the bootloader or not.
viewtopic.php?f=182&t=33873#p260670
I'm trying that, buut I'm having an issue. If I boot with only armbian SDcard, I have access to armbian, but if I plug the eMMC after boot, I do not seem to get it, /dev/mmclbk0 is not there
If I put both, then it boots automaticaly on eMMC, I can see both, but is "sudo dd if=<Armbian/OS/image/file/in/uSD> of=/dev/mmclbk0 conv=fsync" supposed to be lauched from running ubuintu ?

Just to give some background, my goal is to boot the eMMC in Armbian, because my home automation only runs on debian, and also does lots of disk io, and is notorious to kill sdcard prematurely

User avatar
tobetter
Posts: 4106
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 46 times
Been thanked: 207 times
Contact:

Re: Armbian for Odroid N2

Unread post by tobetter » Wed Oct 23, 2019 7:22 pm

gandalf33 wrote:
Wed Oct 23, 2019 6:50 pm
tobetter wrote:
Wed Jul 17, 2019 2:18 am
ralph_DE wrote:
Wed Jul 17, 2019 1:28 am
Hi,
I installed the Armbian OS on my N2 and can boot from SD. Then I used armbian-config to copy bootloader and system to an EMMC. But it does not boot from the EMMC with the SD removed. The copy/update the bootloader command does not help either.
Is it possible to flash the OS image directly to the EMMC and will it boot then?
What can I do?

Ralph
You can download the Armbian OS image *.img to your SD card, boot from uSD as Armbian installed and eMMC memory card is attached.
From the command line, this command will flash the OS image to your eMMC.

Code: Select all

$ sudo dd if=<Armbian/OS/image/file/in/uSD> of=/dev/mmclbk0 conv=fsync
$ sync
Once everything is done, you can remove uSD and try to boot from eMMC.

If this way does not work, Petitboot also can help you to boot from eMMC no matter eMMC has the bootloader or not.
viewtopic.php?f=182&t=33873#p260670
I'm trying that, buut I'm having an issue. If I boot with only armbian SDcard, I have access to armbian, but if I plug the eMMC after boot, I do not seem to get it, /dev/mmclbk0 is not there
If I put both, then it boots automaticaly on eMMC, I can see both, but is "sudo dd if=<Armbian/OS/image/file/in/uSD> of=/dev/mmclbk0 conv=fsync" supposed to be lauched from running ubuintu ?
You should not attach eMMC after power on. Two reasons, 1) your eMMC or N2 can be damaged and 2) eMMC is not removable so it won't be detected. For the command 'dd' to flash the image, you should run Ubuntu or other Linux distro.
In order to prevent the boot from eMMC for your case, 1) using Petitboot but you would not need it once Armbian is installed and 2) you can try to run dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=1. This will remove the bootloader from eMMC so next N2 will fetch the bootloader from uSD and you can flash an image to eMMC.

gandalf33
Posts: 4
Joined: Wed Oct 23, 2019 6:42 pm
languages_spoken: english
ODROIDs: N2-2GB
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by gandalf33 » Wed Oct 23, 2019 7:41 pm

Ooops with everything been hotplug these days, I wrongly assumed eMMC would too. Fortunatly, it seems ok;. Use you 2) trick to wipe bootloader from eMMC and yes, I was able to boot on sdCard with boot installed !

Gettingt ready to flash eMMC ! Will update (hopefully shortly !)

gandalf33
Posts: 4
Joined: Wed Oct 23, 2019 6:42 pm
languages_spoken: english
ODROIDs: N2-2GB
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by gandalf33 » Wed Oct 23, 2019 8:20 pm

I can now boot with both sd and emmc from sdard, that worked.

- tried sudo dd if=<Armbian/OS/image/file/in/uSD> of=/dev/mmclbk0 conv=fsync, that commands work rebooting however screen stays blank

- tried nand-sata-install, I can get it do install stuff on eMMC, but I get erros been displayed. The first ones happen too fast, but a second wave I have been able to capture :

sed: can't read /mnt/nand-sata-install.lf4BQP/bootfs/boot/boot.com: no such file and directory
Error while creating U-Boot loader image with mkimage

gandalf33
Posts: 4
Joined: Wed Oct 23, 2019 6:42 pm
languages_spoken: english
ODROIDs: N2-2GB
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by gandalf33 » Tue Oct 29, 2019 6:30 pm

Go myself an USB - eMMC adapter, flashed the image onto eMMC, workiing absolutely great !

elatllat
Posts: 1567
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 24 times
Been thanked: 64 times
Contact:

Re: Armbian for Odroid N2

Unread post by elatllat » Wed Oct 30, 2019 11:14 am

tobetter wrote:
Wed Oct 23, 2019 7:22 pm
...You should not attach eMMC after power on. ...
Sometimes I boot from sdcard, and plug in the eMMC during uboot before the kernel so I can use both when my adapter is missing :lol: reckless.

grapenose
Posts: 13
Joined: Mon Sep 23, 2019 8:54 am
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by grapenose » Thu Oct 31, 2019 12:39 pm

sensei73 wrote:
Wed Aug 07, 2019 4:07 am
It will be awesome if Kodi was available for Armbian n2!!!
+1

NOBL
Posts: 1
Joined: Thu Oct 31, 2019 11:42 pm
languages_spoken: english
ODROIDs: N2 (was a mistake)
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2 (does not boot from SD)

Unread post by NOBL » Thu Oct 31, 2019 11:52 pm

Hi

I can't get the N2 to boot with anything from the SD card.
Neither Armbian Buster default nor Armbian Buster minimal nor Armbian Stretch nor ArchLinux for Odroid N2.
It simply won't boot. The red light is continuously on and that's it.
The only OS that works is the Ubuntu 18.04 Mate edition on eMMC which came from ameridroid.
In that case the blue LED is blinking indicating an OS was booted and runs.

I am about to send this to the bin or back to them because it does not boot from SD card, at all.
Booting SPI (PetitBoot) works fine and the output is on the TV screen but I can't change any
of the settings, at all. The version seems to be from April 2019 (20190416 or so).

Yes, I flashed the SD card with etcher and the validation was OK.

It is hard to get an eMMC in Switzerland except if you want several hundreds of those chips at once.
I got an eMMC writer but don't want to overwrite the Ubuntu Mate OS.
That is the only idea I have left in my brain.
I don't have a UART or serial console bought or connected.

Perhaps somebody has more and other ideas than me, please share those!
Thank you

User avatar
tobetter
Posts: 4106
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 46 times
Been thanked: 207 times
Contact:

Re: Armbian for Odroid N2 (does not boot from SD)

Unread post by tobetter » Fri Nov 01, 2019 12:30 am

NOBL wrote:
Thu Oct 31, 2019 11:52 pm
Hi

I can't get the N2 to boot with anything from the SD card.
Neither Armbian Buster default nor Armbian Buster minimal nor Armbian Stretch nor ArchLinux for Odroid N2.
It simply won't boot. The red light is continuously on and that's it.
The only OS that works is the Ubuntu 18.04 Mate edition on eMMC which came from ameridroid.
In that case the blue LED is blinking indicating an OS was booted and runs.

I am about to send this to the bin or back to them because it does not boot from SD card, at all.
Booting SPI (PetitBoot) works fine and the output is on the TV screen but I can't change any
of the settings, at all. The version seems to be from April 2019 (20190416 or so).

Yes, I flashed the SD card with etcher and the validation was OK.

It is hard to get an eMMC in Switzerland except if you want several hundreds of those chips at once.
I got an eMMC writer but don't want to overwrite the Ubuntu Mate OS.
That is the only idea I have left in my brain.
I don't have a UART or serial console bought or connected.

Perhaps somebody has more and other ideas than me, please share those!
Thank you
What's the vendor/model of your SD card?

If your ODROID-N2 does not have a hardware issue for SD card slot, you would be able to run and see if you have /dev/mmcblk1* in the shell of Petitboot.

Code: Select all

# ls -l /dev/mmcblk0*
If you have Petitboot (20190416), you can try the latest version 20191020-rc1.
viewtopic.php?f=182&t=33873&hilit=petit ... 50#p270894

congo
Posts: 6
Joined: Fri Oct 11, 2019 5:04 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by congo » Fri Nov 01, 2019 3:02 am

Maybe "stupid" info to repeat but please keep in mind one thing as written in https://wiki.odroid.com/odroid-n2/softw ... t_sequence

The boot selector switch on ODROID-N2 which can select the boot media between SPI flash memory and eMMC/SD card is only affected on power cycle

So changing from SPI to eMMC/SD you have to take power cord out and in N2.

Congo

ResdexR6
Posts: 6
Joined: Thu Oct 24, 2019 4:27 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by ResdexR6 » Fri Nov 01, 2019 5:14 am

Hi,
I am currently running mevericks Debian Buster on my N2.
I was wondering, if switching to Armbian Buster would give me any benefits in performance.
The N2 is used for nextcloud.
Does somebody have advice for me?

bumbum
Posts: 4
Joined: Wed Jan 09, 2019 6:41 pm
languages_spoken: English,Samoan,Norsk
ODROIDs: Odroid XU4
Odroid N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Armbian for Odroid N2

Unread post by bumbum » Fri Nov 01, 2019 6:37 pm

I have found the Armbian version to be more stable then any other os (including the HK's stock image) ive used on my N2 (to date)
Ive run it at 100% (overclocked to 1.992 GHz ) or almost 48 hours now and it has no tripped, stalled or crashed and its remained stable at 40C under full load as the server cabinet is exposed to the Norwegian cold for cooling :-)
Furthermore i highly recommend using Monitorix to keep track of ur device its good if u use it as a headless server as i do xP

big thumbs up to the Armbian crew :-D
These users thanked the author bumbum for the post:
igorpec (Fri Nov 01, 2019 8:18 pm)

ResdexR6
Posts: 6
Joined: Thu Oct 24, 2019 4:27 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by ResdexR6 » Mon Nov 04, 2019 3:13 am

I am running the armbian buster headless image.
I have connected 2 SSDs via USB adapter but they are not recognized.
Any advice would be great.

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

Re: Armbian for Odroid N2

Unread post by igorpec » Mon Nov 04, 2019 3:37 am

ResdexR6 wrote:
Mon Nov 04, 2019 3:13 am
I am running the armbian buster headless image.
I have connected 2 SSDs via USB adapter but they are not recognized.
Any advice would be great.
If this is not a power problem (power disks separately), then proceed here.

viewtopic.php?f=181&t=36681

This problem is shared:
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

ResdexR6
Posts: 6
Joined: Thu Oct 24, 2019 4:27 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by ResdexR6 » Tue Nov 05, 2019 6:59 am

Thanks for the fast reply,
It works now. It was User-Error sorry...
If I try to install via Armbian-Config -> Software -> Softy ,
It says loading install cloud and returns to the Softy menu.
e.g. NextcloudPi, PiHole.
Do I have to install the complete firmware package before I can install them?

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

Re: Armbian for Odroid N2

Unread post by igorpec » Tue Nov 05, 2019 7:41 am

ResdexR6 wrote:
Tue Nov 05, 2019 6:59 am
Thanks for the fast reply,
It works now. It was User-Error sorry...
If I try to install via Armbian-Config -> Software -> Softy ,
It says loading install cloud and returns to the Softy menu.
e.g. NextcloudPi, PiHole.
Do I have to install the complete firmware package before I can install them?
We use official installer in both cases
https://github.com/armbian/config/blob/ ... #L538-L544
https://github.com/armbian/config/blob/ ... ware#L1825

Perhaps you have some unfinished installation, try running

apt -f install before
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

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

Re: Armbian for Odroid N2

Unread post by Moan » Tue Nov 05, 2019 7:59 am

@igorpec, are there any news regarding OMV5 BETA on Armbian Buster? I remember it fails to install after some OMV update, but no news about it for the past 2 months :(

EDIT:
Yay! It worked following the tutorial from: https://forum.openmediavault.org/index. ... ted-SBC-s/

I don't know why it failed by armbian-config, but now I have it all running.

ResdexR6
Posts: 6
Joined: Thu Oct 24, 2019 4:27 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by ResdexR6 » Thu Nov 07, 2019 6:47 am

igorpec wrote:
Tue Nov 05, 2019 7:41 am
We use official installer in both cases
https://github.com/armbian/config/blob/ ... #L538-L544
https://github.com/armbian/config/blob/ ... ware#L1825

Perhaps you have some unfinished installation, try running

apt -f install before
After I ran apt -f install before I got something like couldn´t resolve last installation.

I installed NCP via the curl installer and everything worked.

Maybe if somebody has time to look at this buster-image, he can investigate the armbian-config menu.
I also can not change the keyboard layout and locale via armbian-config.
Not a big problem and all other features I tested, except software installation via Softy, worked.
I did not find the right place for bug reports on the armbian-forum.
Runs great so far. Thanks

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

Re: Armbian for Odroid N2

Unread post by igorpec » Fri Nov 08, 2019 2:50 am

> I did not find the right place for bug reports on the armbian-forum.

Just write down the exacts steps that lead you to this problem.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

ResdexR6
Posts: 6
Joined: Thu Oct 24, 2019 4:27 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Armbian for Odroid N2

Unread post by ResdexR6 » Mon Nov 11, 2019 6:26 am

After a new clean flash, I can reproduce only this:
sudo armbian-config -> personal -> change keyboard layout stays at us.

At the moment I have a problem with my 2 SSD I am trying to run as a btrfs raid 1.
I can format sda1 as ext4 or btrfs single. Then I edit /etc/fstab and after reboot it is mounted.
Same works with sdb1.
When I do the following:
mkfs.btrfs -d raid1 -m raid1 /dev/sda1 /dev/sdb1

Formatting works and I can get details about it when running btrfs filesystem show.
I can mount /dev/sda1.
But when I edit /etc/fstab and reboot. (With the UUID I get from blkid)
I can´t ssh and the odroid is not shown in my network with arp-scan -l.
I guess it is stuck at boot process.
I have to manually edit the sd card on my laptop to clean the /etc/fstab.
Unplug the 2 SSD and boot.
Then sfdisk --delete both devices.

I also noticed, that when I try to umount dev/sda1 (which is btrfs array1)
I get Kernel Errors:
e.g:
Message from syslogd@localhost at Nov 10 02:08:50 ...
kernel:[ 99.336849@1] Internal error: Oops: 96000005 [#1] PREEMPT SMP

Message from syslogd@localhost at Nov 10 02:08:50 ...
kernel:[ 99.872134@1] Process btrfs-transacti (pid: 2259, stack limit = 0xffffffc0c760c000)

Message from syslogd@localhost at Nov 10 02:08:50 ...
kernel:[ 99.877113@1] Stack: (0xffffffc0c760f530 to 0xffffffc0c7610000)

Message from syslogd@localhost at Nov 10 02:08:50 ...
kernel:[ 99.883006@1] f520: ffffffc0c760f600 ffffff80091cc818

Message from syslogd@localhost at Nov 10 02:08:50 ...
kernel:[ 99.890979@1] f540: ffffffc0ba222180 0000000000000000 ffffffc0c9691008 0000000000000000

Should I give up and try to make a mdadm Array using ext4?
I have tried it a few times now.
I tried:
UUID=... /media/mnt btrfs defaults 0 0
and
UUID=... /media/mnt btrfs device=/dev/sda1,device=/dev/sdb1 00

I am not sure If I have the correct line in /etc/fstab or what exactly I am doing wrong.
I´d be grateful for help.

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

Re: Armbian for Odroid N2

Unread post by igorpec » Mon Nov 11, 2019 7:16 am

ResdexR6 wrote:
Mon Nov 11, 2019 6:26 am
sudo armbian-config -> personal -> change keyboard layout stays at us.
Try typing: setupcon after you change it.

This is indeed broken. Not sure if there is a problem in our wrapper or upstream. It will be fixed asap. Until then you can follow any Debian/Ubuntu guide how to change this.
ResdexR6 wrote:
Mon Nov 11, 2019 6:26 am
btrfs raid 1.
Armbian is not maintaining BTRFS driver. They do: https://btrfs.wiki.kernel.org/index.php/Main_Page

But it could be possible that you will need to wait for a modern kernel support (5.5.y ->) to use this feature properly.
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

elatllat
Posts: 1567
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 24 times
Been thanked: 64 times
Contact:

Re: Armbian for Odroid N2

Unread post by elatllat » Mon Nov 11, 2019 11:31 am

ResdexR6 wrote:
Mon Nov 11, 2019 6:26 am
...armbian...btrfs...
I'm guessing the kernel in Armbian is branched from the Odroid branch of the Amlogic branch of 4.9 which has known btrfs bugs, and is so far from mainline it may not be worth fixing.
5.3.10 is usable now for server applications (lacks VPU support).

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

Re: Armbian for Odroid N2

Unread post by igorpec » Mon Nov 11, 2019 4:03 pm

elatllat wrote:
Mon Nov 11, 2019 11:31 am
ResdexR6 wrote:
Mon Nov 11, 2019 6:26 am
...armbian...btrfs...
I'm guessing the kernel in Armbian is branched from the Odroid branch of the Amlogic branch of 4.9 which has known btrfs bugs
Yes, there is no full blown alternative than 4.9.y for now ... 5.3.y is getting usable. We will provide instant (test) upgrade soon.
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