atmel-hlcdc-display-controller takes 5s to init at boot

Moderator: nferre

CortexAlex
Posts: 13
Joined: Thu Jan 26, 2017 12:48 pm

atmel-hlcdc-display-controller takes 5s to init at boot

Fri Jan 19, 2018 8:03 pm

hello,

I'm using the SAMA5D4-Xplained-Ultra-Board with a fresh build of linux4sam_5.7 using buildroot. My problem is that the LCD controller needs about 5 seconds to be initialized. During the boot sequence, lcd is black. It starts probing for something right from the boot but will not be happy until the console switches to framebuffer device. I see those lines a number of times during the boot sequence:
[ 0.271000] [drm] No driver support for vblank timestamp query.
[ 0.272000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 0.273000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
Once it gets initialized, then everything is fine. I can do what I want on the framebuffer. But I need to get some logo show up during boot. Truth be told, I never got to see the linux logo during boot on that target by the way.

As far as the DTS file is concerned, there was no LCD related mods done there.

In essence, my issue is similar to this post but the solution mentioned there did not work for me: viewtopic.php?f=12&t=25329&p=47949&hili ... b2c#p47949

Am I missing something in my boot line ? Or at the uboot level maybe ?

Full boot sequence at the bottom.

Any sort of advice would be good,

Regards
Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.75-linux4sam_5.7 (alexf@pi-alexf-d2) (gcc version 5.4.0 (Buildroot 2017.02.9-g08969a6) ) #3 Fri Jan 19 18:32:24 CET 2018
[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Atmel SAMA5D4 Xplained TM70xx
[ 0.000000] cma: Reserved 64 MiB at 0x38000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0a2ea18, node_mem_map dfbda000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyS0,115200 debug mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot),256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel),200M(rootfs),20M(
data),20M(secure_data) ubi.mtd=rootfs ubi.mtd=data ubi.mtd=secure_data rootfstype=nfs root=/dev/nfs rw ip=192.168.1.131:192.168.1.142:::::off nfsroot=192.168.1.142:/tftpboot/rootfs video=fb0:10
24x768-16 consoleblank=0
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 444244K/524288K available (6144K kernel code, 240K rwdata, 1484K rodata, 1024K init, 201K bss, 14508K reserved, 65536K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a3c3e8 ( 241 kB)
[ 0.000000] .bss : 0xc0a3c3e8 - 0xc0a6e8bc ( 202 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C-310 ID prefetch enabled, offset 2 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 128 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x36020000
[ 0.000000] clocksource: pit: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 1194537708 ns
[ 0.000000] sched_clock: 32 bits at 1kHz, resolution 1000000ns, wraps every 2147483647500000ns
[ 0.000000] Console: colour dummy device 80x30
[ 0.010000] Calibrating delay loop... 395.26 BogoMIPS (lpj=197632)
[ 0.011000] pid_max: default: 32768 minimum: 301
[ 0.011000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.011000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.012000] CPU: Testing write buffer coherency: ok
[ 0.012000] Setting up static identity map for 0x20100000 - 0x20100058
[ 0.016000] devtmpfs: initialized
[ 0.031000] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
[ 0.032000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.032000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.039000] pinctrl core: initialized pinctrl subsystem
[ 0.040000] NET: Registered protocol family 16
[ 0.056000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.059000] cpuidle: using governor ladder
[ 0.080000] AT91: PM: standby: standby, suspend: ulp0
[ 0.080000] No ATAGs?
[ 0.083000] gpio-at91 fc06a000.gpio: at address e0827000
[ 0.086000] gpio-at91 fc06b000.gpio: at address e0829000
[ 0.090000] gpio-at91 fc06c000.gpio: at address e082b000
[ 0.093000] gpio-at91 fc068000.gpio: at address e082d000
[ 0.096000] gpio-at91 fc06d000.gpio: at address e082f000
[ 0.098000] pinctrl-at91 ahb:apb:pinctrl@fc06a000: initialized AT91 pinctrl driver
[ 0.112000] at_xdmac f0004000.dma-controller: 16 channels, mapped at 0xe0835000
[ 0.116000] at_xdmac f0014000.dma-controller: 16 channels, mapped at 0xe0837000
[ 0.117000] AT91: Detected SoC family: sama5d4
[ 0.117000] AT91: Detected SoC: sama5d44, revision 0
[ 0.117000] SCSI subsystem initialized
[ 0.118000] usbcore: registered new interface driver usbfs
[ 0.118000] usbcore: registered new interface driver hub
[ 0.118000] usbcore: registered new device driver usb
[ 0.119000] at91_i2c f8014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
[ 0.120000] at91_i2c f8014000.i2c: AT91 i2c bus driver (hw version: 0x502).
[ 0.121000] media: Linux media interface: v0.10
[ 0.121000] Linux video capture interface: v2.00
[ 0.121000] Advanced Linux Sound Architecture Driver Initialized.
[ 0.123000] clocksource: Switched to clocksource pit
[ 0.142000] NET: Registered protocol family 2
[ 0.143000] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.143000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.143000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.143000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.143000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.143000] NET: Registered protocol family 1
[ 0.144000] RPC: Registered named UNIX socket transport module.
[ 0.144000] RPC: Registered udp transport module.
[ 0.144000] RPC: Registered tcp transport module.
[ 0.144000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.146000] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.153000] io scheduler noop registered (default)
[ 0.158000] fc00c000.serial: ttyS0 at MMIO 0xfc00c000 (irq = 29, base_baud = 6250000) is a ATMEL_SERIAL
[ 0.238000] console [ttyS0] enabled
[ 0.240000] fc010000.serial: ttyS1 at MMIO 0xfc010000 (irq = 30, base_baud = 6250000) is a ATMEL_SERIAL
[ 0.242000] [drm] Initialized
[ 0.252000] brd: module loaded
[ 0.256000] random: fast init done
[ 0.266000] loop: module loaded
[ 0.270000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 0.271000] [drm] No driver support for vblank timestamp query.
[ 0.272000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 0.273000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 0.279000] atmel_nand_nfc 90000000.nfc: NFC is probed.
[ 0.280000] atmel_nand 80000000.nand: Using dma0chan2 for DMA transfers.
[ 0.281000] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 0.282000] nand: Micron MT29F4G08ABAEAWP
[ 0.283000] nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224
[ 0.284000] atmel_nand 80000000.nand: Use On Flash BBT
[ 0.285000] atmel_nand 80000000.nand: Cannot get PMECC lookup table offset, will build a lookup table in runtime.
[ 0.286000] atmel_nand 80000000.nand: minimum ECC: 8 bits in 512 bytes
[ 0.287000] atmel_nand 80000000.nand: Initialize PMECC params, cap: 8, sector: 512
[ 0.289000] atmel_nand 80000000.nand: Using NFC Sram read and write
[ 0.290000] Bad block table found at page 131008, version 0x01
[ 0.292000] Bad block table found at page 130944, version 0x01
[ 0.294000] nand_read_bbt: bad block at 0x000001540000
[ 0.295000] nand_read_bbt: bad block at 0x000018d40000
[ 0.296000] 10 cmdlinepart partitions found on MTD device atmel_nand
[ 0.297000] Creating 10 MTD partitions on "atmel_nand":
[ 0.298000] 0x000000000000-0x000000040000 : "bootstrap"
[ 0.301000] 0x000000040000-0x0000000c0000 : "uboot"
[ 0.304000] 0x0000000c0000-0x000000100000 : "env"
[ 0.307000] 0x000000100000-0x000000140000 : "env_redundant"
[ 0.310000] 0x000000140000-0x000000180000 : "spare"
[ 0.313000] 0x000000180000-0x000000200000 : "dtb"
[ 0.316000] 0x000000200000-0x000000800000 : "kernel"
[ 0.319000] 0x000000800000-0x00000d000000 : "rootfs"
[ 0.322000] 0x00000d000000-0x00000e400000 : "data"
[ 0.325000] 0x00000e400000-0x00000f800000 : "secure_data"
[ 0.329000] atmel_spi f8010000.spi: Using dma0chan3 (tx) and dma0chan4 (rx) for DMA transfers
[ 0.332000] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 0.333000] atmel_spi f8010000.spi: Atmel SPI Controller version 0x221 at 0xf8010000 (irq 25)
[ 0.335000] atmel_spi fc018000.spi: Using dma0chan5 (tx) and dma0chan6 (rx) for DMA transfers
[ 0.336000] atmel_spi fc018000.spi: Atmel SPI Controller version 0x221 at 0xfc018000 (irq 31)
[ 0.337000] atmel_spi fc01c000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
[ 0.339000] atmel_spi fc01c000.spi: Atmel SPI Controller version 0x221 at 0xfc01c000 (irq 32)
[ 0.341000] libphy: Fixed MDIO Bus: probed
[ 0.343000] CAN device driver interface
[ 0.346000] libphy: MACB_mii_bus: probed
[ 0.404000] Micrel KSZ8081 or KSZ8091 f8020000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=f8020000.ethernet-ffffffff:01, irq=174)
[ 0.405000] macb f8020000.ethernet eth0: Cadence GEM rev 0x00020120 at 0xf8020000 irq 28 (fc:c2:3d:0d:eb:26)
[ 0.407000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.408000] ehci-atmel: EHCI Atmel driver
[ 0.410000] atmel-ehci 600000.ehci: EHCI Host Controller
[ 0.411000] atmel-ehci 600000.ehci: new USB bus registered, assigned bus number 1
[ 0.413000] atmel-ehci 600000.ehci: irq 17, io mem 0x00600000
[ 0.421000] atmel-ehci 600000.ehci: USB 2.0 started, EHCI 1.00
[ 0.423000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.424000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.426000] usb usb1: Product: EHCI Host Controller
[ 0.427000] usb usb1: Manufacturer: Linux 4.9.75-linux4sam_5.7 ehci_hcd
[ 0.428000] usb usb1: SerialNumber: 600000.ehci
[ 0.431000] hub 1-0:1.0: USB hub found
[ 0.432000] hub 1-0:1.0: 3 ports detected
[ 0.434000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.436000] ohci-atmel: OHCI Atmel driver
[ 0.438000] at91_ohci 500000.ohci: failed to find sfr node
[ 0.439000] at91_ohci 500000.ohci: USB Host Controller
[ 0.440000] at91_ohci 500000.ohci: new USB bus registered, assigned bus number 2
[ 0.441000] at91_ohci 500000.ohci: irq 17, io mem 0x00500000
[ 0.498000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.500000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.501000] usb usb2: Product: USB Host Controller
[ 0.502000] usb usb2: Manufacturer: Linux 4.9.75-linux4sam_5.7 ohci_hcd
[ 0.503000] usb usb2: SerialNumber: at91
[ 0.505000] hub 2-0:1.0: USB hub found
[ 0.506000] hub 2-0:1.0: 3 ports detected
[ 0.508000] usbcore: registered new interface driver cdc_acm
[ 0.509000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.510000] usbcore: registered new interface driver usb-storage
[ 0.511000] usbcore: registered new interface driver usbserial
[ 0.512000] usbcore: registered new interface driver usbserial_generic
[ 0.513000] usbserial: USB Serial support registered for generic
[ 0.514000] usbcore: registered new interface driver ftdi_sio
[ 0.515000] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 0.517000] usbcore: registered new interface driver pl2303
[ 0.518000] usbserial: USB Serial support registered for pl2303
[ 0.520000] rtc rtc0: alarm rollover not handled
[ 0.521000] rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
[ 0.522000] at91_rtc fc0686b0.rtc: rtc core: registered fc0686b0.rtc as rtc0
[ 0.523000] at91_rtc fc0686b0.rtc: AT91 Real Time Clock driver.
[ 0.524000] i2c /dev entries driver
[ 0.526000] AT91: Starting after user reset
[ 0.529000] sama5d4_wdt fc068640.watchdog: initialized (timeout = 16 sec, nowayout = 0)
[ 0.531000] sdhci: Secure Digital Host Controller Interface driver
[ 0.532000] sdhci: Copyright(c) Pierre Ossman
[ 0.533000] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.535000] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.536000] atmel_aes fc044000.aes: version: 0x201
[ 0.539000] atmel_aes fc044000.aes: Atmel AES - Using dma1chan2, dma1chan3 for DMA transfers
[ 0.541000] atmel_sha fc050000.sha: version: 0x420
[ 0.542000] atmel_sha fc050000.sha: using dma1chan4 for DMA transfers
[ 0.544000] atmel_sha fc050000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
[ 0.546000] atmel_tdes fc04c000.tdes: version: 0x702
[ 0.548000] atmel_tdes fc04c000.tdes: using dma1chan5, dma1chan6 for DMA transfers
[ 0.551000] atmel_tdes fc04c000.tdes: Atmel DES/TDES
[ 0.552000] usbcore: registered new interface driver usbhid
[ 0.553000] usbhid: USB HID core driver
[ 0.556000] iio iio:device0: Resolution used: 10 bits
[ 0.558000] input: at91_adc as /devices/platform/ahb/ahb:apb/fc034000.adc/input/input0
[ 0.563000] NET: Registered protocol family 10
[ 0.566000] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.569000] NET: Registered protocol family 17
[ 0.570000] can: controller area network core (rev 20120528 abi 9)
[ 0.571000] NET: Registered protocol family 29
[ 0.572000] can: raw protocol (rev 20120528)
[ 0.573000] can: broadcast manager protocol (rev 20161123 t)
[ 0.574000] can: netlink gateway (rev 20130117) max_hops=1
[ 0.582000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 0.584000] [drm] No driver support for vblank timestamp query.
[ 0.585000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 0.586000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 0.589000] ubi0: default fastmap pool size: 40
[ 0.590000] ubi0: default fastmap WL pool size: 20
[ 0.591000] ubi0: attaching mtd7
[ 1.138000] ubi0: scanning is finished
[ 1.146000] ubi0: attached mtd7 (name "rootfs", size 200 MiB)
[ 1.147000] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 1.148000] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 1.149000] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 1.150000] ubi0: good PEBs: 799, bad PEBs: 1, corrupted PEBs: 0
[ 1.151000] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 1.152000] ubi0: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 543261845
[ 1.153000] ubi0: available PEBs: 754, total reserved PEBs: 45, PEBs reserved for bad PEB handling: 39
[ 1.154000] ubi0: background thread "ubi_bgt0d" started, PID 102
[ 1.155000] ubi1: default fastmap pool size: 8
[ 1.156000] ubi1: default fastmap WL pool size: 4
[ 1.157000] ubi1: attaching mtd8
[ 1.214000] ubi1: scanning is finished
[ 1.221000] ubi1: attached mtd8 (name "data", size 20 MiB)
[ 1.222000] ubi1: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 1.223000] ubi1: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 1.224000] ubi1: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 1.225000] ubi1: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
[ 1.226000] ubi1: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 1.227000] ubi1: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 4088735083
[ 1.228000] ubi1: available PEBs: 34, total reserved PEBs: 46, PEBs reserved for bad PEB handling: 40
[ 1.229000] ubi1: background thread "ubi_bgt1d" started, PID 103
[ 1.230000] ubi2: default fastmap pool size: 8
[ 1.231000] ubi2: default fastmap WL pool size: 4
[ 1.232000] ubi2: attaching mtd9
[ 1.289000] ubi2: scanning is finished
[ 1.296000] ubi2: attached mtd9 (name "secure_data", size 20 MiB)
[ 1.297000] ubi2: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 1.298000] ubi2: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 1.299000] ubi2: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 1.300000] ubi2: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
[ 1.302000] ubi2: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 1.303000] ubi2: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 1793373352
[ 1.304000] ubi2: available PEBs: 34, total reserved PEBs: 46, PEBs reserved for bad PEB handling: 40
[ 1.305000] at91_rtc fc0686b0.rtc: setting system clock to 2012-01-01 00:26:36 UTC (1325377596)
[ 1.310000] OF: Duplicate name in testcase-data, renamed to "duplicate-name#1"
[ 1.317000] ### dt-test ### start of unittest - you will see error messages
[ 1.319000] OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-data/phandle-tests/provider1
[ 1.320000] OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-data/phandle-tests/provider1
[ 1.321000] OF: /testcase-data/phandle-tests/consumer-a: could not find phandle
[ 1.322000] OF: /testcase-data/phandle-tests/consumer-a: could not find phandle
[ 1.323000] OF: /testcase-data/phandle-tests/consumer-a: arguments longer than property
[ 1.324000] OF: /testcase-data/phandle-tests/consumer-a: arguments longer than property
[ 1.326000] irq: no irq domain found for /testcase-data/interrupts/intc0 !
[ 1.340000] OF: overlay: overlay_is_topmost: #5 clashes #6 @/testcase-data/overlay-node/test-bus/test-unittest8
[ 1.341000] OF: overlay: overlay #5 is not topmost
[ 1.346000] ubi2: background thread "ubi_bgt2d" started, PID 104
[ 1.349000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.350000] [drm] No driver support for vblank timestamp query.
[ 1.352000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 1.353000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 1.358000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.359000] [drm] No driver support for vblank timestamp query.
[ 1.362000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 1.363000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 1.365000] i2c i2c-3: Added multiplexed i2c bus 4
[ 1.369000] i2c i2c-3: Added multiplexed i2c bus 5
[ 1.373000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.374000] [drm] No driver support for vblank timestamp query.
[ 1.375000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 1.376000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 1.383000] ### dt-test ### end of unittest - 149 passed, 0 failed
[ 1.387000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1.390000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.391000] [drm] No driver support for vblank timestamp query.
[ 1.392000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 1.393000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 3.705000] macb f8020000.ethernet eth0: link up (100/Full)
[ 3.708000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 3.720000] IP-Config: Guessing netmask 255.255.255.0
[ 3.721000] IP-Config: Complete:
[ 3.722000] device=eth0, hwaddr=fc:c2:3d:0d:eb:26, ipaddr=192.168.1.131, mask=255.255.255.0, gw=255.255.255.255
[ 3.723000] host=192.168.1.131, domain=, nis-domain=(none)
[ 3.724000] bootserver=192.168.1.142, rootserver=192.168.1.142, rootpath=
[ 3.726000] ALSA device list:
[ 3.727000] No soundcards found.
[ 3.736000] VFS: Mounted root (nfs filesystem) on device 0:12.
[ 3.739000] devtmpfs: mounted
[ 3.742000] Freeing unused kernel memory: 1024K
Starting logging: OK
Populating /dev using udev: /etc/init.d/S10udev: line 47: can't create /proc/sys/kernel/hotplug: nonexistent directory
[ 4.101000] udevd[121]: starting version 3.2.1
[ 4.226000] udevd[122]: starting eudev-3.2.1
[ 5.070000] ssc f8008000.ssc: Atmel SSC device at 0xe0cdc000 (irq 24)
[ 5.073000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 5.074000] [drm] No driver support for vblank timestamp query.
[ 5.075000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 5.076000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 5.180000] mousedev: PS/2 mouse device common for all mice
[ 5.189000] random: crng init done
[ 5.203000] VDD MCI1: supplied by VCC 3V3
[ 5.208000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 5.209000] [drm] No driver support for vblank timestamp query.
[ 5.253000] input: gpio_keys as /devices/platform/gpio_keys/input/input1
[ 5.274000] Console: switching to colour frame buffer device 133x43
[ 5.383000] atmel-hlcdc-display-controller atmel-hlcdc-dc: fb0: frame buffer device
[ 5.399000] atmel-hlcdc-display-controller atmel-hlcdc-dc: DRM device successfully registered
[ 5.409000] Driver for 1-wire Dallas network protocol.
blue_z
Location: USA
Posts: 1661
Joined: Thu Apr 19, 2007 10:15 pm

Re: atmel-hlcdc-display-controller takes 5s to init at boot

Sat Jan 20, 2018 1:51 am

CortexAlex wrote:It starts probing for something right from the boot but will not be happy until the console switches to framebuffer device. I see those lines a number of times during the boot sequence:
[ 0.271000] [drm] No driver support for vblank timestamp query.
[ 0.272000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 0.273000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
The -517 errno is EPROBE_DEFER, Driver requests probe retry.

I find it interesting that in your boot log once the root filesystem has been mounted and eudev started, there is one more probe defer, a few more drivers get probed and installed, and then the atmel-hlcdc driver can complete its probe and install itself.
It would be interesting to find out if there's a loadable module that should instead be linked into the kernel.

Adding "initcall_debug" and "ignore_loglevel" to the kernel command line (e.g. the bootargs environment variable in U-Boot) would reveal every driver probe called in between those last two atmel-hlcdc probes (and of course everywhere else). IOW expect a much bigger log.

FWIW the EPROBE_DEFER seems to originate from atmel_hlcdc_check_endpoint() in drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c

BTW using the default Buildroot config, atmel_sama5d4_xplained_defconfig, and the default kernel config, sama5, I see the "DRM device successfully registered" on the very first probe of the atmel-hlcdc driver.

Regards
CortexAlex
Posts: 13
Joined: Thu Jan 26, 2017 12:48 pm

Re: atmel-hlcdc-display-controller takes 5s to init at boot

Mon Jan 22, 2018 6:00 pm

hello,

thank you blue_z for you reply.

Based on your hint, I went through the list of modules I had marked as loadable in the kernel and found out that the REGULAR_FIXED_VOLTAGE was the one needing to be statically linked. With that change, I get the DRM registered with atmel-hlcdc-dc way earlier than before, around 0.5s/0.6s after the beginning of the boot which is definitely an improvement. I posted my new full boot log below as "boot log#1".

Code: Select all

[    0.598000] atmel-hlcdc-display-controller atmel-hlcdc-dc: DRM device successfully registered
Now, I'm left with 2 questions/issues:
1) Is the framebuffer device expected to be created that late in the boot sequence? clearly, its creation is dependent on the eudev creation, so is there a way to speed this up somehow or is not normal ?
2) still no sign of a Linux boot logo no matter what I try. This part is bugging me as it seems it should work out of the box so to speak so I cant figure out how I broke it (assuming I did). My boot command has framebuffer disabled (by not having tty1, right) and I tried a number of kernel with and without FRAME_BUFFER_CONSOLE with no success. My guess is that my video argument (video=Unknown-1:1024x768-16 ) is no good and should be referring to atlmelfb0 somehow. Would you have any inputs here ?

Also, as you suggested, I rebuilt a kernel using the untouched atmel_sama5d4_xplained config from buildroot and I pretty much get the same boot behavior. See boot log 2 below. The DRM is registered early on in the boot sequence and the framebuffer is only created at the end after eudev started and no linux logo during boot.

Regards,

Boot log 1
Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.75-linux4sam_5.7 (alexf@pi-alexf-d2) (gcc version 5.4.0 (Buildroot 2017.02.9-g08969a6) ) #16 Mon Jan 22 14:14:01 CET 2018
[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Atmel SAMA5D4 Xplained TM70xx
[ 0.000000] cma: Reserved 64 MiB at 0x38000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0a30ee0, node_mem_map dfbda000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyS0,115200 debug mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot),256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel),200M(rootfs),20M(
data),20M(secure_data) ubi.mtd=rootfs ubi.mtd=data ubi.mtd=secure_data rootfstype=nfs root=/dev/nfs rw ip=192.168.1.131:192.168.1.142:::::off nfsroot=192.168.1.142:/tftpboot/rootfs video=Unknow
n-1:1024x768-16 consoleblank=0
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 444236K/524288K available (6144K kernel code, 248K rwdata, 1524K rodata, 1024K init, 199K bss, 14516K reserved, 65536K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a3e198 ( 249 kB)
[ 0.000000] .bss : 0xc0a3e198 - 0xc0a7013c ( 200 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C-310 ID prefetch enabled, offset 2 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 128 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x36020000
[ 0.000000] clocksource: pit: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 1194537708 ns
[ 0.000000] sched_clock: 32 bits at 1kHz, resolution 1000000ns, wraps every 2147483647500000ns
[ 0.000000] Console: colour dummy device 80x30
[ 0.010000] Calibrating delay loop... 395.26 BogoMIPS (lpj=197632)
[ 0.011000] pid_max: default: 32768 minimum: 301
[ 0.011000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.011000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.012000] CPU: Testing write buffer coherency: ok
[ 0.012000] Setting up static identity map for 0x20100000 - 0x20100058
[ 0.016000] devtmpfs: initialized
[ 0.031000] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
[ 0.032000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.032000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.038000] pinctrl core: initialized pinctrl subsystem
[ 0.040000] NET: Registered protocol family 16
[ 0.056000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.059000] cpuidle: using governor ladder
[ 0.080000] AT91: PM: standby: standby, suspend: ulp0
[ 0.080000] No ATAGs?
[ 0.083000] gpio-at91 fc06a000.gpio: at address e0827000
[ 0.086000] gpio-at91 fc06b000.gpio: at address e0829000
[ 0.090000] gpio-at91 fc06c000.gpio: at address e082b000
[ 0.093000] gpio-at91 fc068000.gpio: at address e082d000
[ 0.096000] gpio-at91 fc06d000.gpio: at address e082f000
[ 0.098000] pinctrl-at91 ahb:apb:pinctrl@fc06a000: initialized AT91 pinctrl driver
[ 0.113000] at_xdmac f0004000.dma-controller: 16 channels, mapped at 0xe0835000
[ 0.116000] at_xdmac f0014000.dma-controller: 16 channels, mapped at 0xe0837000
[ 0.118000] AT91: Detected SoC family: sama5d4
[ 0.118000] AT91: Detected SoC: sama5d44, revision 0
[ 0.119000] VDD MCI1: supplied by VCC 3V3
[ 0.120000] SCSI subsystem initialized
[ 0.121000] usbcore: registered new interface driver usbfs
[ 0.121000] usbcore: registered new interface driver hub
[ 0.121000] usbcore: registered new device driver usb
[ 0.122000] at91_i2c f8014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
[ 0.123000] at91_i2c f8014000.i2c: AT91 i2c bus driver (hw version: 0x502).
[ 0.124000] media: Linux media interface: v0.10
[ 0.124000] Linux video capture interface: v2.00
[ 0.124000] Advanced Linux Sound Architecture Driver Initialized.
[ 0.126000] clocksource: Switched to clocksource pit
[ 0.145000] NET: Registered protocol family 2
[ 0.146000] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.146000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.146000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.146000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.146000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.146000] NET: Registered protocol family 1
[ 0.147000] RPC: Registered named UNIX socket transport module.
[ 0.147000] RPC: Registered udp transport module.
[ 0.147000] RPC: Registered tcp transport module.
[ 0.147000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.149000] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.156000] io scheduler noop registered (default)
[ 0.162000] fc00c000.serial: ttyS0 at MMIO 0xfc00c000 (irq = 29, base_baud = 6250000) is a ATMEL_SERIAL
[ 0.244000] console [ttyS0] enabled
[ 0.246000] fc010000.serial: ttyS1 at MMIO 0xfc010000 (irq = 30, base_baud = 6250000) is a ATMEL_SERIAL
[ 0.249000] [drm] Initialized
[ 0.256000] random: fast init done
[ 0.260000] brd: module loaded
[ 0.273000] loop: module loaded
[ 0.275000] ssc f8008000.ssc: Atmel SSC device at 0xe086c000 (irq 24)
[ 0.279000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 0.280000] [drm] No driver support for vblank timestamp query.
[ 0.281000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
[ 0.282000] atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
[ 0.288000] atmel_nand_nfc 90000000.nfc: NFC is probed.
[ 0.289000] atmel_nand 80000000.nand: Using dma0chan2 for DMA transfers.
[ 0.290000] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[ 0.291000] nand: Micron MT29F4G08ABAEAWP
[ 0.292000] nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224
[ 0.293000] atmel_nand 80000000.nand: Use On Flash BBT
[ 0.294000] atmel_nand 80000000.nand: Cannot get PMECC lookup table offset, will build a lookup table in runtime.
[ 0.295000] atmel_nand 80000000.nand: minimum ECC: 8 bits in 512 bytes
[ 0.296000] atmel_nand 80000000.nand: Initialize PMECC params, cap: 8, sector: 512
[ 0.297000] atmel_nand 80000000.nand: Using NFC Sram read and write
[ 0.299000] Bad block table found at page 131008, version 0x01
[ 0.301000] Bad block table found at page 130944, version 0x01
[ 0.303000] nand_read_bbt: bad block at 0x000001540000
[ 0.304000] nand_read_bbt: bad block at 0x000018d40000
[ 0.305000] 10 cmdlinepart partitions found on MTD device atmel_nand
[ 0.306000] Creating 10 MTD partitions on "atmel_nand":
[ 0.307000] 0x000000000000-0x000000040000 : "bootstrap"
[ 0.310000] 0x000000040000-0x0000000c0000 : "uboot"
[ 0.313000] 0x0000000c0000-0x000000100000 : "env"
[ 0.316000] 0x000000100000-0x000000140000 : "env_redundant"
[ 0.319000] 0x000000140000-0x000000180000 : "spare"
[ 0.321000] 0x000000180000-0x000000200000 : "dtb"
[ 0.324000] 0x000000200000-0x000000800000 : "kernel"
[ 0.327000] 0x000000800000-0x00000d000000 : "rootfs"
[ 0.330000] 0x00000d000000-0x00000e400000 : "data"
[ 0.333000] 0x00000e400000-0x00000f800000 : "secure_data"
[ 0.337000] atmel_spi f8010000.spi: Using dma0chan3 (tx) and dma0chan4 (rx) for DMA transfers
[ 0.339000] m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 0.340000] atmel_spi f8010000.spi: Atmel SPI Controller version 0x221 at 0xf8010000 (irq 25)
[ 0.342000] atmel_spi fc018000.spi: Using dma0chan5 (tx) and dma0chan6 (rx) for DMA transfers
[ 0.344000] atmel_spi fc018000.spi: Atmel SPI Controller version 0x221 at 0xfc018000 (irq 31)
[ 0.346000] atmel_spi fc01c000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
[ 0.348000] atmel_spi fc01c000.spi: Atmel SPI Controller version 0x221 at 0xfc01c000 (irq 32)
[ 0.350000] libphy: Fixed MDIO Bus: probed
[ 0.352000] CAN device driver interface
[ 0.355000] libphy: MACB_mii_bus: probed
[ 0.413000] Micrel KSZ8081 or KSZ8091 f8020000.ethernet-ffffffff:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=f8020000.ethernet-ffffffff:01, irq=174)
[ 0.414000] macb f8020000.ethernet eth0: Cadence GEM rev 0x00020120 at 0xf8020000 irq 28 (fc:c2:3d:0d:eb:26)
[ 0.416000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.417000] ehci-atmel: EHCI Atmel driver
[ 0.419000] atmel-ehci 600000.ehci: EHCI Host Controller
[ 0.420000] atmel-ehci 600000.ehci: new USB bus registered, assigned bus number 1
[ 0.422000] atmel-ehci 600000.ehci: irq 17, io mem 0x00600000
[ 0.430000] atmel-ehci 600000.ehci: USB 2.0 started, EHCI 1.00
[ 0.432000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.433000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.434000] usb usb1: Product: EHCI Host Controller
[ 0.435000] usb usb1: Manufacturer: Linux 4.9.75-linux4sam_5.7 ehci_hcd
[ 0.436000] usb usb1: SerialNumber: 600000.ehci
[ 0.439000] hub 1-0:1.0: USB hub found
[ 0.440000] hub 1-0:1.0: 3 ports detected
[ 0.443000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.444000] ohci-atmel: OHCI Atmel driver
[ 0.446000] at91_ohci 500000.ohci: failed to find sfr node
[ 0.447000] at91_ohci 500000.ohci: USB Host Controller
[ 0.448000] at91_ohci 500000.ohci: new USB bus registered, assigned bus number 2
[ 0.449000] at91_ohci 500000.ohci: irq 17, io mem 0x00500000
[ 0.506000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[ 0.507000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.508000] usb usb2: Product: USB Host Controller
[ 0.509000] usb usb2: Manufacturer: Linux 4.9.75-linux4sam_5.7 ohci_hcd
[ 0.510000] usb usb2: SerialNumber: at91
[ 0.512000] hub 2-0:1.0: USB hub found
[ 0.513000] hub 2-0:1.0: 3 ports detected
[ 0.515000] usbcore: registered new interface driver cdc_acm
[ 0.516000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.517000] usbcore: registered new interface driver usb-storage
[ 0.518000] usbcore: registered new interface driver usbserial
[ 0.519000] usbcore: registered new interface driver usbserial_generic
[ 0.521000] usbserial: USB Serial support registered for generic
[ 0.523000] usbcore: registered new interface driver ftdi_sio
[ 0.524000] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 0.526000] usbcore: registered new interface driver pl2303
[ 0.527000] usbserial: USB Serial support registered for pl2303
[ 0.529000] rtc rtc0: alarm rollover not handled
[ 0.530000] rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
[ 0.531000] at91_rtc fc0686b0.rtc: rtc core: registered fc0686b0.rtc as rtc0
[ 0.532000] at91_rtc fc0686b0.rtc: AT91 Real Time Clock driver.
[ 0.533000] i2c /dev entries driver
[ 0.535000] usbcore: registered new interface driver uvcvideo
[ 0.536000] USB Video Class driver (1.1.1)
[ 0.537000] gspca_main: v2.14.0 registered
[ 0.538000] Driver for 1-wire Dallas network protocol.
[ 0.541000] AT91: Starting after software reset
[ 0.546000] sama5d4_wdt fc068640.watchdog: initialized (timeout = 16 sec, nowayout = 0)
[ 0.547000] sdhci: Secure Digital Host Controller Interface driver
[ 0.548000] sdhci: Copyright(c) Pierre Ossman
[ 0.549000] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.551000] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.552000] atmel_aes fc044000.aes: version: 0x201
[ 0.555000] atmel_aes fc044000.aes: Atmel AES - Using dma1chan2, dma1chan3 for DMA transfers
[ 0.557000] atmel_sha fc050000.sha: version: 0x420
[ 0.558000] atmel_sha fc050000.sha: using dma1chan4 for DMA transfers
[ 0.560000] atmel_sha fc050000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
[ 0.561000] atmel_tdes fc04c000.tdes: version: 0x702
[ 0.562000] atmel_tdes fc04c000.tdes: using dma1chan5, dma1chan6 for DMA transfers
[ 0.565000] atmel_tdes fc04c000.tdes: Atmel DES/TDES
[ 0.566000] usbcore: registered new interface driver usbhid
[ 0.567000] usbhid: USB HID core driver
[ 0.570000] iio iio:device0: Resolution used: 10 bits
[ 0.571000] input: at91_adc as /devices/platform/ahb/ahb:apb/fc034000.adc/input/input0
[ 0.576000] NET: Registered protocol family 10
[ 0.579000] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.581000] NET: Registered protocol family 17
[ 0.582000] can: controller area network core (rev 20120528 abi 9)
[ 0.583000] NET: Registered protocol family 29
[ 0.584000] can: raw protocol (rev 20120528)
[ 0.585000] can: broadcast manager protocol (rev 20161123 t)
[ 0.586000] can: netlink gateway (rev 20130117) max_hops=1
[ 0.595000] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 0.596000] [drm] No driver support for vblank timestamp query.
[ 0.598000] atmel-hlcdc-display-controller atmel-hlcdc-dc: DRM device successfully registered
[ 0.600000] ubi0: default fastmap pool size: 40
[ 0.601000] ubi0: default fastmap WL pool size: 20
[ 0.602000] ubi0: attaching mtd7
[ 1.157000] ubi0: scanning is finished
[ 1.165000] ubi0: attached mtd7 (name "rootfs", size 200 MiB)
[ 1.166000] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 1.167000] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 1.168000] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 1.169000] ubi0: good PEBs: 799, bad PEBs: 1, corrupted PEBs: 0
[ 1.170000] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 1.171000] ubi0: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 543261845
[ 1.172000] ubi0: available PEBs: 754, total reserved PEBs: 45, PEBs reserved for bad PEB handling: 39
[ 1.173000] ubi0: background thread "ubi_bgt0d" started, PID 103
[ 1.174000] ubi1: default fastmap pool size: 8
[ 1.175000] ubi1: default fastmap WL pool size: 4
[ 1.176000] ubi1: attaching mtd8
[ 1.234000] ubi1: scanning is finished
[ 1.241000] ubi1: attached mtd8 (name "data", size 20 MiB)
[ 1.242000] ubi1: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 1.243000] ubi1: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 1.244000] ubi1: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 1.245000] ubi1: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
[ 1.246000] ubi1: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 1.247000] ubi1: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 4088735083
[ 1.248000] ubi1: available PEBs: 34, total reserved PEBs: 46, PEBs reserved for bad PEB handling: 40
[ 1.249000] ubi1: background thread "ubi_bgt1d" started, PID 104
[ 1.250000] ubi2: default fastmap pool size: 8
[ 1.251000] ubi2: default fastmap WL pool size: 4
[ 1.252000] ubi2: attaching mtd9
[ 1.310000] ubi2: scanning is finished
[ 1.316000] ubi2: attached mtd9 (name "secure_data", size 20 MiB)
[ 1.317000] ubi2: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
[ 1.318000] ubi2: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 1.319000] ubi2: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 1.320000] ubi2: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
[ 1.321000] ubi2: user volume: 0, internal volumes: 1, max. volumes count: 128
[ 1.322000] ubi2: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 1793373352
[ 1.323000] ubi2: available PEBs: 34, total reserved PEBs: 46, PEBs reserved for bad PEB handling: 40
[ 1.324000] at91_rtc fc0686b0.rtc: setting system clock to 2012-01-03 21:58:25 UTC (1325627905)
[ 1.326000] ubi2: background thread "ubi_bgt2d" started, PID 105
[ 1.329000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 3.658000] macb f8020000.ethernet eth0: link up (100/Full)
[ 3.659000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 3.671000] IP-Config: Guessing netmask 255.255.255.0
[ 3.672000] IP-Config: Complete:
[ 3.673000] device=eth0, hwaddr=fc:c2:3d:0d:eb:26, ipaddr=192.168.1.131, mask=255.255.255.0, gw=255.255.255.255
[ 3.674000] host=192.168.1.131, domain=, nis-domain=(none)
[ 3.675000] bootserver=192.168.1.142, rootserver=192.168.1.142, rootpath=
[ 3.677000] panel-power-supply: disabling
[ 3.678000] ALSA device list:
[ 3.679000] No soundcards found.
[ 3.687000] VFS: Mounted root (nfs filesystem) on device 0:13.
[ 3.689000] devtmpfs: mounted
[ 3.692000] Freeing unused kernel memory: 1024K
Starting logging: OK
Populating /dev using udev: /etc/init.d/S10udev: line 47: can't create /proc/sys/kernel/hotplug: nonexistent directory
[ 4.070000] udevd[122]: starting version 3.2.1
[ 4.176000] udevd[123]: starting eudev-3.2.1
[ 4.693000] Console: switching to colour frame buffer device 128x48
[ 4.882000] atmel-hlcdc-display-controller atmel-hlcdc-dc: fb0: frame buffer device
[ 5.213000] mousedev: PS/2 mouse device common for all mice
[ 5.229000] random: crng init done
[ 5.259000] input: gpio_keys as /devices/platform/gpio_keys/input/input1
done

