Jump to content

Booting from USB-Stick possible?


Jaques-Ludwig

Recommended Posts

3 minutes ago, Jaques-Ludwig said:

Is it possible to boot from USB-Stick instead of micro-sd-card?

 

In general (with Armbian), the answer is yes.

 

I am not sure there is anything Helios64 specific that may be different about this (for that, wait for gprovost, aprayoga or someone else more knowledgeable to answer specifics).

 

5 minutes ago, Jaques-Ludwig said:

If it’s possible, how can I do this?

 

The tool you are looking for is the (perhaps poorly named) nand-sata-install.

 

However perhaps we have got all this backwards.  Whether your concerns re: micro sd slot breaking are well-founded, is also a separate question.  Do you plan to be swapping out sd cards a lot?  I would think that with a NAS especially, mostly it would just be sitting there (after the initial setup).

Link to comment
Share on other sites

Yes, you can boot off USB.

You need to either have a U-Boot image on the SD card or on the eMMC.

From there, if the system partition is not found on the SD Card or the eMMC, it will try to look for it on the USB drives that are connected.

 

My system is booting from a USB drive at the moment - the U-Boot is installed on the eMMC (I erased the partition table afterwards, but the bootloader is still there).

If you zero out the eMMC, you loose the bootloader and you need to boot from an SD card. I belive that once we can install the bootloader to the SPI chip you would be able to boot directly from the USB.

 

As @TRS-80 mentioned on the post above - the tool to use for moving your current system from the SD Card to either a USB or eMMC is "nad-sata-isntall".

Today, there was a new post on the wiki page for the Helios64 about the process.

 

Edited by SIGSEGV
Clarification regarding wiki page.
Link to comment
Share on other sites

vor 15 Stunden schrieb gprovost:

Yes as mentioned by @SIGSEGV we have added a new wiki page that covers this topic : https://wiki.kobol.io/helios64/install/transfer/

 

Hi,

 

I know this page, but I can't find the point: System on SD-Card. Which point of this wiki page do I have to use if I want my system from SD-Card to USB and boot from USB?

 

Thanks, 

 

Jaques-Ludwig

Link to comment
Share on other sites

vor 2 Stunden schrieb SIGSEGV:

Hi @Jaques-Ludwig,

That page refers to booting once from the SD-Card to install the system onto the eMMC, with armbian-config or directly with the nand-sata-install tool.

Afterwards your system should boot without the SD-Card, which is what you are looking to achieve, right?

Yes, thats right.  But I want to boot from usb- stick not from eMMC. I think I will wait until the install is directly on usb-stick possible. 

The reason is, that I have installed HomeAssistant and that writes continously data on the drive.  I don't want to destroy the eMMC drive with that constant writing access and a usb-stick is cheaper if it is destroyed.

 

Jaques-Ludwig 

Link to comment
Share on other sites

@Jaques-Ludwig

The following steps worked for me to boot from a USB stick.

In order to boot from USB try this steps:

  1. Boot from the SD card
  2. Plug in the USB stick - use command 'lsblk' to see the device name and write it down.
  3. Choose option 3 from the main menu of 'nand-sata-install' tool
  4. Choose the right destination (device from step 2)
  5. Wait for writing to finish and reboot.

It's part of the guide. If you did install on the eMMC, then you can write the image used for initial SD-Card to a USB drive and erase the partition table from the eMMC. The boot loader will still be in the eMMC - but now your system will boot from the USB drive because the root partition has the UUID that the boot loader is looking for.

 

Link to comment
Share on other sites

vor 7 Minuten schrieb SIGSEGV:

@Jaques-Ludwig

The following steps worked for me to boot from a USB stick.

In order to boot from USB try this steps:

  1. Boot from the SD card
  2. Plug in the USB stick - use command 'lsblk' to see the device name and write it down.
  3. Choose option 3 from the main menu of 'nand-sata-install' tool
  4. Choose the right destination (device from step 2)
  5. Wait for writing to finish and reboot.

It's part of the guide. If you did install on the eMMC, then you can write the image used for initial SD-Card to a USB drive and erase the partition table from the eMMC. The boot loader will still be in the eMMC - but now your system will boot from the USB drive because the root partition has the UUID that the boot loader is looking for.

 

Thanks for your  answer.

 

One question.  I installed the system on eMMC. Then I decided to install it on SD-Card, so I have to set J10 and J11 on the board as written in the wiki.

 

Can these jumper be set when I use your solution?

 

Thanks,

 

Jaques-Ludwig 

Link to comment
Share on other sites

@Jaques-Ludwig As explains by @SIGSEGV you still need to store the bootloader somewhere else than USB because the system cannot boot directly from USB. So in our wiki we present the following approach : Bootloader on eMMC, Root file System on USB.

 

Very soon we will also explain how to store bootloader SPI, but honestly not really major added value than the above approach.

 

6 hours ago, Jaques-Ludwig said:

One question.  I installed the system on eMMC. Then I decided to install it on SD-Card, so I have to set J10 and J11 on the board as written in the wiki.

 

Technically you need to use jumper P10 to disable eMMC to be sure the system won't boot from it.

However take note the 1st stage bootloader (aka SPL) will always try to first find 2nd stage bootloader (aka U-boot) on microSD first, then eMMC. So it means that even if system boot from eMMC, if there is a microSD card inserted with a 2nd stage bootloader (aka U-Boot), the system will boot the system from microSD card... therefore you don't really need to bother about P10 jumper. Hope I'm not confusing more by trying to explain more :-/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines