Date:2011-03-07 04:53:57 (13 years 22 days ago)
Author:Xiangfu Liu
Commit:b9144552fc6607eb9f78d4bee450f0a5498ce63d
Message:[mtd.nn] using /bin/sh

Files: nanonote-files/script-files/usr/bin/mtd.nn (2 diffs)

Change Details

nanonote-files/script-files/usr/bin/mtd.nn
1#!/bin/bash
1#!/bin/sh
22
3__VERSION__=2011-02-02
3__VERSION__=2011-03-07
44
55if [ "$1" == "flash" ] && [ "$#" == "3" ]; then
66    case "$2" in
...... 
7878    fw_setenv bootargsf3 mem=32M console=tty0 console=ttyS0,57600n8 rootfstype=ext2 root=/dev/mmcblk0p3 rw rootwait
7979    fw_setenv bootcmdf4 mtdparts default\;ubi part rootfs\;ubifsmount rootfs\;ubifsload 0x80600000 /boot/uImage\; bootm
8080    fw_setenv bootargsf4 mem=32M console=tty0 console=ttyS0,57600n8 ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs rw rootwait
81    echo "fw_setenv finished, check u-boot env by fw_printenv"
8182    exit 0
8283fi
8384

Archive Download the corresponding diff file



interactive