I have installed Manjaro ARM minimal for uGoos AM6 Plus, installed it in emmc but there is a problem that Manjaro only get 944Mb of memory. zRam/swap 1.38Gb
Where do I need to configure to get the full 4Gb of memory?
Thanks
With the version downloaded from Furkan Kardame’s homepage, my device gets 3.71Gb of Ram. Although it uses old kernel version, old driver, … But both eth0 and wlan0 and bluetooth work fine. But there is a problem that emmc script doesn’t work with boot partition. And when I update it also won’t boot.
[root@Am6Plus boot]# inxi -Fzxi
System: Kernel: 5.11.7-1-MANJARO-ARM aarch64 bits: 64 compiler: gcc v: 10.2.0 Console: tty 2 Distro: Manjaro ARM
Machine: Type: ARM Device System: Ugoos AM6 Plus details: N/A
CPU: Info: 6-Core (2-Die) model: N/A variant-1: cortex-a73 variant-2: cortex-a53 bits: 64 type: MCP MCM arch: ARMv8
rev: 4
features: Use -f option to see features bogomips: 0
Speed: 1992 MHz min/max: 100/1992:1908 MHz Core speeds (MHz): 1: 1992 2: 1992 3: 1908 4: 1908 5: 1908 6: 1908
Graphics: Device-1: meson-g12a-mali driver: panfrost v: kernel bus ID: N/A
Device-2: meson-g12a-dw-hdmi driver: meson_dw_hdmi v: N/A bus ID: N/A
Display: server: X.org 1.20.10 driver: modesetting tty: 146x36
Message: Unable to show advanced data. Required tool glxinfo missing.
Audio: Device-1: meson-g12a-dw-hdmi driver: meson_dw_hdmi bus ID: N/A
Device-2: axg-sound-card driver: axg_sound_card bus ID: N/A
Sound Server: ALSA v: k5.11.7-1-MANJARO-ARM
Network: Device-1: meson-g12a-dwmac driver: meson8b_dwmac v: N/A port: N/A bus ID: N/A
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
IP v6: <filter> type: noprefixroute scope: link
Device-2: pwm-clock driver: pwm_clock v: N/A port: N/A bus ID: N/A
IF-ID-1: ip6tnl0 state: down mac: <filter>
IF-ID-2: wlan0 state: up mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
IP v6: <filter> type: noprefixroute scope: link
WAN IP: <filter>
Drives: Local Storage: total: 87.87 GiB used: 6.32 GiB (7.2%)
ID-1: /dev/mmcblk2 vendor: Samsung model: BJTD4R size: 29.12 GiB
ID-2: /dev/sda type: USB vendor: Sony model: Storage Media size: 58.75 GiB
Partition: ID-1: / size: 58.37 GiB used: 6.32 GiB (10.8%) fs: ext4 dev: /dev/sda2
ID-2: /boot size: 242.7 MiB used: 1.9 MiB (0.8%) fs: vfat dev: /dev/sda1
Swap: ID-1: swap-1 type: zram size: 5.57 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors: System Temperatures: cpu: 45.1 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 180 Uptime: 24m Memory: 3.71 GiB used: 886.8 MiB (23.3%) Init: systemd Compilers: gcc: N/A Packages: 654
Shell: Bash v: 5.1.16 inxi: 3.1.08
[root@Am6Plus boot]#
As for the official version of Manjaro, it has limited ram and driver wlan0, bluetooth…
I hope the DEV team will fix these bugs soon in the next version release, thanks.
If you and Furkan Kardame look alike based on your profile picture, wouldn’t you be him?
About updating Manjaro ARM 21.04 – XFCE causes boot failure, I temporarily accept the use of old kernel to keep 3.71Gb ram memory
If you update the new Kernel and u-boot, it will cause boot errors, if you can boot, you will also receive 974Mb of ram memory.
So I updated all necessary packages except Kernel+u-Boot
I am using latest kernel on am6 plus. While still using the original uboot from Android.
I am not sure if they changed the uboot in the new android image.
Can you share which Android image are you using so I can try it on am6b+
Thanks for reporting but it is very difficult to maintain support when the base keeps changing by the vendor after every update. The base as in the uboot and that creates problem.
The last version I used released by uGoOS was 0.5.1.
Then I switched to Manjaro ARM Minial 2204 (getting only 944Mb), but got low ram error so I tried Armbian (Debian and Ubuntu Server) but also got low ram error (getting 1.61Mb when using meson-g12b-gtking-pro .dtb default, and still 944Mb if using meson-g12b-ugoos-am6.dtb).
I searched for an older version of Manjaro ARM XFCE 2102 and got 3.6Gb of ram, then I went to your blog and used Manjaro ARM XFCE 2104, also got 3.71Gb of ram.
I have updated all the packages but got boot failure.
After trying many times I found the cause. Do have scripts converted from old version (extlinux) to new version (uEnv.ini). These are the packages that if updated will fail to start:
:: 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
boot-am6-plus 2020.10-3 -> 2022.02-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
I think it’s here: mmcblk2boot0 and mmcblk2boot1 for dualboot management
By the way, can you edit this file so I can install Manjaro ARM 2104 from USB to emmc?
I tried to add emmc’s PARTUUID_Root to etc/fstab and extlinux but still can’t boot.
This error is only in version 2104 because it also uses extlinux
#!/bin/sh
echo "Start script create MBR and filesystem"
hasdrives=$(lsblk | grep -oE '(mmcblk[0-9])' | sort | uniq)
if [ "$hasdrives" = "" ]
then
echo "UNABLE TO FIND ANY EMMC OR SD DRIVES ON THIS SYSTEM!!! "
exit 1
fi
avail=$(lsblk | grep -oE '(mmcblk[0-9]|sda[0-9])' | sort | uniq)
if [ "$avail" = "" ]
then
echo "UNABLE TO FIND ANY DRIVES ON THIS SYSTEM!!!"
exit 1
fi
runfrom=$(lsblk | grep /$ | grep -oE '(mmcblk[0-9]|sda[0-9])')
if [ "$runfrom" = "" ]
then
echo " UNABLE TO FIND ROOT OF THE RUNNING SYSTEM!!! "
exit 1
fi
emmc=$(echo $avail | sed "s/$runfrom//" | sed "s/sd[a-z][0-9]//g" | sed "s/ //g")
if [ "$emmc" = "" ]
then
echo " UNABLE TO FIND YOUR EMMC DRIVE OR YOU ALREADY RUN FROM EMMC!!!"
exit 1
fi
if [ "$runfrom" = "$avail" ]
then
echo " YOU ARE RUNNING ALREADY FROM EMMC!!! "
exit 1
fi
if [ $runfrom = $emmc ]
then
echo " YOU ARE RUNNING ALREADY FROM EMMC!!! "
exit 1
fi
if [ "$(echo $emmc | grep mmcblk)" = "" ]
then
echo " YOU DO NOT APPEAR TO HAVE AN EMMC DRIVE!!! "
exit 1
fi
DEV_EMMC="/dev/$emmc"
echo $DEV_EMMC
echo "Start backup u-boot default"
dd if="${DEV_EMMC}" of=/boot/u-boot-default-aml.img bs=1M count=4
dd if=/dev/zero of="${DEV_EMMC}" bs=512 count=1
echo "Start create MBR and partittion"
parted -s "${DEV_EMMC}" mklabel msdos
parted -s "${DEV_EMMC}" mkpart primary fat32 700M 956M
parted -s "${DEV_EMMC}" mkpart primary ext4 957M 100%
echo "Start restore u-boot"
dd if=/boot/u-boot-default-aml.img of="${DEV_EMMC}" conv=fsync bs=1 count=442
dd if=/boot/u-boot-default-aml.img of="${DEV_EMMC}" conv=fsync bs=512 skip=1 seek=1
sync
echo "Done"
echo "Start copy system for eMMC."
mkdir -p /ddbr
chmod 777 /ddbr
PART_BOOT="${DEV_EMMC}p1"
PART_ROOT="${DEV_EMMC}p2"
DIR_INSTALL="/ddbr/install"
if [ -d $DIR_INSTALL ] ; then
rm -rf $DIR_INSTALL
fi
mkdir -p $DIR_INSTALL
if grep -q $PART_BOOT /proc/mounts ; then
echo "Unmounting BOOT partiton."
umount -f $PART_BOOT
fi
echo -n "Formatting BOOT partition..."
mkfs.vfat -n "BOOT_MNJRO" $PART_BOOT
echo "done."
mount -o rw $PART_BOOT $DIR_INSTALL
echo -n "Copying BOOT..."
cp -r /boot/* $DIR_INSTALL && sync
echo "done."
rm $DIR_INSTALL/s9*
rm $DIR_INSTALL/aml*
rm $DIR_INSTALL/boot.ini
#mv -f $DIR_INSTALL/boot-emmc.scr $DIR_INSTALL/boot.scr
if [ -f /boot/u-boot.ext ] ; then
mv -f $DIR_INSTALL/u-boot.sd $DIR_INSTALL/u-boot.emmc
#mv -f $DIR_INSTALL/boot-emmc.ini $DIR_INSTALL/boot.ini
sync
fi
BootID_Cu=$(lsblk -p -o NAME,PARTUUID | grep $(findmnt /boot -o source -n | cut -f1 -d"[") | awk '{print $2}')
RootID_Cu=$(lsblk -p -o NAME,PARTUUID | grep $(findmnt / -o source -n | cut -f1 -d"[") | awk '{print $2}')
RootID_Moi=$(lsblk -p -o NAME,PARTUUID | grep "$PART_ROOT" | awk '{print $2}')
BootID_Moi=$(lsblk -p -o NAME,PARTUUID | grep "$PART_BOOT" | awk '{print $2}')
sed -i "s/PARTUUID=$RootID_Cu/PARTUUID=$RootID_Moi/g" $DIR_INSTALL/extlinux/*conf
lsblk -p -o NAME,PARTUUID
PartUUID=$(cat $DIR_INSTALL/extlinux/*conf | grep PARTUUID | sed 's/.*PARTUUID\=//; s/ .*//')
echo "PartUUID: $PartUUID"
ls $DIR_INSTALL -l
umount $DIR_INSTALL
if grep -q $PART_ROOT /proc/mounts ; then
echo "Unmounting ROOT partiton."
umount -f $PART_ROOT
fi
echo "Formatting ROOT partition..."
mke2fs -F -q -t ext4 -L ROOT_MNJRO -m 0 $PART_ROOT
e2fsck -n $PART_ROOT
echo "done."
echo "Copying ROOTFS."
mount -o rw $PART_ROOT $DIR_INSTALL
cd /
echo "Copy BIN"
tar -cf - bin | (cd $DIR_INSTALL; tar -xpf -)
#echo "Copy BOOT"
#mkdir -p $DIR_INSTALL/boot
#tar -cf - boot | (cd $DIR_INSTALL; tar -xpf -)
echo "Create DEV"
mkdir -p $DIR_INSTALL/dev
#tar -cf - dev | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy ETC"
tar -cf - etc | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy HOME"
tar -cf - home | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy LIB"
tar -cf - lib | (cd $DIR_INSTALL; tar -xpf -)
echo "Create MEDIA"
mkdir -p $DIR_INSTALL/media
#tar -cf - media | (cd $DIR_INSTALL; tar -xpf -)
echo "Create MNT"
mkdir -p $DIR_INSTALL/mnt
#tar -cf - mnt | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy OPT"
tar -cf - opt | (cd $DIR_INSTALL; tar -xpf -)
echo "Create PROC"
mkdir -p $DIR_INSTALL/proc
echo "Copy ROOT"
tar -cf - root | (cd $DIR_INSTALL; tar -xpf -)
echo "Create RUN"
mkdir -p $DIR_INSTALL/run
echo "Copy SBIN"
tar -cf - sbin | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy SELINUX"
tar -cf - selinux | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy SRV"
tar -cf - srv | (cd $DIR_INSTALL; tar -xpf -)
echo "Create SYS"
mkdir -p $DIR_INSTALL/sys
echo "Create TMP"
mkdir -p $DIR_INSTALL/tmp
echo "Copy USR"
tar -cf - usr | (cd $DIR_INSTALL; tar -xpf -)
echo "Copy VAR"
tar -cf - var | (cd $DIR_INSTALL; tar -xpf -)
sync
sed -i "s/PARTUUID=$BootID_Cu/PARTUUID=$BootID_Moi/g" $DIR_INSTALL/etc/fstab
sed -i "s/PARTUUID=$RootID_Cu/PARTUUID=$RootID_Moi/g" $DIR_INSTALL/etc/fstab
rm $DIR_INSTALL/usr/bin/ddbr
cd /
sync
umount $DIR_INSTALL
echo "*******************************************"
echo "Flasing Manjaro to eMMC Completed"
echo "Please Restart and Re-Activate the Multi-Boot"
echo "*******************************************"