Boot log 2
Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.4.26-linux4sam_5.5 (alexf@pi-alexf-d2) (gcc version 5.4.0 (Buildroot 2017.02.9-g4416eb3-dirty) ) #1 Mon Jan 22 14:55:01 CET 2018
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Atmel SAMA5D4 Xplained TM70xx
cma: Reserved 64 MiB at 0x38000000
Memory policy: Data cache writeback
On node 0 totalpages: 131072
free_area_init_node: node 0, pgdat c0757478, node_mem_map dfbda000
Normal zone: 1024 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 131072 pages, LIFO batch:31
CPU: All CPU(s) started in SVC mode.
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttyS0,115200 debug mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot),256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel),200M(rootfs),20M(data),20M(secur
e_data) ubi.mtd=rootfs ubi.mtd=data ubi.mtd=secure_data rootfstype=nfs root=/dev/nfs rw ip=192.168.1.131:192.168.1.142:::::off nfsroot=192.168.1.142:/tftpboot/rootfs video=Unknown-1:1024x768-16
consoleblank=0
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 446220K/524288K available (5390K kernel code, 192K rwdata, 1688K rodata, 216K init, 190K bss, 12532K reserved, 65536K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc06f1d08 (7080 kB)
.init : 0xc06f2000 - 0xc0728000 ( 216 kB)
.data : 0xc0728000 - 0xc0758100 ( 193 kB)
.bss : 0xc0758100 - 0xc0787908 ( 191 kB)
NR_IRQS:16 nr_irqs:16 16
L2C-310 ID prefetch enabled, offset 2 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 128 kB
L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x36020000
clocksource: pit: mask: 0x7ffffff max_cycles: 0x7ffffff, max_idle_ns: 9556302164 ns
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
Console: colour dummy device 80x30
Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x20008200 - 0x20008258
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
AT91: Detected SoC family: sama5d4
AT91: Detected SoC: sama5d44, revision 0
gpio-at91 fc06a000.gpio: at address e081a000
gpio-at91 fc06b000.gpio: at address e081c000
gpio-at91 fc06c000.gpio: at address e081e000
gpio-at91 fc068000.gpio: at address e0832000
gpio-at91 fc06d000.gpio: at address e0834000
pinctrl-at91 ahb:apb:pinctrl@fc06a000: initialized AT91 pinctrl driver
tcb_clksrc: tc0 at 12.000 MHz
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 152900835740 ns
at_xdmac f0004000.dma-controller: 16 channels, mapped at 0xe083a000
at_xdmac f0014000.dma-controller: 16 channels, mapped at 0xe083c000
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c f8014000.i2c: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers
at91_i2c f8014000.i2c: AT91 i2c bus driver (hw version: 0x502).
media: Linux media interface: v0.10
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 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.
futex hash table entries: 256 (order: -1, 3072 bytes)
io scheduler noop registered (default)
fc00c000.serial: ttyS0 at MMIO 0xfc00c000 (irq = 35, base_baud = 6250000) is a ATMEL_SERIAL
console [ttyS0] enabled
fc010000.serial: ttyS1 at MMIO 0xfc010000 (irq = 36, base_baud = 6250000) is a ATMEL_SERIAL
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
ssc f8008000.ssc: Atmel SSC device at 0xe0870000 (irq 30)
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to create HLCDC outputs: -517
atmel-hlcdc-display-controller atmel-hlcdc-dc: failed to initialize mode setting
atmel_nand_nfc 90000000.nfc: NFC is probed.
atmel_nand 80000000.nand: Cannot get PMECC lookup table offset, will build a lookup table in runtime.
atmel_nand 80000000.nand: Use On Flash BBT
atmel_nand 80000000.nand: Using dma0chan2 for DMA transfers.
nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
nand: Micron MT29F4G08ABAEAWP
nand: 512 MiB, SLC, erase size: 256 KiB, page size: 4096, OOB size: 224
atmel_nand 80000000.nand: minimum ECC: 8 bits in 512 bytes
atmel_nand 80000000.nand: Initialize PMECC params, cap: 8, sector: 512
atmel_nand 80000000.nand: Using NFC Sram read and write
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_read_bbt: bad block at 0x000001540000
nand_read_bbt: bad block at 0x000018d40000
10 cmdlinepart partitions found on MTD device atmel_nand
Creating 10 MTD partitions on "atmel_nand":
0x000000000000-0x000000040000 : "bootstrap"
0x000000040000-0x0000000c0000 : "uboot"
0x0000000c0000-0x000000100000 : "env"
0x000000100000-0x000000140000 : "env_redundant"
0x000000140000-0x000000180000 : "spare"
0x000000180000-0x000000200000 : "dtb"
0x000000200000-0x000000800000 : "kernel"
0x000000800000-0x00000d000000 : "rootfs"
0x00000d000000-0x00000e400000 : "data"
0x00000e400000-0x00000f800000 : "secure_data"
atmel_spi f8010000.spi: version: 0x221
atmel_spi f8010000.spi: Using dma0chan3 (tx) and dma0chan4 (rx) for DMA transfers
atmel_spi f8010000.spi: Atmel SPI Controller at 0xf8010000 (irq 31)
m25p80 spi32766.0: unrecognized JEDEC id bytes: 00, 0, 0
atmel_spi fc018000.spi: version: 0x221
atmel_spi fc018000.spi: Using dma0chan5 (tx) and dma0chan6 (rx) for DMA transfers
atmel_spi fc018000.spi: Atmel SPI Controller at 0xfc018000 (irq 37)
atmel_spi fc01c000.spi: version: 0x221
atmel_spi fc01c000.spi: Using dma1chan0 (tx) and dma1chan1 (rx) for DMA transfers
atmel_spi fc01c000.spi: Atmel SPI Controller at 0xfc01c000 (irq 38)
CAN device driver interface
libphy: MACB_mii_bus: probed
macb f8020000.ethernet eth0: Cadence GEM rev 0x00020120 at 0xf8020000 irq 34 (fc:c2:3d:0d:eb:26)
macb f8020000.ethernet eth0: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=f8020000.etherne:01, irq=180)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 600000.ehci: EHCI Host Controller
atmel-ehci 600000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 600000.ehci: irq 24, io mem 0x00600000
atmel-ehci 600000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.4.26-linux4sam_5.5 ehci_hcd
usb usb1: SerialNumber: 600000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 500000.ohci: failed to find sfr node
at91_ohci 500000.ohci: USB Host Controller
at91_ohci 500000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 500000.ohci: irq 24, io mem 0x00500000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.4.26-linux4sam_5.5 ohci_hcd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver pl2303
usbserial: USB Serial support registered for pl2303
qt1070 0-001b: can not read register, returned -121
qt1070 0-001b: ID -121 not supported
atmel_mxt_ts 0-004c: __mxt_read_reg: i2c transfer failed (-121)
atmel_mxt_ts 0-004c: mxt_bootloader_read: i2c recv failed (-121)
atmel_mxt_ts 0-004c: Trying alternate bootloader address
atmel_mxt_ts 0-004c: mxt_bootloader_read: i2c recv failed (-121)
atmel_mxt_ts 0-004c: Try a second time to init maxtouch
atmel_mxt_ts 0-004c: __mxt_read_reg: i2c transfer failed (-121)
atmel_mxt_ts 0-004c: mxt_bootloader_read: i2c recv failed (-121)
atmel_mxt_ts 0-004c: Trying alternate bootloader address
atmel_mxt_ts 0-004c: mxt_bootloader_read: i2c recv failed (-121)
atmel_mxt_ts: probe of 0-004c failed with error -121
rtc rtc0: alarm rollover not handled
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc fc0686b0.rtc: rtc core: registered fc0686b0.rtc as rtc0
at91_rtc fc0686b0.rtc: AT91 Real Time Clock driver.
i2c /dev entries driver
AT91: Starting after user reset
sama5d4_wdt fc068640.watchdog: initialized (timeout = 16 sec, nowayout = 0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
atmel_aes fc044000.aes: version: 0x201
atmel_aes fc044000.aes: Atmel AES - Using dma1chan2, dma1chan3 for DMA transfers
atmel_sha fc050000.sha: version: 0x420
atmel_sha fc050000.sha: using dma1chan4 for DMA transfers
atmel_sha fc050000.sha: Atmel SHA1/SHA256/SHA224/SHA384/SHA512
atmel_tdes fc04c000.tdes: version: 0x702
atmel_tdes fc04c000.tdes: using dma1chan5, dma1chan6 for DMA transfers
atmel_tdes fc04c000.tdes: Atmel DES/TDES
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
iio iio:device0: Resolution used: 10 bits
input: at91_adc as /devices/soc0/ahb/ahb:apb/fc034000.adc/input/input0
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] No driver support for vblank timestamp query.
atmel-hlcdc-display-controller atmel-hlcdc-dc: DRM device successfully registered
ubi0: default fastmap pool size: 40
ubi0: default fastmap WL pool size: 20
ubi0: attaching mtd7
ubi0: scanning is finished
ubi0: attached mtd7 (name "rootfs", size 200 MiB)
ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
ubi0: good PEBs: 799, bad PEBs: 1, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 543261845
ubi0: available PEBs: 754, total reserved PEBs: 45, PEBs reserved for bad PEB handling: 39
ubi0: background thread "ubi_bgt0d" started, PID 100
ubi1: default fastmap pool size: 8
ubi1: default fastmap WL pool size: 4
ubi1: attaching mtd8
ubi1: scanning is finished
ubi1: attached mtd8 (name "data", size 20 MiB)
ubi1: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
ubi1: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
ubi1: VID header offset: 4096 (aligned 4096), data offset: 8192
ubi1: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
ubi1: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi1: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 4088735083
ubi1: available PEBs: 34, total reserved PEBs: 46, PEBs reserved for bad PEB handling: 40
ubi1: background thread "ubi_bgt1d" started, PID 101
ubi2: default fastmap pool size: 8
ubi2: default fastmap WL pool size: 4
ubi2: attaching mtd9
ubi2: scanning is finished
ubi2: attached mtd9 (name "secure_data", size 20 MiB)
ubi2: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
ubi2: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
ubi2: VID header offset: 4096 (aligned 4096), data offset: 8192
ubi2: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
ubi2: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi2: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 1793373352
ubi2: available PEBs: 34, total reserved PEBs: 46, PEBs reserved for bad PEB handling: 40
input: gpio_keys as /devices/soc0/gpio_keys/input/input1
ubi2: background thread "ubi_bgt2d" started, PID 102
at91_rtc fc0686b0.rtc: setting system clock to 2012-01-03 20:53:47 UTC (1325624027)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
macb f8020000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, hwaddr=fc:c2:3d:0d:eb:26, ipaddr=192.168.1.131, mask=255.255.255.0, gw=255.255.255.255
host=192.168.1.131, domain=, nis-domain=(none)
bootserver=192.168.1.142, rootserver=192.168.1.142, rootpath=
panel-power-supply: disabling
ALSA device list:
No soundcards found.
VFS: Mounted root (nfs filesystem) on device 0:14.
devtmpfs: mounted
Freeing unused kernel memory: 216K (c06f2000 - c0728000)
devpts: called with bogus options
Starting logging: atmel-hlcdc-display-controller atmel-hlcdc-dc: fb0: frame buffer device
OK
Initializing random number generator... random: dd: uninitialized urandom read (512 bytes read, 126 bits of entropy available)
done.
Starting network: ip: RTNETLINK answers: Firandom: nonblocking pool is initialized
le exists
FAIL

Welcome to Buildroot
buildroot login:
blue_z
Location: USA
Posts: 1661
Joined: Thu Apr 19, 2007 10:15 pm

Re: atmel-hlcdc-display-controller takes 5s to init at boot

Tue Jan 23, 2018 3:27 am

CortexAlex wrote:1) Is the framebuffer device expected to be created that late in the boot sequence?
Apparently yes.
CortexAlex wrote:clearly, its creation is dependent on the eudev creation, so is there a way to speed this up somehow or is not normal ?
You're conflating several different events, as your title doesn't match your actual goal.
Only the device node, /dev/fb0, requires the start of eudev. You could in theory hardcode device nodes (e.g. look at your Buildroot directory output/target/dev/).
The real issue is that the LCD controller is a Direct Rendering Infrastructure (DRI) device, and that the legacy framebuffer device is emulated by the DRI device.
According to the Linux4SAM page on Use of the legacy fbdev emulation, the sysfs interface is the conventional method for enabling this emulation.

CortexAlex wrote:2) still no sign of a Linux boot logo no matter what I try. This part is bugging me as it seems it should work out of the box so to speak so I cant figure out how I broke it (assuming I did).
The boot logo is clearly documented and implemented as output to the framebuffer.
Since (legacy) framebuffer support is postponed until userspace starts, there's should be no expectation that the legacy boot logo works with DRM/DRI.

Have you considered using U-Boot to display a splash screen?
On my SAMA5D36-EK running the 4.9.52-linux4sam_5.7 kernel, the U-Boot screen remains displayed on the LCD until
/sys/class/graphics/fb0/mode is assigned (i.e. after userspace has started). With other builds the LCD screen goes blank when the atmel-hlcdc driver successfully registers as the DRM device (i.e. before userspace has started).

Regards
CortexAlex
Posts: 13
Joined: Thu Jan 26, 2017 12:48 pm

Re: atmel-hlcdc-display-controller takes 5s to init at boot

Fri Jan 26, 2018 11:01 am

hello and thanks again for the support,
You're conflating several different events, as your title doesn't match your actual goal.
I understand that. Sorry, I honestly thought the 2 issues were closely related.
Since (legacy) framebuffer support is postponed until userspace starts, there's should be no expectation that the legacy boot logo works with DRM/DRI.
Understood that now.
Have you considered using U-Boot to display a splash screen?
Are you referring to the method that uses the 'bmp' command from uboot to display a logo or something else like having uboot setup the framebuffer on its own ? I tried to use the 'bmp' command in the past but I could never get a uboot image with 'bmp' support enabled. I'm creating another post for this issue so we don't get even more off track in this thread.

Regards,
CortexAlex
Posts: 13
Joined: Thu Jan 26, 2017 12:48 pm

Re: atmel-hlcdc-display-controller takes 5s to init at boot

Fri Jan 26, 2018 11:26 am

I'm creating another post for this issue so we don't get even more off track in this thread.
Actually I won't. Found quite a few posts in that forum with hints on what to do regarding the u-boot logo issue.

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 1 guest