Manjaro only get 944Mb / 4Gb of memory

I am using old image and skip kernel update while updating pkg.
These are the packages I don’t update and use normally on USB
old kernel

Ok

So now on the current installation you should have boot-am6-plus-2022 version right?

Can you share output of
ls -la /boot/

If you use latest boot script method to boot then you need to generate kernel images that uboot can under.

So run
sudo mkinitcpio -p linux-vim

I think if update boot-am6-plus to version 2022.02-1 it won’t be compatible with old kernel, so i am using boot-am6-plus version 2020.10-3
Out put of: ls /boot

[root@Am6Plus boot]# ls -la /boot/
tổng 55648
drwxr-xr-x  4 root root    16384  1 Thg 1   1970 .
drwxr-xr-x 19 root root     4096 00:52 22 Thg 6  ..
-rwxr-xr-x  1 root root      709 16 Thg 1   2021 aml_autoscript
-rwxr-xr-x  1 root root        0 16 Thg 1   2021 aml_autoscript.zip
-rwxr-xr-x  1 root root      181 16 Thg 1   2021 boot.ini
drwxr-xr-x  5 root root     4096 16 Thg 4   2021 dtbs
-rwxr-xr-x  1 root root     5547 00:15 22 Thg 6  emmc
-rwxr-xr-x  1 root root      135 16 Thg 1   2021 emmc_autoscript
drwxr-xr-x  2 root root     4096 21:52 21 Thg 6  extlinux
-rwxr-xr-x  1 root root 30593536 23 Thg 3   2021 Image
-rwxr-xr-x  1 root root 12259269 23 Thg 3   2021 Image.gz
-rwxr-xr-x  1 root root  7871381 21:45 21 Thg 6  initramfs-linux.img
-rwxr-xr-x  1 root root     4252 19:02 21 Thg 6  install-aml-emmc.sh
-rwxr-xr-x  1 root root      537 16 Thg 1   2021 s905_autoscript
-rwxr-xr-x  1 root root  4194304 00:28 22 Thg 6  u-boot-default-aml.img
-rwxr-xr-x  1 root root   735459 16 Thg 1   2021 u-boot.ext
-rwxr-xr-x  1 root root   609247 16 Thg 1   2021 u-boot-s905
-rwxr-xr-x  1 root root   650183 16 Thg 1   2021 u-boot-s905x-s912
[root@Am6Plus boot]# mkinitcpio -p linux-vim
==> Building image from preset: /etc/mkinitcpio.d/linux-vim.preset: 'default'
  -> -k 5.11.7-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.11.7-1-MANJARO-ARM
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [plymouth]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
[root@Am6Plus boot]# 

It will be compatible just need to run the mkinitcpio command mentioned above.

Do this step.

sudo pacman -Sy boot-am6-plus

Then
Run
sudo mkinitcpio -p linux-vim

Then share
ls -la /boot/

Then share
cat /boot/uEnv.ini

Do not reboot until everything is fixed.

I have updated boot-am6-plus to version 2022.02-1
Below is the output of the above commands.

:: Synchronizing package databases...
 core
 extra
 community
 core is up to date community is up to date extra is up to dateresolving dependencies...
looking for conflicting packages...

Packages (1) boot-am6-plus-2022.02-1

