Multi boot and USB booting with ODROID-C4

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Thu Nov 05, 2020 2:54 pm
I also have the same problem in certain case, so I've uploaded new tarball as the same file name. The MD5SUM of each file must be this and please try again and let me know if it works.

Code: Select all

  1 c8871ed0e499abd24c9c02d6a3413ff3  ODROIDBIOS.BIN
  2 d079e38f00d9de8716d22e7cc64e3909  mmcboot.img
  3 87ada82d172b1444190c7f3bfcf71fb2  sd_fusing.sh
  4 5142f0c97a7453b412fbaffa24ddcfd5  u-boot.bin
Did you download the tarball again?
Let me try with the same Ubuntu image.

EDIT: I can boot the image 'ubuntu-20.04-server-odroidc4-20201024.img' after flashing to eMMC and installed u-boot.bin and ODROIDBIOS.BIN from the tarball http://ppa.linuxfactory.or.kr/images/petitboot/odroidc4/ODROIDBIOS-20201028.tar.gz. Please download the tarball and try it again.
Screenshot from 2020-11-05 15-01-27.png
I downloaded the tarball again, extracted using Ubuntu archive manager and got the same MD5SUMs as before:
d079e38f00d9de8716d22e7cc64e3909 mmcboot.img
f5be4d12bbf3ea4dda17c9cf082f8408 ODROIDBIOS.BIN
87ada82d172b1444190c7f3bfcf71fb2 sd_fusing.sh
917c3cee19b04cd9adca6ddc636f2244 u-boot.bin

So I got another uSD card and wrote ubuntu-20.04-server-odroidc4-20201024.img to it using Ubuntu Image Writer, copied ODROIDBIOS.BIN across and executed sd_fusing.sh
Still won't boot, just puts up the HardKernel logo and stalls. Ctrl/Alt/Delete has no effect. Can't really expect success when the MD5SUMs are not right.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Thu Nov 05, 2020 4:04 pm
tobetter wrote:
Thu Nov 05, 2020 2:54 pm
I also have the same problem in certain case, so I've uploaded new tarball as the same file name. The MD5SUM of each file must be this and please try again and let me know if it works.

Code: Select all

  1 c8871ed0e499abd24c9c02d6a3413ff3  ODROIDBIOS.BIN
  2 d079e38f00d9de8716d22e7cc64e3909  mmcboot.img
  3 87ada82d172b1444190c7f3bfcf71fb2  sd_fusing.sh
  4 5142f0c97a7453b412fbaffa24ddcfd5  u-boot.bin
Did you download the tarball again?
Let me try with the same Ubuntu image.

EDIT: I can boot the image 'ubuntu-20.04-server-odroidc4-20201024.img' after flashing to eMMC and installed u-boot.bin and ODROIDBIOS.BIN from the tarball http://ppa.linuxfactory.or.kr/images/petitboot/odroidc4/ODROIDBIOS-20201028.tar.gz. Please download the tarball and try it again.
Screenshot from 2020-11-05 15-01-27.png
I downloaded the tarball again, extracted using Ubuntu archive manager and got the same MD5SUMs as before:
d079e38f00d9de8716d22e7cc64e3909 mmcboot.img
f5be4d12bbf3ea4dda17c9cf082f8408 ODROIDBIOS.BIN
87ada82d172b1444190c7f3bfcf71fb2 sd_fusing.sh
917c3cee19b04cd9adca6ddc636f2244 u-boot.bin

So I got another uSD card and wrote ubuntu-20.04-server-odroidc4-20201024.img to it using Ubuntu Image Writer, copied ODROIDBIOS.BIN across and executed sd_fusing.sh
Still won't boot, just puts up the HardKernel logo and stalls. Ctrl/Alt/Delete has no effect. Can't really expect success when the MD5SUMs are not right.
My side, it works like this? Is this different with yours? Also, if you have downloaded new tarbal, it must have new file files.md5sum.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Thu Nov 05, 2020 3:09 pm
Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?
Petitboot menu seems to have no problem with the display, a Philips Model ID: 241V8/75.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Thu Nov 05, 2020 4:42 pm
tobetter wrote:
Thu Nov 05, 2020 3:09 pm
Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?
Petitboot menu seems to have no problem with the display, a Philips Model ID: 241V8/75.
When means...you are able to run Petitboot now?

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Thu Nov 05, 2020 4:13 pm
Curmudgeon wrote:
Thu Nov 05, 2020 4:04 pm
tobetter wrote:
Thu Nov 05, 2020 2:54 pm
I also have the same problem in certain case, so I've uploaded new tarball as the same file name. The MD5SUM of each file must be this and please try again and let me know if it works.

Code: Select all

  1 c8871ed0e499abd24c9c02d6a3413ff3  ODROIDBIOS.BIN
  2 d079e38f00d9de8716d22e7cc64e3909  mmcboot.img
  3 87ada82d172b1444190c7f3bfcf71fb2  sd_fusing.sh
  4 5142f0c97a7453b412fbaffa24ddcfd5  u-boot.bin
Did you download the tarball again?
Let me try with the same Ubuntu image.

EDIT: I can boot the image 'ubuntu-20.04-server-odroidc4-20201024.img' after flashing to eMMC and installed u-boot.bin and ODROIDBIOS.BIN from the tarball http://ppa.linuxfactory.or.kr/images/petitboot/odroidc4/ODROIDBIOS-20201028.tar.gz. Please download the tarball and try it again.
Screenshot from 2020-11-05 15-01-27.png
I downloaded the tarball again, extracted using Ubuntu archive manager and got the same MD5SUMs as before:
d079e38f00d9de8716d22e7cc64e3909 mmcboot.img
f5be4d12bbf3ea4dda17c9cf082f8408 ODROIDBIOS.BIN
87ada82d172b1444190c7f3bfcf71fb2 sd_fusing.sh
917c3cee19b04cd9adca6ddc636f2244 u-boot.bin

So I got another uSD card and wrote ubuntu-20.04-server-odroidc4-20201024.img to it using Ubuntu Image Writer, copied ODROIDBIOS.BIN across and executed sd_fusing.sh
Still won't boot, just puts up the HardKernel logo and stalls. Ctrl/Alt/Delete has no effect. Can't really expect success when the MD5SUMs are not right.
My side, it works like this? Is this different with yours? Also, if you have downloaded new tarbal, it must have new file files.md5sum.
Screenshot from 2020-11-05 16-10-45.png
I had been using Chromium browser to download ODROIDBIOS-20201028.tar.gz. Apparently, because the file name had not changed, Chromium didn't bother to download it again, instead fetching it from a cache. I now have your updated version which is not getting stuck at the HardKernel logo. There are functionality issues to be pursued but not today.
Many thanks again.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Thu Nov 05, 2020 6:02 pm
tobetter wrote:
Thu Nov 05, 2020 4:13 pm
Curmudgeon wrote:
Thu Nov 05, 2020 4:04 pm
tobetter wrote:
Thu Nov 05, 2020 2:54 pm
I also have the same problem in certain case, so I've uploaded new tarball as the same file name. The MD5SUM of each file must be this and please try again and let me know if it works.

Code: Select all

  1 c8871ed0e499abd24c9c02d6a3413ff3  ODROIDBIOS.BIN
  2 d079e38f00d9de8716d22e7cc64e3909  mmcboot.img
  3 87ada82d172b1444190c7f3bfcf71fb2  sd_fusing.sh
  4 5142f0c97a7453b412fbaffa24ddcfd5  u-boot.bin
Did you download the tarball again?
Let me try with the same Ubuntu image.

EDIT: I can boot the image 'ubuntu-20.04-server-odroidc4-20201024.img' after flashing to eMMC and installed u-boot.bin and ODROIDBIOS.BIN from the tarball http://ppa.linuxfactory.or.kr/images/petitboot/odroidc4/ODROIDBIOS-20201028.tar.gz. Please download the tarball and try it again.
Screenshot from 2020-11-05 15-01-27.png
I downloaded the tarball again, extracted using Ubuntu archive manager and got the same MD5SUMs as before:
d079e38f00d9de8716d22e7cc64e3909 mmcboot.img
f5be4d12bbf3ea4dda17c9cf082f8408 ODROIDBIOS.BIN
87ada82d172b1444190c7f3bfcf71fb2 sd_fusing.sh
917c3cee19b04cd9adca6ddc636f2244 u-boot.bin

So I got another uSD card and wrote ubuntu-20.04-server-odroidc4-20201024.img to it using Ubuntu Image Writer, copied ODROIDBIOS.BIN across and executed sd_fusing.sh
Still won't boot, just puts up the HardKernel logo and stalls. Ctrl/Alt/Delete has no effect. Can't really expect success when the MD5SUMs are not right.
My side, it works like this? Is this different with yours? Also, if you have downloaded new tarbal, it must have new file files.md5sum.
Screenshot from 2020-11-05 16-10-45.png
I had been using Chromium browser to download ODROIDBIOS-20201028.tar.gz. Apparently, because the file name had not changed, Chromium didn't bother to download it again, instead fetching it from a cache. I now have your updated version which is not getting stuck at the HardKernel logo. There are functionality issues to be pursued but not today.
Many thanks again.
Ah...I see...Sorry about that, I should change the tarball name. You can share your experience and features you want. :)

User avatar
mad_ady
Posts: 9428
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: 602 times
Been thanked: 673 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by mad_ady »

Quick question - I know you can update Petitboot directly from the Odroid's OS by replacing the bios file, but can you update petitboot on the HC4 from the OS? I know that for the N2 you couldn't because emmc and spi were sharing some signal lines...

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

mad_ady wrote:
Thu Nov 05, 2020 8:05 pm
Quick question - I know you can update Petitboot directly from the Odroid's OS by replacing the bios file, but can you update petitboot on the HC4 from the OS? I know that for the N2 you couldn't because emmc and spi were sharing some signal lines...
Quick answer - techinically yes if SPI flash memory is defined in the device tree with the partition table within SPI flash memory. It will create the device node "/dev/mtd*".

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Thu Nov 05, 2020 4:44 pm
Curmudgeon wrote:
Thu Nov 05, 2020 4:42 pm
tobetter wrote:
Thu Nov 05, 2020 3:09 pm
Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?
Petitboot menu seems to have no problem with the display, a Philips Model ID: 241V8/75.
When means...you are able to run Petitboot now?
I have repeated the test using Petitboot 20201028 and the behaviour is the same. So I wrote ubuntu-20.04-server-odroidc4-20201024 to an ordinary (old) Lexar USB thumb drive. This image boots OK. Something is weird about the Toshiba X10 SSD ?

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

Ambiguity of filesystems in a multi boot situation
During experiments with multibooting my C4 I have noticed a few times that the wrong boot partition is mounted and, on investigation, it was apparent that the relevant entry in /etc/fstab specified "LABEL=BOOT" instead of a UUID to be matched.
Testing the recent ubuntu-20.04-server-odroidc4-20201024 image, I was surprised to see (via df) that / was mounted from /dev/disk/by-label/rootfs. What happens if there are multiple partitions with the label "rootfs"?
I have experienced problems where I've inadvertently allowed more than one root filesystem to be present with the same UUID.
I'm no expert but it seems to me, this is a bit of a mess.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

Using net install
Petitboot provides access to an impressive list of Internet installable images. How can I tell which of these images have been tested and proven to be installable, bootable and fit for use?

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Fri Nov 06, 2020 7:00 am
Ambiguity of filesystems in a multi boot situation
During experiments with multibooting my C4 I have noticed a few times that the wrong boot partition is mounted and, on investigation, it was apparent that the relevant entry in /etc/fstab specified "LABEL=BOOT" instead of a UUID to be matched.
Testing the recent ubuntu-20.04-server-odroidc4-20201024 image, I was surprised to see (via df) that / was mounted from /dev/disk/by-label/rootfs. What happens if there are multiple partitions with the label "rootfs"?
I have experienced problems where I've inadvertently allowed more than one root filesystem to be present with the same UUID.
I'm no expert but it seems to me, this is a bit of a mess.
This is the reason I prefer to install the OS using Netboot Installer which you've tried already. Even though UUID is been used instead of BOOT, the OS image installed to different memory card on single system will be confused since they will have same boot=UUID=blahbalh or boot=LABEL=BOOT.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Fri Nov 06, 2020 7:27 am
Using net install
Petitboot provides access to an impressive list of Internet installable images. How can I tell which of these images have been tested and proven to be installable, bootable and fit for use?
No, it's not image. That's installer like how you are installing OS to PC. While installing you set up the OS with your own account and password, even you can customize the file system layout with multiple disk if you are familiar with these. And the software installed to the OS using Netboot Installer - Debian/Ubuntu - comes from the official Debian/Ubuntu repositories for most package and ODROID specific packages are coming from my package repository. If you are curious which is tested, hard to tell you which is and I am also maintaining the Netboot installer from the Petitboot or from a memory card at least let user have minimal/server OS.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Fri Nov 06, 2020 8:56 am
Curmudgeon wrote:
Fri Nov 06, 2020 7:27 am
Using net install
Petitboot provides access to an impressive list of Internet installable images. How can I tell which of these images have been tested and proven to be installable, bootable and fit for use?
No, it's not image. That's installer like how you are installing OS to PC. While installing you set up the OS with your own account and password, even you can customize the file system layout with multiple disk if you are familiar with these. And the software installed to the OS using Netboot Installer - Debian/Ubuntu - comes from the official Debian/Ubuntu repositories for most package and ODROID specific packages are coming from my package repository. If you are curious which is tested, hard to tell you which is and I am also maintaining the Netboot installer from the Petitboot or from a memory card at least let user have minimal/server OS.
I've tried to install Lubuntu several times and it fails consistently (no error report, it just stalls) 72% into the "Select and Install Software" phase with the last progress report "configuring wvdial". Am I right in thinking this is probably due to a problem in the Ubuntu repository?

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Wed Nov 18, 2020 3:32 am
tobetter wrote:
Fri Nov 06, 2020 8:56 am
Curmudgeon wrote:
Fri Nov 06, 2020 7:27 am
Using net install
Petitboot provides access to an impressive list of Internet installable images. How can I tell which of these images have been tested and proven to be installable, bootable and fit for use?
No, it's not image. That's installer like how you are installing OS to PC. While installing you set up the OS with your own account and password, even you can customize the file system layout with multiple disk if you are familiar with these. And the software installed to the OS using Netboot Installer - Debian/Ubuntu - comes from the official Debian/Ubuntu repositories for most package and ODROID specific packages are coming from my package repository. If you are curious which is tested, hard to tell you which is and I am also maintaining the Netboot installer from the Petitboot or from a memory card at least let user have minimal/server OS.
I've tried to install Lubuntu several times and it fails consistently (no error report, it just stalls) 72% into the "Select and Install Software" phase with the last progress report "configuring wvdial". Am I right in thinking this is probably due to a problem in the Ubuntu repository?
I don't think my package server provide the packages for Lubuntu. Are you failing at running Netboot Installer after selecting the desktop "Lubuntu" from 'tasksel'? Or do you failed after Ubuntu is installed using Netboot Installer and run to install Lubuntu with apt command?
If you are trying to do the first case, installing Lubuntu directly from the Netboot Installer, I would suggest to finish the non-desktop OS installation - which means only finish installing the ssh server - and do install the desktop from the Ubuntu console. At least you are able to finish the OS installation, can figure out the rest with more tools.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Wed Nov 18, 2020 3:37 am
Curmudgeon wrote:
Wed Nov 18, 2020 3:32 am
tobetter wrote:
Fri Nov 06, 2020 8:56 am
Curmudgeon wrote:
Fri Nov 06, 2020 7:27 am
Using net install
Petitboot provides access to an impressive list of Internet installable images. How can I tell which of these images have been tested and proven to be installable, bootable and fit for use?
No, it's not image. That's installer like how you are installing OS to PC. While installing you set up the OS with your own account and password, even you can customize the file system layout with multiple disk if you are familiar with these. And the software installed to the OS using Netboot Installer - Debian/Ubuntu - comes from the official Debian/Ubuntu repositories for most package and ODROID specific packages are coming from my package repository. If you are curious which is tested, hard to tell you which is and I am also maintaining the Netboot installer from the Petitboot or from a memory card at least let user have minimal/server OS.
I've tried to install Lubuntu several times and it fails consistently (no error report, it just stalls) 72% into the "Select and Install Software" phase with the last progress report "configuring wvdial". Am I right in thinking this is probably due to a problem in the Ubuntu repository?
I don't think my package server provide the packages for Lubuntu. Are you failing at running Netboot Installer after selecting the desktop "Lubuntu" from 'tasksel'? Or do you failed after Ubuntu is installed using Netboot Installer and run to install Lubuntu with apt command?
If you are trying to do the first case, installing Lubuntu directly from the Netboot Installer, I would suggest to finish the non-desktop OS installation - which means only finish installing the ssh server - and do install the desktop from the Ubuntu console. At least you are able to finish the OS installation, can figure out the rest with more tools.
It's failing within the Netboot installation after selecting the desktop "Lubuntu" from 'tasksel' list. I have since used an existing Netboot installed Ubuntu Desktop to install LXQT and find it satisfactory to have the choice of desktop environment when logging in.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Thu Nov 19, 2020 2:47 am
tobetter wrote:
Wed Nov 18, 2020 3:37 am
Curmudgeon wrote:
Wed Nov 18, 2020 3:32 am
tobetter wrote:
Fri Nov 06, 2020 8:56 am
Curmudgeon wrote:
Fri Nov 06, 2020 7:27 am
Using net install
Petitboot provides access to an impressive list of Internet installable images. How can I tell which of these images have been tested and proven to be installable, bootable and fit for use?
No, it's not image. That's installer like how you are installing OS to PC. While installing you set up the OS with your own account and password, even you can customize the file system layout with multiple disk if you are familiar with these. And the software installed to the OS using Netboot Installer - Debian/Ubuntu - comes from the official Debian/Ubuntu repositories for most package and ODROID specific packages are coming from my package repository. If you are curious which is tested, hard to tell you which is and I am also maintaining the Netboot installer from the Petitboot or from a memory card at least let user have minimal/server OS.
I've tried to install Lubuntu several times and it fails consistently (no error report, it just stalls) 72% into the "Select and Install Software" phase with the last progress report "configuring wvdial". Am I right in thinking this is probably due to a problem in the Ubuntu repository?
I don't think my package server provide the packages for Lubuntu. Are you failing at running Netboot Installer after selecting the desktop "Lubuntu" from 'tasksel'? Or do you failed after Ubuntu is installed using Netboot Installer and run to install Lubuntu with apt command?
If you are trying to do the first case, installing Lubuntu directly from the Netboot Installer, I would suggest to finish the non-desktop OS installation - which means only finish installing the ssh server - and do install the desktop from the Ubuntu console. At least you are able to finish the OS installation, can figure out the rest with more tools.
It's failing within the Netboot installation after selecting the desktop "Lubuntu" from 'tasksel' list. I have since used an existing Netboot installed Ubuntu Desktop to install LXQT and find it satisfactory to have the choice of desktop environment when logging in.
Actually the Netboot Installer is not fully tested for every single Desktop packages, some of them installs pretty well without an issue, even my experience is that installation failes sometimes like when package server is busy. So please install with bare minimal packages like SSH server and run the 'tasksel' after OS installation is over. At least you won't try to instal again and again with the Netboot installer, but can manage the packages with better tools in the command line.

maxycatz
Posts: 20
Joined: Mon Jun 22, 2020 11:04 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by maxycatz »

Will there be/is there a way to navigate the menu without a full keyboard?

User avatar
mad_ady
Posts: 9428
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: 602 times
Been thanked: 673 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by mad_ady »

Yes! You should be able to use the Hardkernel ir remote, or a clone of it.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

Curmudgeon wrote:
Fri Nov 06, 2020 6:40 am
tobetter wrote:
Thu Nov 05, 2020 4:44 pm
Curmudgeon wrote:
Thu Nov 05, 2020 4:42 pm
tobetter wrote:
Thu Nov 05, 2020 3:09 pm
Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?
Petitboot menu seems to have no problem with the display, a Philips Model ID: 241V8/75.
When means...you are able to run Petitboot now?
I have repeated the test using Petitboot 20201028 and the behaviour is the same. So I wrote ubuntu-20.04-server-odroidc4-20201024 to an ordinary (old) Lexar USB thumb drive. This image boots OK. Something is weird about the Toshiba X10 SSD ?
Well, there is indeed something weird about my Toshiba X10 SSD. I have an ordinary installation of Ubuntu 20.04.1 LTS with kernel 4.9.236-63 and mate 1.24 that boots from /dev/sda6 to a root filesystem on /dev/sda2 via Petitboot. However, I have tried several times to install from PetitBoot->netboot_default to /dev/sda5 & /dev/sda1 but the installations have failed to boot, coming to a halt at a BusyBox prompt. Today I tried again, this time to install Debian 10 Mate to /dev/sda5 & /dev/sda1. Again, the installation seems to complete properly but then fails to boot, with "ALERT! /dev/disk/by-uuid/be4bf ... etc ... 0b06 does not exist. Dropping to a shell."
Then there is a BusyBox prompt.
I have checked and confirmed that /dev/sda1 does have the correct UUID that was declared as non-existent during the boot attempt.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Fri Dec 11, 2020 3:29 pm
Curmudgeon wrote:
Fri Nov 06, 2020 6:40 am
tobetter wrote:
Thu Nov 05, 2020 4:44 pm
Curmudgeon wrote:
Thu Nov 05, 2020 4:42 pm
tobetter wrote:
Thu Nov 05, 2020 3:09 pm
Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?
Petitboot menu seems to have no problem with the display, a Philips Model ID: 241V8/75.
When means...you are able to run Petitboot now?
I have repeated the test using Petitboot 20201028 and the behaviour is the same. So I wrote ubuntu-20.04-server-odroidc4-20201024 to an ordinary (old) Lexar USB thumb drive. This image boots OK. Something is weird about the Toshiba X10 SSD ?
Well, there is indeed something weird about my Toshiba X10 SSD. I have an ordinary installation of Ubuntu 20.04.1 LTS with kernel 4.9.236-63 and mate 1.24 that boots from /dev/sda6 to a root filesystem on /dev/sda2 via Petitboot. However, I have tried several times to install from PetitBoot->netboot_default to /dev/sda5 & /dev/sda1 but the installations have failed to boot, coming to a halt at a BusyBox prompt. Today I tried again, this time to install Debian 10 Mate to /dev/sda5 & /dev/sda1. Again, the installation seems to complete properly but then fails to boot, with "ALERT! /dev/disk/by-uuid/be4bf ... etc ... 0b06 does not exist. Dropping to a shell."
Then there is a BusyBox prompt.
I have checked and confirmed that /dev/sda1 does have the correct UUID that was declared as non-existent during the boot attempt.
When you try to boot again with the current installation, please share the output cat /proc/cmdline and blkid in the command line when booting is failed.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Fri Dec 11, 2020 4:29 pm
Curmudgeon wrote:
Fri Dec 11, 2020 3:29 pm
Curmudgeon wrote:
Fri Nov 06, 2020 6:40 am
tobetter wrote:
Thu Nov 05, 2020 4:44 pm
Curmudgeon wrote:
Thu Nov 05, 2020 4:42 pm
tobetter wrote:
Thu Nov 05, 2020 3:09 pm
Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?
Petitboot menu seems to have no problem with the display, a Philips Model ID: 241V8/75.
When means...you are able to run Petitboot now?
I have repeated the test using Petitboot 20201028 and the behaviour is the same. So I wrote ubuntu-20.04-server-odroidc4-20201024 to an ordinary (old) Lexar USB thumb drive. This image boots OK. Something is weird about the Toshiba X10 SSD ?
Well, there is indeed something weird about my Toshiba X10 SSD. I have an ordinary installation of Ubuntu 20.04.1 LTS with kernel 4.9.236-63 and mate 1.24 that boots from /dev/sda6 to a root filesystem on /dev/sda2 via Petitboot. However, I have tried several times to install from PetitBoot->netboot_default to /dev/sda5 & /dev/sda1 but the installations have failed to boot, coming to a halt at a BusyBox prompt. Today I tried again, this time to install Debian 10 Mate to /dev/sda5 & /dev/sda1. Again, the installation seems to complete properly but then fails to boot, with "ALERT! /dev/disk/by-uuid/be4bf ... etc ... 0b06 does not exist. Dropping to a shell."
Then there is a BusyBox prompt.
I have checked and confirmed that /dev/sda1 does have the correct UUID that was declared as non-existent during the boot attempt.
When you try to boot again with the current installation, please share the output cat /proc/cmdline and blkid in the command line when booting is failed.
cat /proc/cmdline returned "quiet console=tty1 cma=800M clk_ignore_unused console=ttyS0,115200n8"
I'll have to go back again to get blkid output. I thought I'd saved it but apparently not.
Each time I do the net install, it kills Petitboot and I have to rerun sd_fusing.sh for the uSD card to reinstate Petitboot operation - is this a separate issue?
Later--
Output from blkid as follows:
/dev/mmcblk1: PTUUID="f2e90000" PTTYPE="dos"
/dev/mmcblk1p1: UUID="eee9d757-66a1-491b-ad0e-d68a900be73e" TYPE="ext4" PARTUUID="f2e90000-01"
/dev/mmcblk1p2: UUID="a1fbc2cf-0c08-448f-9175-63e8d9355a00" TYPE="ext4" PARTUUID="f2e90000-02"
/dev/mmcblk1p3: UUID="5a7b32ab-5817-41ad-8881-eea9bad1261e" TYPE="ext4" PARTUUID="f2e90000-03"
/dev/mmcblk1p5: UUID="63cd6a6e-dd5d-4d5c-bcdb-550c37417efb" TYPE="ext4" PARTUUID="f2e90000-05"
/dev/sda1: UUID="dd357b7f-3b8d-4b35-8649-a99f569a5efe" TYPE="ext4" PARTUUID="03823826-01"
/dev/sda2: LABEL="rootfs" UUID="e139ce78-9841-40fe-8823-96a304a09859" TYPE="ext4" PARTUUID="03823826-02"
/dev/sda3: UUID="8f48f115-0223-4cbe-afb4-8adaed235f4d" TYPE="ext4" PARTUUID="03823826-03"
/dev/sda5: UUID="af7d744f-1614-4daa-8915-ccce12b199aa" TYPE="ext4" PARTUUID="03823826-05"
/dev/sda6: SEC_TYPE="msdos" UUID="9C58-1F37" TYPE="vfat" PARTUUID="03823826-06"
/dev/sda7: SEC_TYPE="msdos" UUID="CE35-C81D" TYPE="vfat" PARTUUID="03823826-07"

