Skip to content

Cannot install to emmc to c201 #280

@gregordinary

Description

@gregordinary

Latest build from git, choosing the option to install to the emmc on the c201 results in the following error:

/dev//dev/mmcblk1 does not exist, have you plugged in your target sd card or usb device? 

IMG_20210114_161037

A bit out of my comfort zone, but I believe the code from get_emmc_devname:

get_emmc_devname() {
    local devname=$(ls /dev/mmcblk* | grep -F boot0 | sed "s/boot0//")
    if [ -z "$devname" ]
    then
        echo "Unknown device! can't determine emmc devname. Please file an issue with the output of fdisk -l if you get this on a supported device"; exit 1;;
    fi
    echo $devname
}

is returning the value as "/dev/mmcblk1" which is being referenced on line 101 of InstallPrawnOS.sh:

            [Ii]* ) TARGET=/dev/$(get_emmc_devname)p; TARGET_EMMC=true; break;;

resulting in the additional /dev/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions