User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Fb1 on pi Zero

Sun Jul 10, 2016 10:24 am

I'm trying to install a waveshre 3.2 lcd screen to the pi zero connected via GPIO but I can't get Fb1 to show up. Is there any specific reason for that? I'm using a fresh install. I also tried with pi2 and there it works fine but I already tried 3 or 4 times on the zero with fresh installs of retropie and can't get it to show up.

I'm using this tutorial to set up the screen:

https://retropie.org.uk/forum/topic/295 ... are-32b/13

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fb1 on pi Zero

Sun Jul 10, 2016 11:52 am

fb1 is created by the device driver. It looks like loading the driver failed.

Are you sure you used the correct overlay?
The post you linked to uses the 35a version of the overlay, but you need the 32b version (see https://github.com/swkim01/waveshare-dtoverlays\).
Replace 35a with 32b in the instructions and reboot.

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 12:23 pm

Sorry I linked to the wrong post in that discussion. I am using the instructions at the very top of the discussion here:

https://retropie.org.uk/forum/topic/295 ... hare-32b/2

There the screen is defined as 32b.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Fb1 on pi Zero

Sun Jul 10, 2016 12:27 pm

You should get a whole lot of stuff in your kernel message log that tells you what's happening with the overlay and the driver. On Raspbian you can see that stuff with the dmesg command.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 12:50 pm

this is the whole process afterin trying to install the overlays and entering dmesg

Code: Select all

Last login: Sun Jul 10 14:31:51 on ttys000
Viktors-MacBook-Pro:~ viktor$ ssh pi@192.168.0.19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:y5TG6/epsmqJ5Ro0+kRsr0HqJ0ZoPFAHWI/7VIb3EfA.
Please contact your system administrator.
Add correct host key in /Users/viktor/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/viktor/.ssh/known_hosts:1
ECDSA host key for 192.168.0.19 has changed and you have requested strict checking.
Host key verification failed.
Viktors-MacBook-Pro:~ viktor$ ssh pi@192.168.0.19
The authenticity of host '192.168.0.19 (192.168.0.19)' can't be established.
ECDSA key fingerprint is SHA256:y5TG6/epsmqJ5Ro0+kRsr0HqJ0ZoPFAHWI/7VIb3EfA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.19' (ECDSA) to the list of known hosts.
pi@192.168.0.19's password: 
Permission denied, please try again.
pi@192.168.0.19's password: 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jul 10 12:48:25 2016

   .~~.   .~~.    Sunday, 10 July 2016, 12:48:57 PM
  '. \ ' ' / .'   Linux 4.4.11+ armv6l GNU/Linux
   .~ .~~~..~.   
  : .~.'~'.~. :   Filesystem      Size  Used Avail Use% Mounted on
 ~ (   ) (   ) ~  /dev/root       3.6G  2.2G  1.3G  64% /
( : '~'.~.'~' : ) Uptime.............: 0 days, 00h00m49s
 ~ .~       ~. ~  Memory.............: 81284kB (Free) / 250428kB (Total)
  (   |   |   )   Running Processes..: 97
  '~         ~'   IP Address.........: 192.168.0.19 
    *--~-~--*     Temperature........: CPU: 42°C/107°F GPU: 42°C/107°F
                  The RetroPie Project, https://retropie.org.uk


pi@retropie:~ $ git clone https://github.com/swkim01/waveshare-dtoverlays.git
Cloning into 'waveshare-dtoverlays'...
remote: Counting objects: 90, done.
remote: Total 90 (delta 0), reused 0 (delta 0), pack-reused 90
Unpacking objects: 100% (90/90), done.
Checking connectivity... done.
pi@retropie:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.11+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #888 Mon May 23 20:02:58 BST 2016
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Zero Rev 1.3
[    0.000000] cma: Reserved 8 MiB at 0x0f400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0880270, node_mem_map cfdac600
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    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: 64960
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0x900093 bcm2708.serial=0x4bd30e17 smsc95xx.macaddr=B8:27:EB:D3:0E:17 bcm2708_fb.fbswap=1 bcm2708.uart_clock=3000000 bcm2708.disk_led_gpio=47 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet loglevel=3 consoleblank=0
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 241856K/262144K available (6051K kernel code, 436K rwdata, 1840K rodata, 380K init, 726K bss, 12096K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc07bcddc   (7892 kB)
      .init : 0xc07bd000 - 0xc081c000   ( 380 kB)
      .data : 0xc081c000 - 0xc0889348   ( 437 kB)
       .bss : 0xc0889348 - 0xc093eef0   ( 727 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000028] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000074] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000174] bcm2835: system timer (irq = 27)
[    0.000477] Console: colour dummy device 80x30
[    0.000723] console [tty1] enabled
[    0.000753] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060313] pid_max: default: 32768 minimum: 301
[    0.060683] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060714] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.061695] Disabling cpuset control group subsystem
[    0.061745] Initializing cgroup subsys io
[    0.061782] Initializing cgroup subsys memory
[    0.061840] Initializing cgroup subsys devices
[    0.061875] Initializing cgroup subsys freezer
[    0.061906] Initializing cgroup subsys net_cls
[    0.061995] CPU: Testing write buffer coherency: ok
[    0.062072] ftrace: allocating 20616 entries in 61 pages
[    0.173608] Setting up static identity map for 0x81c0 - 0x81f8
[    0.175481] devtmpfs: initialized
[    0.184113] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.184662] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.186411] pinctrl core: initialized pinctrl subsystem
[    0.187277] NET: Registered protocol family 16
[    0.192776] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.201160] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.201190] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.201362] Serial: AMBA PL011 UART driver
[    0.201776] 20201000.uart: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    0.202156] console [ttyAMA0] enabled
[    0.202911] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.245119] bcm2835-dma 20007000.dma: DMA legacy API manager at f2007000, dmachans=0x1
[    0.247361] SCSI subsystem initialized
[    0.247701] usbcore: registered new interface driver usbfs
[    0.247836] usbcore: registered new interface driver hub
[    0.248042] usbcore: registered new device driver usb
[    0.253522] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-05-20 19:01
[    0.281304] clocksource: Switched to clocksource timer
[    0.332766] FS-Cache: Loaded
[    0.333184] CacheFiles: Loaded
[    0.352872] NET: Registered protocol family 2
[    0.354192] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.354263] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.354324] TCP: Hash tables configured (established 2048 bind 2048)
[    0.354428] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.354468] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.354832] NET: Registered protocol family 1
[    0.355452] RPC: Registered named UNIX socket transport module.
[    0.355480] RPC: Registered udp transport module.
[    0.355493] RPC: Registered tcp transport module.
[    0.355506] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.356815] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.358235] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.374806] VFS: Disk quotas dquot_6.6.0
[    0.375198] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.377993] FS-Cache: Netfs 'nfs' registered for caching
[    0.379407] NFS: Registering the id_resolver key type
[    0.379509] Key type id_resolver registered
[    0.379529] Key type id_legacy registered
[    0.383875] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.384293] io scheduler noop registered
[    0.384332] io scheduler deadline registered (default)
[    0.384754] io scheduler cfq registered
[    0.387493] BCM2708FB: allocated DMA memory 4f800000
[    0.387568] BCM2708FB: allocated DMA channel 0 @ f2007000
[    0.393159] Console: switching to colour frame buffer device 82x26
[    1.366513] bcm2835-rng 20104000.rng: hwrng registered
[    1.366841] vc-cma: Videocore CMA driver
[    1.366864] vc-cma: vc_cma_base      = 0x00000000
[    1.366878] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.366890] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.367308] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.392353] brd: module loaded
[    1.404534] loop: module loaded
[    1.405687] vchiq: vchiq_init_state: slot_zero = 0xcf880000, is_master = 0
[    1.408017] Loading iSCSI transport class v2.0-870.
[    1.409251] usbcore: registered new interface driver smsc95xx
[    1.409361] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.610118] Core Release: 2.80a
[    1.610154] Setting default values for core params
[    1.610203] Finished setting default values for core params
[    1.810540] Using Buffer DMA mode
[    1.810567] Periodic Transfer Interrupt Enhancement - disabled
[    1.810580] Multiprocessor Interrupt Enhancement - disabled
[    1.810595] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.810688] Dedicated Tx FIFOs mode
[    1.811236] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xcf814000 dma = 0x4f814000 len=9024
[    1.811275] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    1.811385] dwc_otg: Microframe scheduler enabled
[    1.811481] WARN::hcd_init_fiq:413: FIQ on core 0 at 0xc0407c10
[    1.811503] WARN::hcd_init_fiq:414: FIQ ASM at 0xc0407eec length 36
[    1.811535] WARN::hcd_init_fiq:439: MPHI regs_base at 0xd0898000
[    1.811612] dwc_otg 20980000.usb: DWC OTG Controller
[    1.811687] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    1.811764] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[    1.811829] Init: Port Power? op_state=1
[    1.811842] Init: Power Port (0)
[    1.812236] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.812264] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.812286] usb usb1: Product: DWC OTG Controller
[    1.812305] usb usb1: Manufacturer: Linux 4.4.11+ dwc_otg_hcd
[    1.812324] usb usb1: SerialNumber: 20980000.usb
[    1.813492] hub 1-0:1.0: USB hub found
[    1.813607] hub 1-0:1.0: 1 port detected
[    1.814514] dwc_otg: FIQ enabled
[    1.814539] dwc_otg: NAK holdoff enabled
[    1.814551] dwc_otg: FIQ split-transaction FSM enabled
[    1.814608] Module dwc_common_port init
[    1.815151] usbcore: registered new interface driver usb-storage
[    1.815657] mousedev: PS/2 mouse device common for all mice
[    1.816866] bcm2835-cpufreq: min=700000 max=1000000
[    1.817264] sdhci: Secure Digital Host Controller Interface driver
[    1.817284] sdhci: Copyright(c) Pierre Ossman
[    1.817766] sdhost: log_buf @ cf813000 (4f813000)
[    1.891383] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.891948] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.892769] ledtrig-cpu: registered to indicate activity on CPUs
[    1.893087] hidraw: raw HID events driver (C) Jiri Kosina
[    1.893417] usbcore: registered new interface driver usbhid
[    1.893437] usbhid: USB HID core driver
[    1.914695] Initializing XFRM netlink socket
[    1.914769] NET: Registered protocol family 17
[    1.914979] Key type dns_resolver registered
[    1.917050] registered taskstats version 1
[    1.917371] vc-sm: Videocore shared memory driver
[    1.917401] [vc_sm_connected_init]: start
[    1.918415] [vc_sm_connected_init]: end - returning 0
[    1.919065] of_cfs_init
[    1.919225] of_cfs_init: OK
[    1.920638] Waiting for root device /dev/mmcblk0p2...
[    1.998985] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.000955] mmc0: new high speed SDHC card at address e624
[    2.002055] mmcblk0: mmc0:e624 SU04G 3.69 GiB
[    2.003694]  mmcblk0: p1 p2
[    2.011564] Indeed it is in host mode hprt0 = 00021501
[    2.087382] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.087505] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.088706] devtmpfs: mounted
[    2.090017] Freeing unused kernel memory: 380K (c07bd000 - c081c000)
[    2.191441] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.191676] Indeed it is in host mode hprt0 = 00001101
[    2.392421] usb 1-1: New USB device found, idVendor=0bda, idProduct=8179
[    2.392459] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.392501] usb 1-1: Product: 802.11n WLAN NIC
[    2.392522] usb 1-1: Manufacturer: Realtek
[    2.392542] usb 1-1: SerialNumber: A0F459069C1C
[    2.424965] random: systemd urandom read with 46 bits of entropy available
[    2.560366] NET: Registered protocol family 10
[    2.690678] uart-pl011 20201000.uart: no DMA platform data
[    3.048019] random: nonblocking pool is initialized
[    3.369744] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    3.767134] fuse init (API version 7.23)
[    5.462874] systemd-udevd[126]: starting version 215
[    7.391538] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    7.462025] bcm2835-wdt 20100000.watchdog: Broadcom BCM2835 watchdog timer
[    8.056743] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    9.472348] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[    9.811149] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[   10.101001] systemd-journald[122]: Received request to flush runtime journal from PID 1
[   10.346824] usbcore: registered new interface driver r8188eu
[   11.813853] cfg80211: World regulatory domain updated:
[   11.813889] cfg80211:  DFS Master region: unset
[   11.813900] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.813917] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.813930] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.813942] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   11.813958] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   11.813972] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   11.813985] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   11.813998] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.814011] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   13.641822] MAC Address = a0:f4:59:06:9c:1c
[   13.654578] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   15.277430] R8188EU: ERROR assoc success
[   15.277649] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   18.699276] EXT4-fs (mmcblk0p2): resizing filesystem from 667648 to 952448 blocks
[   18.814575] EXT4-fs (mmcblk0p2): resized filesystem to 952448
[   19.814277] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
pi@retropie:~ $ 

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Fb1 on pi Zero

Sun Jul 10, 2016 2:11 pm

You've not put the right stuff in /boot/config.txt and you've not got the overlay available to load in /boot/overlays
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 2:40 pm

And how can i fix that? The turorial works fine as is for the pi2. I didn't realize i had to do anything else.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fb1 on pi Zero

Sun Jul 10, 2016 2:44 pm

Agree with Dougie.

Most likely the naming of the device tree overlay is wrong.
The recipe in the second post you linked to uses the correct overlay, but the naming is wrong

Code: Select all

git clone https://github.com/swkim01/waveshare-dtoverlays.git
sudo cp waveshare-dtoverlays/waveshare32b-overlay.dtb /boot/overlays/waveshare32b.dtbo
In config.txt:

Code: Select all

dtoverlay=waveshare32b
You can run

Code: Select all

sudo vcdbg log msg
to check if the overlay file is loaded / read.

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 3:34 pm

Hm... this is the result.

Code: Select all

000859.784: HDMI:EDID error reading EDID block 0 attempt 0
000861.047: HDMI:EDID error reading EDID block 0 attempt 1
000862.306: HDMI:EDID error reading EDID block 0 attempt 2
000863.564: HDMI:EDID error reading EDID block 0 attempt 3
000864.823: HDMI:EDID error reading EDID block 0 attempt 4
000866.081: HDMI:EDID error reading EDID block 0 attempt 5
000867.340: HDMI:EDID error reading EDID block 0 attempt 6
000868.598: HDMI:EDID error reading EDID block 0 attempt 7
000869.857: HDMI:EDID error reading EDID block 0 attempt 8
000871.115: HDMI:EDID error reading EDID block 0 attempt 9
000872.137: HDMI:EDID giving up on reading EDID block 0
000883.606: HDMI:Setting property pixel encoding to Default
000883.626: HDMI:Setting property pixel clock type to PAL
000883.644: HDMI:Setting property content type flag to No data
000883.664: HDMI:Setting property fuzzy format match to enabled
000912.673: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
000912.698: hdmi: HDMI:>>>>>>>>>>>>>Rx sensed, reading EDID<<<<<<<<<<<<<
000913.103: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
000914.371: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
000915.634: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
000916.898: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
000918.162: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
000919.425: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
000920.689: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
000921.953: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
000923.216: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
000924.480: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
000925.506: hdmi: HDMI:EDID giving up on reading EDID block 0
000925.537: hdmi: HDMI: No lookup table for resolution group 0
000925.553: hdmi: HDMI: hotplug attached with DVI support
000925.615: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
000925.989: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
000927.252: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
000928.514: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
000929.777: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
000931.040: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
000932.302: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
000933.565: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
000934.829: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
000936.091: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
000937.354: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
000938.380: hdmi: HDMI:EDID giving up on reading EDID block 0
000938.443: hdmi: HDMI: hotplug deassert
000938.458: hdmi: HDMI: HDMI is currently off
000938.472: hdmi: HDMI: changing mode to unplugged
000938.494: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
000939.304: *** Restart logging
000940.509: Read command line from file 'cmdline.txt'
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet loglevel=3 consoleblank=0
001192.578: Loading 'kernel.img' to 0x8000 size 0x3ee7c0
001196.257: Kernel trailer DTOK property says yes
001196.272: Kernel trailer DDTK property says yes
001198.926: Loading 'bcm2708-rpi-b-plus.dtb' to 0x3f67c0 size 0x3410
001244.842: dtparam: uart0_clkrate=3000000
001254.108: dtparam: audio=on
001261.051: dtparam: spi=on
001272.220: Failed to load overlay 'waveshare32b'
001307.104: dtparam: arm_freq=1000000000
001309.260: Unknown dtparam 'arm_freq' - ignored
001309.295: dtparam: core_freq=400000000
001316.648: dtparam: cache_line_size=32
001332.501: Device tree loaded to 0xffec600 (size 0x395c)
001333.751: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
003318.885: vchiq_core: vchiq_init_state: slot_zero = 0x4f880000, is_master = 1
003323.176: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Fb1 on pi Zero