Edited 12Dec20: I don't know why I didn't try this before but: if I execute the "exit" command the boot process resumes and completes successfully!

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

20201222

This version improved multiple issues reported by the users here and ODROID-N2 users,
  • Petitboot display issue with DVI display device is been improved.
  • Display resolution for the Petitboot menu is limited up to 1024x768. This will help to read the screen with a high resolution display device.
  • Multiple kernel boot entry from 'grub.cfg'
Download link : 20201222

If you are new to use this, please follow the instruction in the previous post. If you already had installed and have working Petitboot with ODROID-C4, just overwrite the file ODROIDBIOS.BIN with the one from the update package. The update pakcage contains only 4 files as below.

Code: Select all

ODROIDBIOS.BIN
mmcboot.img
sd_fusing.sh
u-boot.bin
Thank you... :)

User avatar
mad_ady
Posts: 9428
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: 602 times
Been thanked: 673 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by mad_ady »

No, thank you!

borza
Posts: 1
Joined: Thu Dec 24, 2020 3:39 am
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 0
Been thanked: 0
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by borza »

Hi,

Yesterday I bought an Odroid C4 with emmc 16gb Android, with the idea of ​​using it with CoreElec on the sd card, or vice versa ( CE on emmc, Android on sd ). I installed the latest versions of Android PIE 64bit(20201221) -> emmc and CE 9.2.5 -> sdcard and petitboot from here http://ppa.linuxfactory.or.kr/images/petitboot/odroidc4 - ODROIDBIOS-20201028.tar.gz. -> Android/emmc.

Petitboot installs without errors, finds devices at startup, CoreElec starts well, but Android only starts in the recovery menu.

I've tried Ubuntu Mate 20201214 on emmc and Android on sd card, but Android also starts in recovery mode.

I also tried CoreElec on emmc and Android on sd card, but I got stuck, this version I think would satisfy me the best.

