="/dev/mxs-adc" DEVICE_BATTERY1_CH=0 DEVICE_BATTERY2_CH=1 DEVICE_BACKLIGHT="/sys/class/backlight/mxs-bl/" DEVICE_GPIOKEY="dev/input/event0" DEVICE_POWERKEY="dev/input/event1" DEVICE_TOUCH="dev/input/event2" DEVICE_APD_TEMP="/dev/mxs-adc" DEVICE_SPI_FPGA_OTDR="/dev/spidev3.0" DEVICE_PIN_POWER_ADAPTER="pin_power_adapter" DEVICE_PIN_BAT1_STATUS="pin_bat1_status" DEVICE_PIN_BAT1_STATUS="pin_bat2_status" echo 121 > /sys/class/gpio/export echo 120 > /sys/class/gpio/export echo 84 > /sys/class/gpio/export #echo 85 > /sys/class/gpio/export cat /sys/class/gpio/gpio121/value cat /sys/class/gpio/gpio120/value cat /sys/class/gpio/gpio84/value cat /sys/class/gpio/gpio85/value dd if=/uImage of=/dev/mtd0 bs=1M count=3 skip=2 dd if=/uImage of=/dev/mtdblock0 bs=1M count=3 skip=2 dd if=uImage of=/dev/mtd0 bs=2M count=1 seek=2M dd if=uImage of=/dev/mtdblock0 bs=2M count=1 seek=2M dd if=/dev/mtd1 of=/zImage dd if=/dev/mtd0 of=a.txt bs=2M count=1 seek=2M root@Hello:~# cat /proc/mtd dev: size erasesize name mtd0: 00c00000 00020000 "reserve" mtd1: 00080000 00020000 "reserve" mtd2: 00080000 00020000 "reserve" mtd3: 00200000 00020000 "bmp" mtd4: 00080000 00020000 "reserve" mtd5: 04000000 00020000 "rootfs" mtd6: 03080000 00020000 "opt" root@Hello:/sys/class/gpio# cat /proc/mtd dev: size erasesize name mtd0: 00c00000 00020000 "reserve" mtd1: 00080000 00020000 "reserve" mtd2: 00080000 00020000 "reserve" mtd3: 00200000 00020000 "bmp" mtd4: 00080000 00020000 "reserve" mtd5: 04000000 00020000 "rootfs" mtd6: 03080000 00020000 "opt" sd卡升级看到 0x000000000000-0x000000c00000 : "reserve" 0x000000c00000-0x000000c80000 : "reserve" 0x000000c80000-0x000000d00000 : "reserve" 0x000000d00000-0x000000f00000 : "bmp" 0x000000f00000-0x000000f80000 : "reserve" 0x000000f80000-0x000004f80000 : "rootfs" 0x000004f80000-0x000008000000 : "opt" 原生系统升级后升级后 root@Hello:~# cat /proc/mtd dev: size erasesize name mtd0: 00c00000 00020000 "boot 12MB" mtd1: 00080000 00020000 "env 512KB" mtd2: 00080000 00020000 "reserved 512KB" mtd3: 00200000 00020000 "logo 2MB" mtd4: 00080000 00020000 "reserved 512KB" mtd5: 04000000 00020000 "rootfs 64MB" mtd6: 03080000 00020000 "opt -" 原始的uboot执行分区后比我多一些东西 ------------------------------ MX28 U-Boot > mtdparts default MX28 U-Boot > mtdparts device nand0 <nandflash0>, # parts = 7 #: name size offset mask_flags 0: boot 0x00c00000 0x00000000 0 1: env 0x00080000 0x00c00000 0 2: reserve 0x00080000 0x00c80000 0 3: bmp 0x00200000 0x00d00000 0 4: reserve 0x00080000 0x00f00000 0 5: rootfs 0x04000000 0x00f80000 0 6: opt 0x03080000 0x04f80000 0 active partition: nand0,0 - (boot) 0x00c00000 @ 0x00000000 defaults: mtdids : nand0=nandflash0 mtdparts: mtdparts=nandflash0:12m(boot),512k(env),512k(reserve),2m(bmp),512k(reserve),64m(rootfs),-(opt) MX28 U-Boot > mtdparts