Sun Jul 10, 2016 3:55 pm

Code: Select all

001272.220: Failed to load overlay 'waveshare32b'
There's your error.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 4:11 pm

and how do I fix it? Sorry but I'm a real noob when it comes to this. I have no clue where to even start.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fb1 on pi Zero

Sun Jul 10, 2016 4:12 pm

Make sure the copy (cp) operation doesn't fail...
Check with

Code: Select all

ls /boot/overlays/waveshare*

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 4:25 pm

This is the result

Code: Select all

/boot/overlays/waveshare32b-overlay.dtb

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Fb1 on pi Zero

Sun Jul 10, 2016 4:28 pm

What kernel version are you running (uname -a command)? If it's 4.4.?? then you need to rename the overlay file.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fb1 on pi Zero

Sun Jul 10, 2016 4:29 pm

winnetouch wrote:This is the result

Code: Select all

/boot/overlays/waveshare32b-overlay.dtb
So you did not follow the copy procedure I posted above...
The filename has to be waveshare32b.dtbo !

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fb1 on pi Zero

Sun Jul 10, 2016 4:30 pm

DougieLawson wrote:What kernel version are you running (uname -a command)? If it's 4.4.?? then you need to rename the overlay file.
See the log: 4.4.11

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 5:06 pm

Now that I used

Code: Select all

git clone https://github.com/swkim01/waveshare-dtoverlays.git
sudo cp waveshare-dtoverlays/waveshare32b-overlay.dtb /boot/overlays/waveshare32b.dtbo
The result after ls /dev/fb* is

Code: Select all

/dev/fbt
after dmesg it's

Code: Select all

