Jump to content

Great way to test distros on the Odroid N2 and possibly other SBCs with multiple boot methods


Recommended Posts

Posted

I just have to share my method to test distros headless with my OdroidN2. The N2 boots eMMC before SD card, so what I did was to flash the SD card with an armbian distro and get it up and running. 

 

the SD card always shows up on mmcblk0 and the eMMC on mmcblk1. So it boots from SD when it can't find a bootloader on the eMMC. I can flash any image easily with

dd if=image of=/dev/mmcblk1

and just do a reboot, and it will boot the eMMC.

 

Whenever I want to test another image, i can just do

dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=1 

to make the eMMC unbootable, causing it to start on the SD image on the next reboot.

 

A very nice way to test stuff out remotely. I only know it works on the N2, but the concept should be appliable to other SBCs (maybe USB/SD boot..?). I'm sure it's nothing new but the "aha" moment for me was the blanking of the bootloader (doing an unbounded dd if=/dev/zero of=/dev/mmcblk1 caused my device to hang not being able to reboot).

Posted

Not that this won't work, but is a dangerous way to go about it. If the new image doesn't boot for some reason, you can't recover remotely.

 

On 6/17/2021 at 5:56 PM, Nitrax said:

Whenever I want to test another image, i can just do


dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=1 

 

 

 

The sectors used by u-boot / ATF / etc vary by board. This will also destroy the MBR partition table if it exists. Unless the board uses GPT, you'll likely nuke all your data too.

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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