Video Enabling in MX53QSB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Video Enabling in MX53QSB

839 Views
jk1z
Contributor I

Dear All,

In the IMX53 QSB board how to set the video? Is boot arguments to be changed?

regards,

jk

Tags (2)
0 Kudos
4 Replies

645 Views
jk1z
Contributor I

Dear Hitesh,

thanks. I have already updated the uboot. linux, rootfs codes to u SDcard. only the VGA option was issue.

now I can see the TUX symbol once booting is completed.

But in the reference document it shown some demo application with video display, for that how to update the code/rootfs?

any suggestions would be helpful.

regds,

jk

0 Kudos

645 Views
Hitex
Contributor I

Creating MicroSD image for IMX53

1. Check for available devices

cat /proc/partitions

It will show something like
major minor
#blocks
name
8 0 78125000 sda
8 1 75095811 sda1
8 2 1 sda2
8 5 3028221 sda5
8 32 488386584 sdc
8 33 488386552 sdc1
8 16 3921920 sdb
8 18 3905535 sdb1


2.Copying the Boot Loader Image (Your terminal window need to be at the folder location where u-boot-mx53-loco.bin is present )

sudo dd if=u-boot-mx53-loco.bin of=/dev/sdb bs=512 && sync && sync

3.Copying the Kernel Image (Your terminal window need to be at the folder location where uImage is present )

sudo dd if=uImage of=/dev/sdb bs=512 seek=2048 && sync && sync

4.Copying the File System (rootfs)

sudo fdisk /dev/sdb



Type the following parameters (each followed by <ENTER>):
u[switch the unit to sectors instead of cylinders]
d[repeat this until no partition is reported by the ‘p’ command ]
n[create a new partition]
p[create a primary partition]
1[the first partition]
8192[starting at offset sector #8192, i.e. 4MB, which leaves enough space
for the kernel, the boot loader and its configuration data]
<enter> [using the default value will create a partition that spans to the
last sector of the medium]
w[ this writes the partition table to the medium and fdisk exits]



5.Create File system

sudo mkfs.ext3 /dev/sdb1


6.Copy the target file system to the partition(first extract the rootfs.tar.bz2 to some location )

mkdir /home/satyam/mountpoint
sudo mount /dev/sdb1 /home/satyam/mountpoint
cd /home/satyam/rootfs
sudo cp -rpa [A-z]* /home/satyam/mountpoint
sudo umount /home/satyam/mountpoint



Now you are Done!! with image creation

Now you have to set the environment variables as follows:

Press “POWER” key to power up the board.
Enter the following commands in the U-Boot prompt:
u-boot> setenv bootfile 'dexter/uImage'
u-boot> setenv filesize '2D47BC'
u-boot> setenv fileaddr '70800000'
u-boot> setenv bootcmd_mmc 'run bootargs_base bootargs_mmc; mmc read 0 ${loadaddr} 0x800 0x1800; bootm'
u-boot> setenv lvds 'video=mxcdi0fb:RGB666,XGA ldb'
u-boot> setenv bootcmd_obds 'ext2load mmc 0:1 0x70800000 /unit_tests/obds.bin; go 70800000'
u-boot> setenv lcd 'video=mxcdi0fb:RGB24,SEIKO-WVGA'
u-boot> setenv vga 'video=mxcdi1fb:GBR24,XGA di1_primary tve'
u-boot> setenv hdmi 'video =mxcdi0fb:RGB24,1024x768M@60'
u-boot> setenv bootcmd 'run bootcmd_mmc'
u-boot> setenv bootargs_mmc 'set bootargs ${bootargs} root=/dev/mmcblk0p1 rw rootwait'


u-boot> setenv bootargs_base 'setenv bootargs console=ttymxc0,115200 ${lcd}'

u-boot> setenv bootargs_base 'setenv bootargs console=ttymxc0,115200 ${vga}'

u-boot> saveenv


and enter boot.

0 Kudos

645 Views
jk1z
Contributor I

Dear Huazi,

thanks for the reply. I tried this but it did not work for me.

how to enable VGA display - I guess, similar boot args will be there.

Apart from this do I need to enable any menuconfig option in Linux kernel source? because I am not using LTIB for building the code. I  seperately build the Linux source using cross compiler.

regards,

jk

0 Kudos

645 Views
Huazhi_Hank_Gon
Contributor III

setenv bootargs_base 'set bootargs console=ttymxc0,115200 ${hdmi}'

setenv hdmi 'video=mxcdi0fb:RGB24,1280x720M@60 hdmi di0_primary'

saveenv

0 Kudos