SolidHal / PrawnOS

Libre Mainline Kernel and Debian for arm laptops
https://www.PrawnOS.com
GNU General Public License v2.0
114 stars 29 forks source link

Cannot install to emmc to c201 #280

Closed gregordinary closed 3 years ago

gregordinary commented 3 years ago

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/

austin987 commented 3 years ago

Try https://github.com/SolidHal/PrawnOS/pull/268/commits/bf639d77685751b82c469b78c2a378866a479a8e

gregordinary commented 3 years ago

Thanks!