查看: 13120|回复: 0

修改script.bin(适用于Banana pi M2U M3等全志芯片的板子)

[复制链接]

404

主题

246

回帖

2万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
20408
发表于 2018-7-2 14:41:35 | 显示全部楼层 |阅读模式
原文:http://forum.banana-pi.org/t/how ... put-resolution/1442

1,install compile sunxi-tools depended-upon packages
  1. sudo apt-get install libusb-1.0-0-dev
复制代码
2,get sunxi-tools new code from github:
  1. git clone https://github.com/linux-sunxi/sunxi-tools.git
复制代码
3,compile sunxi-tools
  1. cd sunxi-tools
  2. make
复制代码
4,backup script.bin
  1. sudo cp /boot/bananapi/script.bin /boot/bananapi/script.bak
复制代码
5,copy script.bin to current dir
  1. cp /boot/bananapi/script.bin ./
复制代码
6,use bin2fex change bin to fex
  1. bin2fex ./script.bin ./script.fex
复制代码
7,edit script.fex file:
  1. nano script.fex
复制代码
可以看到平台配制文件,编译过这个固件的人就知道它有什么用:
  1. [disp_init]
  2. disp_init_enable = 1
  3. disp_mode = 0
  4. screen0_output_type = 3
  5. screen0_output_mode = 5
  6. screen1_output_type = 2
  7. screen1_output_mode = 11
  8. fb0_framebuffer_num = 2
  9. fb0_format = 10
  10. fb0_pixel_sequence = 0
  11. fb0_scaler_mode_enable = 1
  12. fb1_framebuffer_num = 2
  13. fb1_format = 10
  14. fb1_pixel_sequence = 0
  15. fb1_scaler_mode_enable = 0
  16. lcd0_backlight = 197
  17. lcd1_backlight = 197
  18. lcd0_bright = 50
  19. lcd0_contrast = 50
  20. lcd0_saturation = 57
  21. lcd0_hue = 50
  22. lcd1_bright = 50
  23. lcd1_contrast = 50
  24. lcd1_saturation = 57
  25. lcd1_hue = 50

  26. just change screen0_output_mode = 5, note , other not do any change.

  27. A20 support as below:
  28. HDMI/TV mode numbers:

  29. 0      480i
  30. 1      576i
  31. 2      480p
  32. 3      576p
  33. 4      720p 50Hz
  34. 5      720p 60Hz
  35. 6      1080i 50 Hz
  36. 7      1080i 60 Hz
  37. 8      1080p 24 Hz
  38. 9      1080p 50 Hz
  39. 10      1080p 60 Hz
  40. 11      PAL
  41. 12      PAL SVIDEO
  42. 14      NTSC
  43. 15      NTSC SVIDEO
  44. 17      PAL_M
  45. 18      PAL_M SVIDEO
  46. 20      PAL_NC
  47. 21      PAL_NC SVIDEO
  48. 23      1080p 24 Hz 3D
  49. 24      720p 50 Hz 3D
  50. 25      720p 60 Hz 3D
  51. 26      1360x768 60 Hz
  52. 27      1280x1024 60 Hz
复制代码
Press Ctrl + x , Y ,Enter save and exit edit:
8,use fex2bin change fex to bin
  1. fex2bin ./script.fex ./script.bin
复制代码
copy script.bin to /boot
  1. sudo cp ./script.bin /boot/bananapi/
复制代码
9,reboot and make a try
  1. sudo reboot
复制代码
更简单的改变设置变量的方法:
just edit uEnv.txt file to change it:
  1. bootargs=enforcing=1 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootwait init=/init vmalloc=384M ion_c ma_list=“120m,176m,512m” loglevel=8 bootmenutimeout=10 datadev=mmcblk0p2 disp.screen0_output_type=3 disp.screen0_o utput_mode=10 disp.screen1_output_type=3 disp.screen1_output_mode=10
复制代码







风火轮微信公众号
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|风火轮WIKI|手机版|小黑屋|深圳风火轮团队 ( 粤ICP备17095099号 )

GMT+8, 2024-4-20 02:55 , Processed in 0.051475 second(s), 19 queries .

快速回复 返回顶部 返回列表
 
【客服1】 商务合作 15289193
【客服2】 业务洽谈 13257599
【客服3】 售前咨询 510313198
【邮箱】
smartfire@smartfire.cn