Total Download Size:    0,01 MiB
Total Installed Size:   0,01 MiB
Net Upgrade Size:      -1,90 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 boot-am6-plus-2022.02-1-aarch64
(1/1) checking keys in keyring                                                           [####################################################] 100%
(1/1) checking package integrity                                                         [####################################################] 100%
(1/1) loading package files                                                              [####################################################] 100%
(1/1) checking for file conflicts                                                        [####################################################] 100%
(1/1) checking available disk space                                                      [####################################################] 100%
:: Processing package changes...
(1/1) upgrading boot-am6-plus                                                            [####################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Building image from preset: /etc/mkinitcpio.d/linux-vim.preset: 'default'
  -> -k 5.11.7-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.11.7-1-MANJARO-ARM
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [plymouth]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
tổng 53708
drwxr-xr-x  4 root root    16384  1 Thg 1   1970 .
drwxr-xr-x 19 root root     4096 00:52 22 Thg 6  ..
-rwxr-xr-x  1 root root      628 01:51 14 Thg 2  aml_autoscript
-rwxr-xr-x  1 root root      556 01:51 14 Thg 2  aml_autoscript.txt
drwxr-xr-x  5 root root     4096 16 Thg 4   2021 dtbs
-rwxr-xr-x  1 root root     5547 00:15 22 Thg 6  emmc
-rwxr-xr-x  1 root root      735 01:51 14 Thg 2  emmc_autoscript
-rwxr-xr-x  1 root root      663 01:51 14 Thg 2  emmc_autoscript.cmd
drwxr-xr-x  2 root root     4096 21:52 21 Thg 6  extlinux
-rwxr-xr-x  1 root root 30593536 23 Thg 3   2021 Image
-rwxr-xr-x  1 root root 12259269 23 Thg 3   2021 Image.gz
-rwxr-xr-x  1 root root  7871381 18:23 23 Thg 6  initramfs-linux.img
-rwxr-xr-x  1 root root     5237 01:51 14 Thg 2  install-aml-emmc.sh
-rwxr-xr-x  1 root root      930 01:51 14 Thg 2  s905_autoscript
-rwxr-xr-x  1 root root      858 01:51 14 Thg 2  s905_autoscript.cmd
-rwxr-xr-x  1 root root  4194304 00:28 22 Thg 6  u-boot-default-aml.img
-rwxr-xr-x  1 root root      284 18:23 23 Thg 6  uEnv.ini
dtb_name=/dtbs/amlogic/meson-g12b-ugoos-am6-plus.dtb
bootargs=root=LABEL=ROOT_MNJRO rootdelay=5 rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 quiet splash plymouth.ignore-serial-consoles
[root@Am6Plus boot]# pikaur -Syu
:: Synchronizing package databases...
 core
 extra
 community
 core is up to date extra is up to date community is up to date
:: Starting full AUR upgrade...
Reading repository package databases...
Reading local package database...
Reading AUR packages info...
:: warning: Following package cannot be found in AUR:
    libcanberra-pulse    

:: Repository packages suggested as a replacement:
 linux-odroid (replaces linux-vim)                          -> 5.18.1-1
 linux-odroid-headers (replaces linux-vim)                  -> 5.18.1-1

:: Repository packages will be installed:
 libcanberra                           0.30+2+gc0620e4-3    -> 1:0.30+r2+gc0620e4-1
 linux-firmware                        20210208.b79d239-2   -> 20220509.b19cbdc-1
 uboot-tools                           2020.04-1            -> 2022.04-1

:: New dependency will be installed from repository:
 linux-firmware-whence (for linux-firmware)                 -> 20220509.b19cbdc-1

:: Proceed with installation? [Y/n] 
:: [v]iew package details   [m]anually select packages
>> 

Run this

Then

This

Maybe I put them together so it’s a bit hard to see because there are no blank lines

Out put of mkinitcpio -p linux-vim

==> Building image from preset: /etc/mkinitcpio.d/linux-vim.preset: 'default'
  -> -k 5.11.7-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.11.7-1-MANJARO-ARM
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [plymouth]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful

Output of ls -la /boot/

drwxr-xr-x  4 root root    16384  1 Thg 1   1970 .
drwxr-xr-x 19 root root     4096 00:52 22 Thg 6  ..
-rwxr-xr-x  1 root root      628 01:51 14 Thg 2  aml_autoscript
-rwxr-xr-x  1 root root      556 01:51 14 Thg 2  aml_autoscript.txt
drwxr-xr-x  5 root root     4096 16 Thg 4   2021 dtbs
-rwxr-xr-x  1 root root     5547 00:15 22 Thg 6  emmc
-rwxr-xr-x  1 root root      735 01:51 14 Thg 2  emmc_autoscript
-rwxr-xr-x  1 root root      663 01:51 14 Thg 2  emmc_autoscript.cmd
drwxr-xr-x  2 root root     4096 21:52 21 Thg 6  extlinux
-rwxr-xr-x  1 root root 30593536 23 Thg 3   2021 Image
-rwxr-xr-x  1 root root 12259269 23 Thg 3   2021 Image.gz
-rwxr-xr-x  1 root root  7871381 18:23 23 Thg 6  initramfs-linux.img
-rwxr-xr-x  1 root root     5237 01:51 14 Thg 2  install-aml-emmc.sh
-rwxr-xr-x  1 root root      930 01:51 14 Thg 2  s905_autoscript
-rwxr-xr-x  1 root root      858 01:51 14 Thg 2  s905_autoscript.cmd
-rwxr-xr-x  1 root root  4194304 00:28 22 Thg 6  u-boot-default-aml.img
-rwxr-xr-x  1 root root      284 18:23 23 Thg 6  uEnv.ini

Out put of cat /boot/uEnv.ini

dtb_name=/dtbs/amlogic/meson-g12b-ugoos-am6-plus.dtb
bootargs=root=LABEL=ROOT_MNJRO rootdelay=5 rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 quiet splash plymouth.ignore-serial-consoles

Run this

sudo /usr/bin/mkimage -n "uInitrd Image" -A arm64 -O linux -T ramdisk -C none -d /boot/initramfs-linux.img /boot/uInitrd

sudo /usr/bin/mkimage -n "uImage" -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -d /boot/Image /boot/uImage

And then

ls -la /boot/

Output of the above 3 command

[root@Am6Plus boot]# sudo /usr/bin/mkimage -n "uInitrd Image" -A arm64 -O linux -T ramdisk -C none -d /boot/initramfs-linux.img /boot/uInitrd

sudo /usr/bin/mkimage -n "uImage" -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -d /boot/Image /boot/uImage

ls -la /boot/

Image Name:   uInitrd Image
Created:      Thu Jun 23 18:38:50 2022
Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
Data Size:    7871381 Bytes = 7686.90 KiB = 7.51 MiB
Load Address: 00000000
Entry Point:  00000000
Image Name:   uImage
Created:      Thu Jun 23 18:38:50 2022
Image Type:   AArch64 Linux Kernel Image (uncompressed)
Data Size:    30593536 Bytes = 29876.50 KiB = 29.18 MiB
Load Address: 01080000
Entry Point:  01080000
tổng 91276
drwxr-xr-x  4 root root    16384  1 Thg 1   1970 .
drwxr-xr-x 19 root root     4096 00:52 22 Thg 6  ..
-rwxr-xr-x  1 root root      628 01:51 14 Thg 2  aml_autoscript
-rwxr-xr-x  1 root root      556 01:51 14 Thg 2  aml_autoscript.txt
drwxr-xr-x  5 root root     4096 16 Thg 4   2021 dtbs
-rwxr-xr-x  1 root root     5547 00:15 22 Thg 6  emmc
-rwxr-xr-x  1 root root      735 01:51 14 Thg 2  emmc_autoscript
-rwxr-xr-x  1 root root      663 01:51 14 Thg 2  emmc_autoscript.cmd
drwxr-xr-x  2 root root     4096 21:52 21 Thg 6  extlinux
-rwxr-xr-x  1 root root 30593536 23 Thg 3   2021 Image
-rwxr-xr-x  1 root root 12259269 23 Thg 3   2021 Image.gz
-rwxr-xr-x  1 root root  7871381 18:23 23 Thg 6  initramfs-linux.img
-rwxr-xr-x  1 root root     5237 01:51 14 Thg 2  install-aml-emmc.sh
-rwxr-xr-x  1 root root      930 01:51 14 Thg 2  s905_autoscript
-rwxr-xr-x  1 root root      858 01:51 14 Thg 2  s905_autoscript.cmd
-rwxr-xr-x  1 root root  4194304 00:28 22 Thg 6  u-boot-default-aml.img
-rwxr-xr-x  1 root root      284 18:23 23 Thg 6  uEnv.ini
-rwxr-xr-x  1 root root 30593600 18:38 23 Thg 6  uImage
-rwxr-xr-x  1 root root  7871445 18:38 23 Thg 6  uInitrd
[root@Am6Plus boot]# 

Ok looks good
Now rename extlinux to extlinux-old in
/boot/

Then you can power off and power on and pray that it boots fine :slight_smile:

1 Like

Ok, so I’ll reboot! Thank you so much

[root@Am6Plus boot]# mv extlinux extlinux-old; ls -a
.               aml_autoscript.txt  emmc_autoscript      Image                install-aml-emmc.sh  u-boot-default-aml.img  uInitrd
..              dtbs                emmc_autoscript.cmd  Image.gz             s905_autoscript      uEnv.ini
aml_autoscript  emmc                extlinux-old         initramfs-linux.img  s905_autoscript.cmd  uImage
[root@Am6Plus boot]# ls -la
tổng 91276
drwxr-xr-x  4 root root    16384  1 Thg 1   1970 .
drwxr-xr-x 19 root root     4096 00:52 22 Thg 6  ..
-rwxr-xr-x  1 root root      628 01:51 14 Thg 2  aml_autoscript
-rwxr-xr-x  1 root root      556 01:51 14 Thg 2  aml_autoscript.txt
drwxr-xr-x  5 root root     4096 16 Thg 4   2021 dtbs
-rwxr-xr-x  1 root root     5547 00:15 22 Thg 6  emmc
-rwxr-xr-x  1 root root      735 01:51 14 Thg 2  emmc_autoscript
-rwxr-xr-x  1 root root      663 01:51 14 Thg 2  emmc_autoscript.cmd
drwxr-xr-x  2 root root     4096 21:52 21 Thg 6  extlinux-old
-rwxr-xr-x  1 root root 30593536 23 Thg 3   2021 Image
-rwxr-xr-x  1 root root 12259269 23 Thg 3   2021 Image.gz
-rwxr-xr-x  1 root root  7871381 18:23 23 Thg 6  initramfs-linux.img
-rwxr-xr-x  1 root root     5237 01:51 14 Thg 2  install-aml-emmc.sh
-rwxr-xr-x  1 root root      930 01:51 14 Thg 2  s905_autoscript
-rwxr-xr-x  1 root root      858 01:51 14 Thg 2  s905_autoscript.cmd
-rwxr-xr-x  1 root root  4194304 00:28 22 Thg 6  u-boot-default-aml.img
-rwxr-xr-x  1 root root      284 18:23 23 Thg 6  uEnv.ini
-rwxr-xr-x  1 root root 30593600 18:38 23 Thg 6  uImage
-rwxr-xr-x  1 root root  7871445 18:38 23 Thg 6  uInitrd
[root@Am6Plus boot]# 
1 Like

Looks like things aren’t going as well as they were supposed to be.
This is the boot error outout.

[ 2.864907] panfrost ffe10000.gpu: deu_pm_opp_set_regulators: no regulator (mali) found: -19
[ 8.394901] Kernel panic- not syncing: UFS: Unable to mount root fs on unknown-block (0,0)
[ 8.3975531 CPU: 3 PID: 1 Comm: swapper/0 Not tainted 5.11.7-1-MANJARO-ARM $1 8.4046241
[] Hardware name: Ugoos AM6 Plus (DT)
[ 8.409823] Call trace:
[ 8.411438] dump_backtrace exe/0x1d0
[ 8.415068] show_stack+0x18/8x70
[ 8.418338] dump_stack+0xde/8x12c 8.4217011 panic 8x16c/0x340
[ 8.424720] Rount_block_root+8x1c8/8x250
[ 8.428688] Mount_root+0x10c/0x140
[ 8.4321381 prepare_namespace+0x138/8x170
[ 8.4361921 kernel_init_freeable+0x224/8x258
[ 8.4405041 kernel_init+0x14/0x11c 8.443954) ret_from_fork+0x10/0x34
[ 8.4474951 SMP: stopping secondary CPUs
[ 8.4513761 Kernel Offset: disabled
[ 8.4548221 CPU features: 0x08240002,61082004
[ 8.459134] Memory Linit: none
[ 8.462156] end Kernel panic- not syncing: UFS: Unable to mount root fs on unknown-block (0,0) -
[

Ok i expected it atleast 1% chance.

This is cause we used
bootargs=root=LABEL=ROOT_MNJRO

Can change it to
bootargs=root=PARTUUID=(PARTUUID OF YOUR DRIVER SECOND PARTITION)

Insert the drive in your host computer and change it.

1 Like

OK, I’ll take the PartitionID_Root and replace the label and then try again.

1 Like

Next you need to look at
/etc/fstab

In case it still doesn’t boot but now it should not cause ufs kernel panic.

Btw these logs shows that the boot pkg update was a success.

Looks like replacing PARTUUID still failed to boot the system.

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
PARTUUID=4dea18dc-01  /boot   vfat    defaults        0       0
PARTUUID=4dea18dc-02  /   ext4    defaults        0       1

Wait are you using usb drive or sdcard?

Maybe you should try with sd-card once just for confirmation.

Time for me to flash 0.5.0 and test it myself with boot logs

1 Like

Because Dev builds Manjaro ARM on u-Boot’s version from uGoOS AM6 Plus 0.4.0, so I install Manjaro ARM from uGoOS AM6 Plus 0.5.0 and won’t get enough ram.
I recommend you to install uGoOS AM6 Plus 0.4.0 first and then install Manjaro ARM
In addition, there is an unresolved problem that you will not be able to use wifi because the driver is not usable.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.