N2 kernel

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

N2 kernel

Unread post by nadenislamarre » Thu Feb 14, 2019 1:17 am

Hi,

i would like to initialize the N2 project for batocera.linux (http://batocera-linux.xorhub.com)

1. kernel
I don't find the linux kernel branch on https://github.com/hardkernel/linux
has somebody a git branch for the kernel do use ?

2. uboot/boot blobs
To boot, i need to prepare the sdcard, where can i found the uboot, the blobs binaries and the description of the bytes to copy them ?
something similar to that : https://github.com/hardkernel/u-boot/bl ... _fusing.sh

3. gpu
has somebody a link to gpu drivers on userspace i should use for this board ?
can somebody confirm that gbm is recommanded ?

crashoverride
Posts: 4716
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 191 times
Contact:

Re: N2 kernel

Unread post by crashoverride » Thu Feb 14, 2019 1:29 am


User avatar
tobetter
Posts: 4554
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: 79 times
Been thanked: 318 times
Contact:

Re: N2 kernel

Unread post by tobetter » Thu Feb 14, 2019 2:33 am

@nadenislamarre,
For GPU driver, https://github.com/hardkernel/buildroot ... meson_mali, which is the part of Buildroot for ODROID-N2.

Wiki pages for Kernel and Uboot building and still needs some correction and working on it.
https://wiki.odroid.com/odroid-n2/softw ... ing_u-boot
https://wiki.odroid.com/odroid-n2/softw ... ing_kernel

You can flash the U-boot using the same script and same way as previous ODROIDs.

User avatar
tobetter
Posts: 4554
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: 79 times
Been thanked: 318 times
Contact:

Re: N2 kernel

Unread post by tobetter » Thu Feb 14, 2019 3:15 pm

I've done to run Travis CI to build U-boot.

So if you don't need to build the U-boot at all for your project, you just need to download the tarball from Hardkernel's U-boot repository.
https://github.com/hardkernel/u-boot/releases

This is the first release for ODROID-N2.
https://github.com/hardkernel/u-boot/re ... 2-1.tar.gz

jasonhurd
Posts: 6
Joined: Wed Sep 07, 2016 11:52 am
languages_spoken: english
ODROIDs: C2 : H2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: N2 kernel

Unread post by jasonhurd » Thu Feb 14, 2019 5:44 pm

nadenislamarre wrote:
Thu Feb 14, 2019 1:17 am
i would like to initialize the N2 project for batocera.linux
Awesome!! I can't wait.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Thu Feb 14, 2019 8:43 pm

@crashoverride
@tobetter
thanks. i think i've all the information to build an image (compilation in progress).
i'll test it once i'll receive the board, hopefully next week.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Sat Feb 16, 2019 3:09 am

is there a way to set the screen resolution at boot (in boot.ini like for the xu4 ? https://github.com/batocera-linux/batoc ... 4/boot.ini)
what about changing the resolution on gbm once the odroid n2 is started ? (or like for the xu4, you remain in the resolution you booted with (or i've never found how) ?)

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Sun Feb 17, 2019 6:44 pm

ok, i've found via the wiki the buildroot boot.ini file answering to some questions.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Mon Feb 18, 2019 9:21 pm

i received my n2 today.
nothing happend at boot with my image.
i guess my boot.ini is wrong.

i tried to debug with https://wiki.odroid.com/odroid-n2/hardware uart connectors by plugin my uart connector.
smoke get out from my usb uart module.
my computer has nothing. i hope my n2 has nothing. i've still the red light when plugging the power.
but i'm unable to debug the boot.

User avatar
tobetter
Posts: 4554
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: 79 times
Been thanked: 318 times
Contact:

Re: N2 kernel

Unread post by tobetter » Mon Feb 18, 2019 9:31 pm

nadenislamarre wrote:
Mon Feb 18, 2019 9:21 pm
i received my n2 today.
nothing happend at boot with my image.
i guess my boot.ini is wrong.

i tried to debug with https://wiki.odroid.com/odroid-n2/hardware uart connectors by plugin my uart connector.
smoke get out from my usb uart module.
my computer has nothing. i hope my n2 has nothing. i've still the red light when plugging the power.
but i'm unable to debug the boot.
Congratulation!!

Could you try to boot from SPI?

Just slide the switch which is located on the front between the micro USB connector and eMMC on your board to "SPI"?
And connect 1080P HDMI display before supplying the DC power.
If your board is not damaged, the blue LED will still blink (heartbeat) and your display will show you Petitboot.
Then you can exit to Linux shell from Petitboot.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Mon Feb 18, 2019 9:40 pm

my image is here is somebody have a working uart.
the boot.ini in the image is wrong. you've to replace it by one available next to the image.
https://batocera-linux.xorhub.com/upgrades/odroidn2/

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Mon Feb 18, 2019 9:51 pm

nice i see a blue light and a shell on tv. good point.

User avatar
mad_ady
Posts: 7348
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 350 times
Been thanked: 254 times
Contact:

Re: N2 kernel

Unread post by mad_ady » Tue Feb 19, 2019 2:49 am

@tobetter: it might be worth it to look into adding a custom menu in petitboot to run a script that fscks all supported filesystems or that can wget and overwrite a kernel/modules/boot.ini/dtb in case they get corrupted. I may play with it.

User avatar
tobetter
Posts: 4554
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: 79 times
Been thanked: 318 times
Contact:

Re: N2 kernel

Unread post by tobetter » Tue Feb 19, 2019 3:01 am

mad_ady wrote:
Tue Feb 19, 2019 2:49 am
@tobetter: it might be worth it to look into adding a custom menu in petitboot to run a script that fscks all supported filesystems or that can wget and overwrite a kernel/modules/boot.ini/dtb in case they get corrupted. I may play with it.
I was waiting for your message regarding Petitboot. Hehe...

That's a very similar feature that I wish to do so with Petitboot, the feature what I have in mind is to create a Petitboot plugin and upload to ODROID download server, such that when Petitboot start and the network can access the server, plugins can be discovered and a user can select a plugin such as installation or fixing some file systems as you said. Due to the lack of SPI size, the ramdisk is very limited as of today so not many utilities are available with it, but I guess fundamental tools should be included and the user can verify or recover the ODROID-N2 with SPI only without any other storage. That's my wish.

Currently, I am playing with some other stuff so not able to pay attention to Petitboot but keep thinking about the features. How they can be achieved.

For the record, the current problem of Petitboot is that it can boot the OS installed in MMC storage if its root file system is generic file system like ext2/3/4 or others but cannot boot from ramdisk type. This seems to be **kexec** problem on ARM64 and has not fixed yet. Once this problem can be solved.

Sorry for the long reply and appreciate your interesting...

User avatar
mad_ady
Posts: 7348
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 350 times
Been thanked: 254 times
Contact:

Re: N2 kernel

Unread post by mad_ady » Tue Feb 19, 2019 3:56 am

We should probably split this and discuss petitboot/recovery/flashing in a separate thread.
You're saying petitboot can't kexec to a kernel that has a ramdisk rootfs?
In what cases would that be helpful?
I'm thinking that petitboot's initrd should only have busybox (a minimal busybox maybe) that supports wget/curl (http or ftp should be light enough) and it can download and chroot into a different/bigger rootfs that has binutils and support binaries. You can then start a new ncurses gui with options to repair existing installation or flash something on sd/emmc (or drop to a shell).
I'll look into petitboot plugins, see how they're made.

Hopefully there won't be many more recommendations to reflash a broken system (this isn't windows after all) and users can go through recovery and collect diagnostic data even without media attached.

back2future
Posts: 271
Joined: Sun Jul 23, 2017 3:19 pm
languages_spoken: english
Has thanked: 12 times
Been thanked: 6 times
Contact:

Re: N2 kernel

Unread post by back2future » Tue Feb 19, 2019 5:49 am

With 4GB RAM it could be fun running live versions (being .iso file, e.g. batocera-5.21-odroidn2-20190217.iso) out of ramdisk through petitboot?

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Tue Feb 19, 2019 6:44 am

ramdisk : too long to copy all from the card. it would make a long boot time.

question : i've build in arm rootfs target with a aarch64 kernel as done for some other architectures for performance issues.
while trying to boot tonight, i note that my linux kernel is ok. my dtb file is ok. (by replacing the 2 files, ubuntu continues to boot) ; my uInitrd won't be executed (there is a rename file function inside which doesn't operate, thus, i know i'm stuck here). i've try with arm and aarch64 mkimage (but in any case it contains arm binaries).
isn't it possible to run arm 32 bit binaries on the odroid n2 ?

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

Re: N2 kernel

Unread post by odroid » Tue Feb 19, 2019 8:58 am

It must be possible except for the Mali GPU driver.
AFAIK, the Mali shared library can support only Aarch64 at this moment.
Since your batocera.linux is a gaming oriented OS, you have to use the GPU driver.

I will check the availability of Mali G52 driver for armhf later.

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: N2 kernel

Unread post by memeka » Tue Feb 19, 2019 9:53 am

@nadenislamarre are there many emulators that don't work on aarch64?

@odroid what are the licensing requirements for GBM? Are they the same as fbdev? And in this case can you compile and distribute binaries with your existing license? E.g. you can make a GBM+FBDEV only binary for N2 and XU4 (newer version > r20p0) which would be useful for console-only applications, such as some kodi images and emulator images. No X11, no Wayland, just fbdev + gbm.

User avatar
tobetter
Posts: 4554
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: 79 times
Been thanked: 318 times
Contact:

Re: N2 kernel

Unread post by tobetter » Tue Feb 19, 2019 3:27 pm

mad_ady wrote:
Tue Feb 19, 2019 3:56 am
We should probably split this and discuss petitboot/recovery/flashing in a separate thread.
You're saying petitboot can't kexec to a kernel that has a ramdisk rootfs?
In what cases would that be helpful?
I'm thinking that petitboot's initrd should only have busybox (a minimal busybox maybe) that supports wget/curl (http or ftp should be light enough) and it can download and chroot into a different/bigger rootfs that has binutils and support binaries. You can then start a new ncurses gui with options to repair existing installation or flash something on sd/emmc (or drop to a shell).
I'll look into petitboot plugins, see how they're made.

Hopefully there won't be many more recommendations to reflash a broken system (this isn't windows after all) and users can go through recovery and collect diagnostic data even without media attached.
@mad_ady, I've created the thread regarding the Petitboot. Let's start from here, or please go ahead... :D
viewtopic.php?f=182&t=33873

crashoverride
Posts: 4716
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 191 times
Contact:

Re: N2 kernel

Unread post by crashoverride » Tue Feb 19, 2019 4:29 pm

memeka wrote:
Tue Feb 19, 2019 9:53 am
E.g. you can make a GBM+FBDEV only binary for N2
I was also contemplating this. However, without a KMS/DRM display driver on N2, a GBM based libMali is "useless" since you would need to copy the presentation buffer to the FBDEV memory each frame. Alternatively, you could directly drive the Canvas memory pointers as a "hack". Either way, there is no obvious advantage to GBM at this time without KMS/DRM. The disadvantage to KMS/DRM is that it would break the video presentation system necessitating a rewrite such as the V4L M2M implementation in mainstream.

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: N2 kernel

Unread post by memeka » Tue Feb 19, 2019 4:37 pm

Why is drm/kms breaking the video presentation system?

Edit: You can have amllibs and canvas, and one drmkms plane for rgba which can be used by mali too, without knowing what’s going on “behind” in the overlay
Last edited by memeka on Tue Feb 19, 2019 4:44 pm, edited 2 times in total.

crashoverride
Posts: 4716
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 191 times
Contact:

Re: N2 kernel

Unread post by crashoverride » Tue Feb 19, 2019 4:41 pm

memeka wrote:
Tue Feb 19, 2019 4:37 pm
Why is drm/kms breaking the video presentation system?
It breaks it because it controls the entire display system which includes the video planes. Therefore, you need a new way to interface the video codecs to it.

[edit]
The amlogic video system runs the entire media graph. Its like having gstreamer in the driver. The presentation system integrates with the video plane to maintain things like vsync (frame rate) and interlace. It also integrates GE2D blitting when needed.
Last edited by crashoverride on Tue Feb 19, 2019 4:45 pm, edited 1 time in total.

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: N2 kernel

Unread post by memeka » Tue Feb 19, 2019 4:42 pm

crashoverride wrote:
Tue Feb 19, 2019 4:41 pm
memeka wrote:
Tue Feb 19, 2019 4:37 pm
Why is drm/kms breaking the video presentation system?
It breaks it because it controls the entire display system which includes the video planes. Therefore, you need a new way to interface the video codecs to it.
See my edit. You can have video separate from drm/kms as is now.

crashoverride
Posts: 4716
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 191 times
Contact:

Re: N2 kernel

Unread post by crashoverride » Tue Feb 19, 2019 5:01 pm

memeka wrote:
Tue Feb 19, 2019 4:42 pm
You can have video separate from drm/kms as is now.
The video system integrates deeply with the display controller based on C2 experience. This means that the entire "KMS part" would be fixed and immutable (no actual mode changes). This would effectively make it a DRM "wrapper" over fbdev. I am not sure what benefit this extra complexity would provide. Without KMS features, you may as well just use fbdev as the API is far more trivial and easier to code for.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Tue Feb 19, 2019 9:45 pm

Hi,

memeka !!! ;-) what a pleasure to see you here.

i don't masterize what is compatible or not with the n2 and in general, the fbdev/gbm stacks.
So, i'll tell you what i'm building and if somebody know why it can not work, i'm interested:

1. linux aarch64
2. rootfs armv7 (32 bits)
3. gbm/kms/drm/mali

it looks like what i did for odroid c2 (full arch64) and odroid xu4 kernel 4 (gbm/kms/drm/mali)

here : https://github.com/hardkernel/buildroot ... master/lib
i found something that seems to be ok in armv7, but maybe i'm wrong (i'm still blocked at initrd not running).

if gbm+aarch64 can't work on n2,
i will do all in aarch64.

For emulation, arm32bit is recommanded with a kernel 64bit ; it is what the lakka team does.
some emulators have dynarec and asm optimisations.
on my c2 build, i'm full aarch64, i just encounter performances issues with n64 and ps1.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Wed Feb 20, 2019 6:14 am

i'm unable to debug the boot without any uart usb ;-(
all my blind tests failed.
current status : blocked.

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

Re: N2 kernel

Unread post by odroid » Wed Feb 20, 2019 9:02 am

How did you develop your batocera.linux for C2/XU4?
It must be quite painful for making OS images without the serial console.

User avatar
tobetter
Posts: 4554
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: 79 times
Been thanked: 318 times
Contact:

Re: N2 kernel

Unread post by tobetter » Wed Feb 20, 2019 9:36 am

nadenislamarre wrote:i'm unable to debug the boot without any uart usb ;-(
all my blind tests failed.
current status : blocked.
Do you use boot.ini? Can you try to add "console=tty0" to boot command line and HDMI display is connected?

Tapatalk wishes you to have fun with ODROID.


nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Wed Feb 20, 2019 3:41 pm

hehe, don't worry, i will find a solution. i just give my current status which is a bit boring.
In fact i've still 2 uart, i just cannot plug them into the n2. And my 3rd went in smoke (see first posts).
for odroid xu4, i just analyzed the other distro work, and got patience, but yes, i were blind.
for odroid c2, kuvitar, the lakka maintainer helped me cause he has the c2 uart.
For other boards (aka rockpro64, rock64), the pack contained a uart module in fact, it was easier for this part.
I've not a lot of experience with uart plugs, but i just fear that their are not compatible between boards.

@tobetter, thanks. i will see if it can unblock me.

User avatar
mad_ady
Posts: 7348
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 350 times
Been thanked: 254 times
Contact:

Re: N2 kernel

Unread post by mad_ady » Wed Feb 20, 2019 4:10 pm

Or try to boot from spi and use petitboot to kexec into your kernel. If it works, it bypasses uboot on your sd/emmc and you'll know where the problem is.

User avatar
AreaScout
Posts: 1215
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 44 times
Been thanked: 112 times
Contact:

Re: N2 kernel

Unread post by AreaScout » Thu Feb 21, 2019 2:11 am

Not having a GBM capable video driver is a national disaster, we must have one :)

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: N2 kernel

Unread post by memeka » Thu Feb 21, 2019 5:12 am

AreaScout wrote:
Thu Feb 21, 2019 2:11 am
Not having a GBM capable video driver is a national disaster, we must have one :)
National emergency!
There, now you can get the money from other places to build it! :lol: :lol: :lol:

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Thu Feb 21, 2019 5:17 am

new status:
batocera boots.
i connect via ssh.
/dev/fb0 is present, i can display the batocera logo.
no graphical application is working.

i've not yet understood if gbm is supposed to be working or not.
i'm currently on a 64bit kernel + a 32 bit userland.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Thu Feb 21, 2019 5:39 am

