Petitboot, yet another bootloader based on KEXEC

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Oct 31, 2019 2:04 am

loznic89 wrote:
Wed Oct 30, 2019 5:26 pm
Since run coreelec by petitboot i cant run any image android or ubuntu in petitboot or with "SPI" in eMMC.

Trying with petitboot 05/07 and 20/10

any help?? thanks
Are you meaning that CoreELEC is in uSD, Android or Ubuntu is in eMMC? But OS in eMMC is not booting by Petitboot? Are you able to see boot entries in Petitboot?

istanbulls
Posts: 84
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 26 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Thu Oct 31, 2019 9:57 pm

dualos now works well. img. I flashed without problems.

Manjaro-ARM-KDE-on2-19.08.img does not work with peititboot. I tried double os, I tried single os, it doesn't work with peititboot.

I tried the petitboot with the old version, did new other trials, the result is the same.

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Oct 31, 2019 10:19 pm

kardanadm wrote:
Thu Oct 31, 2019 9:57 pm
dualos now works well. img. I flashed without problems.

Manjaro-ARM-KDE-on2-19.08.img does not work with peititboot. I tried double os, I tried single os, it doesn't work with peititboot.

I tried the petitboot with the old version, did new other trials, the result is the same.
That's strange, I just tested again Manjaro-ARM-kde-on2-19.08.img and it shows its face after Petitboot. Would you run blkid after booting any OS while a memory card contains Manjaro KDE image?

istanbulls
Posts: 84
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 26 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Fri Nov 01, 2019 4:05 am

tobetter wrote:
Thu Oct 31, 2019 10:19 pm
kardanadm wrote:
Thu Oct 31, 2019 9:57 pm
dualos now works well. img. I flashed without problems.

Manjaro-ARM-KDE-on2-19.08.img does not work with peititboot. I tried double os, I tried single os, it doesn't work with peititboot.

I tried the petitboot with the old version, did new other trials, the result is the same.
That's strange, I just tested again Manjaro-ARM-kde-on2-19.08.img and it shows its face after Petitboot. Would you run blkid after booting any OS while a memory card contains Manjaro KDE image?

Code: Select all

root@odroid:/home/odroid# blkid
/dev/mmcblk0p1: LABEL="VFAT" UUID="5DAB-3CC9" TYPE="vfat"
/dev/mmcblk0p2: UUID="bf78e9fb-5124-4416-a5c5-0b0c8e8a252c" TYPE="ext4"
/dev/mmcblk1p1: SEC_TYPE="msdos" LABEL="BOOT" UUID="F702-39CB" TYPE="vfat" PARTUUID="215bbf80-01"
/dev/mmcblk1p2: LABEL="rootfs" UUID="e139ce78-9841-40fe-8823-96a304a09859" TYPE="ext4" PARTUUID="215bbf80-02"
/dev/mmcblk1p3: SEC_TYPE="msdos" LABEL="COREELEC" UUID="2009-2145" TYPE="vfat" PARTUUID="215bbf80-03"
/dev/mmcblk1p4: LABEL="STORAGE" UUID="e05657f1-741f-42c7-9c6d-c4676dd1746b" TYPE="ext4" PARTUUID="215bbf80-04"
/dev/sda1: LABEL="1.5TB" UUID="1593106F63E32668" TYPE="ntfs" PTTYPE="dos" PARTUUID="00a607d8-01"
/dev/mmcblk0: PTTYPE="dos"
/dev/mmcblk1: PTUUID="215bbf80" PTTYPE="dos"
/dev/sdb1: SEC_TYPE="msdos" LABEL="BOOT" UUID="FBC7-FECF" TYPE="vfat" PARTUUID="eda3a068-01"
/dev/sdb2: LABEL="ROOT" UUID="28bd7a92-0522-468c-9589-404551be0325" TYPE="ext4" PARTUUID="eda3a068-02"
/dev/sdb3: UUID="e87b96cb-7c76-4329-9c84-6fa42f951b4f" TYPE="ext4" PARTUUID="eda3a068-03"
root@odroid:/home/odroid#

loznic89
Posts: 14
Joined: Tue May 07, 2019 8:01 am
languages_spoken: spanish
ODROIDs: Odroid N2
Has thanked: 10 times
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by loznic89 » Fri Nov 01, 2019 10:01 am

tobetter wrote:
Thu Oct 31, 2019 2:04 am
loznic89 wrote:
Wed Oct 30, 2019 5:26 pm
Since run coreelec by petitboot i cant run any image android or ubuntu in petitboot or with "SPI" in eMMC.

Trying with petitboot 05/07 and 20/10

any help?? thanks
Are you meaning that CoreELEC is in uSD, Android or Ubuntu is in eMMC? But OS in eMMC is not booting by Petitboot? Are you able to see boot entries in Petitboot?
Thanks for reply

i think booting, but no image in display. white and black screens. with coreelec no problem with emmc and sd card

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Fri Nov 01, 2019 2:07 pm

Aree you using a dvi monitor? That is known not to work at this point...

loznic89
Posts: 14
Joined: Tue May 07, 2019 8:01 am
languages_spoken: spanish
ODROIDs: Odroid N2
Has thanked: 10 times
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by loznic89 » Fri Nov 01, 2019 7:50 pm

mad_ady wrote:
Fri Nov 01, 2019 2:07 pm
Aree you using a dvi monitor? That is known not to work at this point...
now reading about that in post sorry...........i think yes haha (Samsung Monitor C24RG50FQU) but previously a weeks ago i can use android 64 bits with no problem out of petitboot

now black and white screens booting android/ubuntu out of petitboot too

thanks for reply :)

MattN
Posts: 3
Joined: Wed Apr 24, 2019 12:37 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by MattN » Mon Nov 04, 2019 11:15 am

Hi, I have been playing with the latest petitboot and have been able to install armbian and manjaro on my terabyte hard drive. Problem is that each of these take over the whole hard drive which is NOT what I wanted. Is there some way to force either program to only take over the partition? I am pretty sure there is an easy answer, just that I'm not that familiar with a ARM system and UBOOT.

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Nov 04, 2019 11:30 am

MattN wrote:
Mon Nov 04, 2019 11:15 am
Hi, I have been playing with the latest petitboot and have been able to install armbian and manjaro on my terabyte hard drive. Problem is that each of these take over the whole hard drive which is NOT what I wanted. Is there some way to force either program to only take over the partition? I am pretty sure there is an easy answer, just that I'm not that familiar with a ARM system and UBOOT.
I've written up this.
https://medium.com/@tobetter/installing ... 7bcaef0545
These users thanked the author tobetter for the post:
rooted (Mon Nov 04, 2019 7:00 pm)

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Nov 05, 2019 3:32 am

@mad_ady, would you please share the U-boot log when your DVI monitor is connected? And the output of /proc/cmdline after Petitboot is started?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Nov 05, 2019 4:53 am

Sure. uboot output is here:
viewtopic.php?p=270997#p270997
cmdline is here: viewtopic.php?p=271424#p271424

Lensy
Posts: 4
Joined: Mon Nov 04, 2019 8:44 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Lensy » Tue Nov 05, 2019 7:51 pm

tobetter wrote:
Mon Nov 04, 2019 11:30 am
MattN wrote:
Mon Nov 04, 2019 11:15 am
Hi, I have been playing with the latest petitboot and have been able to install armbian and manjaro on my terabyte hard drive. Problem is that each of these take over the whole hard drive which is NOT what I wanted. Is there some way to force either program to only take over the partition? I am pretty sure there is an easy answer, just that I'm not that familiar with a ARM system and UBOOT.
I've written up this.
https://medium.com/@tobetter/installing ... 7bcaef0545
Using @tobetter's script as inspiration, I did this manually yesterday where I wanted to install EmuElec alongside an existing Android installation; i.e. I had to shrink Android's partition, create new partitions, and clone the EmuElec data over.

If you need a hand with that feel free to drop me a PM.

( .. and thanks to @tobetter for providing the write-up in the first place!)

Lensy
Posts: 4
Joined: Mon Nov 04, 2019 8:44 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Lensy » Tue Nov 05, 2019 7:57 pm

@tobetter - I believe I may have hit an issue with the current release over the weekend

What seemed to be happening was that with petitboot set to get an IP address via DHCP, attempting to start anything on the USB (linux) or MicroSD (Android) would fail and cause the system to reboot to petitboot. Booting to the EMMC (CoreElec) would work just fine. With the network cable unplugged everything worked fine, and with a static IP assigned everything seems to work fine.

I'm not sure how to get additional information / logging out of petitboot (without a serial adapter) - but if you can point me in the right direction I'm happy to try reproduce this again and share whatever info I find.

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Nov 05, 2019 10:29 pm

Lensy wrote:@tobetter - I believe I may have hit an issue with the current release over the weekend

What seemed to be happening was that with petitboot set to get an IP address via DHCP, attempting to start anything on the USB (linux) or MicroSD (Android) would fail and cause the system to reboot to petitboot. Booting to the EMMC (CoreElec) would work just fine. With the network cable unplugged everything worked fine, and with a static IP assigned everything seems to work fine.

I'm not sure how to get additional information / logging out of petitboot (without a serial adapter) - but if you can point me in the right direction I'm happy to try reproduce this again and share whatever info I find.
Which OS image is installed to USB storage? I would be able to try later if I know.

"Tapatalk wishes you to have fun with ODROID"


Lensy
Posts: 4
Joined: Mon Nov 04, 2019 8:44 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Lensy » Tue Nov 05, 2019 10:54 pm

tobetter wrote:
Tue Nov 05, 2019 10:29 pm
Which OS image is installed to USB storage? I would be able to try later if I know.
EMMC - CoreElec
USB - Ubuntu Minimal (https://wiki.odroid.com/odroid-n2/os_im ... u/20190806)
SD - Lineage Android (both ATV and normal - viewtopic.php?f=178&t=35484)

I'll also try it again tonight and see if I can reproduce it a couple of days later. Always a good test!

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Nov 06, 2019 1:28 am

201911-rc1
Please let me share the new version with some bug fixes. Click spiboot-201911-rc1.img to download. The file must be copied as spiboot.img to the first partition in your SD card, not eMMC. In order to update properly, the boot select switch must be placed to SPI and must do a power cycle, unless ODROID-N2 will keep boot MMC cards.
https://wiki.odroid.com/odroid-n2/os_im ... grade_mode

Please enjoy the new version and welcome your feedback.

What's improved:
  • Fixed to use HK remote to navigate the boot menu.
  • Improved to support DVI monitor, reported by @mad_ady, and need to be verified.
These users thanked the author tobetter for the post (total 2):
xabolcs (Thu Nov 07, 2019 2:09 am) • odroid (Fri Nov 08, 2019 11:13 am)

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Wed Nov 06, 2019 3:08 am

Thanks tobetter! I'll check it in two days. I'm working from home tomorrow :)

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Nov 07, 2019 10:05 pm

@tobetter: I tried your 201911-rc1 image and yay! The monitor works correctly! Thanks!

I also tested the HK remote. Navigation/Enter works. But the back key doesn't work. Can you map it to "x"? And maybe the menu key mapped to "h"?
These users thanked the author mad_ady for the post (total 2):
tobetter (Thu Nov 07, 2019 10:22 pm) • SirZevo (Sun Nov 10, 2019 4:38 am)

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Nov 07, 2019 10:23 pm

mad_ady wrote:@tobetter: I tried your 201911-rc1 image and yay! The monitor works correctly! Thanks!

I also tested the HK remote. Navigation/Enter works. But the back key doesn't work. Can you map it to "x"? And maybe the menu key mapped to "h"?
Thank for testing...Let me check if remote can map and run with ncurses.

"Tapatalk wishes you to have fun with ODROID"


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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Nov 07, 2019 11:16 pm

Well, you have uinput support:

Code: Select all

/ # zcat /proc/config.gz | grep UINPUT
CONFIG_INPUT_UINPUT=y
/ # ls -l /dev/uinput
crw-------    1 0        0          10, 223 Jan  1 00:00 /dev/uinput
So, something like this should work:
https://unix.stackexchange.com/question ... ell-script

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Nov 08, 2019 9:42 pm

I know UINPUT but it requires a module that triggers the event from the user space to kernel space whenever IR remote key is received, Petitboot does not have it. I believe remapping the IR remote keycode for menu and back buttons to another one would work. Let me test it and apply it on next version anyway.

Thank you for your suggestion. :)

"Tapatalk wishes you to have fun with ODROID"


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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Fri Nov 08, 2019 9:56 pm

Doesn't /dev/uinput show that the module is already loaded? It's actually built-in.

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Nov 08, 2019 10:04 pm

mad_ady wrote:Doesn't /dev/uinput show that the module is already loaded? It's actually built-in.
I meant the user space module or a service.

"Tapatalk wishes you to have fun with ODROID"


Lensy
Posts: 4
Joined: Mon Nov 04, 2019 8:44 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Lensy » Sat Nov 09, 2019 4:27 am

Lensy wrote:
Tue Nov 05, 2019 10:54 pm
I'll also try it again tonight and see if I can reproduce it a couple of days later. Always a good test!
So I've now been running on DHCP for a couple of days and haven't been able to reproduce the issue - which means there must have been something else going on at the weekend.

Apologies @tobetter!

I think it's safe to ignore my earlier comment

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Sat Nov 09, 2019 4:59 am

@mad_ady, I am able to MENU key and BACK key to run with Petitboot by updating DTS. It works as expected and let me release in in the next image. :)

Code: Select all

diff --git a/arch/arm64/boot/dts/amlogic/meson64_odroidn2_spibios.dts b/arch/arm64/boot/dts/amlogic/meson64_odroidn2_spibios.dts
index be822b7750b4..f70189adcc56 100644
--- a/arch/arm64/boot/dts/amlogic/meson64_odroidn2_spibios.dts
+++ b/arch/arm64/boot/dts/amlogic/meson64_odroidn2_spibios.dts
@@ -219,8 +219,8 @@
                                REMOTE_KEY(0xCE, KEY_ENTER)
                                REMOTE_KEY(0x82, KEY_HOME)
                                REMOTE_KEY(0x88, KEY_MUTE)
-                               REMOTE_KEY(0xC5, KEY_MENU)
-                               REMOTE_KEY(0x9A, KEY_BACK)
+                               REMOTE_KEY(0xC5, KEY_H)
+                               REMOTE_KEY(0x9A, KEY_X)
                                REMOTE_KEY(0x81, KEY_VOLUMEDOWN)
                                REMOTE_KEY(0x80, KEY_VOLUMEUP)
                                REMOTE_KEY(0xDC, KEY_POWER)>;
These users thanked the author tobetter for the post (total 2):
mad_ady (Sat Nov 09, 2019 3:12 pm) • rooted (Sun Nov 10, 2019 11:53 pm)

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Sat Nov 09, 2019 5:03 am

Lensy wrote:
Sat Nov 09, 2019 4:27 am
Lensy wrote:
Tue Nov 05, 2019 10:54 pm
I'll also try it again tonight and see if I can reproduce it a couple of days later. Always a good test!
So I've now been running on DHCP for a couple of days and haven't been able to reproduce the issue - which means there must have been something else going on at the weekend.

Apologies @tobetter!

I think it's safe to ignore my earlier comment
No worries, nothing wrong. It was a good chance to check the network in Petitboot and I also found an issue that DNS lookup did not work.

STARSK
Posts: 3
Joined: Wed Nov 13, 2019 1:24 am
languages_spoken: english, French
ODROIDs: ODROID N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by STARSK » Wed Nov 13, 2019 2:26 am

Hi,

I received my Odroid N2 board one week ago and after hours of settings I need help from experts!

This is my Odroid N2 configuration:

Coreelec 9.2.0 on Emmc
Android Pie (from HK wiki) on µsd
petitboot 201907-RC1
TV : PANASONIC TX-55FZ800E (4k)
AVR : Yamaha RX-V681

I would like to be able to :

- use coreelec on Emmc, with spi switch set on "emmc" position, without removing the µsd card with Android => ("way 1") (I used Coreelec 90% of the time, so for best performance purpose I put it on Emmc)
- use petitboot, spi switch set on "spi" position, for mutli-booting with Corelec on Emmc + Android on µsd => ("way 2")
- use my harmony one remote with the odroid N2 board whatever using "way 1" or "way 2"



Issues :

Way 1 : When I plug the power cable, coreelec boots but just after the coreelec logo appears, the system reboot. If I removed the µsd card with android, it works fine (coreelec boots)

Way 2 : only petitboot 201907-RC1 works, older and newer versions don't boot any os after petitboot home screen. => black screen when I chose one of the both OS (coreelec or Android)

Way 1 and 2 : The remote works fine with :

- Android on µsd card ( Up down, right, left, ok, switch on, switch off...) everything works (on "way 2")
- Android on µsd card ( Up down, right, left, ok, switch on, switch off...) everything works ( on "way 2")

but with coreelec installed on Emmc, the remote works fine except the "switch on" touch. I need to unplug and plug the power cable for switching coreelec on. The problem occurs whatever the spi switch is set ( "Emmc" or "SPI") ( "way 1" or "way 2")

Thanks for your help

Starsk

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Nov 13, 2019 2:56 am

201911-rc2
Please let me share the new version with some bug fixes. Click spiboot-201911-rc2.img to download. The file must be copied as spiboot.img to the first partition in your SD card, not eMMC. In order to update properly, the boot select switch must be placed to SPI and must do a power cycle, unless ODROID-N2 will keep boot MMC cards.
https://wiki.odroid.com/odroid-n2/os_im ... grade_mode

Please enjoy the new version and welcome your feedback.

What's improved:
  • HK stock remote can run 'Back' and 'Help' key on Petitboot.
  • Network configuration is fixed to support DNS lookup.
These users thanked the author tobetter for the post (total 4):
mad_ady (Wed Nov 13, 2019 3:30 am) • rooted (Thu Nov 14, 2019 2:51 am) • xabolcs (Thu Nov 14, 2019 6:24 pm) • Cosmicbase (Thu Nov 28, 2019 12:09 am)

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Nov 13, 2019 2:57 am

@STARRK, Can you please try to connect HDMI cable to TV without AVR using the method "Way 2"?

STARSK
Posts: 3
Joined: Wed Nov 13, 2019 1:24 am
languages_spoken: english, French
ODROIDs: ODROID N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by STARSK » Wed Nov 13, 2019 5:58 am

@ tobetter : thank you for helping me!

it's exactly the same behaviour without AVR using Way 2

Test 1:

1- I plug the power cable
2 - Petitboot starts (version 201907-RC1)
3 - boot from coreelec installed on EMMC =>Ok
4 - coreelec is started and works fine
5 - I power off corelec using remote =>Ok
6 - I try to power on coreelec with remote =>Ko nothing happens

Test 2 :

1- I plug the power cable
2 - Petitboot starts (version 201907-RC1)
3 - boot from Android Pie installed on µsd =>Ok
4 - Android pie is started and works fine
5 - I power off Android pie using remote =>Ok
6 - I power on Android pie with remote =>Ok
Last edited by STARSK on Wed Nov 13, 2019 9:56 pm, edited 1 time in total.

istanbulls
Posts: 84
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 26 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Wed Nov 13, 2019 7:15 am

I know it's off-topic, I'm sorry about that. How do I install triple OS on 64gb uSD? Can you help?

pavelba
Posts: 1
Joined: Thu Nov 14, 2019 1:42 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pavelba » Thu Nov 14, 2019 1:55 am

The booting of official Ubuntu distribution from USB flash disk running in cycle with petitboot in spiboot-201911-rc2.img.
Booting starts, reboots board and starts again (in the never ending cycle). It was tested with 2 different USB flash disks.
With image from spiupdate_odroidn2_20190705-rc1.img is video broken on my 4K monitor.
The best image is spiupdate_odroidn2_20190417+95.img according to me.
Regards

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Nov 14, 2019 9:11 am

STARSK wrote:
Wed Nov 13, 2019 5:58 am
@ tobetter : thank you for helping me!

it's exactly the same behaviour without AVR using Way 2

Test 1:

1- I plug the power cable
2 - Petitboot starts (version 201907-RC1)
3 - boot from coreelec installed on EMMC =>Ok
4 - coreelec is started and works fine
5 - I power off corelec using remote =>Ok
6 - I try to power on coreelec with remote =>Ko nothing happens

Test 2 :

1- I plug the power cable
2 - Petitboot starts (version 201907-RC1)
3 - boot from Android Pie installed on µsd =>Ok
4 - Android pie is started and works fine
5 - I power off Android pie using remote =>Ok
6 - I power on Android pie with remote =>Ok
Thank you for sharing the test. For the test case 1, the reason why the system does not wake up when it's been suspended by remote on CoreELEC is that CoreELEC has its own U-boot change for IR and CEC suspend/resume feature which is not compatible with HK's implementation. I've aware of it for sometime but not applied it to HK U-boot yet and will see a chance to merge into Petitboot.

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Nov 14, 2019 9:15 am

