Other OS

Composite video not working?

30 25797
My Banana Pi seems to always want to use HDMI, even if I press "3" or "4" on the keyboard to try to enable the composite connection. I tried editing the recovery.cmdline file to append "display=3" or "display=4", but I'm still not getting any video.
Any advice?
The Raspbian on Banana Pi don't use the recovery.cmdline file. It use the first partition uEnv.txt. You can mount the 1st partition of the SD card, you will see the uEnv.txt file.

Okay, so I added this code to my eEnv.txt files on the first partition:

  1. disp_init_enable = 1
  2. disp_mode = 0

  3. screen0_output_type = 2
  4. screen0_output_mode = 14

  5. screen1_output_type = 2
  6. screen1_output_mode = 14

  7. fb0_framebuffer_num = 2
  8. fb0_format = 10
  9. fb0_pixel_sequence = 0
  10. fb0_scaler_mode_enable = 1

  11. fb1_framebuffer_num = 2
  12. fb1_format = 10
  13. fb1_pixel_sequence = 0
  14. fb1_scaler_mode_enable = 1
Copy the Code
That didn't work, so I tried this instead:
  1. chip=a20
  2. board=bananapi
  3. service=linux
  4. aboot=if fatload $device $partition 0x43100000 ${chip}/recovery.rfs; then bootm 0x48000000 0x43100000; else bootm 0x48000000; fi
  5. aload_script=fatload $device $partition 0x43000000 ${chip}/${board}/script.bin;
  6. aload_kernel=fatload $device $partition 0x48000000 ${chip}/${board}/${service}/uImage;
  7. uenvcmd=run aload_script aload_kernel aboot
  8. bootargs0=console=ttyS0,115200 console=tty0 disp.screen0_output_type=2 disp.screen0_output_mode=14 hdmi.audio=EDID:0 bootmenutimeout=10 datadev=mmcblk0p2 debugconsole
  9. bootargs=console=ttyS0,115200 console=tty0 disp.screen0_output_type=2 disp.screen0_output_mode=14 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
Copy the Code
However, the Banana Pi is still using HDMI, not composite NTSC video. What am I missing? Can you provide an example file of how it should look?

Reply 4# telarium

disp_init_enable = 1
disp_mode = 0

  1. screen0_output_type = 2
  2. screen0_output_mode = 14

  3. screen1_output_type = 2
  4. screen1_output_mode = 14

  5. fb0_framebuffer_num = 2
  6. fb0_format = 10
  7. fb0_pixel_sequence = 0
  8. fb0_scaler_mode_enable = 1

  9. fb1_framebuffer_num = 2
  10. fb1_format = 10
  11. fb1_pixel_sequence = 0
  12. fb1_scaler_mode_enable = 1
Copy the Code



Abvove is for fex file, not uEnv.txt. You need use "bin2fex" to transform the script.bin file to .fex file, and edit the fex file , and use the "fex2bin" to transform the new .fex file to new script.bin file

Post Last Edited by telarium at 2014-6-6 11:49

I tried adding disp_init_enable and disp_mode, but the composite output is still not working.

chip=a20
board=bananapi
service=linux
aboot=if fatload $device $partition 0x43100000 ${chip}/recovery.rfs; then bootm 0x48000000 0x43100000; else bootm 0x48000000; fi
aload_script=fatload $device $partition 0x43000000 ${chip}/${board}/script.bin;
aload_kernel=fatload $device $partition 0x48000000 ${chip}/${board}/${service}/uImage;
uenvcmd=run aload_script aload_kernel aboot
bootargs0=console=ttyS0,115200 console=tty0 disp_init_enable=1 disp_mode=0 disp.screen0_output_type=2 disp.screen0_output_mode=14 hdmi.audio=EDID:0 bootmenutimeout=10 datadev=mmcblk0p2 debugconsole
bootargs=console=ttyS0,115200 console=tty0 disp_init_enable=1 disp_mode=0 disp.screen0_output_type=2 disp.screen0_output_mode=14 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait

Reply 6# telarium

You need modified your script.bin file , not just uEnv.txt file

Ah yes, sorry for my ignorance. That finally worked. Thanks!

banana  
Post Last Edited by banana at 2014-7-4 04:20

hello , have had the same Problem , after modify the script.bin as suggested here i have
composite video out , but only monochrome , that means no color only black and white ....
is this normal ? any suggestions ?
I can't believe it , only to modify the banana pi to use composite video output we have to download sunxi tools ,
compile it on a linux system and modify script,bin , for me as longtime linux user that is no problem , but i think this is far away from easy use for beginners
have a nice day

ryjyd  
Hi guys. I wanted to add a small bit that would have made a big difference about 4 hours ago had I known it. Hopefully the next guy saves that time if he knows as little as me. The bin2fex and fex2bin commands come from sunxi-tools, which is currently under the jessie repo, not wheezy... or at least not yet anyhow.

Might be good to whip up a wiki how-to on this sort of thing. Newbie docs are a must for new boards and builds like these. Thanks for the rest of the info though. I hope I have something more substantial to contribute with soon.

You have to log in before you can reply Login | Sign Up

Points Rules