Hello,
I'm working on LayerScape LS1021ATWR facing difficulties in enabling the DCU/HDMI on the LS1 kernel. Following is my configuration info
SDK: v1.7
Kernel: v3.12.19
U-boot: Bank0: Normal u-boot
Bank1: Lpuart u-boot
RCW: Bank0: RSR_PPS_70/rcw_1000.bin
Bank1: rcw_1000_dcu.bin
Switch Settings: SW2: 10000111
SW3: 01101001
Jumper Settings: J19-20: 1-2
Filesystem: Graphical image
bootargs=console=ttyLP0,115200 hdmi root=/dev/nfs nfspath=<path to rootfs> rootwait rw ip=dhcp video="fslfb:640x480-32@60,monitor=hdmi"
I'm trying to boot the kernel from the bank1 where in u-boot is configured for lpuart and rcw is also for dcu (I have also verified with rcw_1000_lpuart.bin in bank1). Im booting via NFS, since booting via sdcard while testing hangs the board. I wanted to know if i'm missing something in the bootargs, I have verified that all the modules required for dcu are compiled built-in and required dts information is also present. could you please help in enabling the HDMI in kernel while booting from bank1.
Regards,
Arun Khandavalli.
Hello khandavalli,
First please check whether u-boot can be displayed with HDMI.
=> setenv video-mode "fslfb:640x480-32@60,monitor=hdmi"
=> save
=> reset
build kernel images with enable below kernel option:
Device Drivers --->
< > Multimedia support ----
Graphics support --->
<*> Support for frame buffer devices --->
<*> Si Image SII9022 DVI/HDMI Interface Chip
<*> Freescale DCU framebuffer support
Console display driver support --->
<*> Framebuffer Console support
[*] Map the console to the primary display device
[*] Framebuffer Console Rotation
[*] Bootup logo --->
--- Bootup logo
[*] Standard black and white Linux logo
[*] Standard 16-color Linux logo
[*] Standard 224-color Linux logo
< > Sound card support ----
set bootargs in uboot:
setenv console 'ttyLP0,115200 hdmi res=640x480'
boot up kernel then kill terminal and restart terminal
root@ls1021atwr:~# killall matchbox-window-manager
root@ls1021atwr:~# xinit /etc/X11/Xsession
Please let me know, if your problem remain.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Yiping,
At the u-boot level with lpuart and rcw-dcu in bank1 im able to get the hdmi display in the u-boot with 640x480 resolution.
My problem is during the kernel booting, all the related kernel configuration parameters I have enabled:
1) CONFIG_ FB_FSL_SII902X = y
2) CONFIG_FB_FSL_DCU = y
3) CONFIG_LOGO = y
4) CONFIG_LOGO_LINUX_MONO = y
5) CONFIG_LOGO_LINUX_CL UT224 =y
6) CONFIG_LOGO_LINUX_CLUT224 = y
7) CONFIG_FRAMEBUFFER_CONSOLE = y
I have set the bootargs for booting as suggested:
=> pri bootargs
bootargs=root=/dev/ram rw console=ttyLP0,115200 hdmi res=640x480
Booting Linux on physical CPU 0xf00
Linux version 3.12.19-rt30 (akhandava@ubuntu) (gcc version 4.9.1 (Sourcery CodeBench 2014.11-46) ) #1 SMP Thu May 28 13:33:57 IST 2015
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c73c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale LS1021A, model: LS1021A TWR Board
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 9 pages/cpu @80e44000 s12544 r8192 d16128 u36864
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: root=/dev/ram rw console=ttyLP0,115200 hdmi res=640x480
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 988112K/1048576K available (3531K kernel code, 331K rwdata, 1840K rodata, 232K init, 390K bss, 60464K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f800000 - 0x7fe00000 ( 6 MB)
.text : 0x80008000 - 0x80546f2c (5372 kB)
.init : 0x80547000 - 0x80581100 ( 233 kB)
.data : 0x80582000 - 0x805d4ee8 ( 332 kB)
.bss : 0x805d4ee8 - 0x806369b4 ( 391 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16
Architected cp15 timer(s) running at 12.50MHz (phys).
Switching to timer-based delay loop
sched_clock: ARM arch timer >56 bits at 12500kHz, resolution 80ns
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: update cpu_power 1024
CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
Setting up static identity map for 0x8034e208 - 0x8034e26c
CPU1: Booted secondary processor
CPU1: update cpu_power 1024
CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in HYP mode.
CPU: Virtualization extensions available.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
syscon 1570000.scfg: regmap [mem 0x01570000-0x0157ffff] registered
irq: no irq domain found for /soc/uqe@2400000/qeic@80 !
irq: no irq domain found for /soc/uqe@2400000/qeic@80 !
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
bio: create slab <bio-0> at 0
3P3V: 3300 mV
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c i2c-0: IMX I2C adapter registered
i2c i2c-1: IMX I2C adapter registered
i2c i2c-2: of_i2c: modalias failure on /soc/i2c@21a0000/ltc2945@67
i2c i2c-2: IMX I2C adapter registered
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 44948K (bc349000 - bef2e000)
hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.6 (for 3.12.26)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 2017
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
layerscape-pcie 3400000.pcie: phy link never came up
layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
pci 0000:00:00.0: BAR 1: assigned [mem 0x4040000000-0x4043ffffff]
pci 0000:00:00.0: BAR 0: assigned [mem 0x4044000000-0x4044ffffff]
pci 0000:00:00.0: BAR 6: assigned [mem 0x4045000000-0x4045ffffff pref]
pci 0000:00:00.0: PCI bridge to [bus 01]
layerscape-pcie 3500000.pcie: phy link never came up
layerscape-pcie 3500000.pcie: PCI host bridge to bus 0001:00
pci_bus 0001:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff])
pci_bus 0001:00: root bus resource [mem 0x4840000000-0x487fffffff] (bus address [0x40000000-0x7fffffff])
pci_bus 0001:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
pci 0001:00:00.0: BAR 1: assigned [mem 0x4840000000-0x4843ffffff]
pci 0001:00:00.0: BAR 0: assigned [mem 0x4844000000-0x4844ffffff]
pci 0001:00:00.0: BAR 6: assigned [mem 0x4845000000-0x4845ffffff pref]
pci 0001:00:00.0: PCI bridge to [bus 01]
Sii902x: read id = 0xB0
-0x02-0x03
-0x00
Unimplemented SVD code 2
Unimplemented SVD code 22
Unimplemented SVD code 31
syscon 1570000.scfg: Failed to create debugfs directory
Console: switching to colour frame buffer device 60x34
fb0: fb device registered successfully.
fb1: fb device registered successfully.
fb2: fb device registered successfully.
fb3: fb device registered successfully.
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
of_serial: probe of 21c0500.serial failed with error -22
of_serial: probe of 21c0600.serial failed with error -22
of_serial 2402200.ucc: clk or clock-frequency not defined
of_serial: probe of 2402200.ucc failed with error -2
serial: Freescale lpuart driver
2950000.serial: ttyLP0 at MMIO 0x2950000 (irq = 112, base_baud = 6250000) is a FSL_LPUART
console [ttyLP0] enabled
brd: module loaded
loop: module loaded
Unimplemented SVD code 2
60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00227e
Amd/Fujitsu Extended Query Table at 0x0040
Amd/Fujitsu Extended Query version 1.3.
number of CFI chips: 1
Unimplemented SVD code 22
Unimplemented SVD code 31
8 ofpart partitions found on MTD device 60000000.nor
Creating 8 MTD partitions on "60000000.nor":
0x000000000000-0x000000020000 : "NOR bank0 RCW Image"
0x000000020000-0x000000120000 : "NOR DTB Image"
0x000000120000-0x000000920000 : "NOR Linux Kernel Image"
0x000000920000-0x000003f20000 : "NOR Ramdisk Root File System Image"
0x000003f80000-0x000004000000 : "NOR bank4 u-boot Image"
0x000004000000-0x000004020000 : "NOR bank4 RCW Image"
0x000004020000-0x000007f20000 : "NOR JFFS2 ROOT File System Image"
0x000007f80000-0x000008000000 : "NOR bank0 u-boot Image"
fsl-quadspi 1550000.quadspi: found mr25h256, expected n25q128a13
fsl-quadspi 1550000.quadspi: mr25h256 (32 Kbytes)
fsl-quadspi 1550000.quadspi: Unsupported cmd 0x03
fsl-quadspi 1550000.quadspi: QuadSPI SPI NOR flash driver
CAN device driver interface
libphy: Freescale PowerQUICC MII Bus: probed
fsl-gianfar ethernet.4: enabled errata workarounds, flags: 0x4
fsl-gianfar ethernet.4 eth0: mac: 00:04:9f:03:63:bf
fsl-gianfar ethernet.4 eth0: Running with NAPI enabled
fsl-gianfar ethernet.4 eth0: RX BD ring size for Q[0]: 256
fsl-gianfar ethernet.4 eth0: TX BD ring size for Q[0]: 256
fsl-gianfar ethernet.5: enabled errata workarounds, flags: 0x4
fsl-gianfar ethernet.5 eth1: mac: 00:04:9f:03:63:bf
fsl-gianfar ethernet.5 eth1: Running with NAPI enabled
fsl-gianfar ethernet.5 eth1: RX BD ring size for Q[0]: 256
fsl-gianfar ethernet.5 eth1: TX BD ring size for Q[0]: 256
fsl-gianfar ethernet.6: enabled errata workarounds, flags: 0x4
fsl-gianfar ethernet.6 eth2: mac: 00:04:9f:03:63:c0
fsl-gianfar ethernet.6 eth2: Running with NAPI enabled
fsl-gianfar ethernet.6 eth2: RX BD ring size for Q[0]: 256
fsl-gianfar ethernet.6 eth2: TX BD ring size for Q[0]: 256
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: irq 125, io mem 0x03100000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0)
qoriq_cpufreq: Freescale PowerPC qoriq CPU frequency scaling driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA
caam 1700000.crypto: Entropy delay = 3200
caam 1700000.crypto: Instantiated RNG4 SH0
caam 1700000.crypto: Instantiated RNG4 SH1
caam 1700000.crypto: device ID = 0x0a14030000000000 (Era 67108864)
caam 1700000.crypto: job rings = 4, qi = 0
caam algorithms registered in /proc/crypto
caam_jr 1710000.jr: registering rng-caam
caam 1700000.crypto: fsl,sec-v5.3 algorithms registered in /proc/crypto
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
sgtl5000 1-000a: sgtl5000 revision 0x11
sgtl5000 1-000a: Failed to get supply 'VDDD': -19
1-000a: 1200 mV normal
sgtl5000 1-000a: Using internal LDO instead of VDDD
vf610-sgtl5000 sound.9: sgtl5000 <-> 2b50000.sai mapping ok
oprofile: using timer interrupt.
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
Key type dns_resolver registered
regulator-dummy: disabling
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
ALSA device list:
#0: FSL-VF610-TWR-BOARD
usb 1-1: new high-speed USB device number 2 using xhci-hcd
RAMDISK: gzip image found at block 0
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 2-1: Parent hub missing LPM exit latency info. Power management will be impacted.
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 232K (80547000 - 80581000)
Starting udevboo
udevd[131]: starting version 182
Starting Bootlog daemon: bootlogd.
Populating dev cache
Configuring network interfaces... udhcpc (v1.21.1) started
Sending discover...
libphy: mdio@2d24000:02 - Link is Down
Sending discover...
Sending discover...
No lease, failing
Starting rpcbind daemon...rpcbind: cannot create socket for udp6
rpcbind: cannot create socket for tcp6
done.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Mon Oct 27 02:02:00 UTC 2014
hwclock: can't open '/dev/misc/rtc': No such file or directory
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
Removing any system startup links for run-postinsts ...
/etc/rcS.d/S99run-postinsts
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Starting OpenBSD Secure Shell server: sshd
generating ssh RSA key...
generating ssh ECDSA key...
generating ssh DSA key...
done.
Starting Xserver
hwclock: can't open '/dev/misc/rtc': No such file or directory
creating NFS state directory: _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/ls1021atwr:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
X.Org X Server 1.14.0
Release Date: 2013-03-05
X Protocol Version 11, Revision 0
Build Operavgaarb: this pci device is not a vga device
ting System: Linux 2.6.32-431.el6.x86_64 x86_64
Current Operating System: Linux ls1021atwr 3.12.19-rt30 #1 SMP Thu May 28 13:33:57 IST 2015 armv7l
Kvgaarb: this pci device is not a vga device
ernel command line: root=/dev/ram rw console=ttyLP0,115200 hdmi res=640x480
Build Date: 24 October 2014 07:38:18PM
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Oct 27 02:02:07 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
done
starting 8 nfsd kernel threads: Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem
done
starting mountd: done
starting statd: done
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
...done.
Starting Telephony daemon
Stopping Bootlog daemon: bootlogd.
Poky (Yocto Project Reference Distro) 1.5 ls1021atwr /dev/ttyLP0
ls1021atwr login: D-BUS per-session daemon address is: unix:abstract=/tmp/dbus-sILIX0MLt1,guid=149ad50a6835233f44479c28544da7a0
Size 1024x768 not found in available modes
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts
matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates
matchbox: Cant find a keycode for keysym 269025050
matchbox: ignoring key shortcut XF86Start=!matchbox-remote -desktop
Poky (Yocto Project Reference Distro) 1.5 ls1021atwr /dev/ttyLP0
ls1021atwr login:
Poky (Yocto Project Reference Distro) 1.5 ls1021atwr /dev/ttyLP0
I have following points to add:
1) SII9022 DVI/HDMI Interface Chip has got successfully probed, it is reading the EDID and we can see the prints from the driver in the kernel log.
2) I have seen some warning messages from fbcore "Unimplemented SVD " which when i digged through the code seem related to the CESA. Does these warning effect the functionality of the HDMI?
3) I have also seen few waning/errors from the matchbox:
matchbox: Cant find a keycode for keysym 269025056
matchbox: ignoring key shortcut XF86Calendar=!$contacts
matchbox: Cant find a keycode for keysym 2809
matchbox: ignoring key shortcut telephone=!$dates
Is there anything to be added inthe bootargs or enabled in the kernel defconfig?
Hello Reply to khandavalli,
It seems that he message "Unimplemented SVD" is abnormal, we never see it.
The following Kernel boot bootargs is used.
root=/dev/ram0 rw console=ttyLP0,115200 hdmi
The following options are enabled.
CONFIG_ FB_FSL_SII902X
CONFIG_FB_FSL_DCU
CONFIG_LOGO
CONFIG_LOGO_LINUX_MONO
CONFIG_LOGO_LINUX_VGA16
CONFIG_LOGO_LINUX_CLUT224
CONFIG_FRAMEBUFFER_CONSOLE
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------