当前位置:   article > 正文

rv1126-rv1109-分区修改_rv1126 media分区

rv1126 media分区

因为一些需求做一点分区修改尝试       

因为rv1126分区很难受

就是由parameter-buildroot-fit.txt生成最后parameter.txt

于是我手动修改了parameter.txt

发现这个是分区列表,可以在uboot里看到

修改如下

  1. FIRMWARE_VER: 8.1
  2. MACHINE_MODEL: RV1126
  3. MACHINE_ID: 007
  4. MANUFACTURER: RV1126
  5. MAGIC: 0x5041524B
  6. ATAG: 0x00200800
  7. MACHINE: 0xffffffff
  8. CHECK_MASK: 0x80
  9. PWR_HLD: 0,0,A,0,1
  10. TYPE: GPT
  11. CMDLINE: mtdparts=rk29xxnand:
  12. 0x00002000@0x00004000(misc),
  13. 0x00010000@0x00006000(boot),
  14. 0x00002000@0x00016000(uboot),
  15. 0x00014000@0x00018000(recovery),
  16. 0x00200000@0x0002C000(rootfs),
  17. 0x00010000@0x0022C000(backup),
  18. 0x00060000@0x0023C000(oem),
  19. 0x00200000@0x0029C000(userdata),
  20. -@0x0049C000(media:grow)
  21. uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9

开机也能正常运行,就说明改这里是可行的,

为什么呢?

因为之前有修改过,读分区的时候是通过分区的名字来获取分区里面的内容

 =====================================================================

rv1126_rv1109\u-boot\drivers\mtd\mtd_uboot.c

========================================================================

 添加分区:(添加了一个newfs分区)

  1. --- a/device/rockchip/rv1126_rv1109/parameter-ubuntu.txt
  2. +++ b/device/rockchip/rv1126_rv1109/parameter-ubuntu.txt
  3. @@ -8,5 +8,5 @@ MACHINE: 0xffffffff
  4. CHECK_MASK: 0x80
  5. PWR_HLD: 0,0,A,0,1
  6. TYPE: GPT
  7. -CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(misc),0x00010000@0x00008000(boot),0x00014000@0x00018000(recovery),0x00010000@0x0002C000(backup),0x00200000@0x0003C000(rootfs),0x00060000@0x0023C000(oem),0x00200000@0x0029C000(userdata),-@0x0049C000(media:grow)
  8. +CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(misc),0x00010000@0x00008000(boot),0x00014000@0x00018000(recovery),0x00010000@0x0002C000(backup),0x00200000@0x0003C000(rootfs),0x00060000@0x0023C000(oem),0x00200000@0x0029C000(userdata),0x00100000@0x0049C000(newfs),-@0x004AC000(media:grow)
  9. uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9

修改打包脚本:

  1. --- a/tools/linux/Linux_Pack_Firmware/rockdev/rv1126_rv1109-package-file
  2. +++ b/tools/linux/Linux_Pack_Firmware/rockdev/rv1126_rv1109-package-file
  3. # NAME Relative path
  4. #
  5. #HWDEF HWDEF
  6. package-file package-file
  7. bootloader Image/MiniLoaderAll.bin
  8. parameter Image/parameter.txt
  9. #
  10. # if uboot.img is fit, uboot.img had include uboot and trust,
  11. # so ignore trust.img
  12. # file Image/uboot.img
  13. # Image/uboot.img: Device Tree Blob version 17
  14. #
  15. # trust Image/trust.img
  16. #
  17. uboot Image/uboot.img
  18. misc Image/misc.img
  19. #resource Image/resource.img
  20. #kernel Image/kernel.img
  21. boot Image/boot.img
  22. recovery Image/recovery.img
  23. rootfs Image/rootfs.img
  24. oem Image/oem.img
  25. userdata Image/userdata.img
  26. + newfs Image/newfs.img
  27. # 要写入backup分区的文件就是自身(update.img)
  28. # SELF 是关键字,表示升级文件(update.img)自身
  29. # 在生成升级文件时,不加入SELF文件的内容,但在头部信息中有记录
  30. # 在解包升级文件时,不解包SELF文件的内容。
  31. backup RESERVED
  32. #update-script update-script
  33. #recover-script recover-script

可参考博客:

RV1126调试(4)-升级镜像img打包分区修改 - 码农教程

============================================================================

仅供参考

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/660395
推荐阅读
相关标签
  

闽ICP备14008679号