Manjaro ARM for Odroid N2

vleewt
Posts: 2
Joined: Fri Apr 26, 2019 6:09 pm
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 3 times
Contact:

Manjaro ARM for Odroid N2

Unread post by vleewt » Fri May 31, 2019 5:01 pm

https://forum.manjaro.org/t/manjaro-arm ... d-n2/90115
Image

The kind folks at Manjaro ARM have released a 1st preview (KDE) of Manjaro ARM for the Odroid N2.
Cheers!
Last edited by vleewt on Wed Jun 05, 2019 2:06 am, edited 1 time in total.
These users thanked the author vleewt for the post (total 3):
XOR (Fri May 31, 2019 10:02 pm) • mxmilkb (Sat Jun 01, 2019 5:21 am) • odroid (Mon Jun 03, 2019 9:07 am)

elatllat
Posts: 1627
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 26 times
Been thanked: 84 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by elatllat » Mon Jun 03, 2019 3:37 am

I like it.

User avatar
poincare
Posts: 39
Joined: Sun Feb 08, 2015 9:41 am
languages_spoken: English, German, French
ODROIDs: ODROID XU4, ODROID C2, ODROID N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by poincare » Wed Jun 05, 2019 9:33 am

Is there a guide, or way, to get this dual booting with other distros (like Debian)?

elatllat
Posts: 1627
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1, N2
Has thanked: 26 times
Been thanked: 84 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by elatllat » Wed Jun 05, 2019 10:11 am

Just copy or edit your boot.ini to point at your root partition of choice.

User avatar
poincare
Posts: 39
Joined: Sun Feb 08, 2015 9:41 am
languages_spoken: English, German, French
ODROIDs: ODROID XU4, ODROID C2, ODROID N2
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by poincare » Wed Jun 12, 2019 11:27 am

poincare wrote:
Wed Jun 05, 2019 9:33 am
Is there a guide, or way, to get this dual booting with other distros (like Debian)?
Maybe it's easy for expert users, but as I mentioned ... just wondering if there is a guide or tutorial for beginning folks. I mean, doesn't the N2 have some boot loader or technology capable of handling two operating systems? (Is this petitboot?)

User avatar
tobetter
Posts: 4460
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: 71 times
Been thanked: 296 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by tobetter » Wed Jun 12, 2019 11:32 am

I have not tested all OS images if Petitboot can boot up, but Petitboot is brought up on N2 to support multi OS.

"Tapatalk wishes you to have fun with ODROID"


gsgs
Posts: 37
Joined: Thu Jul 11, 2019 5:14 pm
languages_spoken: english
ODROIDs: n2
Location: Germany
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by gsgs » Mon Aug 19, 2019 6:16 am

I spent hours on this and it seems that finally it worked.
But awfully slow. So I had to disconnect power.
Now it does not boot at all, or so slow that I couldn't wait
Maybe I did something wrong, I'm not experienced with such things.

I also tried it on the raspberry pi 4b , where it didn't boot ("no signal"),
but this could also be the TV, I give it 30% probability that it's the
TV not understanding what the pi wants or vice versa.

Bigjohn
Posts: 5
Joined: Thu Jul 18, 2019 1:42 am
languages_spoken: english, french
Has thanked: 0
Been thanked: 0
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by Bigjohn » Wed Aug 21, 2019 8:01 pm

Hello folks,
Been spending many hours trying to configure persistent wake on lan on my odroid n2 with Manjaro, with no success.

Code: Select all

sudo ethtool -s eth0 wol g -> sudo ethtool eth0 | grep Wake => Wake-on: g
Reboot -> sudo ethtool eth0 | grep Wake => Wake-on: d
Set WOL_DISABLE=N in /etc/default/tlp

Created /etc/systemd/system/wol@.service

Code: Select all

[Unit]
Description=Wake-on-LAN for %i
Requires=network.target
After=network.target

[Service]
ExecStart=/usr/bin/ethtool -s %i wol g
Type=oneshot

[Install]
WantedBy=multi-user.target
Then

Code: Select all

sudo systemctl start wol@eth0
sudo systemctl enable wol@eth0
Didn't work.

Created a cron with cronie

Code: Select all

@reboot /usr/bin/ethtool -s eth0 wol g
Didn't work either.