a5 14 ca 24 7f 99 ce cf 72 2b 0d b7 f0 84 1d 01 c2 c8 27 
TPTK: d5 00 52 b5 ca 3c b3 a7 2d 66 66 e7 12 c7 b6 d6 09 28 43 6f a3 98 b1 4d e1 8b 62 20 2a 26 eb 8e f9 24 e7 17 6c 10 2e ea a7 a2 c6 31 85 2f a1 1a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
KEY MIC: 8a 3c fd 0e 1b e2 9d 57 d2 5a 18 45 2f 86 40 9b 
process1of4: sending replyPacket 135 bytes
en1: Received EAPOL packet (length = 193)
inputEAPOLFrame: 0 extra bytes present in EAPOL frame.
inputEAPOLFrame: decrypting key data
inputEAPOLFrame: Received message 3 of 4
process3of4: Unknown Elem ID 221
process3of4: Unknown Elem ID 0
process3of4: Performing IE check.
process3of4: sending replyPacket ( len = 113 ).
process3of4: received pairwise GTK
ptkThread: Sleeping!
ptkThread: Sleeping!
ptkThread: Installing PTK!
PTK: f9 24 e7 17 6c 10 2e ea a7 a2 c6 31 85 2f a1 1a 
ptkThread: Installing GTK!
installGTK: setting cipher key (flags = 0x0)
GTK-RSC: cf 19 00 00 00 00 
GTK: 82 60 fa 37 89 f7 bb 68 6e 77 d0 2c 94 5a b9 48 2d 53 71 48 86 cc 2a 2c 99 f6 b3 4f 7b e5 51 50 
AirPort: RSN handshake complete on en1
installGTK: GTK installed
Unexpected payload found for message 9, dataLen 0
en1: BSSID changed to 70:54:d2:da:55:8f
en1: channel changed to 6
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
vmnet: VNetUserIf_Create: created userif8.
vmnet: VMNetConnect: returning port userif8.
vmnet: Allocated hub fffffffffede53ff for hubNum 0.
vmnet: VMNET_SO_BINDTOHUB: port: paddr 00:50:56:f1:33:91
vmnet: Hub 0
vmnet: 	Port 0
vmnet: bridge-en1: media 80 devName en family 2
vmnet: bridge-en1: wireless interface detected.
vmnet: bridge-en1: up
vmnet: bridge-en1: attached
vmnet: VNetUserIfFree: freeing userif8.
vmnet: VMNetSetopt: Set link state DOWN
vmnet: VMNetSetopt: Set link state UP
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 1 seconds.
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 2 seconds.
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: NOT Rescheduling.
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::scanDone: Scheduling cache purge timer in 30 seconds.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 3 seconds.
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: NOT Rescheduling.
USBMSC Identifier (non-unique): 000000000272 0x5e3 0x736 0x272, 2
vmmon: PTSC: initialized at 2255864000 Hz using reference clock, TSCs are synchronized.
vmmon: Cycles 195
vmnet: VNetUserIf_Create: created userif9.
vmnet: VMNetConnect: returning port userif9.
vmnet: VMNET_SO_BINDTOHUB: port: paddr 00:50:56:f7:07:26
vmnet: Hub 8
vmnet: 	Port 0
vmnet: 	Port 1
vmnet: 	Port 2
vmnet: 	Port 3
vmnet: VNetUserIf_Create: created userif10.
vmnet: VMNetConnect: returning port userif10.
vmnet: VMNET_SO_BINDTOHUB: port: paddr 00:50:56:f9:41:e9
vmnet: Hub 8
vmnet: 	Port 0
vmnet: 	Port 1
vmnet: 	Port 2
vmnet: 	Port 3
vmnet: 	Port 4
vmnet: VNetUserIfFree: freeing userif10.
100509.863619 USB Storage@24100000: AppleUSBDevice::ResetDevice: <software attempt to RESET>
100509.977832 USB Storage@24100000: AppleUSBDevice::ResetDevice: <software attempt to RESET>
USBMSC Identifier (non-unique): 000000000272 0x5e3 0x736 0x272, 2
process vmware-vmx[29860] caught causing excessive wakeups. Observed wakeups rate (per sec): 547; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45087
vmnet: VMNetDisconnect: called for port userListener1.
vmnet: VMNetDisconnect: called for port userif9.
vmnet: VNetUserIfFree: freeing userif9.
vmmon: Cleaned up 259431 virtual main memory pages from VM.
vmmon: Cleaned up 8829 monitor anonymous pages from VM.
vmmon: Cleaned up 1334 user anonymous pages from VM.
en1: Received EAPOL packet (length = 161)
inputEAPOLFrame: 0 extra bytes present in EAPOL frame.
inputEAPOLFrame: decrypting key data
inputEAPOLFrame: Received message 1 of 2
installGTK: setting cipher key (flags = 0x0)
GTK-RSC: 00 00 00 00 00 00 
GTK: d8 83 ea e9 88 6c 5f 03 e2 aa 1c 93 ab ef 46 04 09 a0 cc 11 91 b0 d6 83 0d 06 96 82 2d 86 47 09 
installGTK: GTK installed
process Opera Helper[29927] caught causing excessive wakeups. EXC_RESOURCE supressed due to audio playback
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::scanDone: Scheduling cache purge timer in 30 seconds.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 3 seconds.
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 29 seconds.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::startScan: Initiating scan.
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
en1: Terminating supplicant.
RSNSupplicant: Releasing authenticator for 70:54:d2:da:55:8f
wlEvent: en1 en1 Link DOWN virtIf = 0
vmnet: bridge-en1: interface en is sending notification 0x14
AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving).
vmnet: bridge-en1: interface en is going DOWN
Got incomplete channel sequence length 0, should be 16
Got incomplete channel sequence length 0, should be 16
en1: channel changed to 1
en1::IO80211Interface::postMessage bssid changed
parseRSNIE: groupCipherType = 3 pairwiseCipherType = 5 authSel = 2
initWithInterfaceAndIE: _myMacAddress 00:26:bb:0a:ed:d7
setPMK: PMK SET!
MacAuthEvent en1   Auth result for: 70:54:d2:da:55:8f  MAC AUTH succeeded
wlEvent: en1 en1 Link UP virtIf = 0
vmnet: bridge-en1: interface en is sending notification 0x14
AirPort: Link Up on en1
vmnet: bridge-en1: interface en is coming UP
Got incomplete channel sequence length 0, should be 16
en1: BSSID changed to 70:54:d2:da:55:8f
en1: channel changed to 6
en1::IO80211Interface::postMessage bssid changed
en1: Received EAPOL packet (length = 135)
inputEAPOLFrame: 0 extra bytes present in EAPOL frame.
inputEAPOLFrame: Received message 1 of 4
FULL RSN IE FOUND: 30 18 01 00 00 0f ac 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 0c 00 
storeFullRSNIE: getAP_IE_LIST returned 0
PMK: 3d c3 e6 0f 08 ca a9 d5 85 f3 c1 d6 46 a5 14 ca 24 7f 99 ce cf 72 2b 0d b7 f0 84 1d 01 c2 c8 27 
TPTK: 8e 06 03 75 fd 0e 44 04 fe f4 48 00 e8 a6 18 63 0b bd 2c 9b a2 8c f3 1e 9a 53 06 6c ad 1e 15 aa e2 0f ba e5 56 68 06 a5 c1 df d8 df d1 e8 14 2d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
KEY MIC: 99 b7 49 46 ba fa 3d f8 fc c4 ce 68 bb 0a 37 21 
process1of4: sending replyPacket 135 bytes
en1: Received EAPOL packet (length = 193)
inputEAPOLFrame: 0 extra bytes present in EAPOL frame.
inputEAPOLFrame: decrypting key data
inputEAPOLFrame: Received message 3 of 4
process3of4: Unknown Elem ID 221
process3of4: Unknown Elem ID 0
process3of4: Performing IE check.
process3of4: sending replyPacket ( len = 113 ).
process3of4: received pairwise GTK
ptkThread: Sleeping!
ptkThread: Sleeping!
ptkThread: Installing PTK!
PTK: e2 0f ba e5 56 68 06 a5 c1 df d8 df d1 e8 14 2d 
ptkThread: Installing GTK!
installGTK: setting cipher key (flags = 0x0)
GTK-RSC: 10 03 00 00 00 00 
GTK: d8 83 ea e9 88 6c 5f 03 e2 aa 1c 93 ab ef 46 04 09 a0 cc 11 91 b0 d6 83 0d 06 96 82 2d 86 47 09 
AirPort: RSN handshake complete on en1
installGTK: GTK installed
in6_unlink_ifa: IPv6 address 0x61f948e8f4d7f97f has no prefix
Unexpected payload found for message 9, dataLen 0
vmnet: VMNetDisconnect: called for port bridge1.
vmnet: bridge-en1: filter detached
vmnet: bridge-en1: down
vmnet: bridge-en1: detached
vmnet: Freeing hub fffffffffede53ff.
vmnet: VMNetSetopt: Set link state DOWN
vmnet: VMNetSetopt: Set link state UP
vmnet: VMNetSetopt: Set link state DOWN
vmnet: VMNetSetopt: Set link state UP
vmnet: VNetUserIf_Create: created userif11.
vmnet: VMNetConnect: returning port userif11.
vmnet: Allocated hub fffffffff9b9f3ff for hubNum 0.
vmnet: VMNET_SO_BINDTOHUB: port: paddr 00:50:56:e9:2f:92
vmnet: Hub 0
vmnet: 	Port 0
vmnet: bridge-en1: media 80 devName en family 2
vmnet: bridge-en1: wireless interface detected.
vmnet: bridge-en1: up
vmnet: bridge-en1: attached
vmnet: VNetUserIfFree: freeing userif11.
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: Rescheduling in 2 seconds.
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: NOT Rescheduling.
USBMSC Identifier (non-unique): 000000000272 0x5e3 0x736 0x272, 2
en1: Received EAPOL packet (length = 161)
inputEAPOLFrame: 0 extra bytes present in EAPOL frame.
inputEAPOLFrame: decrypting key data
inputEAPOLFrame: Received message 1 of 2
installGTK: setting cipher key (flags = 0x0)
GTK-RSC: 00 00 00 00 00 00 
GTK: 75 c9 99 2a 1d 7e de 2a 17 66 57 2c 52 32 d3 15 0a bb e3 67 3f df 30 01 a8 15 bf 20 b4 2b 1e 87 
installGTK: GTK installed
IO80211ScanManager::scanDone: Scheduling cache purge timer in 30 seconds.
IO80211ScanManager::startScan: Broadcast scan request received from 'airportd' (pid 61) ().
IO80211ScanManager::getScanResult: All scan results returned for 'airportd' (pid 61).
vmmon: PTSC: initialized at 2255864000 Hz using reference clock, TSCs are synchronized.
vmmon: Cycles 195
vmnet: VNetUserIf_Create: created userif12.
vmnet: VMNetConnect: returning port userif12.
vmnet: VMNET_SO_BINDTOHUB: port: paddr 00:50:56:ff:fa:1d
vmnet: Hub 8
vmnet: 	Port 0
vmnet: 	Port 1
vmnet: 	Port 2
vmnet: 	Port 3
vmnet: VNetUserIf_Create: created userif13.
vmnet: VMNetConnect: returning port userif13.
vmnet: VMNET_SO_BINDTOHUB: port: paddr 00:50:56:e2:79:82
vmnet: Hub 8
vmnet: 	Port 0
vmnet: 	Port 1
vmnet: 	Port 2
vmnet: 	Port 3
vmnet: 	Port 4
vmnet: VNetUserIfFree: freeing userif13.
IO80211ScanManager::cachePurge: clearEntries[0] Firing!
IO80211ScanManager::cachePurge: NOT Rescheduling.
105940.242218 USB Storage@24100000: AppleUSBDevice::ResetDevice: <software attempt to RESET>
105940.355905 USB Storage@24100000: AppleUSBDevice::ResetDevice: <software attempt to RESET>
USBMSC Identifier (non-unique): 000000000272 0x5e3 0x736 0x272, 2
process vmware-vmx[31385] caught causing excessive wakeups. Observed wakeups rate (per sec): 681; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45122
106336.394422 USB Storage@24100000: AppleUSBDevice::ResetDevice: <software attempt to RESET>
106336.507187 USB Storage@24100000: AppleUSBDevice::ResetDevice: <software attempt to RESET>
USBMSC Identifier (non-unique): 000000000272 0x5e3 0x736 0x272, 2
And it still doesn't work... To be hnest I'm getting really confused. I would really appreciate a step by step guide what I need to enter for this to work.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fb1 on pi Zero

Sun Jul 10, 2016 5:55 pm

winnetouch wrote:Now that I used

Code: Select all

git clone https://github.com/swkim01/waveshare-dtoverlays.git
sudo cp waveshare-dtoverlays/waveshare32b-overlay.dtb /boot/overlays/waveshare32b.dtbo
The result after ls /dev/fb* is
That's odd... are you 100% sure that's correct? I would have expected /dev/fb0 as a minimum. No idea what /dev/fbt stands for.

Is the waveshare dtbo file now present in /boot/overlays?
Does 'sudo vcdbg log msg' still report that the overlay cannot be loaded?

BTW: is that the log from dmesg? I would expect timestamps and different log entries in there...

Setting it up is fairly simple. The basis is what you try to do at the moment (also as described on https://github.com/swkim01/waveshare-dtoverlays).
If that fails then it's of no use to try to go any further...

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 8:50 pm

I followed the tutorial you posted to a T and this is what the results are:

Code: Select all

pi@retropie:~ $ sudo vcdbg log msg
000860.578: HDMI:EDID error reading EDID block 0 attempt 0
000861.841: HDMI:EDID error reading EDID block 0 attempt 1
000863.100: HDMI:EDID error reading EDID block 0 attempt 2
000864.358: HDMI:EDID error reading EDID block 0 attempt 3
000865.617: HDMI:EDID error reading EDID block 0 attempt 4
000866.875: HDMI:EDID error reading EDID block 0 attempt 5
000868.134: HDMI:EDID error reading EDID block 0 attempt 6
000869.392: HDMI:EDID error reading EDID block 0 attempt 7
000870.651: HDMI:EDID error reading EDID block 0 attempt 8
000871.909: HDMI:EDID error reading EDID block 0 attempt 9
000872.931: HDMI:EDID giving up on reading EDID block 0
000884.410: HDMI:Setting property pixel encoding to Default
000884.430: HDMI:Setting property pixel clock type to PAL
000884.448: HDMI:Setting property content type flag to No data
000884.468: HDMI:Setting property fuzzy format match to enabled
000913.478: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
000913.503: hdmi: HDMI:>>>>>>>>>>>>>Rx sensed, reading EDID<<<<<<<<<<<<<
000913.908: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
000915.176: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
000916.439: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
000917.704: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
000918.967: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
000920.230: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
000921.494: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
000922.758: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
000924.021: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
000925.285: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
000926.312: hdmi: HDMI:EDID giving up on reading EDID block 0
000926.343: hdmi: HDMI: No lookup table for resolution group 0
000926.359: hdmi: HDMI: hotplug attached with DVI support
000926.421: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
000926.794: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
000928.056: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
000929.319: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
000930.582: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
000931.845: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
000933.107: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
000934.369: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
000935.632: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
000936.894: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
000938.158: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
000939.183: hdmi: HDMI:EDID giving up on reading EDID block 0
000939.247: hdmi: HDMI: hotplug deassert
000939.262: hdmi: HDMI: HDMI is currently off
000939.276: hdmi: HDMI: changing mode to unplugged
000939.298: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
000940.111: *** Restart logging
000941.298: Read command line from file 'cmdline.txt'
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet loglevel=3 consoleblank=0
001197.130: Loading 'kernel.img' to 0x8000 size 0x3ee7c0
001200.810: Kernel trailer DTOK property says yes
001200.825: Kernel trailer DDTK property says yes
001203.428: Loading 'bcm2708-rpi-b-plus.dtb' to 0x3f67c0 size 0x3410
001249.519: dtparam: uart0_clkrate=3000000
001258.770: dtparam: audio=on
001272.062: Failed to load overlay 'waveshare32b'
001306.944: dtparam: arm_freq=1000000000
001309.111: Unknown dtparam 'arm_freq' - ignored
001309.147: dtparam: core_freq=400000000
001316.502: dtparam: cache_line_size=32
001332.418: Device tree loaded to 0xffec600 (size 0x3960)
001333.668: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
003313.062: vchiq_core: vchiq_init_state: slot_zero = 0x4f880000, is_master = 1
003317.372: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
It still fails to load the waveshare32b overlay.

This is in the boot/overlays directory

Code: Select all

pi@retropie:/boot/overlays $ ls
README                           pi3-miniuart-bt.dtbo
adau1977-adc.dtbo                piscreen.dtbo
ads7846.dtbo                     piscreen2r.dtbo
akkordion-iqdacplus.dtbo         pitft22.dtbo
at86rf233.dtbo                   pitft28-capacitive.dtbo
audioinjector-wm8731-audio.dtbo  pitft28-resistive.dtbo
bmp085_i2c-sensor.dtbo           pps-gpio.dtbo
boomberry-dac.dtbo               pwm-2chan.dtbo
boomberry-digi.dtbo              pwm.dtbo
dht11.dtbo                       qca7000.dtbo
dpi24.dtbo                       raspidac3.dtbo
dwc-otg.dtbo                     rpi-backlight.dtbo
dwc2.dtbo                        rpi-dac.dtbo
enc28j60.dtbo                    rpi-display.dtbo
gpio-ir.dtbo                     rpi-ft5406.dtbo
gpio-poweroff.dtbo               rpi-proto.dtbo
hifiberry-amp.dtbo               rpi-sense.dtbo
hifiberry-dac.dtbo               sdhost.dtbo
hifiberry-dacplus.dtbo           sdio-1bit.dtbo
hifiberry-digi.dtbo              sdio.dtbo
hy28a.dtbo                       sdtweak.dtbo
hy28b.dtbo                       smi-dev.dtbo
i2c-gpio.dtbo                    smi-nand.dtbo
i2c-mux.dtbo                     smi.dtbo
i2c-pwm-pca9685a.dtbo            spi-gpio35-39.dtbo
i2c-rtc.dtbo                     spi1-1cs.dtbo
i2c0-bcm2708.dtbo                spi1-2cs.dtbo
i2c1-bcm2708.dtbo                spi1-3cs.dtbo
i2s-gpio28-31.dtbo               spi2-1cs.dtbo
i2s-mmap.dtbo                    spi2-2cs.dtbo
iqaudio-dac.dtbo                 spi2-3cs.dtbo
iqaudio-dacplus.dtbo             tinylcd35.dtbo
lirc-rpi.dtbo                    uart1.dtbo
mcp2515-can0.dtbo                vc4-kms-v3d.dtbo
mcp2515-can1.dtbo                vga666.dtbo
mmc.dtbo                         w1-gpio-pullup.dtbo
mz61581.dtbo                     w1-gpio.dtbo
pi3-act-led.dtbo                 waveshare32b-overlay.dtb
pi3-disable-bt.dtbo              wittypi.dtbo

User avatar
winnetouch
Posts: 55
Joined: Sat Dec 05, 2015 8:48 am

Re: Fb1 on pi Zero

Sun Jul 10, 2016 9:28 pm

After a lot of fidling I got it working :) I don't really know what I did differently but it works.

This is the process I used. Maybe someone will find it usefull:

Code: Select all

git clone https://github.com/swkim01/waveshare-dtoverlays.git
then

Code: Select all

sudo cp waveshare-dtoverlays/waveshare32b-overlay.dtb /boot/overlays/waveshare32b.dtbo

Code: Select all

sudo nano /boot/config.txt
added this at the end of the file

Code: Select all

dtoverlay=waveshare32b
then I rebooted. It didn't work... The screen was darker but it didn't work. So I checked the framebufers

Code: Select all

ls /dev/fb* 
fb1 was there so I ran this script

Code: Select all

sudo apt-get install cmake
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
after that

Code: Select all

sudo nano /etc/rc.local
and added this above exit 0

Code: Select all

/usr/local/bin/fbcp &
then I rebooted and lo and behold. The thing worked. I don't know what I did different than from all the other times but this time it worked. I tried twice and it worked both times.

DirkS
Posts: 10362
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Fb1 on pi Zero

Sun Jul 10, 2016 10:00 pm

then I rebooted. It didn't work... The screen was darker but it didn't work.
This is normal. When you power on the Pi the screen lights up. When the driver starts the screen is initialised and it will go dark.

If you want to see the terminal output (including the boot messages) you have to add

Code: Select all

fbcon=map:10
at the end of the (only) line in /boot/cmdline,txt
This will redirect the output to /dev/fb1
You can also switch to a smaller font, e.g. VGA8x8 by adding

Code: Select all

fbcon=font:VGA8x8
to the same line

Example: if the original line is

Code: Select all

dwc_otg.lpm_enable=0  root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
the new line would look like this

Code: Select all

dwc_otg.lpm_enable=0  root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10 fbcon=font:VGA8x8

Return to “Beginners”