Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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).

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.

  • Author

Yes this is only for testing distros and nuking the data is assumed. I should have been more clear about this!

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.