From eb684205e5e6958ad71cf4a179fa776f6507f7e3 Mon Sep 17 00:00:00 2001 From: Yangbo Lu Date: Wed, 18 Jul 2018 14:14:40 +0800 Subject: layerscape: add SD card boot support NOR/QSPI Flash on Layerscape board only has limited 64MB memory size. Since some boards (ls1043ardb/ls1046ardb/ls1088ardb/ls1021atwr) could support SD card boot, we added SD boot support for them to put all things on SD card to meet large memory requirement. Signed-off-by: Yangbo Lu --- .../linux/layerscape/image/gen_sdcard_head_img.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 target/linux/layerscape/image/gen_sdcard_head_img.sh (limited to 'target/linux/layerscape/image/gen_sdcard_head_img.sh') diff --git a/target/linux/layerscape/image/gen_sdcard_head_img.sh b/target/linux/layerscape/image/gen_sdcard_head_img.sh new file mode 100755 index 0000000000..dc1efbb3e0 --- /dev/null +++ b/target/linux/layerscape/image/gen_sdcard_head_img.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# +# Copyright 2018 NXP +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +set -x +[ $# -eq 3 ] || { + echo "SYNTAX: $0 " + exit 1 +} + +OUTPUT="$1" +ROOTFSOFFSET="$(($2 * 1024))" +ROOTFSSIZE="$3" + +head=4 +sect=16 + +set `ptgen -o $OUTPUT -h $head -s $sect -l $ROOTFSOFFSET -t 83 -p ${ROOTFSSIZE}M` -- cgit v1.2.3