pavelba wrote:
Thu Nov 14, 2019 1:55 am
The booting of official Ubuntu distribution from USB flash disk running in cycle with petitboot in spiboot-201911-rc2.img.
Booting starts, reboots board and starts again (in the never ending cycle). It was tested with 2 different USB flash disks.
With image from spiupdate_odroidn2_20190705-rc1.img is video broken on my 4K monitor.
The best image is spiupdate_odroidn2_20190417+95.img according to me.
Regards
Does your USB flash disk can boot with 20190417? By any chance, do you have a kernel log from Ubuntu with 201911-rc2? What I wonder from the kernel log it where the kernel reached after Petitboot. With 201911-rc2, do you have a boot menu on your monitor?

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Nov 14, 2019 9:17 am

kardanadm wrote:
Wed Nov 13, 2019 7:15 am
I know it's off-topic, I'm sorry about that. How do I install triple OS on 64gb uSD? Can you help?
I've been written up a script to install two OS images into single storage but not works for three. What combo do you like to install?

istanbulls
Posts: 84
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 26 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Thu Nov 14, 2019 6:19 pm

tobetter wrote:
Thu Nov 14, 2019 9:17 am
kardanadm wrote:
Wed Nov 13, 2019 7:15 am
I know it's off-topic, I'm sorry about that. How do I install triple OS on 64gb uSD? Can you help?
I've been written up a script to install two OS images into single storage but not works for three. What combo do you like to install?
I installed Ubuntu-Mate and Armbian with your script. Ubuntu uses 2 partitions, Armbian uses 1 partitions. I divided the remaining 1 partition into 2 as a logical drive. I installed coreElec on another uSD. I created 2 different section patterns as "COREELEC" and "STORAGE". I restored the partition pattern to two logical drives.
Ubuntu Mate - Armbian - CoreElec

Ubuntu Mate doesn't work well, arches, hangs. I don't understand why he does that !?
The other 2 OS works fine.
I'm guessing, the Lexar 64GB 1000x SDXC UHS II I bought is not compatible with the Odroid N2.
I'm thinking of taking the SanDisk 64GB MICRO SD EXTREME SDSQXA2.
A2 performance may be more appropriate for SBCs.

istanbulls
Posts: 84
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 26 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Thu Nov 14, 2019 6:26 pm

Previously I created 1 extended partitions and 5 logical partitions on the same card. Ubuntu -mate stutter again.
I thought that the logical partition I created in the extended partition makes ubuntu mate stuttering, but it's not.

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Nov 14, 2019 6:41 pm

kardanadm wrote:
Thu Nov 14, 2019 6:26 pm
Previously I created 1 extended partitions and 5 logical partitions on the same card. Ubuntu -mate stutter again.
I thought that the logical partition I created in the extended partition makes ubuntu mate stuttering, but it's not.
Can you share the kernel log when Ubuntu Mate is starting?

xabolcs
Posts: 68
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 91 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by xabolcs » Thu Nov 14, 2019 9:07 pm

Hi @tobetter!

I use your awesome 201911-rc1 version of Petitboot with Andorid Pie + Debian Buster on eMMC.

I would like to test @elatllat's mainline kernel sometimes, but it's minimal boot.ini kills Petitboot's parsing function.

Are there any way to debug the boot.ini parsing, or at least to extend the boot.ini to be Petitboot compatible?

Thanks!

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Nov 14, 2019 9:17 pm

xabolcs wrote:Hi @tobetter!

I use your awesome 201911-rc1 version of Petitboot with Andorid Pie + Debian Buster on eMMC.

I would like to test @elatllat's mainline kernel sometimes, but it's minimal boot.ini kills Petitboot's parsing function.

Are there any way to debug the boot.ini parsing, or at least to extend the boot.ini to be Petitboot compatible?

Thanks!
Thank you for sharing...

Can you please share the boot.ini what you are using? I think I know the fix already but I do not have it now, anyway I will try to test the one if you share.

FYI, for mainline kernel, you can run my Debian Installer or Ubuntu image.
viewtopic.php?f=176&t=33993&hilit=mainl ... 00#p268080

"Tapatalk wishes you to have fun with ODROID"


xabolcs
Posts: 68
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 91 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by xabolcs » Thu Nov 14, 2019 9:31 pm

tobetter wrote:
Thu Nov 14, 2019 9:17 pm
Can you please share the boot.ini what you are using? I think I know the fix already but I do not have it now, anyway I will try to test the one if you share.
Sure it is in his build script (embedded in the linked post), but here is the relevant part:

Code: Select all

echo "ODROIDN2-UBOOT-CONFIG

setenv bootargs \"root=${DEV}p2 rootwait rw clk_ignore_unused console=ttyAML0,115200\"
setenv dtb_loadaddr \"0x1000000\"
fatload mmc \${devno}:1 \${dtb_loadaddr} n2.dtb
fatload mmc \${devno}:1 0x01080000 uImage
bootm 0x1080000 - \${dtb_loadaddr}
" > "$DIR/boot.ini"

istanbulls
Posts: 84
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 26 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Thu Nov 14, 2019 9:49 pm

tobetter wrote:
Thu Nov 14, 2019 6:41 pm
kardanadm wrote:
Thu Nov 14, 2019 6:26 pm
Previously I created 1 extended partitions and 5 logical partitions on the same card. Ubuntu -mate stutter again.
I thought that the logical partition I created in the extended partition makes ubuntu mate stuttering, but it's not.
Can you share the kernel log when Ubuntu Mate is starting?
how am I going to do this, sorry for asking such a question. I'm a rookie :)

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Nov 14, 2019 9:50 pm


xabolcs wrote:
tobetter wrote:
Thu Nov 14, 2019 9:17 pm
Can you please share the boot.ini what you are using? I think I know the fix already but I do not have it now, anyway I will try to test the one if you share.
Sure it is in his build script (embedded in the linked post), but here is the relevant part:

Code: Select all

echo "ODROIDN2-UBOOT-CONFIG

setenv bootargs \"root=${DEV}p2 rootwait rw clk_ignore_unused console=ttyAML0,115200\"
setenv dtb_loadaddr \"0x1000000\"
fatload mmc \${devno}:1 \${dtb_loadaddr} n2.dtb
fatload mmc \${devno}:1 0x01080000 uImage
bootm 0x1080000 - \${dtb_loadaddr}
" > "$DIR/boot.ini"
I think I tried this ealier, please try 0x01080000 instead of 0x1080000 at the command "bootm". If this does not work, let me know again.

The reason why 0x1080000 does not work while 0x01080000 which is same in numeric is that Petitboot does not load uImage to the memory address given in the "boot" command but it recognize as a symbol.

"Tapatalk wishes you to have fun with ODROID"


These users thanked the author tobetter for the post:
xabolcs (Fri Nov 15, 2019 1:12 am)

istanbulls
Posts: 84
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 26 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Thu Nov 14, 2019 11:34 pm

tobetter wrote:
Thu Nov 14, 2019 6:41 pm
Can you share the kernel log when Ubuntu Mate is starting?
is it possible?

Code: Select all

