• Posts

  • Joined

  • Last visited

Reputation Activity

  1. Like
    Nitrax got a reaction from lanefu in Great way to test distros on the Odroid N2 and possibly other SBCs with multiple boot methods   
    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).