How to configure uboot on 2080RDB to boot a PCIe Video Card?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to configure uboot on 2080RDB to boot a PCIe Video Card?

5,625件の閲覧回数
robertoinnocent
Contributor III

We need to install debian linux for desktop on 2080RDB devkit so we need to change uboot config to boot a PCIe Video Card ( ATI) . How we can confiugure uboot?

ラベル(2)
13 返答(返信)

4,473件の閲覧回数
yusufalti333
Contributor IV

Hello thank you very much for the answer Roberto,

I will take a look to these threads ASAP. I hope I make similar configurations to my t1042 system.

0 件の賞賛
返信

4,473件の閲覧回数
robertoinnocent
Contributor III

Successfully recompiled u-boot with video radeon card support:
modification of file:
build_t2080rdb-64b/tmp/work/t2080rdb_64b-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/include/configs/T208xRDB.h

+/* Video */
+#define CONFIG_VIDEO
+#define VIDEO_IO_OFFSET        CONFIG_SYS_PCIE1_IO_VIRT
+
+/* Video */
+#if defined(CONFIG_VIDEO)
+#define CONFIG_BIOSEMU
+#define CONFIG_CFB_CONSOLE
+#define CONFIG_VIDEO_SW_CURSOR
+#define CONFIG_VGA_AS_SINGLE_DEVICE
+#define CONFIG_ATI_RADEON_FB
+#define CONFIG_VIDEO_LOGO
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
+#endif
+

4,473件の閲覧回数
yusufalti333
Contributor IV

Hello ,robertoinnocenti

Can you explain these steps ? I am trying to do something similar, using a GPU over PCI express with t1042 for U-boot console messages.

0 件の賞賛
返信

4,473件の閲覧回数
Pavel
NXP Employee
NXP Employee

If SDK-2.0-1703 is used apply the following patch to fix it:

http://git.freescale.com/git/cgit.cgi/yocto/meta-nxp-npi.git/commit/?h=jethro-sdk-v2.0-ga-17.03

 

Attached file contains corrected linux-qoriq_4.1.bbappend file. Path for this file is the following:

/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/recipes-kernel/linux$ ls

linux-qoriq_4.1.bbappend


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

4,473件の閲覧回数
robertoinnocent
Contributor III

Thank you; now I have recompiled the kernel image.

The u-boot I have in the T2080RDB is already compiled with ?

#define CONFIG_BIOSEMU                  /* x86 bios emulator for vga bios */ #define CONFIG_ATI_RADEON_FB            /* use radeon framebuffer driver */
0 件の賞賛
返信

4,473件の閲覧回数
Pavel
NXP Employee
NXP Employee

U-boot supports console as terminal. It does not support video cards. U-boot usually does not initialize PCIe cards.

It does not have code for PCIe card operations.

 

NXP offers SDK 2.0 for LS2080ARDB board:

http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-proce...

This SDK supports PCIe.

Check drivers for your card in kernel menu:

   Device Drivers  --->    

        Graphics support  ---> 

           Frame buffer Devices  ---> 

 

Use the following command sequence for kernel menu:

  • If kernel source code is not installed, install kernel source code first.

bitbake -c cleansstate virtual/kernel

bitbake -c patch virtual/kernel

bitbake -c menuconfig virtual/kernel

 

Rebuild kernel using the following command:

bitbake virtual/kernel


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

4,473件の閲覧回数
robertoinnocent
Contributor III
So now I'm Customizing U-Boot to support ATI video cards
Get uboot source:
bitbake -c cleansstate u-boot
bitbake -c patch u-boot
Go inside a uboot source folder:
cd build_t2080rdb-64b/tmp/work/t2080rdb_64b-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/include/configs
I have modified include/configs/T208xRDB.h
with

+/* Video */
+#define CONFIG_VIDEO
+#define VIDEO_IO_OFFSET

+/* Video */
+#if defined(CONFIG_VIDEO)
+#define CONFIG_BIOSEMU
+#define CONFIG_CFB_CONSOLE
+#define CONFIG_VIDEO_SW_CURSOR
+#define CONFIG_VGA_AS_SINGLE_DEVICE
+#define CONFIG_ATI_RADEON_FB
+#define CONFIG_VIDEO_LOGO
+#endif
I have tried to compile uboot:
  • cd build_<machine>
  • $ bitbake -c compile -f u-boot

but with errors:

../drivers/bios_emulator/besys.c: In function 'BE_inb':
| ../arch/powerpc/include/asm/io.h:50:42: error: expected expression before ')' token
|  #define inb(port)       in_8((u8 *)((port)+_IO_BASE))

0 件の賞賛
返信

2,539件の閲覧回数
kiashade
Contributor II

Hello All, (@robertoinnocent , @yusufalti333 @Pavel ),

I hope this thread is still being looked at ^^.

Im facing a quite similar situation.

 

Setup:

LS2084A in NXP BlueBox Mini.

NXP BSP29.0.hf1 (image is LS2084abbminiubuntu, based on freescale-meta-alb).

Various GPGPUs (tried NV Quadro K2000, P620, GT1030, older AMD, older Matrox).

 

Situation in case of standard NOUVEAU drivers (20.04).

+ All GPGPUs enumerate correctly and drivers load (lspci -vvs)

+ See console on video output (TTY too, of course).

- u-boot NOT visible on video output (IS visible on TTY though)

<startx> fails claiming no screen/display , x11 not configured although xfce4 is installed and working well using x2go for instance 

 

Situation in case of NVidia driver 53x (relatively new) (still ubuntu 20.04).

+ All GPGPUs enumerate correctly and drivers load (lspci -vvs).

+ NVIDIA driver compiles nicely, .ko gets created, DKMS follows through, and driver insmods without issue (driver in use with PCIe device)

+ NVIDIA xconfig tool report success

- NO console on video output (TTY still good).

- u-boot NOT visible on video output (IS visible on TTY though)

- <startx> n/a because monitor stays off, not even text

+ Interestingly, OpenGL benchmark (e.g. glmark2) runs successful on all tests in both cases a) rendering locally and drawing into a buffer only (no screenoutput) and b) rendering locally and drawing to remote display (e.g. via MobaXterm). Reports using NV Quadro video card in both cases. i.e. the video card IS there.

 

I wonder what the proper approach is to 'force' the system to activate video output.

  • 'mis'config somewhere in xrandr , xauth , .. ?
  • Env vars in U-Boot to bring up video and then force kernel to keep that via 'nomodeset' ?
  • Reconfig U-Boot - what framebuffer devices to add (I see ati, quirky and few others, but no NV) ?
  • Leave U-Boot be, and pass some 'video' argument to kernel when handing off ?
       (I did <make menuconfig> (and rebuilt of course) the Kernel , activated all sorts of video cards.)

 

Would appreciate if anyone has some idea what are to focus on troubleshooting...

 

Thanks !

 

 

 

 

0 件の賞賛
返信

857件の閲覧回数
robertoinnocent
Contributor III
Hi sorry for my long delay, its a long time we are not logged in. Regarding video card support we have these repo in which we successfully use Radeon cards on T2080RDB with uboot 2018.11 https://gitlab.com/power-progress-community/oshw-powerpc-notebook/u-boot-v2018.11/-/commits/master?r...
0 件の賞賛
返信

4,473件の閲覧回数
robertoinnocent
Contributor III

Successfully recompiled u-boot with video radeon card support:
modification of file:
build_t2080rdb-64b/tmp/work/t2080rdb_64b-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/include/configs/T208xRDB.h

+/* Video */
+#define CONFIG_VIDEO
+#define VIDEO_IO_OFFSET        CONFIG_SYS_PCIE1_IO_VIRT
+
+/* Video */
+#if defined(CONFIG_VIDEO)
+#define CONFIG_BIOSEMU
+#define CONFIG_CFB_CONSOLE
+#define CONFIG_VIDEO_SW_CURSOR
+#define CONFIG_VGA_AS_SINGLE_DEVICE
+#define CONFIG_ATI_RADEON_FB
+#define CONFIG_VIDEO_LOGO
+#define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
+#endif
+

0 件の賞賛
返信

4,473件の閲覧回数
robertoinnocent
Contributor III

Done successfully:
bitbake -c cleansstate virtual/kernel
bitbake -c patch virtual/kernel

doing command:
bitbake -c menuconfig virtual/kernel

Exit with ERROR:
cp: cannot stat '/home/roby/software/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb-64b/tmp/work/t2080rdb_64b-fsl-linux/linux-qoriq/4.1-r0/git/arch/powerpc/configs/corenet64_fmanv3h_smp_defconfig': Too many levels of symbolic links (edited)


Same error of: https://community.nxp.com/message/900964

0 件の賞賛
返信

4,473件の閲覧回数
robertoinnocent
Contributor III

Thank you, I have forwarded your answer to the person of our team that is working with uboot, I will update about the evolution

0 件の賞賛
返信