Hello all,

I've just started working with BBB. I'm trying to build my own OS using 
buildroot 2016.08 and Beaglebone official kernel 
https://github.com/beagleboard/linux .
I have so far succeeded in booting my build and getting SSH into it, but 
now I want to support this Waveshare 4.3" inch LCD cape 
http://www.waveshare.com/wiki/LCD_CAPE_(4.3inch)

I have enabled Bone Capemgr in kernel configuration.

Then, I compiled dtb of DVK530-LCD4-01-00A0.dts which has been provided by 
Waveshare into /lib/firmware, but it doesn't seem to get loaded when I 
specify it's name as:

# cd /sys/devices/platform/bone_capemgr
# cat slots 
 0: PF----  -1 
 1: PF----  -1 
 2: PF----  -1 
 3: PF----  -1 
# echo DVK530-LCD4-01-00A0 > slots
[   41.829893] bone_capemgr bone_capemgr: part_number 
'DVK530-LCD4-01-00A0', version 'N/A'
[   41.841336] bone_capemgr bone_capemgr: slot #4: override
[   41.849840] bone_capemgr bone_capemgr: Using override eeprom data at 
slot 4
[   41.859965] bone_capemgr bone_capemgr: slot #4: 'Override Board 
Name,00A0,Override Manuf,DVK530-LCD4-01-0'
-sh: write error: No such file or directory

Waveshare has supplied additional DTS files and they seem to deviate 
significantly from the official am335x-boneblack dts file provided in tree 
by beagleboard kernel. But I'm unable to compile it, for instance when I 
put am335x-boneblack-lcd4.dts inside arch/arm/boot/dts/ I get this:

  DTC     arch/arm/boot/dts/am335x-boneblack-lcd4.dtb
Error: arch/arm/boot/dts/am33xx.dtsi:11.1-9 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:293: recipe for target 
'arch/arm/boot/dts/am335x-boneblack-lcd4.dtb' failed
make[3]: *** [arch/arm/boot/dts/am335x-boneblack-lcd4.dtb] Error 1
arch/arm/Makefile:333: recipe for target 'am335x-boneblack-lcd4.dtb' failed
make[2]: *** [am335x-boneblack-lcd4.dtb] Error 2
package/pkg-generic.mk:201: recipe for target 
'/home/nilesh/BBB/buildroot-2016.08/output/build/linux-1e63edb14e49a4360ba05cd12fc6b0e53c66a955/.stamp_built'
 
failed
make[1]: *** 
[/home/nilesh/BBB/buildroot-2016.08/output/build/linux-1e63edb14e49a4360ba05cd12fc6b0e53c66a955/.stamp_built]
 
Error 2
Makefile:41: recipe for target '_all' failed
make: *** [_all] Error 2

It seems something is incompatible regarding the DTS file they have 
supplied vs what is supported by the latest BBB kernel. Can somebody help 
me understand where I'm going wrong and how do I get this thing working?
I have attached the kernel bootlog and configuration I'm using right now 
for my image.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/aa5a907a-0c5d-48fa-bda2-3acf78f8ae32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.21 (nilesh@i5) (gcc version 6.1.0 (Buildroot 
2016.08-g2a18369-dirty) ) #3 Sun Sep 18 21:12:21 IST 2016
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
instruction cache
[    0.000000] Machine model: TI AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c04e8800, node_mem_map 
dfbfa000
[    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] AM335X ES2.1 (sgx neon )
[    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: root=/dev/mmcblk0p2 rootdelay=5 
console=ttyS0,115200n8 console=tty0 ip=dhcp
[    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: 514320K/524288K available (3779K kernel code, 132K 
rwdata, 852K rodata, 232K init, 141K bss, 9968K reserved, 0K 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]       .text : 0xc0008000 - 0xc048dfa4   (4632 kB)
[    0.000000]       .init : 0xc048e000 - 0xc04c8000   ( 232 kB)
[    0.000000]       .data : 0xc04c8000 - 0xc04e91d0   ( 133 kB)
[    0.000000]        .bss : 0xc04ec000 - 0xc050f71c   ( 142 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 
interrupts
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 
89478484971ns
[    0.000032] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, 
max_idle_ns: 79635851949 ns
[    0.000041] OMAP clocksource: timer1 at 24000000 Hz
[    0.000566] clocksource_probe: no matching clocksources found
[    0.000690] Console: colour dummy device 80x30
[    0.001073] console [tty0] enabled
[    0.001118] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.089255] pid_max: default: 32768 minimum: 301
[    0.089374] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089401] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089862] CPU: Testing write buffer coherency: ok
[    0.090191] Setting up static identity map for 0x80008200 - 0x80008258
[    0.091672] devtmpfs: initialized
[    0.105628] VFP support v0.3: implementor 41 architecture 3 part 30 variant 
c rev 3
[    0.118242] omap_hwmod: debugss: _wait_target_disable failed
[    0.172770] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, 
max_idle_ns: 19112604462750000 ns
[    0.172959] pinctrl core: initialized pinctrl subsystem
[    0.174200] NET: Registered protocol family 16
[    0.174691] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.178552] OMAP GPIO hardware version 0.1
[    0.195399] edma 49000000.edma: TI EDMA DMA engine driver
[    0.197550] usbcore: registered new interface driver usbfs
[    0.197650] usbcore: registered new interface driver hub
[    0.197735] usbcore: registered new device driver usb
[    0.198085] omap_i2c 44e0b000.i2c: could not find pctldev for node 
/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[    0.198161] omap_i2c 4819c000.i2c: could not find pctldev for node 
/ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
[    0.198313] pps_core: LinuxPPS API ver. 1 registered
[    0.198336] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo 
Giometti <giome...@linux.it>
[    0.198387] PTP clock support registered
[    0.199180] clocksource: Switched to clocksource timer1
[    0.207065] NET: Registered protocol family 2
[    0.207627] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.207697] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.207750] TCP: Hash tables configured (established 4096 bind 4096)
[    0.207837] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.207868] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.208006] NET: Registered protocol family 1
[    0.210318] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.221421] io scheduler noop registered
[    0.221478] io scheduler deadline registered (default)
[    0.221925] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.222769] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.224094] console [ttyS0] disabled
[    0.224167] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud 
= 3000000) is a 8250
[    0.668625] console [ttyS0] enabled
[    0.673302] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    0.680122] [drm] Initialized drm 1.1.0 20060810
[    0.749231] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    0.755404] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    0.761990] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
[    0.769296] libphy: 4a101000.mdio: probed
[    0.773356] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, 
driver unknown
[    0.781834] cpsw 4a100000.ethernet: Detected MACID = ec:24:b8:9e:15:cc
[    0.789504] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.796100] ehci-omap: OMAP-EHCI Host Controller driver
[    0.801781] mousedev: PS/2 mouse device common for all mice
[    0.808400] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    0.815676] i2c /dev entries driver
[    0.820093] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    0.827518] omap_hsmmc 48060000.mmc: Got CD GPIO
[    0.910117] ledtrig-cpu: registered to indicate activity on CPUs
[    0.916472] NET: Registered protocol family 17
[    0.921119] omap_voltage_late_init: Voltage driver support not added
[    0.927879] ThumbEE CPU extension supported.
[    0.934177] input: tps65217_pwr_but as 
/devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/input/input0
[    0.957848] mmc0: host does not support reading read-only switch, assuming 
write-enable
[    0.970409] mmc0: new high speed SD card at address e624
[    0.976315] mmcblk0: mmc0:e624 SU02G 1.84 GiB 
[    0.984177] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    0.989958] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    0.997351]  mmcblk0: p1 p2
[    1.043311] mmc1: MAN_BKOPS_EN bit is not set
[    1.051557] mmc1: new high speed MMC card at address 0001
[    1.057475] mmcblk1: mmc1:0001 MMC04G 3.66 GiB 
[    1.062318] mmcblk1boot0: mmc1:0001 MMC04G partition 1 1.00 MiB
[    1.068439] mmcblk1boot1: mmc1:0001 MMC04G partition 2 1.00 MiB
[    1.121406] tda998x 0-0070: found TDA19988
[    1.126649] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
[    1.132748] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.139415] [drm] No driver support for vblank timestamp query.
[    1.145613] tilcdc 4830e000.lcdc: No connectors reported connected with modes
[    1.152829] [drm] Cannot find any crtc or sizes - going 1024x768
[    1.166908] Console: switching to colour frame buffer device 128x48
[    1.178559] tilcdc 4830e000.lcdc: fb0:  frame buffer device
[    1.184247] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
[    1.190219] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.197167] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.204491] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.211753] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.218971] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.226012] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    1.238199] bone_capemgr bone_capemgr: Baseboard: 
'A335BNLT,00C0,4815BBBK1EA8'
[    1.245592] bone_capemgr bone_capemgr: 
compatible-baseboard=ti,beaglebone-black - #slots=4
[    1.309192] bone_capemgr bone_capemgr: slot #0: No cape found
[    1.389188] bone_capemgr bone_capemgr: slot #1: No cape found
[    1.449187] bone_capemgr bone_capemgr: slot #2: No cape found
[    1.509186] bone_capemgr bone_capemgr: slot #3: No cape found
[    1.515077] bone_capemgr bone_capemgr: initialized OK.
[    1.520653] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 
00:00:01 UTC (946684801)
[    1.545999] net eth0: initializing cpsw version 1.12 (0)
[    1.551474] net eth0: initialized cpsw ale version 1.4
[    1.559122] net eth0: ALE Table size 1024
[    1.639548] net eth0: phy found : id is : 0x7c0f1
[    3.639903] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow 
control rx/tx
[    3.669199] Sending DHCP requests ., OK
[    5.941955] IP-Config: Got DHCP answer from 172.16.16.1, my address is 
172.16.16.14
[    5.952272] IP-Config: Complete:
[    5.957879]      device=eth0, hwaddr=ec:24:b8:9e:15:cc, ipaddr=172.16.16.14, 
mask=255.255.255.0, gw=172.16.16.1
[    5.970478]      host=172.16.16.14, domain=home.nileshgr.com, 
nis-domain=(none)
[    5.980279]      bootserver=172.16.16.1, rootserver=172.16.16.1, rootpath=
[    5.987080]      nameserver0=172.16.16.1
[    5.996492] Waiting 5 sec before mounting root device...
[   11.010214] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature 
incompatibilities
[   11.021705] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature 
incompatibilities
[   11.037888] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. 
Opts: (null)
[   11.048585] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[   11.067095] devtmpfs: mounted
[   11.072843] Freeing unused kernel memory: 232K (c048e000 - c04c8000)
[   11.319370] EXT4-fs (mmcblk0p2): re-mounted. Opts: 
errors=remount-ro,data=ordered
[   11.900503] random: dd: uninitialized urandom read (512 bytes read, 25 bits 
of entropy available)
[   12.023092] random: dropbear: uninitialized urandom read (32 bytes read, 27 
bits of entropy available)
[   41.829893] bone_capemgr bone_capemgr: part_number 'DVK530-LCD4-01-00A0', 
version 'N/A'
[   41.841336] bone_capemgr bone_capemgr: slot #4: override
[   41.849840] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[   41.859965] bone_capemgr bone_capemgr: slot #4: 'Override Board 
Name,00A0,Override Manuf,DVK530-LCD4-01-0'
[   51.969219] random: nonblocking pool is initialized

Attachment: linux.config
Description: Binary data

Reply via email to