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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

1,351 Views
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?

Labels (2)
11 Replies

199 Views
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 Kudos

199 Views
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
+

199 Views
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 Kudos

199 Views
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

199 Views
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 Kudos

199 Views
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

199 Views
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 Kudos

199 Views
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 Kudos

199 Views
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 Kudos

199 Views
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 Kudos