雙rootfs開機轉換
mtd 切法
[ 1.148946] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 1.151660] m25p80 spi32766.0: found mx25u3235f, expected n25q128a11
[ 1.157521] m25p80 spi32766.0: mx25u3235f (4096 Kbytes)
[ 1.163868] 12 ofpart partitions found on MTD device spi32766.0
[ 1.168739] Creating 12 MTD partitions on "spi32766.0":
[ 1.174686] 0x000000000000-0x0000000a0000 : "0:SBL1"
[ 1.180552] 0x0000000a0000-0x0000000b0000 : "0:MIBIB"
[ 1.185677] 0x0000000b0000-0x0000000d0000 : "0:BOOTCONFIG"
[ 1.190605] 0x0000000d0000-0x0000000f0000 : "0:BOOTCONFIG1"
[ 1.196009] 0x0000000f0000-0x000000260000 : "0:QSEE"
[ 1.201457] 0x000000260000-0x000000270000 : "0:DEVCFG"
[ 1.206682] 0x000000270000-0x000000290000 : "0:RPM"
[ 1.211626] 0x000000290000-0x0000002a0000 : "0:CDT"
[ 1.216413] 0x0000002a0000-0x0000002b0000 : "0:APPSBLENV"
[ 1.221247] 0x0000002b0000-0x000000350000 : "0:APPSBL"
[ 1.226820] 0x000000350000-0x000000390000 : "0:ART"
[ 1.231835] 0x000000390000-0x000000400000 : "flash"
[ 1.237725] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xa1
[ 1.240877] nand: ONFI 10-Compliant Macronix MX30UF1G18AC
[ 1.247491] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.252795] 2 ofpart partitions found on MTD device qcom_nand.0
[ 1.260244] Creating 2 MTD partitions on "qcom_nand.0":
[ 1.266060] 0x000000000000-0x000004000000 : "rootfs_1"
[ 1.318593] 0x000004000000-0x000008000000 : "rootfs"
[ 1.365634] mtd: device 13 (rootfs) set to be root filesystem
[ 1.365888] mtdsplit: no squashfs found in "rootfs"
轉換開機語法
echo 1 > /proc/boot_info/rootfs/primaryboot
cat /proc/boot_info/getbinary_bootconfig > /tmp/bootconfig.bin
cat /proc/boot_info/getbinary_bootconfig1 > /tmp/bootconfig1.bin
dd if=/tmp/bootconfig.bin of=/dev/mtdblock2
dd if=/tmp/bootconfig.bin of=/dev/mtdblock3
沒有留言:
張貼留言