am i missing a kernel module ?

drm_fd = open(KMSDRM_DRI_CARD_0, O_RDWR | O_CLOEXEC);
# ls /dev/dri/card0
ls: /dev/dri/card0: No such file or directory

[ 0.759100@3] mali ffe40000.bifrost: GPU identified as 0x2 arch 7.2.1 r0p0 status 0
[ 0.759433@3] mali ffe40000.bifrost: Using coherency mode 0 set from dtb
[ 0.760134@3] mali ffe40000.bifrost: Probed as mali0

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Thu Feb 21, 2019 6:14 am

for information, my current dmesg : https://pastebin.com/raw/BwtZL48U

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: N2 kernel

Unread post by memeka » Thu Feb 21, 2019 6:27 am

Gbm and drm are not supported yet, only fbdev.
The drm driver is being worked on now...

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Thu Feb 21, 2019 6:54 am

is there a target date ?
ie, should i go on fbdev or wait drm ?

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

Re: N2 kernel

Unread post by odroid » Thu Feb 21, 2019 9:59 am

Go with fbdev first since we still have many kernel panics with a trial drm/dri drivers due to very complicated and wrong dependency against the legacy style cec/edid/hdmi/spdif/etc drivers.

User avatar
AreaScout
Posts: 1215
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 44 times
Been thanked: 112 times
Contact:

Re: N2 kernel

Unread post by AreaScout » Thu Feb 21, 2019 7:00 pm

odroid wrote:
Thu Feb 21, 2019 9:59 am
Go with fbdev first since we still have many kernel panics with a trial drm/dri drivers due to very complicated and wrong dependency against the legacy style cec/edid/hdmi/spdif/etc drivers.
Hello odroid :)

Is this the meson drm you are referring to or is that an unique drm/dri driver ?

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Fri Feb 22, 2019 6:32 am

new status :
using fbdev
i managed to get es working. sound working too.
i manage to start a super nintendo game but i got a puzzled image (bad size and uncentered). however, i'm not in a good state while i hacked some files. i will redo a clean compilation to be sure and/or fix if necessary.
away for some days by the way, so no news before the next week.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Fri Feb 22, 2019 7:03 am

fps is good. all seems good except the resolution size in retroarch now. it should be easy to fix. i manage to play a game in snes correctly (except image size).
kodi and other emulators not checked, wifi, bluetooth and ir not checked. i keep some work for week 2.

User avatar
memeka
Posts: 4420
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 2 times
Been thanked: 57 times
Contact:

Re: N2 kernel

Unread post by memeka » Fri Feb 22, 2019 7:10 am

Great news

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Tue Feb 26, 2019 5:45 am

Please find here first video : https://batocera-linux.xorhub.com/video ... alpha0.m4v (sorry for the quality, i did with my mini camera)
in short:

- all is working perfectly in emulators
- kodi starts, i've not tested video acceleration
- wifi/bluetooth not working
- ir not tested
- retroarch sound issue : several errors in dmesg. when you pause retroarch, 50% of the times, you can't unpause except if you disabled sound. => top priority bug
- general game exiting issue : when you quit a game, 50% of the times, it quits the emulator, you ear the es sound, but no image refreshing => top priority bug
- ppsspp not working (ive not yet checked why)
- become black after a delay (10 or 15 minutes, time to check) ; require a keyboard to go out of that **edited: should be fixed.

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

Re: N2 kernel

Unread post by odroid » Tue Feb 26, 2019 9:08 am

Great! Thank you for the video to share the development progress.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Tue Feb 26, 2019 7:53 pm

please find here this first alpha image :
https://batocera-linux.xorhub.com/upgra ... n2/alpha0/

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

Re: N2 kernel

Unread post by rooted » Tue Feb 26, 2019 11:11 pm

nadenislamarre wrote:please find here this first alpha image :
https://batocera-linux.xorhub.com/upgra ... n2/alpha0/
Thanks for sharing, look forward to testing it.

shanti
Posts: 158
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 23 times
Been thanked: 24 times
Contact:

Re: N2 kernel

Unread post by shanti » Thu Feb 28, 2019 1:41 am

nadenislamarre wrote:
Tue Feb 26, 2019 7:53 pm
please find here this first alpha image :
https://batocera-linux.xorhub.com/upgra ... n2/alpha0/
This is very cool! and it seems very fast, although the same issues I have on my test build using CoreELEC are present here as well.

When you run a game, after you exit, sometimes the screen does not refresh and it seems like its frozen, like the canvas not refreshing or something, you can still hear the music and control ES on the background, but the screen is frozen, it will work again if you manage to run another game.

You can see it on this video I made https://www.youtube.com/watch?v=tqu75m9YJS8

I noticed you also have this
" general game exiting issue : when you quit a game, 50% of the times, it quits the emulator, you ear the es sound, but no image refreshing => top priority bug
- ppsspp not working (ive not yet checked why)
"

PPSSPPP (the stand alone version) should work with latest commit, I opened a issue on their github and they helped me fix it, it was an error not picking up the EGL config correctly because of the HDR modes.

Also I could not make n64 work on your image :(

but overall great work! I love Batocera and its amazing seeing it run on the N2!
Last edited by shanti on Thu Feb 28, 2019 2:40 am, edited 1 time in total.

nadenislamarre
Posts: 110
Joined: Tue Apr 26, 2016 5:18 am
languages_spoken: english
ODROIDs: xu4
Has thanked: 0
Been thanked: 21 times
Contact:

Re: N2 kernel

Unread post by nadenislamarre » Thu Feb 28, 2019 2:24 am

@shanti, thanks a lot for your feedback.
i thought coreelec was more about kodi ; it looks really nice like retropie (mainly because es includes videos), batocera and other game os ;-)
what are the advantages/disadvantages of coreelec for gaming ?
for the n64, can you give me your ~/logs/es* files ? my guess is that a know bug i've not managed to reproduce (ok, i didn't really try) is that if your pad doesn map some buttons, our configuration tool crashes because it assumes that "xxx" (i don't know xxx otherwise i would be able to reproduce and fix) exists while it doesn't.

you got no issues about sound in retroarch in coreelec ? when i pause (retroarch menu) then resume on batocera, 50% of the times, it crashes. i will reproduce and make a stack to see the issue (unfortuanlly, i should do a pause for the n2 because i've other things to fix on the main distribution branch to priorize)

shanti
Posts: 158
Joined: Fri Feb 15, 2019 3:12 am
languages_spoken: english, spanish
ODROIDs: Odroid N2
Has thanked: 23 times
Been thanked: 24 times
Contact:

Re: N2 kernel

Unread post by shanti » Thu Feb 28, 2019 2:45 am

nadenislamarre wrote:
Thu Feb 28, 2019 2:24 am
@shanti, thanks a lot for your feedback.
i thought coreelec was more about kodi ; it looks really nice like retropie (mainly because es includes videos), batocera and other game os ;-)
what are the advantages/disadvantages of coreelec for gaming ?
for the n64, can you give me your ~/logs/es* files ? my guess is that a know bug i've not managed to reproduce (ok, i didn't really try) is that if your pad doesn map some buttons, our configuration tool crashes because it assumes that "xxx" (i don't know xxx otherwise i would be able to reproduce and fix) exists while it doesn't.

you got no issues about sound in retroarch in coreelec ? when i pause (retroarch menu) then resume on batocera, 50% of the times, it crashes. i will reproduce and make a stack to see the issue (unfortuanlly, i should do a pause for the n2 because i've other things to fix on the main distribution branch to priorize)
CoreELEC IS made for Kodi, that is the main focus, but can be adapted to run almost anything, I made a build that includes all the emulator stuff, ES, Retroarch, Cores, PPSSPP, etc, etc, currently it runs for S905 and S912 devices, soon to be running on the N2 :)

I haven't noticed any issues with sound on my tests, but I didn't test that on batocera at all, will try later tonight!
I will send you the logs, for the N64 issue, I wasn't able to SSH to batocera, but to be honest I didn't try that much, will do so tonight

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 0 guests