Dual/Multi OS/Boot from emmc

Post Reply
loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Dual/Multi OS/Boot from emmc

Post by loredin »

Hello I would like to install if possible following OS on a single 32GB eMMc :

1) Armbian focal (or any good/stable desktop environment that allows me to use a wacom tablet I have, tested official ubuntu and despite the wacom driver present in the kernel , it didn t work ad hoc)
2) Android (tried the official one so far but not succesful )
3) Batocera (to avoid configuring too much in the linux desktop environment)
3) OpenElec (optionnal since I am unsure if there would be any benefit against installing kodi on a linux desktop environment)

So apart from my usecases I am interested in undertanding how this whole partition/booting works here.
I have petitboot 20201020 flashed on SPI at the moment and it is pretty great to be able to use only the remote to select any kernel).
I have attempted to adapt the dualos_compose.sh for my purpose and not sure first if my code is 100% correct (I have a doubt in the amount of partitions).

Code: Select all

#!/bin/sh

image1="selfinstall-odroidn2-119-64bit-20210108.img"
rate1=40
image2="ubuntu-20.04-4.9-mate-odroid-n2-20200716.img"
rate2=40
image3="batocera-29-odroidn2-20201203.img"
rate3=13
image4="CoreELEC-Amlogic-ng.arm-9.2.5-Odroid_N2.img"


disk=/dev/disk/by-id/usb-Generic_USB_Flash_Disk_000000001532-0:0

[ "${BASH_VERSION}" = '' ] || BACKSLASH_ESCAPE="-e"

abort() {
	echo ${1}
	exit 1
}

fusing() {
	local disk=${1}
	local offset=${2}
	local image=${3}

	while read part; do
		line=$(echo ${part} | tr -s ' ')
		start=$(echo ${line} | cut -d' ' -f2)
		end=$(echo ${line} | cut -d' ' -f3)
		ptype=$(echo ${line} | cut -d' ' -f6)
		sectors=$((${end} - ${start}))
		seek=$((${offset} + ${start}))

		[ ${partnum} -lt 4 ] && newpart='\n' || newpart=""

		if [ ${partnum} -eq 1 ]; then
			parttype="t\n${ptype}\n"
		else
			parttype="t\n${partnum}\n${ptype}\n"
		fi

		echo ${BACKSLASH_ESCAPE} \
			"n\np\n${newpart}${seek}\n+${sectors}\n${parttype}w" \
			| fdisk ${disk}

		dd if=${image} of=${disk} bs=512 conv=fsync \
			skip=${start} seek=${seek} count=${sectors}

		partnum=$((${partnum} + 1))
	done << __EOF
$(fdisk -l ${image} | grep ^${image} | tr '*' ' ')
__EOF
}

unmount_part() {
	local disk=${1}

	for part in $(sudo fdisk -l ${disk} | grep ${disk} | cut -d' ' -f1 | tr '\n' ' '); do
		umount -f ${part}
	done
}

[ -z ${disk} ] && abort "Must need a target device node of a storage"
[ -z ${image1} -o -z ${image2} ] && abort "Please give me two images!!"
[ -z ${rate} ] && rate=50

total_sectors=$(($(fdisk -s ${disk}) * 2))

part1_offset=0
part2_offset=$((${total_sectors} / 100 * ${rate1}))
part3_offset=$(((${part2_offset}) + ${total_sectors} / 100 * ${rate2}))
part4_offset=$(((${part3_offset}) + ${total_sectors} / 100 * ${rate3}))
partnum=1

unmount_part ${disk}
dd if=/dev/zero of=${disk} bs=512 count=1 conv=fsync
fusing ${disk} ${part1_offset} ${image1}
fusing ${disk} ${part2_offset} ${image2}
fusing ${disk} ${part3_offset} ${image3}
fusing ${disk} ${part4_offset} ${image4}
I tested so far and was able to get the following outcome :

1) Official ubuntu mate : seen by petit boot and booting
2) Batocera : seen by petitboot and booting
3) OpenElec : seen by petitboot not booting properly
4) Official android : not seen by petitboot (I undesrtand here the autoinstall wont work anyway adhoc)
5) Armbian focal : not seen by petitboot.

Best Regards

mad_ady
Posts: 9049
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 595 times
Been thanked: 573 times
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by mad_ady »

These steps should help: viewtopic.php?p=316727#p316727
These users thanked the author mad_ady for the post:
loredin (Mon Jan 11, 2021 5:42 am)

loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by loredin »

mad_ady thx for the link. can you tell me what OSes you run ?

mad_ady
Posts: 9049
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 595 times
Been thanked: 573 times
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by mad_ady »

Currently just voodik's Lineage 17 and tobetter's ubuntu 20.04.
For the ones not recognized by petitboot check that:
- they are recognized and can boot from petitboot when flashed alone to an sd card
- they don't have duplicate uuids in their partitions with other OSes.
These users thanked the author mad_ady for the post:
loredin (Tue Jan 12, 2021 3:22 am)

loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by loredin »

I just tried the install of tobetter's ubuntu (20.04) as it looked to have the most features but :
1) if I undesrtand correctly it is done via installer , I chose to run automatically and of course it erased the android that I installed
2) furthermore I had some issues with not being able to call a terminal (menu was present but clicking on it didnt make the termina appear ...) , I have read that I might need to reinstall so I gave up on it for the moment
I wanted then to install the armbian focal and I was able to have it seen by petitboot by moving the boot.ini out of boot/ folder but it didnt start
In mad_ady's advices I have to check if boot.ini or any further script if I understand well call for uuids , but I could not tell from what I have seen, here is the content of the boot.ini :

Code: Select all

ODROIDN2-UBOOT-CONFIG

# Display splash logo
setenv bootlogo "true"

# legacy and mainline kernel diff
if ext4load mmc ${devno}:1 0x00000000 "/boot/.next" || fatload mmc ${devno}:1 0x00000000 ".next"  || ext4load mmc ${devno}:1 0x00000000 ".next"; then 
	echo "Found mainline kernel configuration"
	setenv uartconsole "ttyAML0,115200n8"
	setenv kernelimage "uImage"
else
	echo "Found legacy kernel configuration"
	setenv uartconsole "ttyS0,115200n8"
	setenv kernelimage "zImage"
fi

# Default Console Device Setting
setenv condev "console=${uartconsole} console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency in MHz unit
if test "${variant}" = "n2_plus"; then
	setenv fdtfile meson-g12b-odroid-n2-plus.dtb
	setenv max_freq_a73 "2208"
	setenv max_freq_a53 "1908"
else
	setenv fdtfile meson-g12b-odroid-n2.dtb
	setenv max_freq_a73 "1800"
	setenv max_freq_a53 "1896"
fi
# A73
# N2: 500/667/1000/1200/1398/1512/1608/1704/1800 (Stock)/1908/2004"
# N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908/2016/2100/2208 (Stock)/2304/2400

# A53
# N2: 100/250/500/667/1000/1200/1398/1512/1608/1704/1896 (Stock)/1992
# N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908 (Stock)/2016

# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${bootlogo}" = "true"; then setenv bootsplash "bootsplash.bootfile=bootsplash.armbian"; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Read armbianEnv.txt
if ext4load mmc ${devno}:1 0x44000000 /boot/armbianEnv.txt || fatload mmc ${devno}:1 0x44000000 armbianEnv.txt || ext4load mmc ${devno}:1 0x44000000 armbianEnv.txt; then env import -t 0x44000000 ${filesize}; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} ${bootsplash} cvbscable=${cvbscable} overscan=${overscan} consoleblank=0"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} ${kernelimage} || ext4load mmc ${devno}:1 ${k_addr} boot/${kernelimage}
ext4load mmc ${devno}:1 ${dtb_loadaddr} dtb/amlogic/${fdtfile} || ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/${fdtfile}
ext4load mmc ${devno}:1 ${initrd_loadaddr} uInitrd || ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd

if test "${kernelimage}" = "zImage"; then
	fdt addr ${dtb_loadaddr}
	# unzip the kernel
	unzip ${k_addr} ${loadaddr}
	# boot legacy kernel
	booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
else
	# boot mainline kernel
	bootm ${k_addr} ${initrd_loadaddr} ${dtb_loadaddr}
fi

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

Re: Dual/Multi OS/Boot from emmc

Post by tobetter »

loredin wrote:
Wed Jan 13, 2021 5:03 am
I just tried the install of tobetter's ubuntu (20.04) as it looked to have the most features but :
1) if I undesrtand correctly it is done via installer , I chose to run automatically and of course it erased the android that I installed
2) furthermore I had some issues with not being able to call a terminal (menu was present but clicking on it didnt make the termina appear ...) , I have read that I might need to reinstall so I gave up on it for the moment
I wanted then to install the armbian focal and I was able to have it seen by petitboot by moving the boot.ini out of boot/ folder but it didnt start
In mad_ady's advices I have to check if boot.ini or any further script if I understand well call for uuids , but I could not tell from what I have seen, here is the content of the boot.ini :

Code: Select all

ODROIDN2-UBOOT-CONFIG

# Display splash logo
setenv bootlogo "true"

# legacy and mainline kernel diff
if ext4load mmc ${devno}:1 0x00000000 "/boot/.next" || fatload mmc ${devno}:1 0x00000000 ".next"  || ext4load mmc ${devno}:1 0x00000000 ".next"; then 
	echo "Found mainline kernel configuration"
	setenv uartconsole "ttyAML0,115200n8"
	setenv kernelimage "uImage"
else
	echo "Found legacy kernel configuration"
	setenv uartconsole "ttyS0,115200n8"
	setenv kernelimage "zImage"
fi

# Default Console Device Setting
setenv condev "console=${uartconsole} console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency in MHz unit
if test "${variant}" = "n2_plus"; then
	setenv fdtfile meson-g12b-odroid-n2-plus.dtb
	setenv max_freq_a73 "2208"
	setenv max_freq_a53 "1908"
else
	setenv fdtfile meson-g12b-odroid-n2.dtb
	setenv max_freq_a73 "1800"
	setenv max_freq_a53 "1896"
fi
# A73
# N2: 500/667/1000/1200/1398/1512/1608/1704/1800 (Stock)/1908/2004"
# N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908/2016/2100/2208 (Stock)/2304/2400

# A53
# N2: 100/250/500/667/1000/1200/1398/1512/1608/1704/1896 (Stock)/1992
# N2 Plus: 500/667/1000/1200/1398/1512/1608/1704/1800/1908 (Stock)/2016

# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${bootlogo}" = "true"; then setenv bootsplash "bootsplash.bootfile=bootsplash.armbian"; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Read armbianEnv.txt
if ext4load mmc ${devno}:1 0x44000000 /boot/armbianEnv.txt || fatload mmc ${devno}:1 0x44000000 armbianEnv.txt || ext4load mmc ${devno}:1 0x44000000 armbianEnv.txt; then env import -t 0x44000000 ${filesize}; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} ${bootsplash} cvbscable=${cvbscable} overscan=${overscan} consoleblank=0"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} ${kernelimage} || ext4load mmc ${devno}:1 ${k_addr} boot/${kernelimage}
ext4load mmc ${devno}:1 ${dtb_loadaddr} dtb/amlogic/${fdtfile} || ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/${fdtfile}
ext4load mmc ${devno}:1 ${initrd_loadaddr} uInitrd || ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd

if test "${kernelimage}" = "zImage"; then
	fdt addr ${dtb_loadaddr}
	# unzip the kernel
	unzip ${k_addr} ${loadaddr}
	# boot legacy kernel
	booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
else
	# boot mainline kernel
	bootm ${k_addr} ${initrd_loadaddr} ${dtb_loadaddr}
fi
For the terminal issue, can you check if this is the same problem?
viewtopic.php?p=289153#p289153

User avatar
istanbulls
Posts: 440
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 274 times
Been thanked: 65 times
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by istanbulls »

Hi @Loredin, Which Odroid are you using, XU4 is written in your signature.

loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by loredin »

Hi @istanbulls, I have the XU4 since some years and the N2 recently. I had not updated my signature yet :o

loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by loredin »

tobetter wrote:
Wed Jan 13, 2021 7:02 am
For the terminal issue, can you check if this is the same problem?
viewtopic.php?p=289153#p289153
I could try to check but before that can you tell me if in the manual install process I can install on unallocated space in extended session , I d like to avoid my emmc card being erased.

User avatar
istanbulls
Posts: 440
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 274 times
Been thanked: 65 times
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by istanbulls »

Want to install both Android and Ubuntu in eMMC?
What is the size of the eMMC? How much gb?

loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by loredin »

Yes that is correct istanbulls I have 32 gb

User avatar
istanbulls
Posts: 440
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 274 times
Been thanked: 65 times
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by istanbulls »

loredin wrote:
Thu Jan 14, 2021 2:13 am
Yes that is correct istanbulls I have 32 gb
First of all, you need to install Android first and run it.
2. Reduce the red part in the picture with Gparted. If you try to see if Android is working again after minimizing, you will not waste your time in a possible problem. The remaining part is the part where you will install Ubuntu, its size should be min 14 or 16gb. It will be difficult to work in the smaller section. Ubuntu will take up 8-9 GB of space in the first installation, then you decide what part you need to use.
3. Exit the shell in petitboot, enter the code netboot_default. Type exit and go back to shell.
You will see Ubuntu 20.04 OS in Petitboot, select it and start installing.
4. Installation will ask you where you want to install after a while, if you choose the place you reserved for ubuntu in eMMC, the installation will be completed without any problems.
Attachments
Ekran Görüntüsü - 2021-01-13 20-26-06.png
Ekran Görüntüsü - 2021-01-13 20-26-06.png (145.12 KiB) Viewed 76 times

loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by loredin »

@istanbullis : good that s what I needed :) thx for the support bro

loredin
Posts: 38
Joined: Sat Dec 26, 2015 12:17 am
languages_spoken: english, french, german
ODROIDs: xu4;n2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by loredin »

I just tried install of the ubuntu 20.04 studio package install but it doesnt look ok, need to check that tomorrow

User avatar
istanbulls
Posts: 440
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 274 times
Been thanked: 65 times
Contact:

Re: Dual/Multi OS/Boot from emmc

Post by istanbulls »

For Ubuntu-Wayland, you have to install the Ubuntu-Desktop one. I use it fondly, it is both very fast and very useful.
Or you should install Ubuntu-Min and then install Ubuntu-desktop.
In both cases, you should run the command

Code: Select all

sudo apt install ubuntu-desktop mali-bifrost-wayland-driver
.
If there is fake-sound, you should run the command

Code: Select all

sudo apt install --reinstall odroid-alsa
.
For Firefox, you need to run the command

Code: Select all

sudo apt install ubuntu-restricted-extras
.
For Firefox Wayland, you need to add the command

Code: Select all

 MOZ_ENABLE_WAYLAND = 1
with

Code: Select all

sudo nano / etc / environment
, nano.

I use Caja to open the files as Administartor.

Code: Select all

sudo apt install --reinstall caja-admin
sudo apt-get install -y caja-open-terminal
To enrich the Gnome desktop,

Code: Select all

sudo apt-get install chrome-gnome-shell
sudo apt install gnome-tweak-tool
With Firefox, you can download many useful Extensions from this link https://extensions.gnome.org/.
These users thanked the author istanbulls for the post:
loredin (Fri Jan 15, 2021 2:10 am)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 8 guests