Can someone tell me if there's a trick or something I'm missing? (I'm a total beginner, but have been learning a lot since the last few days about services)

(Yes, I checked https://wiki.archlinux.org/index.php/Wake-on-LAN)

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Tue Dec 10, 2019 9:11 pm

Manjaro ARM released version 19.12.
https://forum.manjaro.org/t/manjaro-arm ... sed/114406

Features:
New packages from upstream and Manjaro ARM.
OEM setup now sets keyboard layout first and enables it during the rest of the setup.
XFCE 4.14
KDE Plasma 5.17
All images now support headless setup. Connect with ssh root@<ip> and you should see the OEM setup.
Added Pinebook Pro images.
Most devices now use the in-kernel bootsplash.
Odroid N2 now uses mainline kernel.

Manjaro ARM now uses a mainline kernel for the Odroid N2, being 5.4.2 at the time of writing.

To get the Odroid N2 (ON2) image, "please use manjaro-arm-installer to install it to an SD/eMMC card.".
That manjaro-arm-installer is however only available for X86_64 Manjaro installs, so you need that to create the image for the Odroid N2.
On Manjaro x86_64 installation, just install and run (from the terminal) manjaro-arm-installer and have a uSD card (or some such) ready.
More about that here: https://forum.manjaro.org/t/wiki-contri ... -arm/91053

It's not always smooth sailing with the Manjaro ARM Odroid N2 releases, release 19.08 works as-is, release 19.12 not tested yet.
And Petitboot doesn't seem to support Manjaro ARM yet.

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Fri Dec 13, 2019 6:02 am

I built the KDE version to eMMC but it doesn't start booting in the N2.

istanbulls
Posts: 137
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 43 times
Been thanked: 7 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by istanbulls » Fri Dec 13, 2019 7:39 am

mxmilkb wrote:
Fri Dec 13, 2019 6:02 am
I built the KDE version to eMMC but it doesn't start booting in the N2.
Do you use Petitboot?
If you use petitboot, it won't work. You must import the petitboot switch on the board to eMMC.

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Fri Dec 13, 2019 9:52 am

I tried both. When I had it switched to petitboot, petitboot booted but it was a black screen after selecting the eMMC install.

istanbulls
Posts: 137
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 43 times
Been thanked: 7 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by istanbulls » Fri Dec 13, 2019 6:39 pm

@mxmilkb
tobetter wrote:
Tue Nov 26, 2019 6:19 pm
@odroidn2user and @istanbulls, I've looked into Manajro image KDE and XFCE, I realize that they provide two initramfs - initramfs-linux.uimg and initramfs-linux.img and the default boot.ini points initramfs-linux.uimg which is not the format supported by the current Petitboot. The workaround for this is to replace it with initramfs-linux.imb. load mmc ${devno}:1 ${initrd_loadaddr} /initramfs-linux.uimg -> load mmc ${devno}:1 ${initrd_loadaddr} /initramfs-linux, at least this will bring Manjaro to Petitboot menu. I already fixed this in the next release which will come in this week.

Also if you encounter the black screen issue after a target OS is started, please do set display_autodetect as false. This works for me.

Please try it out and let me know, it would be nice if you can share the model of your display device.
posting.php?mode=quote&f=182&p=273613

can you try it, maybe it can solve your problem.

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Fri Dec 13, 2019 10:15 pm

I didn't have a working Manjaro X86_64 environment, nor room for it on other PCs I have around here, so installed Manjaro x86_64 on a really old, really slow pc.
I tried building the KDE image for the ON2 as well (not tried the installer), gotten quite a couple of errors and it resulted in an image quite a bit smaller than it should be - likely very broken.
Now, this might well be due to the archaic computer I tried it on (AMD E-350) or it could be that there are some issues with the Odroid image builder. I don't know.

So, perhaps, try building an image first, and verify it is actually a normal size compared with the 19.08 release, and keep an eye on errors during the image building.

Boot-wise... I found Manjaro ARM KDE 19.08 starts smoothly from uSD card, when the switch is switched to eMMC not to SPI.
I found Manjaro ARM didn't boot on the ON2 with SPI/Petitboot, no matter what I tried with screen detects, .uimg and .img boot.ini parameters changes, etc.
(Ymmv)

A fully updated Manjaro ARM KDE 19.08 still, however, uses the 4.x kernel, not the 5.4 kernel.
So to get the 5.4.2 kernel it seems you really have to install the new image.

Sadly, the Manjaro ARM project/maintainers don't post Odroid N2 images themselves anymore, and require you to build it using the manjaro-arm-tools.
It's wonderfull stuff for sure, fully automated image building using live packages from repositories, but my first try on my old-old PC was a fail.

But, don't give up too quick, Manjaro ARM is wonderful stuff once it gets going. Awesome, awesome, awesome.

I have not yet gotten around to gathering and supplying the info required by tobetter, and haven't tested any petitboot newer than the 20191127 dev release yet.
These users thanked the author odroidn2user for the post:
istanbulls (Sat Dec 14, 2019 12:24 am)

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sat Dec 14, 2019 7:30 pm

Now with Mesa 19.3.0.

Sav
Posts: 108
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 26 times
Been thanked: 6 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by Sav » Sat Dec 14, 2019 11:31 pm

Does the main line kernel from Manjaro supports opengl/gl es and Wayland drm?


Inviato dal mio iPad utilizzando Tapatalk

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 15, 2019 1:35 am

Well, once it boots, and we figure it out, we'll let you know.

The manjaro-arm-installer seems to have created a nice installation, it just doesn't boot...

(That said, the default installation will not do fully correct acceleration. Manjaro ARM and quite a few others are still working at that.)

Sav
Posts: 108
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 26 times
Been thanked: 6 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by Sav » Sun Dec 15, 2019 1:52 am

odroidn2user wrote:
Sun Dec 15, 2019 1:35 am
Well, once it boots, and we figure it out, we'll let you know.

The manjaro-arm-installer seems to have created a nice installation, it just doesn't boot...

(That said, the default installation will not do fully correct acceleration. Manjaro ARM and quite a few others are still working at that.)
:D
thanks

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 15, 2019 5:35 am

The current Manjaro ARM installer script creates a boot.ini that points to a non-existing .dtb device tree, correcting that, however, doesn't make it boot yet. So that appears to not be the only issue.

So, they recently switched from the 4.9 "specialty" kernel to the 5.4 mainline kernel, and it appears the Manjaro devs just haven't completely cleaned up the builder/installer yet and it appears they haven't actually tested the result on Odroid N2 quite yet. Which is strange, as the kernel 5.4 mainline for Odroid N2 was listed as a feature highlight of 19.12. But well, there you go.

Meanwhile, the Manjaro ARM 19.08 release continues to work admirably and continues updating/rolling nicely. Currently stays on kernel 4.9.177 though.

istanbulls
Posts: 137
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 43 times
Been thanked: 7 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by istanbulls » Sun Dec 15, 2019 9:16 am

I can't use it because Petitboot doesn't work.
But Armbian works fine, it may also work better (I think)

I installed the latte-dock, so Plasma Desktop was also activated.
I installed xfce4-goodie.
It has a nice desktop experience and the speed of Armbian. I advise.
I handle Armbian, CoreElec, LineageOS-16.0 32 bit trio.

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 15, 2019 5:09 pm

istanbulls wrote:
Sun Dec 15, 2019 9:16 am
I can't use it because Petitboot doesn't work.
But Armbian works fine, it may also work better (I think)

I installed the latte-dock, so Plasma Desktop was also activated.
I installed xfce4-goodie.
It has a nice desktop experience and the speed of Armbian. I advise.
I handle Armbian, CoreElec, LineageOS-16.0 32 bit trio.
That does seem to be a nice trio of OSes for the N2!!
I have not tried Armbian yet (there is a bit of a learning curve even finding where to download the most recent image) and I kinda expect it not to have recent software / quick software updates as it is based on debian?
And indeed, Manjaro has to be installed on the eMMC or uSD and booted using the SPI-switch set to eMMC.

---

I've posted on the Manjaro forum about the error in the boot.ini. That appears to already have been updated in a previous version. Which means the version you get from the normal Manjaro software installer is not actually the most recent one. I'm now guessing we Odroid N2 users have to use the GIT version from Strit to get the most recent version, as described from here:
https://forum.manjaro.org/t/wiki-contri ... -arm/91053
Last edited by odroidn2user on Sun Dec 15, 2019 5:43 pm, edited 1 time in total.

Sav
Posts: 108
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 26 times
Been thanked: 6 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by Sav » Sun Dec 15, 2019 5:34 pm

There is an Ubuntu version of armbian too


Inviato dal mio iPad utilizzando Tapatalk
These users thanked the author Sav for the post:
istanbulls (Sun Dec 15, 2019 6:56 pm)

istanbulls
Posts: 137
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 43 times
Been thanked: 7 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by istanbulls » Sun Dec 15, 2019 6:59 pm

You can download it here: https://dl.armbian.com/odroidn2/
I suggest you try it, you won't regret it. :)

there is no good or bad for the experience. ;)

edit:
I wanted to use Manjaro very much and I worked hard, lost a lot of time.
Petitboot matters to me.
An Armbian-fast system, maybe faster than Manjaro, maybe the same as Manjaro. I can not tell for sure.
I liked Manjaro's KDE Plasma very much and now I am having the same experience with latte-dock in Armbian.
These users thanked the author istanbulls for the post:
odroidn2user (Sun Dec 15, 2019 7:29 pm)

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 15, 2019 7:23 pm

Some instructions from Strit for anyone reading here:
--
To install Manjaro ARM Installer on Manjaro x64, run sudo pacman -S manjaro-arm-installer. That will install the newest release. After installing, please reboot to make sure everything is in order.
Also please remove the temp folder from any previous attempts: sudo rm -R /var/tmp/manjaro-arm-installer.
--
Also, it was tested and the only change was the new kernel and the new .dtb.
So it appears I used the wrong package, with an older script.

Update: the new/current script (1.2.9-1) still creates an image pointing to the meson64 dtb, so that doesn't work.
Last edited by odroidn2user on Sun Dec 15, 2019 7:58 pm, edited 1 time in total.
These users thanked the author odroidn2user for the post:
istanbulls (Sun Dec 15, 2019 7:32 pm)

Sav
Posts: 108
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 26 times
Been thanked: 6 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by Sav » Sun Dec 15, 2019 7:41 pm

odroidn2user wrote:
Sun Dec 15, 2019 7:23 pm
Some instructions from Strit for anyone reading here:
--
To install Manjaro ARM Installer on Manjaro x64, run sudo pacman -S manjaro-arm-installer. That will install the newest release. After installing, please reboot to make sure everything is in order.
Also please remove the temp folder from any previous attempts: sudo rm -R /var/tmp/manjaro-arm-installer.
--
Also, it was tested and the only change was the new kernel and the new .dtb.
So it appears I used the wrong package, with an older script.
So, does N2 boot the image made with the latest version of manjaro-arm-installer?

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 15, 2019 7:59 pm

Nope. Still points to the meson64 dtb. And manually correcting the boot.ini to the correct dtb doesn't make it work on my Odroid N2.

Update: yeah, this isn't going to work for me, it seems. I am probably doing something wrong somewhere, but am not capable of finding that out. So until things change, this is about it from me, as to release 19.12.

Did I mention yet that release 19.08 works perfectly fine?
These users thanked the author odroidn2user for the post:
Sav (Sun Dec 15, 2019 8:18 pm)

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

Re: Manjaro ARM for Odroid N2

Unread post by igorpec » Mon Dec 16, 2019 12:27 am

I have not tried Armbian yet
From a quick scan, it will look the same. XFCE is XFCE while the user land differs. Arch vs Debian. Applications (Office, Chromium, ...) are 3rd party and again the same. Armbian has many optimisations and caching on OS level, while I don't know if Manjaro had implemented anything to speed things up. I tried it few times and it felt sluggish on slower hw where Armbian still runs good, but IHMO Manjaro gives more into the outfit, looks more polished and has slightly better UX.

Armbian on the other hand has more specialised low level know-how and remain focused mainly on (selection of) ARM single board computers. Armbian maintain own kernels for many platforms but major Armbian advantage lies in a build system where most of the development went to https://github.com/armbian/build It can also deliver up 2 date (Debian based) Linux distribution (not just image and board firmware) from sources (in 7 different Debian/Ubuntu based user spaces). Builds on supported hw are manually tested and (untested) updates are produced daily ... On this particular hardware you can switch between kernels (4.9.y - testing 5.4.y) without the need to re-image anything.

My opinion is biased, so I will not expand this further. 8-)

Just give it a try.
These users thanked the author igorpec for the post (total 2):
istanbulls (Mon Dec 16, 2019 12:45 am) • odroidn2user (Mon Dec 16, 2019 5:28 am)
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Mon Dec 16, 2019 5:28 am

igorpec wrote:
Mon Dec 16, 2019 12:27 am
Armbian on the other hand has more specialised low level know-how and remain focused mainly on (selection of) ARM single board computers. Armbian maintain own kernels for many platforms but major Armbian advantage lies in a build system where most of the development went to https://github.com/armbian/build It can also deliver up 2 date (Debian based) Linux distribution (not just image and board firmware) from sources (in 7 different Debian/Ubuntu based user spaces). Builds on supported hw are manually tested and (untested) updates are produced daily ... On this particular hardware you can switch between kernels (4.9.y - testing 5.4.y) without the need to re-image anything.
Sounds good. I'll give it a go soon!

Not sure about technical optimisation, but Manjaro have a really well configured and good looking KDE environment going. It's a pleasure to see and use. And the rolling updates (from Arch) are working very well.

Back to Armbian: Bionic Legacy Desktop is probably a good way to start? (Looking for desktop usage.)
https://dl.armbian.com/odroidn2/
Last edited by odroidn2user on Mon Dec 16, 2019 5:45 am, edited 1 time in total.