[    5.164685] asoc-aml-card auge_sound: dit-hifi <-> SPDIF-B mapping ok
[    5.171052] set mclk:12288000, mpll:24576000, get mclk:12287994, mpll:24575987
[    5.171055] aml_dai_set_tdm_slot(), txmask(0x3), rxmask(0x3)
[    5.171056] 	lanes_out_cnt(1), lanes_in_cnt(1)
[    5.171057] 	lanes_oe_out_cnt(0), lanes_oe_in_cnt(0)
[    5.171058] 	lanes_lb_cnt(0)
[    5.171059] 	slots(2), slot_width(32)
[    5.171064] asoc aml_dai_set_tdm_fmt, 0x4011, ffffffc0ca377718, id(2), clksel(2)
[    5.171067] master_mode(1), binv(1), finv(1) out_skew(2), in_skew(3)
[    5.177767] asoc-aml-card auge_sound: T9015-audio-hifi <-> TDM-C mapping ok
[    5.184642] set normal 512 fs /4 fs
[    5.184653] 	 set spdifout clk:6144000, mpll:24576000
[    5.184655] 	 get spdifout clk:6143997, mpll:24575987
[    5.184656] aml_dai_set_spdif_fmt , fmt 0x4010
[    5.184687] aml_spdif_new spdif_a, clk continuous:1
[    5.184688] spdifout_play_with_zerodata_free, spdif id:0
[    5.184816] asoc-aml-card auge_sound: dit-hifi <-> SPDIF mapping ok
[    5.191515] snd_card_add_kcontrols card:ffffffc0c9dfc818
[    5.196516] effect_v2 is not init
[    5.199980] Not init vad
[    5.199981] Failed to add VAD controls
[    5.203886] eq/drc v1 function enable
[    5.235469] add line-out mute controls
[    5.235783] dwc3 ff500000.dwc3: Configuration mismatch. dr_mode forced to host
[    5.243724] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.246754] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    5.254560] usb: xhci: determined sg_tablesize: 4294967295
[    5.260177] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228fe6c hci version 0x110 quirks 0x20010010
[    5.268878] xhci-hcd xhci-hcd.0.auto: irq 23, io mem 0xff500000
[    5.274979] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.281856] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.289219] usb usb1: Product: xHCI Host Controller
[    5.294247] usb usb1: Manufacturer: Linux 4.9.196-63 xhci-hcd
[    5.300138] usb usb1: SerialNumber: xhci-hcd.0.auto
[    5.305370] hub 1-0:1.0: USB hub found
[    5.309078] hub 1-0:1.0: 2 ports detected
[    5.313359] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.318863] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    5.326660] usb: xhci: determined sg_tablesize: 4294967295
[    5.332140] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.340387] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    5.347286] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.354654] usb usb2: Product: xHCI Host Controller
[    5.359679] usb usb2: Manufacturer: Linux 4.9.196-63 xhci-hcd
[    5.365571] usb usb2: SerialNumber: xhci-hcd.0.auto
[    5.370764] hub 2-0:1.0: USB hub found
[    5.374509] hub 2-0:1.0: 1 port detected
[    5.378801] hctosys: unable to open rtc device (rtc0)
[    5.383938] dwc_otg ff400000.dwc2_a: dwc_otg_driver_probe(ffffffc0ca212c00)
[    5.383950] dwc_otg: usb0: type: 2 speed: 0, config: 0, dma: 0, id: 0, phy: ffe09000, ctrl: 0
[    5.392443] dwc_otg ff400000.dwc2_a: base=0xffffff8008d00000
[    5.392446] dwc_otg ff400000.dwc2_a: dwc_otg_device=0xffffffc003197400
[    5.492554] dwc_otg: Core Release: 3.30a
[    5.492570] dwc_otg: Setting default values for core params
[    5.496730] dwc_otg: curmode: 0, host_only: 0
[    5.501239] dwc_otg ff400000.dwc2_a: DMA config: BURST_DEFAULT
[    5.513366] dwc_otg: Using Buffer DMA mode
[    5.513383] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[    5.517281] dwc_otg: Working on port type = SLAVE
[    5.522157] dwc_otg: Dedicated Tx FIFOs mode
[    5.527428] meson_cdev probe
[    5.529626] meson_cdev index: 0
[    5.532962] meson_cdev index: 1
[    5.536222] thermal: no cluster id, cpucore as one cooldev
[    5.541822] meson_cdev index: 2
[    5.545104] cpucore_cooling_register, max_cpu_core_num:6
[    5.550562] cpucore_cooling_register, clutser[1] core num:4
[    5.556281] cpucore_cooling_register, clutser[0] core num:2
[    5.562053] meson_cdev index: 3
[    5.565307] meson_cdev index: 4
[    5.568612] find tzd id: 0
[    5.571546] find tzd id: 0
[    5.574381] find tzd id: 0
[    5.577212] meson_cdev probe done
[    5.580705] gxbb_pm: enter meson_pm_probe!
[    5.584915] amlogic-new-usb2-v2 ffe09000.usb2phy: ---Set port(0) tuning for host cf(xhci_hub_control)--
[    5.594540] gxbb_pm: meson_pm_probe done
[    5.598687] ALSA device list:
[    5.601612]   #0: AML-AUGESOUND
[    5.604974] meson_uart ff803000.serial: ttyS0 use xtal(24M) 24000000 change 115200 to 115200
[    5.643435] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    5.715427] prepare_namespace() wait 79
[    5.716391] EXT4-fs (mmcblk1p2): couldn't mount as ext3 due to feature incompatibilities
[    5.738674] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.741310] VFS: Mounted root (ext4 filesystem) on device 179:130.
[    5.755688] devtmpfs: mounted
[    5.756969] Freeing unused kernel memory: 4864K
[    5.785771] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[    5.786994] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.794295] usb 1-1: Product: USB2.1 Hub
[    5.798352] usb 1-1: Manufacturer: GenesysLogic
[    5.812358] hub 1-1:1.0: USB hub found
[    5.812606] hub 1-1:1.0: 4 ports detected
[    5.903543] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[    5.926022] usb 2-1: New USB device found, idVendor=05e3, idProduct=0620
[    5.927246] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.934551] usb 2-1: Product: USB3.1 Hub
[    5.938604] usb 2-1: Manufacturer: GenesysLogic
[    5.956331] hub 2-1:1.0: USB hub found
[    5.956638] hub 2-1:1.0: 4 ports detected
[    6.155437] usb 1-1.1: new full-speed USB device number 3 using xhci-hcd
[    6.281574] usb 1-1.1: New USB device found, idVendor=046d, idProduct=c534
[    6.282972] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.290436] usb 1-1.1: Product: USB Receiver
[    6.294868] usb 1-1.1: Manufacturer: Logitech
[    6.318942] systemd[1]: System time before build time, advancing clock.
[    6.325887] input: Logitech USB Receiver as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.1/1-1.1:1.0/0003:046D:C534.0001/input/input2
[    6.363491] usb 2-1.3: new SuperSpeed USB device number 3 using xhci-hcd
[    6.384369] usb 2-1.3: New USB device found, idVendor=0080, idProduct=a001
[    6.385765] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.393609] hid-generic 0003:046D:C534.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-xhci-hcd.0.auto-1.1/input0
[    6.405981] usb 2-1.3: Product: External USB 3.0
[    6.411557] input: Logitech USB Receiver as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/input/input3
[    6.424257] usb 2-1.3: Manufacturer: TOSHIBA
[    6.428670] usb 2-1.3: SerialNumber: 201503310007F
[    6.436720] scsi host0: uas
[    6.441528] scsi 0:0:0:0: Direct-Access     TO Exter nal USB 3.0      0204 PQ: 0 ANSI: 6
[    6.471767] hid-generic 0003:046D:C534.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-xhci-hcd.0.auto-1.1/input1
[    6.488118] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.488319] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    6.488849] NET: Registered protocol family 10
[    6.500311] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    6.500820] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.506844] cgroup: cgroup2: unknown option "nsdelegate"
[    6.517098] sd 0:0:0:0: [sda] Write Protect is off
[    6.521443] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[    6.521767] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.530756] xhci-hcd xhci-hcd.0.auto: ERROR Transfer event for disabled endpoint or incorrect stream ring
[    6.540313] xhci-hcd xhci-hcd.0.auto: @00000000cf612c40 00000000 00000000 1b000000 04078001
[    6.549118] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[    6.561545]  sda:
[    6.563289] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.583434] usb 1-1.2: new full-speed USB device number 4 using xhci-hcd
[    6.583521] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    6.584092] systemd[1]: Detected architecture arm64.
[    6.640386] systemd[1]: Set hostname to <odroid>.
[    6.745205] usb 1-1.2: New USB device found, idVendor=0c40, idProduct=7a1c
[    6.746604] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.754079] usb 1-1.2: Product: 2.4G Air Mouse
[    6.758658] usb 1-1.2: Manufacturer: Qualsense
[    6.763247] usb 1-1.2: SerialNumber: SmartMouse
[    6.842460] input: Qualsense 2.4G Air Mouse as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.2/0003:0C40:7A1C.0003/input/input4
[    6.907751] hid-generic 0003:0C40:7A1C.0003: input,hidraw2: USB HID v1.01 Keyboard [Qualsense 2.4G Air Mouse] on usb-xhci-hcd.0.auto-1.2/input2
[    6.917312] input: Qualsense 2.4G Air Mouse as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3/0003:0C40:7A1C.0004/input/input5
[    6.929113] hid-generic 0003:0C40:7A1C.0004: input,hidraw3: USB HID v1.01 Mouse [Qualsense 2.4G Air Mouse] on usb-xhci-hcd.0.auto-1.2/input3
[    7.210178] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[    7.221870] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    7.513065] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    7.535548] systemd[1]: Reached target Swap.
[    7.547533] systemd[1]: Reached target User and Group Name Lookups.
[    7.564116] systemd[1]: Created slice System Slice.
[    7.579850] systemd[1]: Listening on fsck to fsckd communication Socket.
[    7.854808] register clk_set_setting cpu[41]
[    7.858849] Registered firmware driver success.
[    7.859477] Try to load video/h264_multi.bin  ...
[    7.867545] firmware_codec firmware_vdec: Direct firmware load for video/h264_multi.bin failed with error -2
[    7.873144] Error : -2 can't load the video/h264_multi.bin.
[    7.878868] get data from fsys fail.
[    7.882574] invaild file type.
[    7.886103] Try to load video/h264.bin  ...
[    7.890187] firmware_codec firmware_vdec: Direct firmware load for video/h264.bin failed with error -2
[    7.899583] Error : -2 can't load the video/h264.bin.
[    7.904756] get data from fsys fail.
[    7.908483] invaild file type.
[    7.911975] Try to load video/h265.bin  ...
[    7.916058] firmware_codec firmware_vdec: Direct firmware load for video/h265.bin failed with error -2
[    7.925489] Error : -2 can't load the video/h265.bin.
[    7.930672] get data from fsys fail.
[    7.934401] invaild file type.
[    7.934644] Try to load video/h264_enc.bin  ...
[    7.939337] load firmware size : 76288, Name : video/h264_enc.bin.
[    7.939345] start to parse fw package.
[    7.939348] the package has 0 fws totally.
[    7.939350] the fw pack ver v0.0.0 is too lower.
[    7.939350] it may work abnormally so need to be update in time.
[    7.939737] Try to load video/video_ucode.bin  ...
[    7.988549] load firmware size : 768768, Name : video/video_ucode.bin.
[    7.989791] start to parse fw package.
[    7.993625] the package has 35 fws totally.
[    7.993813] the fw gxl_h264_multi.bin is not match.
[    7.994031] the fw gxl_vp9.bin is not match.
[    7.994158] the fw gxl_avs.bin is not match.
[    7.994409] the fw gxl_hevc.bin is not match.
[    7.994497] the fw gxl_vc1.bin is not match.
[    7.994635] the fw gxl_h264.bin is not match.
[    7.995488] the fw gxl_h264_mvc.bin is not match.
[    8.077128] Amlogic A/V streaming port init
[    8.081838] get gate demux control ok ffffffc0c9ca3600
[    8.084983] get gate parser_top control ok ffffffc0c9ca31c0
[    8.090610] get gate vdec control ok ffffffc0c9ca3180
[    8.095766] get gate clk_81 control failed           (null)
[    8.101586] get gate clk_vdec_mux control ok ffffffc0c85e8b00
[    8.107449] get gate clk_hcodec_mux control ok ffffffc0c9165780
[    8.113414] get gate clk_hevc_mux control ok ffffffc0c9165680
[    8.119310] get gate clk_hevcb_mux control ok ffffffc0c91655c0
[    8.125309] get gate ahbarb0 control ok ffffffc0c9165540
[    8.130725] get gate asyncfifo control failed           (null)
[    8.148810] amvdec_avs module init
[    8.165311] amvdec_h264 module init
[    8.189505] ammvdec_h264 module init
[    8.219494] amvdec_h265 module init
[    8.255762] amvdec_mmpeg4 module init
[    8.286213] amvdec_vc1 module init
[    8.315058] amvdec_vp9 module init
[    8.918059] EXT4-fs (mmcblk1p2): re-mounted. Opts: errors=remount-ro
[    9.010833] systemd-journald[2015]: Received request to flush runtime journal from PID 1
[    9.027391] systemd-journald[2015]: File /var/log/journal/e00bd6223a7245d0aa6e19e0ab12a024/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   10.797634] Registered IR keymap rc-empty
[   10.797874] input: meson-ir as /devices/platform/ff808040.meson-ir/rc/rc0/input6
[   10.798078] rc rc0: meson-ir as /devices/platform/ff808040.meson-ir/rc/rc0
[   10.799552] meson-ir ff808040.meson-ir: AO_RTI_PIN_MUX : 0x100011
[   10.799563] meson-ir ff808040.meson-ir: receiver initialized
[   10.825698] lirc_dev: IR Remote Control driver registered, major 499
[   10.838634] ionvid: dbg: ionvideo open
[   10.838750] ionvid: dbg: vidioc_close!!!!
[   10.838755] ionvid: dbg: vidioc_close
[   10.839127] ionvid: dbg: ionvideo open
[   10.839224] ionvid: dbg: vidioc_close!!!!
[   10.839230] ionvid: dbg: vidioc_close
[   10.840752] ionvid: dbg: ionvideo open
[   10.840757] ionvid: dbg: ionvideo open
[   10.840859] ionvid: dbg: vidioc_close!!!!
[   10.840862] ionvid: dbg: vidioc_close!!!!
[   10.840864] ionvid: dbg: vidioc_close
[   10.840867] ionvid: dbg: vidioc_close
[   10.841116] rc rc0: lirc_dev: driver ir-lirc-codec (meson-ir) registered at minor = 0
[   10.841121] IR LIRC bridge handler initialized
[   10.842653] ionvid: dbg: ionvideo open
[   10.842761] ionvid: dbg: vidioc_close!!!!
[   10.842766] ionvid: dbg: vidioc_close
[   10.845586] ionvid: dbg: ionvideo open
[   10.845781] ionvid: dbg: vidioc_close!!!!
[   10.845792] ionvid: dbg: vidioc_close
[   10.847947] ionvid: dbg: ionvideo open
[   10.848136] ionvid: dbg: vidioc_close!!!!
[   10.848149] ionvid: dbg: vidioc_close
[   10.850650] ionvid: dbg: ionvideo open
[   10.850753] ionvid: dbg: vidioc_close!!!!
[   10.850757] ionvid: dbg: vidioc_close
[   10.850811] ionvid: dbg: ionvideo open
[   10.850979] ionvid: dbg: vidioc_close!!!!
[   10.850987] ionvid: dbg: vidioc_close
[   10.956997] rtc-pcf8563 3-0051: rtc core: registered rtc-pcf8563 as rtc0
[   11.435435] vout: aml_tvout_mode_work: monitor_timeout
[   11.938492] Fine tdm clk setting range (0~2000000), 11289593
[   11.939503] Fine spdif sysclk setting range(0~2000000), 5644797
[   11.945950] out of value, fixed it
[   11.948416] id=0 set inskew=0
[   11.948532] AED req_sel0 module:TDMOUT_B
[   11.948585] spk_mute_set: mute flag = 0
[   18.293323] Fine tdm clk setting range (0~2000000), 11289593
[   18.293567] Fine spdif sysclk setting range(0~2000000), 5644797
[   18.299750] out of value, fixed it
[   18.303162] id=0 set inskew=0
[   18.303227] AED req_sel0 module:TDMOUT_B
[   18.303265] spk_mute_set: mute flag = 0
[   21.411284] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   21.586885] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   21.674343] meson6-dwmac ff3f0000.ethernet eth0: fail to init PTP.
[   21.674850] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.518086] fb: osd[0] enable: 0 (Xorg)
[   23.723690] meson6-dwmac ff3f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   23.723713] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   25.331923] fb: osd[0] enable: 1 (Xorg)
[   29.702446] meson_uart ff803000.serial: ttyS0 use xtal(24M) 24000000 change 115200 to 115200
[   37.316339] spdif_b keep clk continuous
[   37.316346] aml_spdif_open
[   37.316533] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   37.316723] set normal 512 fs /4 fs
[   37.316751] 	 set spdifout clk:5644800, mpll:22579200
[   37.316753] 	 get spdifout clk:5644797, mpll:22579186
[   37.316756] aml_dai_set_spdif_fmt , fmt 0x4010
[   37.316759] set normal 512 fs /4 fs
[   37.316767] 	 set spdifout clk:5644800, mpll:22579200
[   37.316769] 	 get spdifout clk:5644797, mpll:22579186
[   37.316829] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   37.316836] hdmitx: hw: set audio
[   37.316838] hdmitx: hw: hdmitx tx_aud_src = 0
[   37.316850] hdmitx: fs = 2, cd = 8, tmds_clk = 148500
[   37.316852] hdmitx: hw: aud_n_para = 6272
[   37.316859] hdmitx: hw: set channel status
[   37.316887] hdmitx: audio: Audio Type: PCM
[   37.316889] hdmitx: audio: set audio param
[   37.316892] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   37.356355] asoc-aml-card auge_sound: S/PDIF Playback enable
[   37.359320] audio_ddr_mngr: frddrs[1] registered by device ff642000.audiobus:tdmc
[   37.359485] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[   37.359490] asoc aml_dai_set_tdm_fmt, 0x4011, ffffffc0ca377718, id(2), clksel(2)
[   37.359491] aml_dai_set_tdm_fmt(), fmt not change
[   37.359494] dump_pcm_setting(ffffffc0ca377718)
[   37.359495] 	pcm_mode(1)
[   37.359496] 	sysclk(11289600)
[   37.359497] 	sysclk_bclk_ratio(4)
[   37.359498] 	bclk(2822400)
[   37.359499] 	bclk_lrclk_ratio(64)
[   37.359499] 	lrclk(44100)
[   37.359500] 	tx_mask(0x3)
[   37.359501] 	rx_mask(0x3)
[   37.359504] 	slots(2)
[   37.359507] 	slot_width(32)
[   37.359510] 	lane_mask_in(0x2)
[   37.359514] 	lane_mask_out(0x1)
[   37.359517] 	lane_oe_mask_in(0x0)
[   37.359521] 	lane_oe_mask_out(0x0)
[   37.359524] 	lane_lb_mask_in(0x0)
[   37.359527] aml_dai_set_tdm_sysclk(), mpll no change, keep clk
[   37.359528] aml_dai_set_tdm_sysclk(), mclk no change, keep clk
[   37.359530] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[   37.359531] aml_dai_set_clkdiv, div 4, clksel(2)
[   37.359537] aml_dai_set_bclk_ratio, select I2S mode
[   37.359540] mclk is not configured
[   37.359648] tdm playback mute: 0, lane_cnt = 4
[   37.366349] asoc-aml-card auge_sound: tdm playback enable
[   37.369356] spdif_a keep clk continuous
[   37.369361] aml_spdif_open
[   37.370725] audio_ddr_mngr: frddrs[2] registered by device ff642000.audiobus:spdif
[   37.370834] set normal 512 fs /4 fs
[   37.370855] 	 set spdifout clk:5644800, mpll:22579200
[   37.370856] 	 get spdifout clk:5644797, mpll:22579186
[   37.370858] aml_dai_set_spdif_fmt , fmt 0x4010
[   37.370860] set normal 512 fs /4 fs
[   37.370867] 	 set spdifout clk:5644800, mpll:22579200
[   37.370869] 	 get spdifout clk:5644797, mpll:22579186
[   37.370907] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   37.370912] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   37.379813] asoc-aml-card auge_sound: S/PDIF Playback enable
[   42.644722] asoc-aml-card auge_sound: S/PDIF Playback disable
[   42.644767] spdif_a keep clk continuous
[   42.644771] aml_spdif_close
[   42.644816] audio_ddr_mngr: frddrs[2] released by device ff642000.audiobus:spdif
[   42.645002] asoc-aml-card auge_sound: tdm playback stop
[   42.645062] tdm playback mute: 1, lane_cnt = 4
[   42.645100] audio_ddr_mngr: frddrs[1] released by device ff642000.audiobus:tdmc
[   42.645287] asoc-aml-card auge_sound: S/PDIF Playback disable
[   42.645332] spdif_b keep clk continuous
[   42.645336] aml_spdif_close
[   42.645376] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.657375] spdif_b keep clk continuous
[   42.657380] aml_spdif_open
[   42.657493] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.657647] spdif_b keep clk continuous
[   42.657651] aml_spdif_close
[   42.657692] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.657942] spdif_b keep clk continuous
[   42.657946] aml_spdif_open
[   42.658155] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.658296] spdif_b keep clk continuous
[   42.658300] aml_spdif_close
[   42.658329] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.658571] spdif_b keep clk continuous
[   42.658573] aml_spdif_open
[   42.658675] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.658872] spdif_b keep clk continuous
[   42.658876] aml_spdif_close
[   42.658907] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.659189] spdif_b keep clk continuous
[   42.659191] aml_spdif_open
[   42.659284] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.659593] spdif_b keep clk continuous
[   42.659597] aml_spdif_close
[   42.659629] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.660153] spdif_b keep clk continuous
[   42.660157] aml_spdif_open
[   42.660909] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.661057] set normal 512 fs /4 fs
[   42.661080] 	 set spdifout clk:5644800, mpll:22579200
[   42.661082] 	 get spdifout clk:5644797, mpll:22579186
[   42.661084] aml_dai_set_spdif_fmt , fmt 0x4010
[   42.661086] set normal 512 fs /4 fs
[   42.661093] 	 set spdifout clk:5644800, mpll:22579200
[   42.661094] 	 get spdifout clk:5644797, mpll:22579186
[   42.661122] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   42.661129] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   42.816209] spdif_b keep clk continuous
[   42.816214] aml_spdif_close
[   42.816281] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.823173] spdif_b keep clk continuous
[   42.823179] aml_spdif_open
[   42.823381] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.823689] set normal 512 fs /4 fs
[   42.823722] 	 set spdifout clk:5644800, mpll:22579200
[   42.823725] 	 get spdifout clk:5644797, mpll:22579186
[   42.823729] aml_dai_set_spdif_fmt , fmt 0x4010
[   42.823732] set normal 512 fs /4 fs
[   42.823741] 	 set spdifout clk:5644800, mpll:22579200
[   42.823743] 	 get spdifout clk:5644797, mpll:22579186
[   42.823812] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   42.823820] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   42.844595] asoc-aml-card auge_sound: S/PDIF Playback enable
[   49.277256] asoc-aml-card auge_sound: S/PDIF Playback disable
[   49.277304] spdif_b keep clk continuous
[   49.277308] aml_spdif_close
[   49.277356] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   52.663573] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   52.671372] EXT4-fs (mmcblk1p6): mounted filesystem with ordered data mode. Opts: (null)
[   52.765195] EXT4-fs (mmcblk1p3): mounted filesystem with writeback data mode. Opts: (null)
[   52.773523] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   53.205123] fuse init (API version 7.26)
[   64.523434] fb: mem_free_work, free memory: addr:800000
[  124.104948] spdif_b keep clk continuous
[  124.104952] aml_spdif_open
[  124.105038] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[  124.105171] set normal 512 fs /4 fs
[  124.105192] 	 set spdifout clk:5644800, mpll:22579200
[  124.105194] 	 get spdifout clk:5644797, mpll:22579186
[  124.105196] aml_dai_set_spdif_fmt , fmt 0x4010
[  124.105198] set normal 512 fs /4 fs
[  124.105205] 	 set spdifout clk:5644800, mpll:22579200
[  124.105206] 	 get spdifout clk:5644797, mpll:22579186
[  124.105247] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[  124.105253] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[  124.107422] asoc-aml-card auge_sound: S/PDIF Playback enable
[  152.945685] asoc-aml-card auge_sound: S/PDIF Playback disable
[  152.945748] spdif_b keep clk continuous
[  152.945753] aml_spdif_close
[  152.945801] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[  162.927580] spdif_b keep clk continuous
[  162.927585] aml_spdif_open
[  162.927711] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[  162.927861] set normal 512 fs /4 fs
[  162.927887] 	 set spdifout clk:5644800, mpll:22579200
[  162.927888] 	 get spdifout clk:5644797, mpll:22579186
[  162.927891] aml_dai_set_spdif_fmt , fmt 0x4010
[  162.927893] set normal 512 fs /4 fs
[  162.927900] 	 set spdifout clk:5644800, mpll:22579200
[  162.927902] 	 get spdifout clk:5644797, mpll:22579186
[  162.927952] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[  162.927960] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[  162.928752] asoc-aml-card auge_sound: S/PDIF Playback enable
root@odroid:/home/odroid# 

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

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

kardanadm wrote:
Thu Nov 14, 2019 11:34 pm
tobetter wrote:
Thu Nov 14, 2019 6:41 pm
Can you share the kernel log when Ubuntu Mate is starting?
is it possible?

Code: Select all

[    5.164685] asoc-aml-card auge_sound: dit-hifi <-> SPDIF-B mapping ok
[    5.171052] set mclk:12288000, mpll:24576000, get mclk:12287994, mpll:24575987
[    5.171055] aml_dai_set_tdm_slot(), txmask(0x3), rxmask(0x3)
[    5.171056] 	lanes_out_cnt(1), lanes_in_cnt(1)
[    5.171057] 	lanes_oe_out_cnt(0), lanes_oe_in_cnt(0)
[    5.171058] 	lanes_lb_cnt(0)
[    5.171059] 	slots(2), slot_width(32)
[    5.171064] asoc aml_dai_set_tdm_fmt, 0x4011, ffffffc0ca377718, id(2), clksel(2)
[    5.171067] master_mode(1), binv(1), finv(1) out_skew(2), in_skew(3)
[    5.177767] asoc-aml-card auge_sound: T9015-audio-hifi <-> TDM-C mapping ok
[    5.184642] set normal 512 fs /4 fs
[    5.184653] 	 set spdifout clk:6144000, mpll:24576000
[    5.184655] 	 get spdifout clk:6143997, mpll:24575987
[    5.184656] aml_dai_set_spdif_fmt , fmt 0x4010
[    5.184687] aml_spdif_new spdif_a, clk continuous:1
[    5.184688] spdifout_play_with_zerodata_free, spdif id:0
[    5.184816] asoc-aml-card auge_sound: dit-hifi <-> SPDIF mapping ok
[    5.191515] snd_card_add_kcontrols card:ffffffc0c9dfc818
[    5.196516] effect_v2 is not init
[    5.199980] Not init vad
[    5.199981] Failed to add VAD controls
[    5.203886] eq/drc v1 function enable
[    5.235469] add line-out mute controls
[    5.235783] dwc3 ff500000.dwc3: Configuration mismatch. dr_mode forced to host
[    5.243724] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.246754] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    5.254560] usb: xhci: determined sg_tablesize: 4294967295
[    5.260177] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228fe6c hci version 0x110 quirks 0x20010010
[    5.268878] xhci-hcd xhci-hcd.0.auto: irq 23, io mem 0xff500000
[    5.274979] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.281856] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.289219] usb usb1: Product: xHCI Host Controller
[    5.294247] usb usb1: Manufacturer: Linux 4.9.196-63 xhci-hcd
[    5.300138] usb usb1: SerialNumber: xhci-hcd.0.auto
[    5.305370] hub 1-0:1.0: USB hub found
[    5.309078] hub 1-0:1.0: 2 ports detected
[    5.313359] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    5.318863] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    5.326660] usb: xhci: determined sg_tablesize: 4294967295
[    5.332140] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.340387] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    5.347286] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.354654] usb usb2: Product: xHCI Host Controller
[    5.359679] usb usb2: Manufacturer: Linux 4.9.196-63 xhci-hcd
[    5.365571] usb usb2: SerialNumber: xhci-hcd.0.auto
[    5.370764] hub 2-0:1.0: USB hub found
[    5.374509] hub 2-0:1.0: 1 port detected
[    5.378801] hctosys: unable to open rtc device (rtc0)
[    5.383938] dwc_otg ff400000.dwc2_a: dwc_otg_driver_probe(ffffffc0ca212c00)
[    5.383950] dwc_otg: usb0: type: 2 speed: 0, config: 0, dma: 0, id: 0, phy: ffe09000, ctrl: 0
[    5.392443] dwc_otg ff400000.dwc2_a: base=0xffffff8008d00000
[    5.392446] dwc_otg ff400000.dwc2_a: dwc_otg_device=0xffffffc003197400
[    5.492554] dwc_otg: Core Release: 3.30a
[    5.492570] dwc_otg: Setting default values for core params
[    5.496730] dwc_otg: curmode: 0, host_only: 0
[    5.501239] dwc_otg ff400000.dwc2_a: DMA config: BURST_DEFAULT
[    5.513366] dwc_otg: Using Buffer DMA mode
[    5.513383] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[    5.517281] dwc_otg: Working on port type = SLAVE
[    5.522157] dwc_otg: Dedicated Tx FIFOs mode
[    5.527428] meson_cdev probe
[    5.529626] meson_cdev index: 0
[    5.532962] meson_cdev index: 1
[    5.536222] thermal: no cluster id, cpucore as one cooldev
[    5.541822] meson_cdev index: 2
[    5.545104] cpucore_cooling_register, max_cpu_core_num:6
[    5.550562] cpucore_cooling_register, clutser[1] core num:4
[    5.556281] cpucore_cooling_register, clutser[0] core num:2
[    5.562053] meson_cdev index: 3
[    5.565307] meson_cdev index: 4
[    5.568612] find tzd id: 0
[    5.571546] find tzd id: 0
[    5.574381] find tzd id: 0
[    5.577212] meson_cdev probe done
[    5.580705] gxbb_pm: enter meson_pm_probe!
[    5.584915] amlogic-new-usb2-v2 ffe09000.usb2phy: ---Set port(0) tuning for host cf(xhci_hub_control)--
[    5.594540] gxbb_pm: meson_pm_probe done
[    5.598687] ALSA device list:
[    5.601612]   #0: AML-AUGESOUND
[    5.604974] meson_uart ff803000.serial: ttyS0 use xtal(24M) 24000000 change 115200 to 115200
[    5.643435] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    5.715427] prepare_namespace() wait 79
[    5.716391] EXT4-fs (mmcblk1p2): couldn't mount as ext3 due to feature incompatibilities
[    5.738674] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.741310] VFS: Mounted root (ext4 filesystem) on device 179:130.
[    5.755688] devtmpfs: mounted
[    5.756969] Freeing unused kernel memory: 4864K
[    5.785771] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
[    5.786994] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.794295] usb 1-1: Product: USB2.1 Hub
[    5.798352] usb 1-1: Manufacturer: GenesysLogic
[    5.812358] hub 1-1:1.0: USB hub found
[    5.812606] hub 1-1:1.0: 4 ports detected
[    5.903543] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[    5.926022] usb 2-1: New USB device found, idVendor=05e3, idProduct=0620
[    5.927246] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.934551] usb 2-1: Product: USB3.1 Hub
[    5.938604] usb 2-1: Manufacturer: GenesysLogic
[    5.956331] hub 2-1:1.0: USB hub found
[    5.956638] hub 2-1:1.0: 4 ports detected
[    6.155437] usb 1-1.1: new full-speed USB device number 3 using xhci-hcd
[    6.281574] usb 1-1.1: New USB device found, idVendor=046d, idProduct=c534
[    6.282972] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    6.290436] usb 1-1.1: Product: USB Receiver
[    6.294868] usb 1-1.1: Manufacturer: Logitech
[    6.318942] systemd[1]: System time before build time, advancing clock.
[    6.325887] input: Logitech USB Receiver as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.1/1-1.1:1.0/0003:046D:C534.0001/input/input2
[    6.363491] usb 2-1.3: new SuperSpeed USB device number 3 using xhci-hcd
[    6.384369] usb 2-1.3: New USB device found, idVendor=0080, idProduct=a001
[    6.385765] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.393609] hid-generic 0003:046D:C534.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-xhci-hcd.0.auto-1.1/input0
[    6.405981] usb 2-1.3: Product: External USB 3.0
[    6.411557] input: Logitech USB Receiver as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.1/1-1.1:1.1/0003:046D:C534.0002/input/input3
[    6.424257] usb 2-1.3: Manufacturer: TOSHIBA
[    6.428670] usb 2-1.3: SerialNumber: 201503310007F
[    6.436720] scsi host0: uas
[    6.441528] scsi 0:0:0:0: Direct-Access     TO Exter nal USB 3.0      0204 PQ: 0 ANSI: 6
[    6.471767] hid-generic 0003:046D:C534.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-xhci-hcd.0.auto-1.1/input1
[    6.488118] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.488319] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    6.488849] NET: Registered protocol family 10
[    6.500311] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    6.500820] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.506844] cgroup: cgroup2: unknown option "nsdelegate"
[    6.517098] sd 0:0:0:0: [sda] Write Protect is off
[    6.521443] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[    6.521767] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.530756] xhci-hcd xhci-hcd.0.auto: ERROR Transfer event for disabled endpoint or incorrect stream ring
[    6.540313] xhci-hcd xhci-hcd.0.auto: @00000000cf612c40 00000000 00000000 1b000000 04078001
[    6.549118] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[    6.561545]  sda:
[    6.563289] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.583434] usb 1-1.2: new full-speed USB device number 4 using xhci-hcd
[    6.583521] systemd[1]: systemd 237 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    6.584092] systemd[1]: Detected architecture arm64.
[    6.640386] systemd[1]: Set hostname to <odroid>.
[    6.745205] usb 1-1.2: New USB device found, idVendor=0c40, idProduct=7a1c
[    6.746604] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.754079] usb 1-1.2: Product: 2.4G Air Mouse
[    6.758658] usb 1-1.2: Manufacturer: Qualsense
[    6.763247] usb 1-1.2: SerialNumber: SmartMouse
[    6.842460] input: Qualsense 2.4G Air Mouse as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.2/0003:0C40:7A1C.0003/input/input4
[    6.907751] hid-generic 0003:0C40:7A1C.0003: input,hidraw2: USB HID v1.01 Keyboard [Qualsense 2.4G Air Mouse] on usb-xhci-hcd.0.auto-1.2/input2
[    6.917312] input: Qualsense 2.4G Air Mouse as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3/0003:0C40:7A1C.0004/input/input5
[    6.929113] hid-generic 0003:0C40:7A1C.0004: input,hidraw3: USB HID v1.01 Mouse [Qualsense 2.4G Air Mouse] on usb-xhci-hcd.0.auto-1.2/input3
[    7.210178] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[    7.221870] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[    7.513065] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    7.535548] systemd[1]: Reached target Swap.
[    7.547533] systemd[1]: Reached target User and Group Name Lookups.
[    7.564116] systemd[1]: Created slice System Slice.
[    7.579850] systemd[1]: Listening on fsck to fsckd communication Socket.
[    7.854808] register clk_set_setting cpu[41]
[    7.858849] Registered firmware driver success.
[    7.859477] Try to load video/h264_multi.bin  ...
[    7.867545] firmware_codec firmware_vdec: Direct firmware load for video/h264_multi.bin failed with error -2
[    7.873144] Error : -2 can't load the video/h264_multi.bin.
[    7.878868] get data from fsys fail.
[    7.882574] invaild file type.
[    7.886103] Try to load video/h264.bin  ...
[    7.890187] firmware_codec firmware_vdec: Direct firmware load for video/h264.bin failed with error -2
[    7.899583] Error : -2 can't load the video/h264.bin.
[    7.904756] get data from fsys fail.
[    7.908483] invaild file type.
[    7.911975] Try to load video/h265.bin  ...
[    7.916058] firmware_codec firmware_vdec: Direct firmware load for video/h265.bin failed with error -2
[    7.925489] Error : -2 can't load the video/h265.bin.
[    7.930672] get data from fsys fail.
[    7.934401] invaild file type.
[    7.934644] Try to load video/h264_enc.bin  ...
[    7.939337] load firmware size : 76288, Name : video/h264_enc.bin.
[    7.939345] start to parse fw package.
[    7.939348] the package has 0 fws totally.
[    7.939350] the fw pack ver v0.0.0 is too lower.
[    7.939350] it may work abnormally so need to be update in time.
[    7.939737] Try to load video/video_ucode.bin  ...
[    7.988549] load firmware size : 768768, Name : video/video_ucode.bin.
[    7.989791] start to parse fw package.
[    7.993625] the package has 35 fws totally.
[    7.993813] the fw gxl_h264_multi.bin is not match.
[    7.994031] the fw gxl_vp9.bin is not match.
[    7.994158] the fw gxl_avs.bin is not match.
[    7.994409] the fw gxl_hevc.bin is not match.
[    7.994497] the fw gxl_vc1.bin is not match.
[    7.994635] the fw gxl_h264.bin is not match.
[    7.995488] the fw gxl_h264_mvc.bin is not match.
[    8.077128] Amlogic A/V streaming port init
[    8.081838] get gate demux control ok ffffffc0c9ca3600
[    8.084983] get gate parser_top control ok ffffffc0c9ca31c0
[    8.090610] get gate vdec control ok ffffffc0c9ca3180
[    8.095766] get gate clk_81 control failed           (null)
[    8.101586] get gate clk_vdec_mux control ok ffffffc0c85e8b00
[    8.107449] get gate clk_hcodec_mux control ok ffffffc0c9165780
[    8.113414] get gate clk_hevc_mux control ok ffffffc0c9165680
[    8.119310] get gate clk_hevcb_mux control ok ffffffc0c91655c0
[    8.125309] get gate ahbarb0 control ok ffffffc0c9165540
[    8.130725] get gate asyncfifo control failed           (null)
[    8.148810] amvdec_avs module init
[    8.165311] amvdec_h264 module init
[    8.189505] ammvdec_h264 module init
[    8.219494] amvdec_h265 module init
[    8.255762] amvdec_mmpeg4 module init
[    8.286213] amvdec_vc1 module init
[    8.315058] amvdec_vp9 module init
[    8.918059] EXT4-fs (mmcblk1p2): re-mounted. Opts: errors=remount-ro
[    9.010833] systemd-journald[2015]: Received request to flush runtime journal from PID 1
[    9.027391] systemd-journald[2015]: File /var/log/journal/e00bd6223a7245d0aa6e19e0ab12a024/system.journal corrupted or uncleanly shut down, renaming and replacing.
[   10.797634] Registered IR keymap rc-empty
[   10.797874] input: meson-ir as /devices/platform/ff808040.meson-ir/rc/rc0/input6
[   10.798078] rc rc0: meson-ir as /devices/platform/ff808040.meson-ir/rc/rc0
[   10.799552] meson-ir ff808040.meson-ir: AO_RTI_PIN_MUX : 0x100011
[   10.799563] meson-ir ff808040.meson-ir: receiver initialized
[   10.825698] lirc_dev: IR Remote Control driver registered, major 499
[   10.838634] ionvid: dbg: ionvideo open
[   10.838750] ionvid: dbg: vidioc_close!!!!
[   10.838755] ionvid: dbg: vidioc_close
[   10.839127] ionvid: dbg: ionvideo open
[   10.839224] ionvid: dbg: vidioc_close!!!!
[   10.839230] ionvid: dbg: vidioc_close
[   10.840752] ionvid: dbg: ionvideo open
[   10.840757] ionvid: dbg: ionvideo open
[   10.840859] ionvid: dbg: vidioc_close!!!!
[   10.840862] ionvid: dbg: vidioc_close!!!!
[   10.840864] ionvid: dbg: vidioc_close
[   10.840867] ionvid: dbg: vidioc_close
[   10.841116] rc rc0: lirc_dev: driver ir-lirc-codec (meson-ir) registered at minor = 0
[   10.841121] IR LIRC bridge handler initialized
[   10.842653] ionvid: dbg: ionvideo open
[   10.842761] ionvid: dbg: vidioc_close!!!!
[   10.842766] ionvid: dbg: vidioc_close
[   10.845586] ionvid: dbg: ionvideo open
[   10.845781] ionvid: dbg: vidioc_close!!!!
[   10.845792] ionvid: dbg: vidioc_close
[   10.847947] ionvid: dbg: ionvideo open
[   10.848136] ionvid: dbg: vidioc_close!!!!
[   10.848149] ionvid: dbg: vidioc_close
[   10.850650] ionvid: dbg: ionvideo open
[   10.850753] ionvid: dbg: vidioc_close!!!!
[   10.850757] ionvid: dbg: vidioc_close
[   10.850811] ionvid: dbg: ionvideo open
[   10.850979] ionvid: dbg: vidioc_close!!!!
[   10.850987] ionvid: dbg: vidioc_close
[   10.956997] rtc-pcf8563 3-0051: rtc core: registered rtc-pcf8563 as rtc0
[   11.435435] vout: aml_tvout_mode_work: monitor_timeout
[   11.938492] Fine tdm clk setting range (0~2000000), 11289593
[   11.939503] Fine spdif sysclk setting range(0~2000000), 5644797
[   11.945950] out of value, fixed it
[   11.948416] id=0 set inskew=0
[   11.948532] AED req_sel0 module:TDMOUT_B
[   11.948585] spk_mute_set: mute flag = 0
[   18.293323] Fine tdm clk setting range (0~2000000), 11289593
[   18.293567] Fine spdif sysclk setting range(0~2000000), 5644797
[   18.299750] out of value, fixed it
[   18.303162] id=0 set inskew=0
[   18.303227] AED req_sel0 module:TDMOUT_B
[   18.303265] spk_mute_set: mute flag = 0
[   21.411284] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[   21.586885] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   21.674343] meson6-dwmac ff3f0000.ethernet eth0: fail to init PTP.
[   21.674850] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.518086] fb: osd[0] enable: 0 (Xorg)
[   23.723690] meson6-dwmac ff3f0000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   23.723713] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   25.331923] fb: osd[0] enable: 1 (Xorg)
[   29.702446] meson_uart ff803000.serial: ttyS0 use xtal(24M) 24000000 change 115200 to 115200
[   37.316339] spdif_b keep clk continuous
[   37.316346] aml_spdif_open
[   37.316533] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   37.316723] set normal 512 fs /4 fs
[   37.316751] 	 set spdifout clk:5644800, mpll:22579200
[   37.316753] 	 get spdifout clk:5644797, mpll:22579186
[   37.316756] aml_dai_set_spdif_fmt , fmt 0x4010
[   37.316759] set normal 512 fs /4 fs
[   37.316767] 	 set spdifout clk:5644800, mpll:22579200
[   37.316769] 	 get spdifout clk:5644797, mpll:22579186
[   37.316829] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   37.316836] hdmitx: hw: set audio
[   37.316838] hdmitx: hw: hdmitx tx_aud_src = 0
[   37.316850] hdmitx: fs = 2, cd = 8, tmds_clk = 148500
[   37.316852] hdmitx: hw: aud_n_para = 6272
[   37.316859] hdmitx: hw: set channel status
[   37.316887] hdmitx: audio: Audio Type: PCM
[   37.316889] hdmitx: audio: set audio param
[   37.316892] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   37.356355] asoc-aml-card auge_sound: S/PDIF Playback enable
[   37.359320] audio_ddr_mngr: frddrs[1] registered by device ff642000.audiobus:tdmc
[   37.359485] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[   37.359490] asoc aml_dai_set_tdm_fmt, 0x4011, ffffffc0ca377718, id(2), clksel(2)
[   37.359491] aml_dai_set_tdm_fmt(), fmt not change
[   37.359494] dump_pcm_setting(ffffffc0ca377718)
[   37.359495] 	pcm_mode(1)
[   37.359496] 	sysclk(11289600)
[   37.359497] 	sysclk_bclk_ratio(4)
[   37.359498] 	bclk(2822400)
[   37.359499] 	bclk_lrclk_ratio(64)
[   37.359499] 	lrclk(44100)
[   37.359500] 	tx_mask(0x3)
[   37.359501] 	rx_mask(0x3)
[   37.359504] 	slots(2)
[   37.359507] 	slot_width(32)
[   37.359510] 	lane_mask_in(0x2)
[   37.359514] 	lane_mask_out(0x1)
[   37.359517] 	lane_oe_mask_in(0x0)
[   37.359521] 	lane_oe_mask_out(0x0)
[   37.359524] 	lane_lb_mask_in(0x0)
[   37.359527] aml_dai_set_tdm_sysclk(), mpll no change, keep clk
[   37.359528] aml_dai_set_tdm_sysclk(), mclk no change, keep clk
[   37.359530] set mclk:11289600, mpll:22579200, get mclk:11289593, mpll:22579186
[   37.359531] aml_dai_set_clkdiv, div 4, clksel(2)
[   37.359537] aml_dai_set_bclk_ratio, select I2S mode
[   37.359540] mclk is not configured
[   37.359648] tdm playback mute: 0, lane_cnt = 4
[   37.366349] asoc-aml-card auge_sound: tdm playback enable
[   37.369356] spdif_a keep clk continuous
[   37.369361] aml_spdif_open
[   37.370725] audio_ddr_mngr: frddrs[2] registered by device ff642000.audiobus:spdif
[   37.370834] set normal 512 fs /4 fs
[   37.370855] 	 set spdifout clk:5644800, mpll:22579200
[   37.370856] 	 get spdifout clk:5644797, mpll:22579186
[   37.370858] aml_dai_set_spdif_fmt , fmt 0x4010
[   37.370860] set normal 512 fs /4 fs
[   37.370867] 	 set spdifout clk:5644800, mpll:22579200
[   37.370869] 	 get spdifout clk:5644797, mpll:22579186
[   37.370907] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   37.370912] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   37.379813] asoc-aml-card auge_sound: S/PDIF Playback enable
[   42.644722] asoc-aml-card auge_sound: S/PDIF Playback disable
[   42.644767] spdif_a keep clk continuous
[   42.644771] aml_spdif_close
[   42.644816] audio_ddr_mngr: frddrs[2] released by device ff642000.audiobus:spdif
[   42.645002] asoc-aml-card auge_sound: tdm playback stop
[   42.645062] tdm playback mute: 1, lane_cnt = 4
[   42.645100] audio_ddr_mngr: frddrs[1] released by device ff642000.audiobus:tdmc
[   42.645287] asoc-aml-card auge_sound: S/PDIF Playback disable
[   42.645332] spdif_b keep clk continuous
[   42.645336] aml_spdif_close
[   42.645376] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.657375] spdif_b keep clk continuous
[   42.657380] aml_spdif_open
[   42.657493] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.657647] spdif_b keep clk continuous
[   42.657651] aml_spdif_close
[   42.657692] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.657942] spdif_b keep clk continuous
[   42.657946] aml_spdif_open
[   42.658155] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.658296] spdif_b keep clk continuous
[   42.658300] aml_spdif_close
[   42.658329] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.658571] spdif_b keep clk continuous
[   42.658573] aml_spdif_open
[   42.658675] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.658872] spdif_b keep clk continuous
[   42.658876] aml_spdif_close
[   42.658907] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.659189] spdif_b keep clk continuous
[   42.659191] aml_spdif_open
[   42.659284] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.659593] spdif_b keep clk continuous
[   42.659597] aml_spdif_close
[   42.659629] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.660153] spdif_b keep clk continuous
[   42.660157] aml_spdif_open
[   42.660909] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.661057] set normal 512 fs /4 fs
[   42.661080] 	 set spdifout clk:5644800, mpll:22579200
[   42.661082] 	 get spdifout clk:5644797, mpll:22579186
[   42.661084] aml_dai_set_spdif_fmt , fmt 0x4010
[   42.661086] set normal 512 fs /4 fs
[   42.661093] 	 set spdifout clk:5644800, mpll:22579200
[   42.661094] 	 get spdifout clk:5644797, mpll:22579186
[   42.661122] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   42.661129] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   42.816209] spdif_b keep clk continuous
[   42.816214] aml_spdif_close
[   42.816281] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   42.823173] spdif_b keep clk continuous
[   42.823179] aml_spdif_open
[   42.823381] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[   42.823689] set normal 512 fs /4 fs
[   42.823722] 	 set spdifout clk:5644800, mpll:22579200
[   42.823725] 	 get spdifout clk:5644797, mpll:22579186
[   42.823729] aml_dai_set_spdif_fmt , fmt 0x4010
[   42.823732] set normal 512 fs /4 fs
[   42.823741] 	 set spdifout clk:5644800, mpll:22579200
[   42.823743] 	 get spdifout clk:5644797, mpll:22579186
[   42.823812] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[   42.823820] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[   42.844595] asoc-aml-card auge_sound: S/PDIF Playback enable
[   49.277256] asoc-aml-card auge_sound: S/PDIF Playback disable
[   49.277304] spdif_b keep clk continuous
[   49.277308] aml_spdif_close
[   49.277356] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[   52.663573] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   52.671372] EXT4-fs (mmcblk1p6): mounted filesystem with ordered data mode. Opts: (null)
[   52.765195] EXT4-fs (mmcblk1p3): mounted filesystem with writeback data mode. Opts: (null)
[   52.773523] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   53.205123] fuse init (API version 7.26)
[   64.523434] fb: mem_free_work, free memory: addr:800000
[  124.104948] spdif_b keep clk continuous
[  124.104952] aml_spdif_open
[  124.105038] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[  124.105171] set normal 512 fs /4 fs
[  124.105192] 	 set spdifout clk:5644800, mpll:22579200
[  124.105194] 	 get spdifout clk:5644797, mpll:22579186
[  124.105196] aml_dai_set_spdif_fmt , fmt 0x4010
[  124.105198] set normal 512 fs /4 fs
[  124.105205] 	 set spdifout clk:5644800, mpll:22579200
[  124.105206] 	 get spdifout clk:5644797, mpll:22579186
[  124.105247] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[  124.105253] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[  124.107422] asoc-aml-card auge_sound: S/PDIF Playback enable
[  152.945685] asoc-aml-card auge_sound: S/PDIF Playback disable
[  152.945748] spdif_b keep clk continuous
[  152.945753] aml_spdif_close
[  152.945801] audio_ddr_mngr: frddrs[0] released by device ff642000.audiobus:spdif_b
[  162.927580] spdif_b keep clk continuous
[  162.927585] aml_spdif_open
[  162.927711] audio_ddr_mngr: frddrs[0] registered by device ff642000.audiobus:spdif_b
[  162.927861] set normal 512 fs /4 fs
[  162.927887] 	 set spdifout clk:5644800, mpll:22579200
[  162.927888] 	 get spdifout clk:5644797, mpll:22579186
[  162.927891] aml_dai_set_spdif_fmt , fmt 0x4010
[  162.927893] set normal 512 fs /4 fs
[  162.927900] 	 set spdifout clk:5644800, mpll:22579200
[  162.927902] 	 get spdifout clk:5644797, mpll:22579186
[  162.927952] spdif_info: rate: 44100, channel status ch0_l:0x100, ch0_r:0x100, ch1_l:0x0, ch1_r:0x0
[  162.927960] aml_spdif_fifo_ctrl, bit depth:16, frddr type:1, toddr:type:1
[  162.928752] asoc-aml-card auge_sound: S/PDIF Playback enable
root@odroid:/home/odroid# 
If this log comes from Ubuntu Mate, I think booting Ubuntu by Petitboot is fine. Is the problem that Ubuntu is not stable after Petitboot?

xabolcs
Posts: 68
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 91 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by xabolcs » Fri Nov 15, 2019 1:17 am

tobetter wrote:
Thu Nov 14, 2019 9:50 pm
I think I tried this ealier, please try 0x01080000 instead of 0x1080000 at the command "bootm". If this does not work, let me know again.
Changing bootm parameter to 0x01080000 fixes the parsing problem, but unveils another (grabbed from petitboot-nc):

Code: Select all

 Petitboot status log
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
 [mmcblk0p4] Processing new Disk device
 [mmcblk0p2] Processing new Disk device
 [mmcblk1p2] Processing new Disk device
 [mmcblk1p1] Processing new Disk device
 Booting in 11 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Booting in 10 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Booting in 9 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Booting in 8 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Booting in 7 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Booting in 6 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Booting in 5 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Booting in 4 sec: [mmcblk0p3] Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Default boot cancelled
 Booting Debian GNU/Linux 10 (Buster, eMMC, mainline)
 Loaded kernel image from file:///usr/var/petitboot/mnt/dev/mmcblk0p3/uImage
 Loaded dtb from file:///usr/var/petitboot/mnt/dev/mmcblk0p3/n2.dtb
 Performing kexec load
 Cannot load /usr/var/petitboot/mnt/dev/mmcblk0p3/uImage

 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
 x=exit
 

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Nov 15, 2019 8:58 am

Oh...right...sorry...my bad. I didn't think of the file format which is uImage. The current Petitboot does not recognize the format, I forgot to add it. Instead, you could try to remove the first 64 bytes with dd command and add a couple of commands to extract the rest of uImage somewhere in the memory address, unzip it to have raw kernel image. These steps are same as other OS images does.

Let me share the instruction later if you cannot manage it, I am not able to find it now.

The other way to try out the mainline kernel is to use my custom OS image I've shared in the previous post. It will boot with 4.9 kernel by default but can install 5.x kernel later, even you can switch between kernels installs.

"Tapatalk wishes you to have fun with ODROID"


xabolcs
Posts: 68
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 91 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by xabolcs » Fri Nov 15, 2019 4:34 pm

Thanks!

Will wait for your instructions.

In the mean time I will try to append your image after the Android and meveric's Debian images onto the eMMC. 8-)

xabolcs
Posts: 68
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 91 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by xabolcs » Fri Nov 15, 2019 4:37 pm

xabolcs wrote:
Fri Nov 15, 2019 4:34 pm
In the mean time I will try to append your image after the Android and meveric's Debian images onto the eMMC. 8-)
Ohh, does Petitboot recognize and parse extended partitions too, or primary only?

User avatar
tobetter
Posts: 4263
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: 58 times
Been thanked: 234 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Nov 15, 2019 5:19 pm

xabolcs wrote:
xabolcs wrote:
Fri Nov 15, 2019 4:34 pm
In the mean time I will try to append your image after the Android and meveric's Debian images onto the eMMC. 8-)
Ohh, does Petitboot recognize and parse extended partitions too, or primary only?
Petitboot is running on Linux, so it does not care of it. As long as partions are accessible by Linux kernel you will see them. FYI, probably GPT would work as well if I remember correctly.

"Tapatalk wishes you to have fun with ODROID"

These users thanked the author tobetter for the post:
xabolcs (Fri Nov 15, 2019 5:26 pm)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: binhex and 1 guest