2 Star 0 Fork 0

glinklib/bbs-TR600-MX287

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
environment 3.13 KB
一键复制 编辑 原始数据 按行查看 历史
Menglong Woo 提交于 2018-01-02 11:14 . 2018
="/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/glinklib/bbs-TR600-MX287.git
git@gitee.com:glinklib/bbs-TR600-MX287.git
glinklib
bbs-TR600-MX287
bbs-TR600-MX287
doc

搜索帮助

0d507c66 1850385 C8b1a773 1850385