istanbulls
Posts: 137
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 43 times
Been thanked: 7 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by istanbulls » Mon Dec 16, 2019 5:41 am

odroidn2user wrote:
Mon Dec 16, 2019 5:28 am

Bionic Legacy Desktop is probably a good way to start? (Looking for desktop like usage.)
https://dl.armbian.com/odroidn2/
I am alternating with Ubuntu-Mate.
But I use Bionic Legacy Desktop the most, I'm very pleased.
A comfortable and overall seamless desktop experience for me

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Mon Dec 16, 2019 5:46 am

istanbulls wrote:
Mon Dec 16, 2019 5:41 am
A comfortable and overall seamless desktop experience for me
That sounds good to me!

istanbulls
Posts: 137
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 43 times
Been thanked: 7 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by istanbulls » Mon Dec 16, 2019 6:02 am

It's going to be irrelevant, but by the way, I wanted to say it. :)
I'm watching the matches of my favorite team from the receiver.
I'm following other matches in the browser with bein connect. on the one hand while listening to music on the other hand I follow twitter and forums I'm interested. (As I do now)

All Linux OSs I use, including Manjaro, are also slowing down after a while. Armbian is a bit better but in fact it doesn't make much difference.
How can you do better !?

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Mon Dec 16, 2019 4:00 pm

istanbulls wrote:
Fri Dec 13, 2019 6:39 pm
can you try it, maybe it can solve your problem.
I tried it, with and without ".uimg/.img", also with display_autodetect false. It acts like there's no eMMC attached, boot looping / monitor cycling.

I upgraded to the latest petitboot, no difference.

I also tried again going from 19.08 older n2 kernel to linux-aarch64, along with again manually editing /boot/boot.ini dtb path, no joy.

I've just created an eMMC again using the manjaro-arm-installer with this fix and it still fails.

The install generator now exists which plonks the components together, but I'm not sure how much more joined up things have actually become in the last couple of months as the problem is essentially the same. Is the right uboot setup being used? Do the load addresses relate to Manjaro or the SoC? Should it be .img, or .uimg, or no extension?

How to describe the problem better than "it doesn't boot"? :)

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Mon Dec 16, 2019 5:53 pm

<Strit[m]> Yeah, to get it to work the last time, we had to make a text_offset patch to the kernel: https://gitlab.manjaro.org/manjaro-arm/ ... fset.patch
<Strit[m]> Looking through that patch. Seems I need to update that patch for 5.4. The lines does not match up anymore...
<Strit[m]> I will update it tonight and build a new kernel with it.

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

Re: Manjaro ARM for Odroid N2

Unread post by igorpec » Mon Dec 16, 2019 6:35 pm

mxmilkb wrote:
Mon Dec 16, 2019 4:00 pm
Is the right uboot setup being used? Do the load addresses relate to Manjaro or the SoC? Should it be .img, or .uimg, or no extension?
It's obviously a Manjaro bug since Armbian boots just fine with stock and modern kernel. There are not many options how you will boot the SoC ...

Modern kernel support is ofc far so one should lower expectations anyway. Regardless of the wallpaper/skin/display manager/distro release numbers ...
ARMBIAN - follow on Twitter
linux for ARM development boards with user friendly development tools

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sat Dec 21, 2019 7:11 pm

mxmilkb wrote:
Mon Dec 16, 2019 4:00 pm
I upgraded to the latest petitboot, no difference.

I also tried again going from 19.08 older n2 kernel to linux-aarch64, along with again manually editing /boot/boot.ini dtb path, no joy.
Well, petitboot won't boot Manjaro, that's for sure, no matter how you set the boot.ini.

But switching the SPI/EMMC switch to EMMC should make it boot.
I only tried uSD card, but Manjaro 19.08 with the switch set to EMMC should really boot just fine.

Also for 19.08 you don't need to change the boot.ini or anything else.
The Manjaro ARM 19.08 image that you can download is good to go as-is.
It's also the most recent Odroid N2 image the Manjaro ARM team supplied, and it works fine.

https://forum.manjaro.org/t/manjaro-arm ... ased/99031

As to the version 19.12:
Quite a few Odroid N2 users found 19.12 doesn't boot, and voiced it. Strit and others are looking at it and working on it.
It seems to be a regression where kernel 5.3 apparently worked, but then when 5.4 came around, it didn't boot anymore. And due to the rolling nature, the 5.4 kernel goes into installations automatically... So, that's two issues preventing the 19.12 version to boot.

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Sun Dec 22, 2019 4:51 am

igorpec wrote:It's obviously a Manjaro bug since Armbian boots just fine with stock and modern kernel. There are not many options how you will boot the SoC ...
I think we all know it's a Manjaro bug. If there's not many options, well that's the reason I ask here, maybe someone can assist :)
igorpec wrote:Modern kernel support is ofc far so one should lower expectations anyway.
I base my expectations on this post and the one after it.

odroidn2user wrote:Well, petitboot won't boot Manjaro, that's for sure, no matter how you set the boot.ini. But switching the SPI/EMMC switch to EMMC should make it boot.
To confirm we are on the same page, why do you say that? As long as it is understood that the .uimg is for uboot.
odroidn2user wrote:I only tried uSD card, but Manjaro 19.08 with the switch set to EMMC should really boot just fine. ...
Yes, because it's using the 4.x kernel. (Maybe I have not explained, or you have missed my gist, but that's not what I'm interested in.)
odroidn2user wrote:Quite a few Odroid N2 users found 19.12 doesn't boot, and voiced it. Strit and others are looking at it and working on it.
It seems to be a regression where kernel 5.3 apparently worked, but then when 5.4 came around, it didn't boot anymore. And due to the rolling nature, the 5.4 kernel goes into installations automatically... So, that's two issues preventing the 19.12 version to boot.
I'm chatting with Strit right now in #manjaro-arm on Freenode IRC, and they, and apparently the Manjaro ARM person who has an N2 (if that is not Strit themself, as they might be using the organisational/royal "we"), don't know that it's not working.
<milkii> Strit[m]: to confirm regarding the N2 build, is the .img for Petitboot and the .uimg for uboot?
<Strit[m]> milkii: The .img is the regular initramfs, the uimg is the one needed to boot the N2 specifically.
<milkii> Strit[m]: thanks, though what is the specific difference? the Petitboot developer said the .uimg is not the format required by Petitboot. that is why i asked if it is for uboot.
<Strit[m]> <milkii "Strit: thanks, though what is th"> It's something specific to the Odroid N2. I haven't seen other devices needing it. But it's the uboot for the Odroid N2 that needs it.
<milkii> Strit[m]: who can i ask to find out the specific reason?
<Strit[m]> Probably Hardkernel, the manufactorer of the board.
<milkii> Heh, I'm trying to act as a go-between with folk on the HK ODROID forum to help them understand what in either the Manjaro installer script or linux-aarch64 PKGBUILD is doing the thing that make mainline not boot.
<milkii> Strit[m]: so where is the .uimg generated?
<milkii> I know there was a n2 specific uboot for the previous non-working mainline images, but for the new one there's no package https://gitlab.manjaro.org/manjaro-arm/ ... r=uboot+n2
<Strit[m]> Well, we got mainline booting again with the latest linux-aarch64 package. 🙂
<Strit[m]> The .uimg is generated by the `uboot-odroid-n2` package if I recall.
<milkii> Strit[m]: but no-one can reproduce it :)
<Strit[m]> reproduce what? The kernel?
<milkii> a working booting mainline Manjaro build for the n2
<Strit[m]> This generates the .uimg: https://archlinuxarm.org/packages/aarch ... -uimg.hook
<Strit[m]> It should work with kernels above 5.4.4 from our repo and the installer script from git.
<milkii> the thread I linked to last time (or rather, over a few threads on that forum) has a number of folk saying they can't get it working and have given up
<milkii> viewtopic.php?f=176&t=33993 viewtopic.php?f=182&t=33873 - search those for manjaro, or viewtopic.php?p=275487 is the specific one
<milkii> though there will be people confusing the official 4.x kernel Manjaro as being mainline and working, or those who don't know what rolling release is, etc.
<milkii> ugh, I don't think you can search threads without being logged in on that forum.
<milkii> Strit[m]: thanks v much for the help btw
<Strit[m]> Yeah, I have seen the threads.
<Strit[m]> But we got it working on 5.3 back when that was released, but the patch we used for it didn't work for 5.4, so we had to change that, which we did with 5.4.4.
Edit: there was also the recent linux-aarc64 Manjaro package change - https://gitlab.manjaro.org/manjaro-arm/ ... 6aeb5945e0 - but I thought I had rebuilt the install a second time (as noted in the post above) on eMMC after both the fixes. I'm running through the install generator script again just now, this time just trying a minimal install rather than a Plasma one.

Edit2: no, that didn't work. I tried creating a fresh install on both eMMC and microSD, no joy. This also included changing .uimg to .img in boot.ini for petitboot.
Last edited by mxmilkb on Wed Dec 25, 2019 1:24 am, edited 1 time in total.
These users thanked the author mxmilkb for the post:
odroidn2user (Sun Dec 22, 2019 4:23 pm)

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 22, 2019 4:27 pm

mxmilkb wrote:
Sun Dec 22, 2019 4:51 am
odroidn2user wrote:Well, petitboot won't boot Manjaro, that's for sure, no matter how you set the boot.ini. But switching the SPI/EMMC switch to EMMC should make it boot.
To confirm we are on the same page, why do you say that? As long as it is understood that the .uimg is for uboot.
Well, based on my hours of trying to get Manjaro 19.08 to boot using Petitboot. The versions up to november's dev release of petitboot didn't boot Manjaro 19.08 with kernel 4.x. So, petitboot and manjaro a no go. Manjaro 19.08 and the SPI-switch set to EMMC are a go.
mxmilkb wrote:
Sun Dec 22, 2019 4:51 am
odroidn2user wrote:I only tried uSD card, but Manjaro 19.08 with the switch set to EMMC should really boot just fine. ...
Yes, because it's using the 4.x kernel. (Maybe I have not explained, or you have missed my gist, but that's not what I'm interested in.)
Well, I'm firmly in the 'something that actually works' category, so that is the 4.x category. I'd be happy with a 5.4 kernel if it works, but seeing as hardware acceleration isn't a 'something that actually works' thing yet, the actual benefits of 5.4 are probably not something you actually see.
mxmilkb wrote:
Sun Dec 22, 2019 4:51 am
odroidn2user wrote:Quite a few Odroid N2 users found 19.12 doesn't boot, and voiced it. Strit and others are looking at it and working on it.
It seems to be a regression where kernel 5.3 apparently worked, but then when 5.4 came around, it didn't boot anymore. And due to the rolling nature, the 5.4 kernel goes into installations automatically... So, that's two issues preventing the 19.12 version to boot.
I'm chatting with Strit right now in #manjaro-arm on Freenode IRC, and they, and apparently the Manjaro ARM person who has an N2 (if that is not Strit themself, as they might be using the organisational/royal "we"), don't know that it's not working.
That's the petitboot you are referencing now, because Strit sure knew Manjaro 19.12 wasn't booting at all, as I've clearly and repeatedly communicated that to him.
mxmilkb wrote:
Sun Dec 22, 2019 4:51 am
Edit: there was also the recent linux-aarc64 Manjaro package change - https://gitlab.manjaro.org/manjaro-arm/ ... 6aeb5945e0 - but I thought I had rebuilt the install a second time (as noted in the post above) on eMMC after both the fixes. I'm running through the install generator script again just now, this time just trying a minimal install rather than a Plasma one.

Edit2: no, that didn't work. I tried both eMMC and microSD. This also included changing .uimg to .img in boot.ini for petitboot.
It seems we are getting close!
Did you test with the SPI switch to EMMC? Or "only" test with Petitboot?

Also: Perhaps Hardkernel should sponsor the Manjaro ARM team an Odroid N2 or 2?

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 22, 2019 5:16 pm

Audio... Manjaro ARM (at least the 4.9 kernel series) comes with working audio, but PulseAudio doesn't come with a working select option to choose which output to output the audio to.

To get PulseAudio to identify the output options, in the file /etc/pulse/default.pa below/in the section '### Load audio drivers statically' add these three lines:

Code: Select all

load-module module-alsa-sink device="hw:0,0" sink_name=hdmi_out sink_properties="device.description='HDMI Out' device.icon_name='video-display'"
load-module module-alsa-sink device="hw:0,1" sink_name=line_out sink_properties="device.description='Audio Jack' device.icon_name='audio-headphones'"
load-module module-alsa-sink device="hw:0,2" sink_name=spdif_out sink_properties="device.description='SPDIF Out' device.icon_name='audio-speakers'"
If you are wondering: the SPDIF Out option is based on some of the GPIO pins, it doesn't have a connector by default, obviously.

Also, to prevent PulseAudio to switch off the audio when idle (which causes a nice and annoying 'plop' sound) when it stops playing audio...
In this section: '### Automatically suspend sinks/sources that become idle for too long'
Comment out this line by adding a # to the start, like:

Code: Select all

#load-module module-suspend-on-idle
And reboot.

Todo: add references. Someone figured this out, wasn't me. Kudo's to them!

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Sun Dec 22, 2019 11:37 pm

After I explained in IRC that a fresh install from using the script didn't work;
<Strit[m]> milkii: Don't know then. I only know that dodgejcr tested an image I made recently and that booted fine. I don't have an N2 myself.
We're getting on the same page now at least :)

The problem lies either in a) the loader memory addresses in boot.ini, b) the setup of the Arch Linux ARM uboot-odroid-n2 package, or c) the setup of the Manjaro ARM linux-aarch64 package (maybe this TEXT_OFFSET patch).
Last edited by mxmilkb on Mon Dec 23, 2019 7:31 am, edited 1 time in total.

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Mon Dec 23, 2019 1:36 am

mxmilkb wrote:
Sun Dec 22, 2019 11:37 pm
The problem lies either in a) the loader memory addresses in boot.ini, b) the setup of the Arch Linux ARM uboot-odroid-n2 package, or c) the setup of the Manjaro ARM linux-aarch64 package (maybe this TEXT_OFFSET patch).
Ah, ok. Well, that should be easily fixed soon then! ;)

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Mon Dec 23, 2019 8:16 am

It's can't be b) because the .img doesn't work with petitboot. I guess though that the boot.ini does come from the Arch uboot-odroid-n2 package..

Arch/Manjaro boot.ini:

Code: Select all

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
load mmc ${devno}:1 ${dtb_loadaddr} /dtbs/amlogic/meson-g12b-odroid-n2.dtb
load mmc ${devno}:1 ${loadaddr} /Image
load mmc ${devno}:1 ${initrd_loadaddr} /initramfs-linux.img
fdt addr ${dtb_loadaddr}

boot.ini from Armbian:

Code: Select all

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}
Biggest difference between this and what the Manjaro install script uses from the Arch ARM uboot package is that the kernel image is zipped and there is an extra location and uncompress step.


boot-odroid-n2-mainline.ini from Armbian:

Code: Select all

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x01080000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/uImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson-g12b-odroid-n2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
This has setenv loadaddr "0x1B00000" but doesn't use loadaddr. The image is not a compressed zImage but a uImage. k_addr points to this uImage, functioning as "loadaddr" in the Arch/Manjaro boot.ini. k_addr is 0x01080000.

I tried settings the Manjaro boot.ini loadaddr to that, no change (I have tried this before, but had forgotten the logic of why since that time so didn't mention it before).

I guess in Armbian terms the "u" in uImage and uInitrd means uncompressed?
Last edited by mxmilkb on Wed Dec 25, 2019 1:21 am, edited 6 times in total.

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Mon Dec 23, 2019 8:43 am

Some more pieces..


Armbian uboot: https://github.com/armbian/build/tree/m ... t-odroidn2

Here is where Armbian uboot is prepared: https://github.com/armbian/build/blob/m ... -g12b.conf with meson64_common.inc.

Some paths are patched in https://github.com/hardkernel/u-boot/bl ... 2-common.h


Arch/Manjaro uboot-odroid-n2 patches the same file but in different ways...


N.b. the Manjaro linux-aarch64 package 0004-text_offset.patch mentioned previously was apparently changed to get Manjaro briefly working for kernel 5.3, with:

Code: Select all

+++ b/arch/arm64/Makefile
-TEXT_OFFSET := 0x00080000
+TEXT_OFFSET := 0x01080000
...
-#error TEXT_OFFSET must be less than 2MB
+//#error TEXT_OFFSET must be less than 2MB

https://github.com/torvalds/linux/blob/ ... ooting.rst describes the boot process..

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Tue Dec 24, 2019 6:54 pm

Led lights..
OK, so, when the Odroid N2 loads the kernel, the blue led starts blinking.
And unless you do something, it will continue blinking.
Which is Highly irritating.

So, as a long time linux user you'd think rc.local. And you'd be right, except Manjaro doesn't do rc.local.

The solution (somewhat ugly) is here:
https://wiki.archlinux.org/index.php/Sy ... ot_process?
and
https://wiki.odroid.com/odroid-n2/appli ... ed_control

As a good systemd user, you.... create a service, like:

File: /etc/systemd/system/myscript.service

Code: Select all

[Unit]
Description=My script
 
[Service]
ExecStart=/usr/bin/my-script
 
[Install]
WantedBy=multi-user.target

Then create the script, file: /usr/bin/my-script

Code: Select all

#!/bin/bash
echo none > /sys/class/leds/blue\:heartbeat/trigger
You might have to set execution permission to the /usr/bin/my-script file.
That's a:

Code: Select all

chmod a+x /usr/bin/my-script
Then as root user enable the service:

Code: Select all

systemctl enable myscript.service
Alternatively, you could use the blue led as an emmc usage indicator:
echo emmc > /sys/class/leds/blue\:heartbeat/trigger

And you could adapt the above copy/paste example to your liking, like use descriptive names.

User avatar
tobetter
Posts: 4460
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: 71 times
Been thanked: 296 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by tobetter » Fri Dec 27, 2019 4:19 am

Anyone has succeeded to boot Manjaro installed by manjaro-arm-installer?
I can see that it installs the mainline kernel 5.4.6 that does not boot whatever I change the boot.ini with the same address that I am using for 5.4.6 for Debian/Ubuntu.

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Fri Dec 27, 2019 7:06 am

I don't believe so.

Looking at the CoreELEC boot.ini;

Code: Select all

setenv loadaddr 0x11000000
setenv dtb_mem_addr 0x1000000
setenv uenv_addr 0x13000000

if load mmc ${mmc_dev}:1 ${uenv_addr} config.ini; then env import -t ${uenv_addr} $filesize; fi
...
load mmc ${mmc_dev}:1 ${loadaddr} kernel.img
load mmc ${mmc_dev}:1 ${dtb_mem_addr} dtb.img
fdt addr ${dtb_mem_addr}
if test "${heartbeat}" = "0"; then fdt set /leds/blueled linux,default-trigger "none"; fi
booti ${loadaddr} - ${dtb_mem_addr}
bootm
The .dtb is 69787 bytes large, which in hex is 0x001109B

How does Debian/Ubuntu 5.4.6 do it?

User avatar
tobetter
Posts: 4460
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: 71 times
Been thanked: 296 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by tobetter » Fri Dec 27, 2019 12:34 pm

mxmilkb wrote:
Fri Dec 27, 2019 7:06 am
I don't believe so.

Looking at the CoreELEC boot.ini;

Code: Select all

setenv loadaddr 0x11000000
setenv dtb_mem_addr 0x1000000
setenv uenv_addr 0x13000000

if load mmc ${mmc_dev}:1 ${uenv_addr} config.ini; then env import -t ${uenv_addr} $filesize; fi
...
load mmc ${mmc_dev}:1 ${loadaddr} kernel.img
load mmc ${mmc_dev}:1 ${dtb_mem_addr} dtb.img
fdt addr ${dtb_mem_addr}
if test "${heartbeat}" = "0"; then fdt set /leds/blueled linux,default-trigger "none"; fi
booti ${loadaddr} - ${dtb_mem_addr}
bootm
The .dtb is 69787 bytes large, which in hex is 0x001109B

How does Debian/Ubuntu 5.4.6 do it?
I've made boot Manjaro image with this boot.ini but screen does not come.

Code: Select all

ODROIDN2-UBOOT-CONFIG

# Default Console Device Setting
setenv condev "console=ttyAML0,115200n8"   # on both

# Boot Args
setenv bootargs "root=/dev/mmcblk${devno}p2 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 clk_ignore_unuse
d"

# Set load addresses
setenv dtb_loadaddr "0x20000000"
setenv loadaddr "0x1080000"
setenv initrd_loadaddr "0x3080000"

# Load kernel, dtb and initrd
load mmc ${devno}:1 ${loadaddr} /Image
load mmc ${devno}:1 ${dtb_loadaddr} /dtbs/amlogic/meson-g12b-odroid-n2.dtb
load mmc ${devno}:1 ${initrd_loadaddr} /initramfs-linux.uimg
#fdt addr ${dtb_loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
Most commands in the stock boot.ini are for Linux 4.9.y and they would not work for 5.x kernel yet if so Manjaro is pretty much ahead of us. So I've removed many of them and changed dtb_loaded as 0x20000000 then I can have Manjaro shell prompted after Petitboot.
These users thanked the author tobetter for the post (total 2):
mxmilkb (Fri Dec 27, 2019 4:06 pm) • odroidn2user (Sun Dec 29, 2019 4:46 pm)

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Fri Dec 27, 2019 5:14 pm

Thanks! That is working now :D

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sat Dec 28, 2019 11:48 pm

Do I understand correctly that by placing the above boot.ini content in a newly created manjaro image, it boots successfully / normally?

mxmilkb
Posts: 53
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 16 times
Been thanked: 13 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by mxmilkb » Sun Dec 29, 2019 11:40 am

odroidn2user wrote:
Sat Dec 28, 2019 11:48 pm
Do I understand correctly that by placing the above boot.ini content in a newly created manjaro image, it boots successfully / normally?
Yup.
These users thanked the author mxmilkb for the post:
odroidn2user (Sun Dec 29, 2019 4:45 pm)

odroidn2user
Posts: 85
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: Manjaro ARM for Odroid N2

Unread post by odroidn2user » Sun Dec 29, 2019 6:15 pm

mxmilkb wrote:
Sun Dec 29, 2019 11:40 am
odroidn2user wrote:
Sat Dec 28, 2019 11:48 pm
Do I understand correctly that by placing the above boot.ini content in a newly created manjaro image, it boots successfully / normally?
Yup.
Nope. So far, I created a new installation with the manjaro-arm-installer, and completely replaced the existing boot.ini with the boot.ini as shown above by tobetter. Didn't boot.

I'm trying again, on a different uSD card...

Update: Still no. Blue light doesn't start blinking, manjaro doesn't boot.

Also, the boot.ini from tobetter has a linebreak that shouldn't be there with the d" on a new line.
So be careful with the copy/paste and correct.

But still, no.
tobetter wrote:
Fri Dec 27, 2019 12:34 pm
Most commands in the stock boot.ini are for Linux 4.9.y and they would not work for 5.x kernel yet if so Manjaro is pretty much ahead of us. So I've removed many of them and changed dtb_loaded as 0x20000000 then I can have Manjaro shell prompted after Petitboot.
I tested a newly installed Manjaro ARM on a uSD (which previously worked with manjaro arm) with the new boot.ini from tobetter, without the emmc in the system, and no go. I tested with the SPI switch set to MMC, so as not to use the petitboot thing.

Hmm... With SPI-switch set to SPI/petitboot, the blue light does blink as if it is loading the new manjaro install. But then petitboot doesn't work with my monitor, so who knows what happens... Tested on my TV: No, the blue led light might start blinking, but it doesn't actually result in any visual output.

So: No for me, but perhaps ymmv.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 4 guests