Can I boot via USB?

edited March 2019 in ALL-H3-CC

Hi! I'm thinking of buying a Libre Computer board from Amazon, and I was wondering about something before I buy it. I was wondering if I could install and boot a Linux-based OS (preferably Xubuntu) from a USB device such as an external hard drive, rather than using an SD card as is the common way to do it. Thanks!

Tagged:

Comments

  • AFAIK, most of the images Libre provided boots from SD card or EMMC module. For USB boot, we will probably need a bootloader that is capable of booting from Mass Storage Devices. Perhaps @loverpi can shine some light on this topic... would like to know as well!

  • edited March 2019

    I don't really see the point in doing this "as far as booting from USB". It's going to run slower than eMMC and SDCARDS. At least that's my experience when doing it using other boards.

    I could see editing /etc/fstab so that it uses the USB storage device as your HOME directory, but other than that, seems pretty pointless and even that seems like overkill.

    Plus, I don't know that it would work with all of their lineup. For example, the ALL-H3/H5 can't even spin up a drive, although I've never tested a SSD on it and the Renegade is hit-and-miss when it comes to it's USB3 port. Rockchip in general really, at least the boards I've used.

    I think anything is possible, but I really don't see a use case for this. Of course, unless your goal is to just have an overall slower running system.

  • edited March 2019

    Assuming to have LePotato with 18.04.2 image on the microSD and an USB memory stick inserted with another 18.04.2 image (e.g. xfce) you can boot from USB via grub prompt:

    grub> configfile (hd0,msdos2)/@lc…...xfce/boot/grub/grub.cfg

  • edited March 2019

    You need to specify which device you are referring to. Each board is different. Generally they need to have a MicroSD card or eMMC to boot. In the second generation Libre Computer boards like RK3399 and S805X, you can boot directly off USB since the firmware is loaded on SPI NOR. Again, you need to specify which device you are referring to because the process is different for each.

  • Thank you all for all your comments and suggestions!

    @loverpi said:
    You need to specify which device you are referring to. Each board is different. Generally they need to have a MicroSD card or eMMC to boot. In the second generation Libre Computer boards like RK3399 and S805X, you can boot directly off USB since the firmware is loaded on SPI NOR. Again, you need to specify which device you are referring to because the process is different for each.

    I didn't know which one I wanted to buy when I wrote the post, but I now have bought the Tritium H5. It boots very slowly from the SD card and has many graphical errors when using the provided Ubuntu Xfce image. I'm not familiar with eMMC. Do you know of an easy to understand tutorial for how to use them? I'm very new at SBCs and want to learn.

  • We need to release new images for Tritium. The current images do not use cache for storage access so pre-linux is incredibly slow. With regards to eMMC, you can run sudo lc_redetect_emmc after attaching it to the board. Make sure to use the eMMC 4.x modules though since Tritium does not support the 5.x modules.

  • @loverpi said:
    We need to release new images for Tritium. The current images do not use cache for storage access so pre-linux is incredibly slow. With regards to eMMC, you can run sudo lc_redetect_emmc after attaching it to the board. Make sure to use the eMMC 4.x modules though since Tritium does not support the 5.x modules.

    Okay. I don't know anything about eMMC modules, though, and I don't know what they have to do with booting from a USB drive. I'd like to learn about them first before I just go out and buy one.
    Also, with the images, I flashed Armbian and it works great! When I use it in one of my monitors, though, the graphics constantly just stop displaying on and off.

  • @CabeoC Please use the Armbian forum for support with Armbian images.

  • @loverpi said:
    @CabeoC Please use the Armbian forum for support with Armbian images.

    That's not very helpful, as I am not having any problems with Armbian. The same screen flashing problem happened with your own Ubuntu Xfce image. I think it may just be a problem with the specific monitor I used, though, as it works fine with my TV screen. I'd just like to know about how eMMC modules work, as I'm not familiar with them. Do you not have any documentation on them?

  • eMMC is just a block storage device like MicroSD cards but faster and more reliable. They use the same /dev/mmcblk interface as MicroSD cards. Most vendors have special tools for installing Android on eMMC which can be found on the download page. Android is not installed like regular OS'es because they format the eMMC in a special way.
  • La Frite board will boot from USB but you have to use the right side USB port.
Sign In or Register to comment.