If anyone managed to dualboot Android / Coreelec, please let me know what versions (android and petitboot ) they used. The Android and petitboot I used are recent and there may be some problems for now, but I’m not sure if I didn’t do something wrong.

Thanks.

User avatar
rooted
Posts: 8517
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 740 times
Been thanked: 345 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by rooted »

mad_ady wrote:No, thank you!
I had to read that multiple times to realize you were thanking tobetter not saying "no thank you" :)
These users thanked the author rooted for the post:
istanbulls (Sat Dec 26, 2020 3:57 am)

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

rooted wrote:
Thu Dec 24, 2020 1:19 pm
mad_ady wrote:No, thank you!
I had to read that multiple times to realize you were thanking tobetter not saying "no thank you" :)
Thanks....I was thinkg of the same for several minutes. LoL

User avatar
mad_ady
Posts: 9428
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: 602 times
Been thanked: 673 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by mad_ady »

Hence the bolded you. Next time I'll put it in red...

User avatar
rooted
Posts: 8517
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 740 times
Been thanked: 345 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by rooted »

mad_ady wrote:Hence the bolded you. Next time I'll put it in red...
Hard to see bold text in tapatalk.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

I recently installed Xubuntu and Ubuntu Mate to a 32GB SanDisk Ultra uSD card in my Odroid-C4 in order to advance to the latest kernel. I used Petitboot's netboot_default feature and the installations completed without any apparent problem. However, I was later surprised to notice that the uSD card is being (mis)represented as /dev/mmcblk0 instead of /dev/mmcblk1. My Odriod-C4 is not fitted with an eMMC module. Apart from this anomaly the installations seem to boot and run properly. Petitboot recognises the boot partitions on /dev/mmcblk1.
I have included some details below.

myhostC4:~$ uname -a
Linux myhostC4 5.10.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.10.4-202012311803~focal (2020-12-31) aarch64 aarch64 aarch64 GNU/Linux

myhostC4:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 235.3M 1 loop /snap/chromium/1428
loop1 7:1 0 48.9M 1 loop /snap/core18/1949
loop2 7:2 0 64.8M 1 loop /snap/gtk-common-themes/1514
loop3 7:3 0 27M 1 loop /snap/snapd/10494
loop4 7:4 0 27M 1 loop /snap/snapd/10709
mmcblk0 179:0 0 29.7G 0 disk
├─mmcblk0p1 179:1 0 243M 0 part
├─mmcblk0p2 179:2 0 9.7G 0 part
├─mmcblk0p3 179:3 0 9G 0 part /
├─mmcblk0p4 179:4 0 1K 0 part
├─mmcblk0p5 179:5 0 1000M 0 part [SWAP]
└─mmcblk0p6 179:6 0 250M 0 part /boot


Extract from dmesg follows:
[ 1.448044] libphy: mdio_mux: probed
[ 1.528695] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
[ 1.529225] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[ 1.534051] mmcblk0: p1 p2 p3 p4 < p5 p6 >
[ 1.555969] libphy: mdio_mux: probed

Many thanks.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

I tried a fresh install of Ubuntu 20.04 MATE via Petitboot's netboot_default facility to a 64 GB Samsung Evo uSDXC card. The installation seemed to complete without any problem but it will not boot from the uSD card slot. I installed Petitboot on the card and tried to boot. Petitboot recognised the bootable installation but when I tried to boot it there was an endless stream of errors: "mmc0: error - 110 whilst initialising SD card". So I transferred the uSDXC card to a generic USB 3 card reader, put a uSDHC card (with Petitboot) in the Odroid-C4 uSD card slot and attempted to boot the image via Petitboot and USB. It boots up and runs fine in this configuration (subject to the mmcblk0/ mmcblk1 confusion described above).

So, it seems to me that Ubuntu 20.04 with kernel 5.10.y has problems with uSD cards in general and uSDXC in particular.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Tue Jan 05, 2021 10:34 am
I tried a fresh install of Ubuntu 20.04 MATE via Petitboot's netboot_default facility to a 64 GB Samsung Evo uSDXC card. The installation seemed to complete without any problem but it will not boot from the uSD card slot. I installed Petitboot on the card and tried to boot. Petitboot recognised the bootable installation but when I tried to boot it there was an endless stream of errors: "mmc0: error - 110 whilst initialising SD card". So I transferred the uSDXC card to a generic USB 3 card reader, put a uSDHC card (with Petitboot) in the Odroid-C4 uSD card slot and attempted to boot the image via Petitboot and USB. It boots up and runs fine in this configuration (subject to the mmcblk0/ mmcblk1 confusion described above).

So, it seems to me that Ubuntu 20.04 with kernel 5.10.y has problems with uSD cards in general and uSDXC in particular.
I was about to reply..but you made it ahead me. ;)

Can you show me the photo of your SD card or share the product link of it?
Personally, if the space permits I would recommend using USB3 memory storage and use SD card for the Petitboot, this would be more safer and faster than using SD card.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Tue Jan 05, 2021 10:38 am
Curmudgeon wrote:
Tue Jan 05, 2021 10:34 am
I tried a fresh install of Ubuntu 20.04 MATE via Petitboot's netboot_default facility to a 64 GB Samsung Evo uSDXC card. The installation seemed to complete without any problem but it will not boot from the uSD card slot. I installed Petitboot on the card and tried to boot. Petitboot recognised the bootable installation but when I tried to boot it there was an endless stream of errors: "mmc0: error - 110 whilst initialising SD card". So I transferred the uSDXC card to a generic USB 3 card reader, put a uSDHC card (with Petitboot) in the Odroid-C4 uSD card slot and attempted to boot the image via Petitboot and USB. It boots up and runs fine in this configuration (subject to the mmcblk0/ mmcblk1 confusion described above).

So, it seems to me that Ubuntu 20.04 with kernel 5.10.y has problems with uSD cards in general and uSDXC in particular.
I was about to reply..but you made it ahead me. ;)

Can you show me the photo of your SD card or share the product link of it?
Personally, if the space permits I would recommend using USB3 memory storage and use SD card for the Petitboot, this would be more safer and faster than using SD card.
Here is a link to the Samsung Evo Plus 64GB uSDXC card: https://i.ebayimg.com/images/g/OCoAAOSw ... -l1600.jpg
Of course, I'd rather not write off my 64GB uSDXC card because the 5.10.y kernel will presumably improve significantly during the coming months but, if I were to buy more storage I would probably opt for a fast USB 3 flash drive, as you suggest.
Many thanks again.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Tue Jan 05, 2021 11:33 am
tobetter wrote:
Tue Jan 05, 2021 10:38 am
Curmudgeon wrote:
Tue Jan 05, 2021 10:34 am
I tried a fresh install of Ubuntu 20.04 MATE via Petitboot's netboot_default facility to a 64 GB Samsung Evo uSDXC card. The installation seemed to complete without any problem but it will not boot from the uSD card slot. I installed Petitboot on the card and tried to boot. Petitboot recognised the bootable installation but when I tried to boot it there was an endless stream of errors: "mmc0: error - 110 whilst initialising SD card". So I transferred the uSDXC card to a generic USB 3 card reader, put a uSDHC card (with Petitboot) in the Odroid-C4 uSD card slot and attempted to boot the image via Petitboot and USB. It boots up and runs fine in this configuration (subject to the mmcblk0/ mmcblk1 confusion described above).

So, it seems to me that Ubuntu 20.04 with kernel 5.10.y has problems with uSD cards in general and uSDXC in particular.
I was about to reply..but you made it ahead me. ;)

Can you show me the photo of your SD card or share the product link of it?
Personally, if the space permits I would recommend using USB3 memory storage and use SD card for the Petitboot, this would be more safer and faster than using SD card.
Here is a link to the Samsung Evo Plus 64GB uSDXC card: https://i.ebayimg.com/images/g/OCoAAOSw ... -l1600.jpg
Of course, I'd rather not write off my 64GB uSDXC card because the 5.10.y kernel will presumably improve significantly during the coming months but, if I were to buy more storage I would probably opt for a fast USB 3 flash drive, as you suggest.
Many thanks again.
Ok, let me grab the same MMC and test if I found available.

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Fri Dec 11, 2020 4:29 pm
Curmudgeon wrote:
Fri Dec 11, 2020 3:29 pm
Curmudgeon wrote:
Fri Nov 06, 2020 6:40 am
tobetter wrote:
Thu Nov 05, 2020 4:44 pm
Curmudgeon wrote:
Thu Nov 05, 2020 4:42 pm
tobetter wrote:
Thu Nov 05, 2020 3:09 pm
Curmudgeon wrote:
Thu Nov 05, 2020 3:03 pm
Problem with Toshiba X10 Portable SSD 120GB.
Using Petitboot 20200721 I can boot ubuntu-20.04-4.9-mate-odroid-c4-hc4-20201020 from /dev/sda1&2 but cannot boot ubuntu-20.04-server-odroidc4-20201024 from /dev/sda1&2. The screen remains black while the blue LED blinks. Pressing Ctrl/Alt/Delete returns to the Petitboot screen. This SSD is also unable to boot some (all?) net installed images but I suspended investigating because my Internet data budget was running out.
Are you able to see the Petitboot menu with your display?
What's the vendor and model of your display?
Petitboot menu seems to have no problem with the display, a Philips Model ID: 241V8/75.
When means...you are able to run Petitboot now?
I have repeated the test using Petitboot 20201028 and the behaviour is the same. So I wrote ubuntu-20.04-server-odroidc4-20201024 to an ordinary (old) Lexar USB thumb drive. This image boots OK. Something is weird about the Toshiba X10 SSD ?
Well, there is indeed something weird about my Toshiba X10 SSD. I have an ordinary installation of Ubuntu 20.04.1 LTS with kernel 4.9.236-63 and mate 1.24 that boots from /dev/sda6 to a root filesystem on /dev/sda2 via Petitboot. However, I have tried several times to install from PetitBoot->netboot_default to /dev/sda5 & /dev/sda1 but the installations have failed to boot, coming to a halt at a BusyBox prompt. Today I tried again, this time to install Debian 10 Mate to /dev/sda5 & /dev/sda1. Again, the installation seems to complete properly but then fails to boot, with "ALERT! /dev/disk/by-uuid/be4bf ... etc ... 0b06 does not exist. Dropping to a shell."
Then there is a BusyBox prompt.
I have checked and confirmed that /dev/sda1 does have the correct UUID that was declared as non-existent during the boot attempt.
When you try to boot again with the current installation, please share the output cat /proc/cmdline and blkid in the command line when booting is failed.
This issue seems to have resolved itself. Today I successfully installed Ubuntu 20.04 MATE via netboot_default to partitions 3 & 7 of my Toshiba X10 SSD. I checked the output of dmesg which indicates that the usb-storage driver is now being used instead of the uas driver that was being used by previous 5.x kernels. The legacy 4.9.236 kernel also used the usb-storage driver rather than the uas driver. I therefore suspect that my Toshiba X10 SSD is not compatible with the uas driver.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Curmudgeon wrote:
Wed Jan 06, 2021 8:05 am
tobetter wrote:
Fri Dec 11, 2020 4:29 pm
When you try to boot again with the current installation, please share the output cat /proc/cmdline and blkid in the command line when booting is failed.
This issue seems to have resolved itself. Today I successfully installed Ubuntu 20.04 MATE via netboot_default to partitions 3 & 7 of my Toshiba X10 SSD. I checked the output of dmesg which indicates that the usb-storage driver is now being used instead of the uas driver that was being used by previous 5.x kernels. The legacy 4.9.236 kernel also used the usb-storage driver rather than the uas driver. I therefore suspect that my Toshiba X10 SSD is not compatible with the uas driver.
Can you let me know VID/PID of your storage with lsusb?

Curmudgeon
Posts: 49
Joined: Thu Jan 01, 2015 11:07 pm
languages_spoken: english
ODROIDs: C1, N2, C4
Has thanked: 2 times
Been thanked: 7 times
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Curmudgeon »

tobetter wrote:
Wed Jan 06, 2021 8:28 am
Curmudgeon wrote:
Wed Jan 06, 2021 8:05 am
tobetter wrote:
Fri Dec 11, 2020 4:29 pm
When you try to boot again with the current installation, please share the output cat /proc/cmdline and blkid in the command line when booting is failed.
This issue seems to have resolved itself. Today I successfully installed Ubuntu 20.04 MATE via netboot_default to partitions 3 & 7 of my Toshiba X10 SSD. I checked the output of dmesg which indicates that the usb-storage driver is now being used instead of the uas driver that was being used by previous 5.x kernels. The legacy 4.9.236 kernel also used the usb-storage driver rather than the uas driver. I therefore suspect that my Toshiba X10 SSD is not compatible with the uas driver.
Can you let me know VID/PID of your storage with lsusb?
My bad. I misread the dmesg output. Further down after registering usb-storage driver, the uas driver was registered for the Toshiba SSD. Note that lsusb incorrectly describes the 110GB USB SSD as a 2GB Memory Stick. Anyway, the bottom line is that the device now works and can be used as I always intended as a fast (~330MB/s read) storage for multiple boot & root images.

Details follow:
me@myC4:~$ lsusb
Bus 002 Device 003: ID 0930:1400 Toshiba Corp. Memory Stick 2GB

Extracts from dmesg follow:
[ 1.441391] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.441407] ohci-pci: OHCI PCI platform driver
[ 1.441455] ohci-platform: OHCI generic platform driver
[ 1.441894] usbcore: registered new interface driver usb-storage
[ 1.443187] mousedev: PS/2 mouse device common for all mice
[ 1.443377] usbcore: registered new interface driver dwav_usb_mt
:
:
:
[ 3.055797] usb 2-1.4: new SuperSpeed Gen 1 USB device number 3 using xhci-hcd
[ 3.076661] usb 2-1.4: New USB device found, idVendor=0930, idProduct=1400, bcdDevice= 1.00
[ 3.076667] usb 2-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 3.076671] usb 2-1.4: Product: TOSHIBA USB DRV
[ 3.076674] usb 2-1.4: Manufacturer: TOSHIBA
[ 3.076677] usb 2-1.4: SerialNumber: 5112004160302DD300A8
[ 3.082959] scsi host0: uas
[ 3.083515] usbcore: registered new interface driver uas
[ 3.083774] scsi 0:0:0:0: Direct-Access TOSHIBA TOSHIBA USB DRV 0 PQ: 0 ANSI: 6

Thanks again.
These users thanked the author Curmudgeon for the post:
tobetter (Wed Jan 06, 2021 9:57 am)

Georgetina
Posts: 69
Joined: Thu Oct 08, 2015 9:38 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Georgetina »

I have successfully installed the Multiboot system you have provided with Ubuntu 20.04 on emmc and coreelec on sd card and this works well. I would like to have android pi as well and have downloaded the self install image onto a usb memory card. If I put the usb card in to the C4 it prevents the system booting. It just stops with a solid blue light and no hdmi output. Can you advise please

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Georgetina wrote:
Wed Apr 28, 2021 9:33 pm
I have successfully installed the Multiboot system you have provided with Ubuntu 20.04 on emmc and coreelec on sd card and this works well. I would like to have android pi as well and have downloaded the self install image onto a usb memory card. If I put the usb card in to the C4 it prevents the system booting. It just stops with a solid blue light and no hdmi output. Can you advise please
Glad to know you have successfully installed two different OS to eMMC and SD card. I highly recommend running Android eMMC instead of USB storage, it's because Android is intentionally developed to run eMMC or SD card, not USB storage and it very frequently access storage. Ubuntu 20.04 is good to run on USB 3.0 storage unless it's cheapy one.

Georgetina
Posts: 69
Joined: Thu Oct 08, 2015 9:38 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Multi boot and USB booting with ODROID-C4

Post by Georgetina »

Thanks for your prompt reply (to say nothing about the supply of such a useful facility !!). I have Ubuntu on the emmc card as it is my most important system with coreelec on the sd card for netflix, disney, and amazon prime which all work very well. I also have a large number of films. The reason for wanting Android is so my visiting grandkids can play games so I would like to have this even though it may not be the best way. All the android images for the C4 seem to be self install and I believe this is the problem when first booting. Is this correct ? if so is there a way around this problem or is there a build image of android I can use ?.

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

Re: Multi boot and USB booting with ODROID-C4

Post by tobetter »

Georgetina wrote:
Thu Apr 29, 2021 6:42 am
Thanks for your prompt reply (to say nothing about the supply of such a useful facility !!). I have Ubuntu on the emmc card as it is my most important system with coreelec on the sd card for netflix, disney, and amazon prime which all work very well. I also have a large number of films. The reason for wanting Android is so my visiting grandkids can play games so I would like to have this even though it may not be the best way. All the android images for the C4 seem to be self install and I believe this is the problem when first booting. Is this correct ? if so is there a way around this problem or is there a build image of android I can use ?.
Android image for Hardkernel's SBC comes as a.k.a self-install image to fit into various memory card and Android OS itself access memory card a lot.

Alternative way is to install Android to SD card which is slow, swap CoreELEC and Android on SD card when your grandkid visits. Or move the SD card for CoreELEC to USB port using SD card reader, it will work without changing.

Let me see if I have another solution...

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest