[LEDE-DEV] [PATCH] imx6: Fix Pointing to msata/mmc bootdevs

Koen Vandeputte koen.vandeputte at ncentric.com
Mon Aug 22 08:11:25 PDT 2016


 From 9ed626733698f406d490ac915cc8c2408c4344b1 Mon Sep 17 00:00:00 2001
From: Koen Vandeputte <koen.vandeputte at ncentric.com>
Date: Mon, 22 Aug 2016 17:05:11 +0200
Subject: imx6: Fix pointing to msata/mmc bootdevs

Point to correct devices when booting from msata or MMC
Changes fetched from Gateworks git

Signed-off-by: Koen Vandeputte <koen.vandeputte at ncentric.com>

diff --git a/target/linux/imx6/image/bootscript-ventana 
b/target/linux/imx6/image/bootscript-ventana
index 8775733..dcf26bb 100644
--- a/target/linux/imx6/image/bootscript-ventana
+++ b/target/linux/imx6/image/bootscript-ventana
@@ -1,4 +1,4 @@
-echo "Gateworks Ventana OpenWrt Boot script v1.00"
+echo "Gateworks Ventana OpenWrt Boot script v1.01"

  # set some defaults
  # set some defaults
@@ -35,9 +35,9 @@ if test -n "$bootdev" ; then
      echo "Using bootdev from env: $bootdev"
  else
      if itest.s "x${dtype}" == "xmmc" ; then
-        bootdev=mmcblk0
+        bootdev=mmcblk0p1
      else
-        bootdev=sda
+        bootdev=sda1
      fi
  fi

@@ -54,7 +54,7 @@ if itest.s "x${dtype}" == "xnand" ; then
  else
      echo "Booting from block device ${bootdev}..."
      setenv fsload "${fs}load ${dtype} ${disk}:1"
-    setenv root "root=/dev/${bootdev}"
+    setenv root "root=/dev/${bootdev} rootfstype=${fs} rootwait rw"
  fi

  setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}"




More information about the Lede-dev mailing list