[OS] Manjaro ARM for HC4

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

So, i tested it with two different ssds, when petitboot starts it sucesfully connect to the router and gets a ip and i see on my router that the lan is conected.
When booting manjaro im in a infinite bootloop, and lan gets not connected. Maybe the kernel/uboot isnt loading correctly the lan iinterface or something else.

Its just funny that the alpha booted without problems and the stable not. After updating the system on the alpha i get the same problem like in the stabke version. maybe some kernel parameter are missing due drivers?

arlac77
Posts: 3
Joined: Wed Apr 07, 2021 2:21 am
languages_spoken: english
ODROIDs: c2,xu3,xu4,hc4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [OS] Manjaro ARM for HC4

Post by arlac77 »

Same for me unstable is working as long as I don't update the linux-vim package

User avatar
spikerguy
Posts: 49
Joined: Thu Apr 30, 2020 12:35 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 14 times
Been thanked: 16 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by spikerguy »

Hello,

Are you guys trying to boot it from SSD ?

I am using it on sd card and I will try unstable and stable both images tonight and might also do a recording if I get time and then upgrade it to latest linux-vim pkg and see if I face any bootloop.

Thank you for the feedback.
Manjaro ARM Team

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

spikerguy wrote:
Thu Apr 22, 2021 7:44 pm
Hello,

Are you guys trying to boot it from SSD ?

I am using it on sd card and I will try unstable and stable both images tonight and might also do a recording if I get time and then upgrade it to latest linux-vim pkg and see if I face any bootloop.

Thank you for the feedback.
Yes, im using a SSD. Mostly why i should use a sdcard? The performance would be mostly slowed down like 90 %.

As i said, i think there is a missing config option since youve updated to 5.11.7. Ill check your history on the pkgbuild now.

Could it because you removed the bootsplash patches? Mostly the hc4 is just showing the blootsplash screen when booting and the circle turning, but nothing happens.

User avatar
spikerguy
Posts: 49
Joined: Thu Apr 30, 2020 12:35 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 14 times
Been thanked: 16 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by spikerguy »

Noo bootsplash was depreciated in 5.10 itself now we use plymouth.
I have never tested booting directly from ssd as I like to put the Drive to sleep when not in use. I use sdcard to boot while mounting the hdd as a storage drive where all my nas and Jellyfin data is store.

Can you please try flashing the image on an SD Card and testing unstable with upgrade and stable image with upgrade. I hope that will work as it is working fine for me. If I have to test your method then I need a spare drive which I do not have at the moment. So I will not be able to test it as per your use case :(

Can you help me understand the difference between the Kernel version so I can do a diff and see what kernel config was changed in the later version, hopefully if it is a kernel config issue then I should be able to fix it in the new kernel pkg.
Manjaro ARM Team

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

SD Card is working. There was never a problem.

Ive just installed now the unstable on a ssd, masked the linux vim package and updated it. rebooted fine.

Now im building directly on the hc4 the kernel with some changes in your pkgbuild. building right now 5.11.16.
If it works, ill report.
And please change the kernel name to linux-odroidhc4 or whatever, linux-vim would no one understand mostly, why this should installed on a hc4.

But releasing it as a stable version is really hard, since most guys will boot from ssd/hdd.
Test it yourself the performance difference, if you got a ssd.

The best should be if you got the uboot source and linux-vim 5.11.4 which you have used in the alpha unstable img.
5.11.4 Kernel Version is not commited by you in the linux-vim package.

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

So, after my build it also not booting.

Just search your built, when you builded the alpha unstable and send me the pkgbuilds if you want. im mostly done now after like 30 flashes and debugging for getting manjaro running on this device.

arlac77
Posts: 3
Joined: Wed Apr 07, 2021 2:21 am
languages_spoken: english
ODROIDs: c2,xu3,xu4,hc4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [OS] Manjaro ARM for HC4

Post by arlac77 »

My experience so far:

| date | image | device | setup | upgrade |
| ==== | ===== | ====== | ===== | ======= |
| 2021-03-xx | Manjaro-ARM-minimal-hc4-21.03-alpha-unstable.img | ssd | ok | linux-vim 5.11.13 dead |
| 2021-04-22 | Manjaro-ARM-minimal-hc4-21.03-alpha-unstable.img | sd-card | ok | linux-vim 5.11.13 ok |
| 2021-04-22 | Manjaro-ARM-minimal-hc4-21.04-stable.img | sd-card | ok | n/a |
These users thanked the author arlac77 for the post:
spikerguy (Fri Apr 23, 2021 7:24 pm)

User avatar
spikerguy
Posts: 49
Joined: Thu Apr 30, 2020 12:35 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 14 times
Been thanked: 16 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by spikerguy »

ptr1337 wrote:
Fri Apr 23, 2021 3:51 am
SD Card is working. There was never a problem.

Ive just installed now the unstable on a ssd, masked the linux vim package and updated it. rebooted fine.

Now im building directly on the hc4 the kernel with some changes in your pkgbuild. building right now 5.11.16.
If it works, ill report.
And please change the kernel name to linux-odroidhc4 or whatever, linux-vim would no one understand mostly, why this should installed on a hc4.

But releasing it as a stable version is really hard, since most guys will boot from ssd/hdd.
Test it yourself the performance difference, if you got a ssd.

The best should be if you got the uboot source and linux-vim 5.11.4 which you have used in the alpha unstable img.
5.11.4 Kernel Version is not commited by you in the linux-vim package.
Hey,
Here is the commit for 5.11.7 update.
You can see the changes I have made to the config. When you compile 5.11.16 then just revert these changes and see if that helps.

Let me know if you get any lead. I do not have a spare ssd/hdd to try your use case, even if I update the config on new kernel I won't be able to test the same.
The easiest method is to share the uart log and that will tell us where it is getting stuck while no user is able to provide the logs for debugging then I can't do much without the logs.

Please try it and let me know.

Thank you.
Manjaro ARM Team

chewitt
Posts: 109
Joined: Mon Aug 12, 2019 12:27 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 100 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by chewitt »

@spikerguy .. CONFIG_VIDEO_MESON_GE2D <= this can be removed, it is currently only supported on the AXG speaker platform.
These users thanked the author chewitt for the post:
spikerguy (Sun Apr 25, 2021 11:48 pm)

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

spikerguy wrote:
Fri Apr 23, 2021 8:26 pm
ptr1337 wrote:
Fri Apr 23, 2021 3:51 am
SD Card is working. There was never a problem.

Ive just installed now the unstable on a ssd, masked the linux vim package and updated it. rebooted fine.

Now im building directly on the hc4 the kernel with some changes in your pkgbuild. building right now 5.11.16.
If it works, ill report.
And please change the kernel name to linux-odroidhc4 or whatever, linux-vim would no one understand mostly, why this should installed on a hc4.

But releasing it as a stable version is really hard, since most guys will boot from ssd/hdd.
Test it yourself the performance difference, if you got a ssd.

The best should be if you got the uboot source and linux-vim 5.11.4 which you have used in the alpha unstable img.
5.11.4 Kernel Version is not commited by you in the linux-vim package.
Hey,
Here is the commit for 5.11.7 update.
You can see the changes I have made to the config. When you compile 5.11.16 then just revert these changes and see if that helps.

Let me know if you get any lead. I do not have a spare ssd/hdd to try your use case, even if I update the config on new kernel I won't be able to test the same.
The easiest method is to share the uart log and that will tell us where it is getting stuck while no user is able to provide the logs for debugging then I can't do much without the logs.

Please try it and let me know.

Thank you.
I have installed the alpha unstable again, updated the system (but not linux-vim), then i have pulled the PKGBUILD, revertet these changes and compiled it.
After compiling if installed it with sudo pacman -U ; and got again the same error.
Are there any changes when updating the kernel from the fstab or anything else ? didnt checked this.

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

Now building again the kernel 5.11.13, reverted the changes which you have done on 5.11.4.
Lets see.

edit:
seems like the same error, its booting until splashscreen, and then nothing anymore. just the circle is mooving around.
cant get any logs, or any other methods to get into tty.

Also its not loading the lan drivers or anything else, maybe a uboot issue or kernel.

User avatar
spikerguy
Posts: 49
Joined: Thu Apr 30, 2020 12:35 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 14 times
Been thanked: 16 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by spikerguy »

ptr1337 wrote:
Tue Apr 27, 2021 1:42 am
Now building again the kernel 5.11.13, reverted the changes which you have done on 5.11.4.
Lets see.

edit:
seems like the same error, its booting until splashscreen, and then nothing anymore. just the circle is mooving around.
cant get any logs, or any other methods to get into tty.

Also its not loading the lan drivers or anything else, maybe a uboot issue or kernel.
No there are no other changes.
Without a details logs we cannot come to know the exact issue.
I don't have an ssd to try this use case else I would have tried to test it myself.

Maybe @tobetter knows what's changed in the kernel source. There is no change in uboot as we don't upgrade uboot automatically until user flashes it manually.
Manjaro ARM Team

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

Just installed again and saw following when updating without vim (using unstable )

(53/53) upgrading uboot-odroid-hc4 [#######################################] 100%
A new U-Boot version needs to be flashed onto your install drive. Please use lsblk to determine your drive, before proceeding.
You can do this by running:
# dd if=/boot/u-boot.bin of=/dev/mmcblkX conv=fsync,notrunc bs=512 seek=1

So then i go update uboot and reboot

after updating the uboot on the ssd boot:
[ptr@archdroid ~]$ sudo dd if=/boot/u-boot.bin of=/dev/sdb1 conv=fsync,notrunc bs=512 seek=1
[sudo] password for ptr:
1703+1 records in
1703+1 records out
872304 bytes (872 kB, 852 KiB) copied, 0.0199585 s, 43.7 MB/s

Okay didnt worked, if updating the uboot like this on the uboot partition it isnt booting anymore without updated kernel
Last edited by ptr1337 on Wed Apr 28, 2021 5:35 pm, edited 1 time in total.

brad
Posts: 1418
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 126 times
Been thanked: 206 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by brad »

ptr1337 wrote:
Wed Apr 28, 2021 5:14 pm
Just installed again and saw following when updating without vim (using unstable )

(53/53) upgrading uboot-odroid-hc4 [#######################################] 100%
A new U-Boot version needs to be flashed onto your install drive. Please use lsblk to determine your drive, before proceeding.
You can do this by running:
# dd if=/boot/u-boot.bin of=/dev/mmcblkX conv=fsync,notrunc bs=512 seek=1

So then i go update uboot and reboot

after updating the uboot on the ssd boot:
[ptr@archdroid ~]$ sudo dd if=/boot/u-boot.bin of=/dev/sdb1 conv=fsync,notrunc bs=512 seek=1
[sudo] password for ptr:
1703+1 records in
1703+1 records out
872304 bytes (872 kB, 852 KiB) copied, 0.0199585 s, 43.7 MB/s
I don't have any experience with Manjaro or uboot's ability to boot from ssd but I notice something you appear to be doing wrong.
You can do this by running:
# dd if=/boot/u-boot.bin of=/dev/mmcblkX conv=fsync,notrunc bs=512 seek=1
This is saying write the out uboot binary to /dev/mmcblkX ie the physical sd or mmc (refered to by the X)

You have written the uboot binary to the first partition on /dev/sdb (ie /dev/sdb1):
$ sudo dd if=/boot/u-boot.bin of=/dev/sdb1 conv=fsync,notrunc bs=512 seek=1
It should be written to the disk itself (not the first partition) so your command should have been
$ sudo dd if=/boot/u-boot.bin of=/dev/sdb conv=fsync,notrunc bs=512 seek=1

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

Thanks for for that info. never updated the uboot when i saw this message
i reflash, update again and run your comment.

Maybe then its possible to update to the new linux-vim kernel ?

What i wonder, why torbetters 5.11.16 netboot is working like a charm, most updates also

brad
Posts: 1418
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 126 times
Been thanked: 206 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by brad »

I can't be sure if you can update to linux-vim as I don't know much about that kernel package but I think it would be worth a try.

If you had written the uboot.bin to /dev/sdb1 it would have corrupted the filesystem making it unbootable for that reason.

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

Next things which i saw at updating:
warning: /etc/plymouth/plymouthd.conf installed as /etc/plymouth/plymouthd.conf.pacnew

/etc/plymouth/plymouthd.conf:

# Distribution defaults. Changes to this file will get overwritten during
# upgrades.
[Daemon]
Theme=materia-manjaro
ShowDelay=0
DeviceTimeout=8

/etc/plymouth/plymouthd.conf.pacnew:

# Set your plymouth configuration here.
[Daemon]
Theme=spinner
ShowDelay=0
DeviceTimeout=8

dont think its regarding plymouth, but just watching everything now :D

Next thing:
warning: /boot/boot.ini saved as /boot/boot.ini.pacsave

/boot/boot.ini:

ODROIDC4-UBOOT-CONFIG

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

# Boot Args
setenv bootargs "root=PARTUUID=c6f75721-02 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 clk_ignore_unused quiet splash plymouth.ignore-serial-consoles"

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

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

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}


/boot/boot.ini.pacsave is empty

so normally if i gonna update, it will boot but not with the new kernel. i will flash now the new uboot and then try to reboot, if worked im go update the kernel.

[ptr@archdroid boot]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 213.6M 0 part /boot
└─sda2 8:2 0 465.5G 0 part /
zram0 254:0 0 5.4G 0 disk [SWAP]
[ptr@archdroid boot]$ sudo dd if=/boot/u-boot.bin of=/dev/sda conv=fsync,notrunc bs=512 seek=1
1703+1 records in
1703+1 records out
872304 bytes (872 kB, 852 KiB) copied, 0.0183789 s, 47.5 MB/s

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

So after ubdating the uboot like you see ontop, its booted sucesfully.
then updated the kernel and same issue again.

im really out now. i mostly debugged like 30 hrs on it.
checking logs on ssd if there is nothing i really dont know

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

boot log:
https://pastebin.com/4Hb5gAc2

pacman log:
https://pastebin.com/QTUbFYtT

in boot log it is starting ssh daemon but no driver is loaded so far, no led is blinking nothing.

when i just updated the system without the kernel following:
[2021-04-28T11:30:23+0200] [ALPM] transaction completed
[2021-04-28T11:30:24+0200] [ALPM] running '20-systemd-sysusers.hook'...
[2021-04-28T11:30:24+0200] [ALPM] running '30-systemd-catalog.hook'...
[2021-04-28T11:30:24+0200] [ALPM] running '30-systemd-daemon-reload.hook'...
[2021-04-28T11:30:24+0200] [ALPM] running '30-systemd-hwdb.hook'...
[2021-04-28T11:30:25+0200] [ALPM] running '30-systemd-sysctl.hook'...
[2021-04-28T11:30:26+0200] [ALPM] running '30-systemd-tmpfiles.hook'...
[2021-04-28T11:30:26+0200] [ALPM] running '30-systemd-udev-reload.hook'...
[2021-04-28T11:30:26+0200] [ALPM] running '30-systemd-update.hook'...
[2021-04-28T11:30:26+0200] [ALPM] running '40-fontconfig-config.hook'...
[2021-04-28T11:30:26+0200] [ALPM] running '40-update-ca-trust.hook'...
[2021-04-28T11:30:28+0200] [ALPM] running '90-linux-vim.hook'...

when updating the kernel:

2021-04-28T11:50:23+0200] [PACMAN] starting full system upgrade
[2021-04-28T11:50:29+0200] [ALPM] transaction started
[2021-04-28T11:50:31+0200] [ALPM] upgraded linux-vim (5.11.4-1 -> 5.11.13-1)
[2021-04-28T11:50:31+0200] [ALPM] transaction completed
[2021-04-28T11:50:31+0200] [ALPM] running '30-systemd-update.hook'...
[2021-04-28T11:50:31+0200] [ALPM] running '60-depmod.hook'...
[2021-04-28T11:50:31+0200] [ALPM] running '60-linux-vim.hook'...
[2021-04-28T11:50:38+0200] [ALPM] running '90-linux-vim.hook'...


Also on the first update it has regenerates mkinitcpio two times, after kernel update not.

brad
Posts: 1418
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 N2+ H2 H2+ (64 bit ftw)
Location: Australia
Has thanked: 126 times
Been thanked: 206 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by brad »

It would appear that the kernel is not supporting ssd boot for whatever reason, be this the way the PKGBUILD is installing it or missing features for ssd during boot.

I think spikerguy would have to do some tests to confirm sdd booting or maybe tobetter might have an idea but unfortunately I don't have experience with Manjaro or the way the PKGBUILD has been developed.

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

Mostly it got since on 5.11.16 with ubuntu its working like a charm.
And it is loading the SSD as you see in the logs but no other modules seems like.
These users thanked the author ptr1337 for the post:
spikerguy (Wed Apr 28, 2021 8:29 pm)

User avatar
tobetter
Posts: 7754
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 428 times
Been thanked: 1192 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by tobetter »

ptr1337 wrote:
Wed Apr 28, 2021 8:15 pm
Mostly it got since on 5.11.16 with ubuntu its working like a charm.
And it is loading the SSD as you see in the logs but no other modules seems like.
If you do not have any driver modules after booting, you should check if you have the drivers with the command ls /lib/modules/$(uname -r). If the drivers are there but zero drivers loaded, probably initramfs has to be updated again.
These users thanked the author tobetter for the post:
ptr1337 (Wed Apr 28, 2021 11:44 pm)

ptr1337
Posts: 30
Joined: Thu Mar 11, 2021 10:31 pm
languages_spoken: english, german
ODROIDs: HC4
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: [OS] Manjaro ARM for HC4

Post by ptr1337 »

Yeah, i going to try to get archlinux normal now to run.

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 0 guests