odroid n2 mainline kernel

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

odroid n2 mainline kernel

Postby colgatetotal » Thu Sep 05, 2019 1:37 pm

Hi
I have managed to boot kernel from linux-aarch64-rc package on odroid-n2, by following [utl]https://wiki.gentoo.org/wiki/Odroid_N2[/url]. Like this:
$this->bbcode_second_pass_code('', '
pacman -Syu linux-aarch64-rc linux-aarch64-rc-headers
cd /boot
mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n 5.3.0-rc7-1-ARCH -d Image uImage
')
and changing /boot/boot.ini to:
$this->bbcode_second_pass_code('', '
ODROIDN2-UBOOT-CONFIG

setenv bootargs "root=/dev/mmcblk1p2 rootwait rw console=ttyAML0,115200 clk_ignore_unused"
setenv dtb_loadaddr "0x1000000"
fatload mmc ${devno}:1 ${dtb_loadaddr} dtbs/amlogic/meson-g12b-odroid-n2.dtb
fatload mmc ${devno}:1 0x01080000 uImage
bootm 0x1080000 - ${dtb_loadaddr}/
')
Here is log: https://pastebin.com/0dLGNeLi
There are two problems:
- only 1G of memory is visible. i have 4G board.
- on board ethernet is not working.
Any idea how to fix this?
Thank you
colgatetotal
 
Posts: 1
Joined: Thu Sep 05, 2019 1:09 pm

Re: odroid n2 mainline kernel

Postby woody » Thu Sep 19, 2019 9:53 pm

Did you make any progress on fixing these issues? What is the setting in boot.ini for max cores?
woody
 
Posts: 88
Joined: Tue Dec 11, 2012 2:40 pm

Re: odroid n2 mainline kernel

Postby milk » Thu Oct 24, 2019 1:08 pm

ODROID-N2 forum folk have had mainline builds working since around the release of 5.3. I've not had the time to try linux-aarch64 5.3.7 yet though I don't see how much could have changed at that end.

https://forum.odroid.com/viewtopic.php?p=269824#p269824
milk
 
Posts: 4
Joined: Fri Oct 04, 2019 4:09 pm

Re: odroid n2 mainline kernel

Postby woody » Thu Oct 24, 2019 1:50 pm

Well, I don't understand everything that's going on in that thread, but it appears that most people are tweaking different releases to try to solve various problems. I don't want to get into kernel development and testing. I'm just looking for a reliable mainline kernel that won't break anything. Do you think 5.3+ is there yet?
woody
 
Posts: 88
Joined: Tue Dec 11, 2012 2:40 pm

Re: odroid n2 mainline kernel

Postby milk » Thu Oct 24, 2019 8:50 pm

Here is a build script that apparently works. That post was updated when things changed, so some posts after it are about resolved issues. The only patch now, mentioned in the script, is for USB3 and is pending upstream. Everything else should work fine now (apart from hardware decode of h.265). Newer posts to the thread are mostly the like of GPIO edgecase etc or PEBKAC level issues :)

AFAICT, from the reports of those with the knowledge and time, 5.3+ should be there, and AFAIU*, the archlinuxarm linux-aarch64 package should just work.

Strit or someone the Manjaro ARM team was trying this but not getting any UART output. Aside from the archlinuxarm uboot-odroid-n2, they tried working on a uboot-odroid-n2-mainline, to no avail.

* naturally my understanding does have a blindspot given I don't understand where the break/what the blocker is atm.
milk
 
Posts: 4
Joined: Fri Oct 04, 2019 4:09 pm

Re: odroid n2 mainline kernel

Postby milk » Fri Dec 27, 2019 7:20 am

I can confirm mainline Manjaro ARM install is now working on the N2 when using the new.boot.ini provided over on the HK forum.
milk
 
Posts: 4
Joined: Fri Oct 04, 2019 4:09 pm

Re: odroid n2 mainline kernel

Postby windozupdat3 » Sat Dec 28, 2019 2:58 pm

Could anyone suggest how to adapt the boot.ini on archlinux arm in order to boot mainline?
windozupdat3
 
Posts: 43
Joined: Tue Aug 29, 2017 9:07 am

Re: odroid n2 mainline kernel

Postby summers » Sun Dec 29, 2019 12:30 pm

To get the default arch working, need to find the problem.

What I'd suggest is clone the package build: https://archlinuxarm.org/packages/aarch64/linux-aarch64-rc/files which can be found on https://github.com/archlinuxarm/PKGBUILDs

Then on a working kernel, grab the /proc/config.gz; and in the PKGBUILD directory replace the config file. Then try a $this->bbcode_second_pass_code('', 'makepkg') in the directory. If the config is from a different version of the kernel, you'll probably have to correct the differences. This you'll be able to see by comparing the config.gz to the original one in PKGBUILD directory.

Once built, hopefully you'll be able to install the package made.

Now if that package works, suggests it only needs the kernel configured differently - which is often the problem when memory isn't detected.

And once that is identified, the try and talk the arm arch maintainers to accept the change.
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 5 guests