User avatar
sakaki
Posts: 417
Joined: Sun Jul 16, 2017 1:11 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat Feb 23, 2019 7:24 pm

With the latest kernel (4.19.23-v8-5eeff139ea91-bis+) fkms seems a lot better, coming up without crashing now.

(non-f) kms working fine on Gentoo Xfce4, except when compositing is on, then, the system seems to 'stutter' every 15 seconds or so, for around a second each time. Moving a window around on the desktop in a circular pattern is sufficient to cause this. With compositing off there is no issue (even with full-frame video). No issue either way under 4.14.y. Running mesa-19.0.0_rc4, 64-bit userland.

User avatar
sakaki
Posts: 417
Joined: Sun Jul 16, 2017 1:11 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sun Feb 24, 2019 11:36 am

Apologies, slightly OT, but I was looking at building an updated version of raspberrypi/userland for the Gentoo image yesterday, and a number of the components (MMAL) etc are still masked out (by an ARM64 define). I tried compiling them anyway, since now using a 4.19.y kernel, and got a number of errors, but most seemed like they could be worked through easily enough (ints becoming longer when compiled under aarch64, then getting passed into printf with the wrong qualifier, etc.) plus a few others that probably would require a little more thought.

So my question is: is it worth me wading through these to fix them for aarch64 (given that the kernel now seems to play nicely with most MMAL stuff from a 32-bit userland perspective), or is this something that is a near-term plan at RPF anyway? Reason being, is I'd like to release a gentoo-on-rpi3-64bit image supporting MMAL etc.

Or perhaps there are other things that still need sorting at a deeper level (zero-copy was I think mentioned at one point?) so I should hold off for now?

Thanks,

sakaki

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 4.19 kernel 64 bit support - please report issues here

Sun Feb 24, 2019 1:08 pm

There is no 64bit userspace MMAL support.
I've added v4l2 drivers that can make use of MMAL for video codes and resize, and then the v4l2 app can be either 32 or 64 bit.

It may be possible to make MMAL userspace work in a 64bit environment, but that hasn't been done yet. There are pointers within the structures that mean we have an issue should a 32bit application be run with a 64bit MMAL core, and there's no easy way to deal with it.
64bit apps to a 64bit MMAL core should be possible to work, but needs some tweaks in the core.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
sakaki
Posts: 417
Joined: Sun Jul 16, 2017 1:11 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sun Feb 24, 2019 1:23 pm

Hi 6by9,

appreciate the V4L2 stuff, which I think will work well incidentally, but when you say:
6by9 wrote:
Sun Feb 24, 2019 1:08 pm
There are pointers within the structures that mean we have an issue should a 32bit application be run with a 64bit MMAL core, and there's no easy way to deal with it.
I'm not sure I understand: you earlier said:
6by9 wrote:
Fri Feb 01, 2019 7:49 am
64 bit kernel under a 32 bit raspbian is working fine for me, and I'm in the process of fixing up the bits of the kernel that don't work.

All the Mmal and IL apps I've tried still work with that, as the buffers passed from the 32bit app still map correctly onto the Gpu versions of those structures. The 32 bit mmal/IL framework stuff in userspace make the correct mappings for transferring data. (The one bit that really doesn't work at the moment is mmal zero copy as the vcsm driver doesn't work on aarch64). Build a 64 bit userspace version of those framework libraries and I'd expect it to fail.
Or am I getting my nomenclature wires crossed here? By "64bit MMAL core" in your first post, are you referring to the userspace MMAL libraries being 64-bit, rather than any kernel support they may rely on? Or to put another way, under 4.19.y is it the case currently that:
  • 32-bit kernel, 32-bit MMAL userspace library: works (stock system)
  • 64-bit kernel, 32-bit MMAL userspace library: works (per your second post, above)
  • 64-bit kernel, 64-bit MMAL userspace library: doesn't work, due to pointer issues?
Best, sakaki

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 4.19 kernel 64 bit support - please report issues here

Sun Feb 24, 2019 1:51 pm

sakaki wrote:
Sun Feb 24, 2019 1:23 pm
  • 32-bit kernel, 32-bit MMAL userspace library: works (stock system)
  • 64-bit kernel, 32-bit MMAL userspace library: works (per your second post, above)
  • 64-bit kernel, 64-bit MMAL userspace library: doesn't work, due to pointer issues?
Exactly that.
libmmal_vc_client is the problem, and partly with the defined RPC messages.

An application will pass in a MMAL_BUFFER_HEADER_T *. If you have a 64bit libmmal_vc_client, then it will be casting the structure with 64 bit pointers.
I'm not clear on how that is going to work should you be running a 32bit application on your otherwise 64bit system. Can we have both 32 and 64bit versions of libmmal_vc_client present on the same system so that they'll both work correctly on parameter sizings? Is selection of which one to use automagical, or something else required. I'm looking for the equivalent of all the compat ioctls in the kernel.

The RPC issue is places like https://github.com/raspberrypi/userland ... sgs.h#L155 where a client handle is passed to VideoCore and subsequently returned on event or buffer callbacks.
Currently a 32bit pointer to the component is stored in that field, and that won't work for a 64bit pointer. This can be solved fairly easily with a lookup table within the framework, and that is exactly what the V4L2 drivers are doing with an IDR within the vchiq-mmal framework.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
kozman
Posts: 54
Joined: Tue Sep 11, 2018 3:40 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat Mar 02, 2019 3:06 pm

cjan wrote:
Fri Feb 22, 2019 10:47 pm
kozman wrote:
Fri Feb 22, 2019 8:00 pm
6by9 wrote:
Fri Feb 22, 2019 7:23 am

What issues are you seeing with fkms? I thought I'd got to the bottom of the issue on fkms and it is working fine for me.
Buster appears to have a broken Mesa at the moment though, so x is giving me issues. Just another thing to investigate.

Hoping Buster will be updated to Mesa 18.3.4. I saw a couple VC4 issues fixed in x.x.3 & x.x.4 which might help.
yep, had 18.3.2 issue and update to 18.3.3 solved.
I just saw that buster got bumped to 18.3.4 which should help even more.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 4.19 kernel 64 bit support - please report issues here

Sat Mar 02, 2019 4:14 pm

kozman wrote:
Sat Mar 02, 2019 3:06 pm
I just saw that buster got bumped to 18.3.4 which should help even more.
Tried it on Friday, and yes x is working again with buster and 18.3.4. Onwards and upwards.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
kozman
Posts: 54
Joined: Tue Sep 11, 2018 3:40 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sun Mar 03, 2019 1:42 am

6by9 wrote:
Sat Mar 02, 2019 4:14 pm
kozman wrote:
Sat Mar 02, 2019 3:06 pm
I just saw that buster got bumped to 18.3.4 which should help even more.
Tried it on Friday, and yes x is working again with buster and 18.3.4. Onwards and upwards.

And if they manage to squeeze 1.20.4 in under the wire, we'll be better off as well I would surmise.
Last edited by kozman on Mon Mar 04, 2019 4:01 pm, edited 1 time in total.

mby
Posts: 11
Joined: Sat Dec 15, 2018 3:05 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sun Mar 03, 2019 12:09 pm

Sounds great, thank you to all! – Any workaround for the dreaded lack of libcurl3 in Buster which is a hard dependency for Mathematica's Wolfram-Engine?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6084
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: 4.19 kernel 64 bit support - please report issues here

Mon Mar 04, 2019 10:33 am

mby wrote:
Sun Mar 03, 2019 12:09 pm
Sounds great, thank you to all! – Any workaround for the dreaded lack of libcurl3 in Buster which is a hard dependency for Mathematica's Wolfram-Engine?
Until wolfram is updated for Buster, you'll either have to remove it or deal with held back packages.

pxlnpx
Posts: 5
Joined: Sat Feb 02, 2019 6:14 pm

booting big-endian -- Re: 4.19 kernel 64 bit support - please report issues here

Sun Mar 10, 2019 3:59 pm

Following the above call for 64-bit issue reports here are some findings (I used the latest github firmware/boot/* release):

Code: Select all

U-Boot 2018.11 (Jan 01 2019 - 15:29:38 +0100)

DRAM:  896 MiB
RPI 2 Model B (0xa22042)
MMC:   mmc@7e202000: 0, sdhci@7e300000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
starting USB...
USB0:   scanning bus 0 for devices... Timeout poll on interrupt endpoint
Failed to get keyboard state from device 04d9:1400
3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
U-Boot>
U-Boot> fatload mmc 0:1 ${fdt_addr} bcm2710-rpi-3-b_be.dtb
25485 bytes read in 5 ms (4.9 MiB/s)
U-Boot>
U-Boot> fatload mmc 0:1 ${kernel_addr_r} kernel8_be.img
14067720 bytes read in 593 ms (22.6 MiB/s)
U-Boot>
U-Boot> setenv bootargs earlyprintk console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
U-Boot>
U-Boot> booti ${kernel_addr_r} - ${fdt_addr}
## Flattened Device Tree blob at 2eff9d00
   Booting using the fdt blob at 0x2eff9d00
   reserving fdt memory region: addr=0 size=1000
   Using Device Tree in place at 000000002eff9d00, end 000000002f00308c

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 4.19.27-v8+ (demouser@pi64) (gcc version 7.2.0 (Gentoo 7.2.0 p1.1)) #1 SMP PREEMPT Sat Mar 9 16:58:49 CET 2019
[    0.000000] Machine model: Raspberry Pi 3 Model B
[    0.000000] cma: Reserved 8 MiB at 0x0000000037800000
[    0.000000] random: get_random_bytes called from start_kernel+0xb4/0x474 with crng_init=0
[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s56792 r8192 d29224 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 843419
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 225792
[    0.000000] Kernel command line: earlyprintk console=tty1 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Memory: 875960K/917504K available (7806K kernel code, 874K rwdata, 2336K rodata, 2688K init, 918K bss, 33352K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 26244 entries in 103 pages
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000008] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000282] Console: colour dummy device 80x25
[    0.000819] console [tty1] enabled
[    0.000949] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=19200)
[    0.001009] pid_max: default: 32768 minimum: 301
[    0.001451] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.001510] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.002913] Disabling memory control group subsystem
[    0.009166] ASID allocator initialised with 32768 entries
[    0.011157] rcu: Hierarchical SRCU implementation.
[    0.016250] smp: Bringing up secondary CPUs ...
[    0.024514] Detected VIPT I-cache on CPU1
[    0.024593] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.032634] Detected VIPT I-cache on CPU2
[    0.032686] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.040783] Detected VIPT I-cache on CPU3
[    0.040829] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.041036] smp: Brought up 1 node, 4 CPUs
[    0.041188] SMP: Total of 4 processors activated.
[    0.041224] CPU features: detected: 32-bit EL0 Support
[    0.044150] CPU: All CPU(s) started at EL2
[    0.044226] alternatives: patching kernel code
[    0.046104] devtmpfs: initialized
[    0.061965] Enabled cp15_barrier support
[    0.062034] Enabled setend support
[    0.062654] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.062719] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.063523] pinctrl core: initialized pinctrl subsystem
[    0.064363] NET: Registered protocol family 16
[    0.070781] cpuidle: using governor menu
[    0.071219] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.071266] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.076465] DMA: preallocated 256 KiB pool for atomic allocations
[    0.076674] Serial: AMBA PL011 UART driver
[    0.081568] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.124851] bcm2835-dma 3f007000.dma: DMA legacy API manager at (____ptrval____), dmachans=0x1
[    0.127364] SCSI subsystem initialized
[    0.127747] usbcore: registered new interface driver usbfs
[    0.127848] usbcore: registered new interface driver hub
[    0.128028] usbcore: registered new device driver usb
[    0.129492] raspberrypi-firmware soc:firmware: Request 0x00000001 returned status 0x01000080
[    0.130507] raspberrypi-firmware soc:firmware: Request 0x00000003 returned status 0x01000080
[    0.131525] raspberrypi-firmware soc:firmware: Request 0x00030046 returned status 0x01000080
[    0.133372] clocksource: Switched to clocksource arch_sys_counter
[    0.257529] VFS: Disk quotas dquot_6.6.0
[    0.257687] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.257941] FS-Cache: Loaded
[    0.258390] CacheFiles: Loaded
[    0.272106] NET: Registered protocol family 2
[    0.273207] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes)
[    0.273285] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.273499] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.273742] TCP: Hash tables configured (established 8192 bind 8192)
[    0.274044] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.274125] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.274537] NET: Registered protocol family 1
[    0.275591] RPC: Registered named UNIX socket transport module.
[    0.275628] RPC: Registered udp transport module.
[    0.275658] RPC: Registered tcp transport module.
[    0.275688] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.277474] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.278010] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    0.280612] Initialise system trusted keyrings
[    0.281047] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.293833] FS-Cache: Netfs 'nfs' registered for caching
[    0.295068] NFS: Registering the id_resolver key type
[    0.295160] Key type id_resolver registered
[    0.295191] Key type id_legacy registered
[    0.299261] Key type asymmetric registered
[    0.299304] Asymmetric key parser 'x509' registered
[    0.299452] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.299752] io scheduler noop registered
[    0.299786] io scheduler deadline registered
[    0.300041] io scheduler cfq registered (default)
[    0.300078] io scheduler mq-deadline registered
[    0.300110] io scheduler kyber registered
[    0.303956] raspberrypi-firmware soc:firmware: Request 0x00048020 returned status 0x01000080
[    0.304022] brcmvirt-gpio soc:virtgpio: Failed to set gpiovirtbuf, trying to get err:ffffffea
[    0.304160] raspberrypi-firmware soc:firmware: Request 0x00040010 returned status 0x01000080
[    0.304207] brcmvirt-gpio soc:virtgpio: Failed to get gpiovirtbuf
[    0.304265] brcmvirt-gpio: probe of soc:virtgpio failed with error -22
[    0.305082] BCM2708FB: allocated DMA memory 0x00000000f7840000
[    0.305156] BCM2708FB: allocated DMA channel 0
[    0.305255] raspberrypi-firmware soc:firmware: Request 0x00010006 returned status 0x01000080
[    0.308691] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x01000080
[    0.309543] raspberrypi-firmware soc:firmware: Request 0x00048003 returned status 0x01000080
[    0.309593] bcm2708_fb soc:fb: Failed to allocate GPU framebuffer (-22)
[    0.309739] bcm2708_fb soc:fb: probe failed, err -22
[    0.309790] bcm2708_fb: probe of soc:fb failed with error -22
[    0.311238] raspberrypi-firmware soc:firmware: Request 0x00030030 returned status 0x01000080
[    0.313509] bcm2835-rng 3f104000.rng: hwrng registered
[    0.313792] vc-mem: phys_addr:0x00000000 mem_base=0x00000000 mem_size:0x00000000(0 MiB)
[    0.314748] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.315145] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.331777] brd: module loaded
[    0.348333] loop: module loaded
[    0.348415] Loading iSCSI transport class v2.0-870.
[    0.349910] libphy: Fixed MDIO Bus: probed
[    0.350075] usbcore: registered new interface driver lan78xx
[    0.350191] usbcore: registered new interface driver smsc95xx
[    0.350240] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.350689] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x01000080
[    0.351815] usbcore: registered new interface driver usb-storage
[    0.353141] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.353589] raspberrypi-firmware soc:firmware: Request 0x00030007 returned status 0x01000080
[    0.353640] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.353742] raspberrypi-firmware soc:firmware: Request 0x00030004 returned status 0x01000080
[    0.353789] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.353828] bcm2835-cpufreq: min=0 max=0
[    0.353952] raspberrypi-firmware soc:firmware: Request 0x00030002 returned status 0x01000080
[    0.353998] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.354038] cpufreq: cpufreq_online: ->get() failed
[    0.354225] raspberrypi-firmware soc:firmware: Request 0x00030007 returned status 0x01000080
[    0.354271] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.354397] raspberrypi-firmware soc:firmware: Request 0x00030004 returned status 0x01000080
[    0.354443] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.354482] bcm2835-cpufreq: min=0 max=0
[    0.354595] raspberrypi-firmware soc:firmware: Request 0x00030002 returned status 0x01000080
[    0.354642] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.354680] cpufreq: cpufreq_online: ->get() failed
[    0.354877] raspberrypi-firmware soc:firmware: Request 0x00030007 returned status 0x01000080
[    0.354924] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.355009] raspberrypi-firmware soc:firmware: Request 0x00030004 returned status 0x01000080
[    0.355054] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.355093] bcm2835-cpufreq: min=0 max=0
[    0.355203] raspberrypi-firmware soc:firmware: Request 0x00030002 returned status 0x01000080
[    0.355250] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.355288] cpufreq: cpufreq_online: ->get() failed
[    0.355502] raspberrypi-firmware soc:firmware: Request 0x00030007 returned status 0x01000080
[    0.355549] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.355648] raspberrypi-firmware soc:firmware: Request 0x00030004 returned status 0x01000080
[    0.355694] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.355733] bcm2835-cpufreq: min=0 max=0
[    0.355829] raspberrypi-firmware soc:firmware: Request 0x00030002 returned status 0x01000080
[    0.355875] bcm2835-cpufreq:bcm2835_cpufreq_get_clock:93: Failed to get clock (-22)
[    0.355913] cpufreq: cpufreq_online: ->get() failed
[    0.356586] sdhci: Secure Digital Host Controller Interface driver
[    0.356621] sdhci: Copyright(c) Pierre Ossman
[    0.357231] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.357890] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.358126] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.358808] ledtrig-cpu: registered to indicate activity on CPUs
[    0.358931] hidraw: raw HID events driver (C) Jiri Kosina
[    0.359149] usbcore: registered new interface driver usbhid
[    0.359183] usbhid: USB HID core driver
[    0.359583] Initializing XFRM netlink socket
[    0.359653] NET: Registered protocol family 17
[    0.359833] Key type dns_resolver registered
[    0.361005] registered taskstats version 1
[    0.361051] Loading compiled-in X.509 certificates
[    0.366664] raspberrypi-firmware soc:firmware: Request 0x00030004 returned status 0x01000080
[    0.374483] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.374637] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 66, base_baud = 0) is a PL011 rev2
[    1.457591] console [ttyAMA0] enabled
[    1.463417] bcm2835-aux-uart 3f215040.serial: unable to register 8250 port - -28
[    1.470915] bcm2835-aux-uart: probe of 3f215040.serial failed with error -28
[    1.478545] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x01000080
[    1.488483] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.494384] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    1.527772] sdhost: log_buf @ (____ptrval____) (f7840000)
[    1.533569] raspberrypi-firmware soc:firmware: Request 0x00038042 returned status 0x01000080
[    1.590029] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.596386] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x01000080
[    1.626538] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x01000080
[    1.637552] of_cfs_init
[    1.642275] of_cfs_init: OK
[    1.645943] uart-pl011 3f201000.serial: no DMA platform data
[    1.654293] Waiting for root device /dev/mmcblk0p2...
[    1.698186] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.706307] mmc0: new SDHC card at address aaaa
[    1.713450] mmcblk0: mmc0:aaaa SS32G 29.7 GiB
[   11.746369] mmc0: timeout waiting for hardware interrupt.
[   11.751799] [5822b48d] REQ< 8fb3bf8 10800
[   11.755822] [5822b48e] CMD< 5 0
[   11.758975] [5822b490] FCM< 8fb3bf8 8fb3cc8
[   11.763170] [5822b7ab] CMD  5 0
[   11.766323] [5822b7ab] REQ> 8fb3bf8 0
[   11.769996] [5822b7b8] TSK< 8fb3bf8 0
[   11.773671] [5822b7bd] TSK> 8fb3bf8 0
[   11.777345] [5822b7cc] REQ< 8fb3bf8 10800
[   11.781366] [5822b7cd] CMD< 5 0
[   11.784517] [5822b7d0] FCM< 8fb3bf8 8fb3cc8
[   11.788712] [5822bad1] CMD  5 0
[   11.791863] [5822bad2] REQ> 8fb3bf8 0
[   11.795537] [5822bade] TSK< 8fb3bf8 0
[   11.799211] [5822bae4] TSK> 8fb3bf8 0
[   11.802886] [5822bb10] REQ< 8fb3ad8 10800
[   11.806907] [5822bb11] CMD< 37 0
[   11.810145] [5822bb14] FCM< 8fb3ad8 8fb3b98
[   11.814340] [5822bc2e] RSP  400120 0
[   11.817926] [5822bc33] FCM> 8fb3ad8 0
[   11.821600] [5822bc34] CMD  37 0
[   11.824838] [5822bc35] REQ> 8fb3ad8 0
[   11.828512] [5822bc41] TSK< 8fb3ad8 0
[   11.832187] [5822bc47] TSK> 8fb3ad8 0
[   11.835861] [5822bc57] REQ< 8fb3c28 10800
[   11.839882] [5822bc58] CMD< 29 0
[   11.843121] [5822bc5a] FCM< 8fb3c28 8fb3cf8
[   11.847317] [5822bd71] RSP  40ff8000 0
[   11.851078] [5822bd77] FCM> 8fb3c28 0
[   11.854752] [5822bd78] CMD  29 0
[   11.857990] [5822bd78] REQ> 8fb3c28 0
[   11.861663] [5822bd85] TSK< 8fb3c28 0
[   11.865336] [5822bd8b] TSK> 8fb3c28 0
[   11.869009] [5822bd9e] IOS< 61a80 0
[   11.872508] [5822c2a0] REQ< 8fb3b58 10800
[   11.876530] [5822c2a1] CMD< 0 0
[   11.879683] [5822c2a3] FCM< 8fb3b58 8fb3c18
[   11.883878] [5822c355] FCM> 8fb3b58 0
[   11.887552] [5822c356] CMD  0 0
[   11.890705] [5822c356] REQ> 8fb3b58 0
[   11.894379] [5822c363] TSK< 8fb3b58 0
[   11.898053] [5822c369] TSK> 8fb3b58 0
[   11.901727] [5822cfb1] IOS< 61a80 0
[   11.905226] [5822d4b6] REQ< 8fb3b68 10800
[   11.909247] [5822d4b7] CMD< 8 1aa
[   11.912574] [5822d4ba] FCM< 8fb3b68 8fb3c18
[   11.916769] [5822d5ed] RSP  1aa 0
[   11.920095] [5822d5f3] FCM> 8fb3b68 0
[   11.923768] [5822d5f3] CMD  8 0
[   11.926919] [5822d5f4] REQ> 8fb3b68 0
[   11.930592] [5822d601] TSK< 8fb3b68 0
[   11.934265] [5822d607] TSK> 8fb3b68 0
[   11.937939] [5822d619] REQ< 8fb39f8 10800
[   11.941960] [5822d61a] CMD< 37 0
[   11.945199] [5822d61c] FCM< 8fb39f8 8fb3ab8
[   11.949394] [5822d74a] RSP  120 0
[   11.952720] [5822d750] FCM> 8fb39f8 0
[   11.956394] [5822d751] CMD  37 0
[   11.959632] [5822d751] REQ> 8fb39f8 0
[   11.963305] [5822d75e] TSK< 8fb39f8 0
[   11.966978] [5822d764] TSK> 8fb39f8 0
[   11.970651] [5822d774] REQ< 8fb3b48 10800
[   11.974673] [5822d775] CMD< 29 40200000
[   11.978520] [5822d778] FCM< 8fb3b48 8fb3c18
[   11.982715] [5822d88c] RSP  40ff8000 0
[   11.986475] [5822d892] FCM> 8fb3b48 0
[   11.990148] [5822d893] CMD  29 0
[   11.993388] [5822d894] REQ> 8fb3b48 0
[   11.997062] [5822d8a0] TSK< 8fb3b48 0
[   12.000736] [5822d8a6] TSK> 8fb3b48 0
[   12.004409] [582309a6] REQ< 8fb39f8 10800
[   12.008430] [582309a7] CMD< 37 0
[   12.011668] [582309aa] FCM< 8fb39f8 8fb3ab8
[   12.015863] [58230ae0] RSP  120 0
[   12.019189] [58230ae7] FCM> 8fb39f8 0
[   12.022862] [58230ae8] CMD  37 0
[   12.026100] [58230ae8] REQ> 8fb39f8 0
[   12.029774] [58230af5] TSK< 8fb39f8 0
[   12.033449] [58230afb] TSK> 8fb39f8 0
[   12.037123] [58230b0c] REQ< 8fb3b48 10800
[   12.041144] [58230b0d] CMD< 29 40200000
[   12.044991] [58230b0f] FCM< 8fb3b48 8fb3c18
[   12.049186] [58230c3e] RSP  40ff8000 0
[   12.052947] [58230c44] FCM> 8fb3b48 0
[   12.056619] [58230c45] CMD  29 0
[   12.059858] [58230c45] REQ> 8fb3b48 0
[   12.063531] [58230c52] TSK< 8fb3b48 0
[   12.067205] [58230c57] TSK> 8fb3b48 0
[   12.070878] [58233d5b] REQ< 8fb39f8 10800
[   12.074900] [58233d5c] CMD< 37 0
[   12.078139] [58233d5f] FCM< 8fb39f8 8fb3ab8
[   12.082335] [58233e8f] RSP  120 0
[   12.085660] [58233e95] FCM> 8fb39f8 0
[   12.089332] [58233e95] CMD  37 0
[   12.092572] [58233e96] REQ> 8fb39f8 0
[   12.096246] [58233ea3] TSK< 8fb39f8 0
[   12.099920] [58233ea8] TSK> 8fb39f8 0
[   12.103594] [58233eb9] REQ< 8fb3b48 10800
[   12.107615] [58233eb9] CMD< 29 40200000
[   12.111463] [58233ebc] FCM< 8fb3b48 8fb3c18
[   12.115658] [58233ff2] RSP  40ff8000 0
[   12.119419] [58233ff7] FCM> 8fb3b48 0
[   12.123093] [58233ff8] CMD  29 0
[   12.126331] [58233ff9] REQ> 8fb3b48 0
[   12.130005] [58234005] TSK< 8fb3b48 0
[   12.133679] [5823400b] TSK> 8fb3b48 0
[   12.137353] [58237110] REQ< 8fb39f8 10800
[   12.141374] [58237110] CMD< 37 0
[   12.144614] [58237113] FCM< 8fb39f8 8fb3ab8
[   12.148809] [58237244] RSP  120 0
[   12.152134] [5823724a] FCM> 8fb39f8 0
[   12.155807] [5823724a] CMD  37 0
[   12.159046] [5823724b] REQ> 8fb39f8 0
[   12.162720] [58237258] TSK< 8fb39f8 0
[   12.166394] [5823725d] TSK> 8fb39f8 0
[   12.170068] [5823726d] REQ< 8fb3b48 10800
[   12.174089] [5823726e] CMD< 29 40200000
[   12.177937] [58237271] FCM< 8fb3b48 8fb3c18
[   12.182132] [58237384] RSP  c0ff8000 0
[   12.185893] [58237389] FCM> 8fb3b48 0
[   12.189567] [5823738a] CMD  29 0
[   12.192806] [5823738b] REQ> 8fb3b48 0
[   12.196479] [58237397] TSK< 8fb3b48 0
[   12.200152] [5823739d] TSK> 8fb3b48 0
[   12.203825] [582373ae] REQ< 8fb3b18 10800
[   12.207846] [582373af] CMD< 2 0
[   12.210997] [582373b2] FCM< 8fb3b18 8fb3be8
[   12.215194] [582375b6] RSP  3534453 53333247
[   12.219477] [582375bc] FCM> 8fb3b18 0
[   12.223152] [582375bc] CMD  2 0
[   12.226305] [582375bd] REQ> 8fb3b18 0
[   12.229979] [582375ca] TSK< 8fb3b18 0
[   12.233653] [582375cf] TSK> 8fb3b18 0
[   12.237327] [582375e9] REQ< 8fb3bb8 10800
[   12.241348] [582375e9] CMD< 3 0
[   12.244500] [582375ec] FCM< 8fb3bb8 8fb3c78
[   12.248695] [58237721] RSP  aaaa0520 0
[   12.252456] [58237726] FCM> 8fb3bb8 0
[   12.256130] [58237727] CMD  3 0
[   12.259283] [58237728] REQ> 8fb3bb8 0
[   12.262957] [58237734] TSK< 8fb3bb8 0
[   12.266631] [5823773a] TSK> 8fb3bb8 0
[   12.270305] [5823774c] REQ< 8fb3b58 10800
[   12.274326] [5823774d] CMD< 9 aaaa0000
[   12.278087] [58237750] FCM< 8fb3b58 8fb3c28
[   12.282282] [58237953] RSP  400e0032 5b590000
[   12.286651] [58237959] FCM> 8fb3b58 0
[   12.290324] [58237959] CMD  9 0
[   12.293475] [5823795a] REQ> 8fb3b58 0
[   12.297149] [58237966] TSK< 8fb3b58 0
[   12.300823] [5823796c] TSK> 8fb3b58 0
[   12.304497] [58237980] REQ< 8fb3bc8 10800
[   12.308519] [58237981] CMD< 7 aaaa0000
[   12.312279] [58237983] FCM< 8fb3bc8 8fb3c78
[   12.316473] [58237ab2] RSP  700 0
[   12.319799] [58237ab7] FCM> 8fb3bc8 0
[   12.323473] [58237ab8] CMD  7 0
[   12.326624] [58237ab9] REQ> 8fb3bc8 0
[   12.330297] [58237ac5] TSK< 8fb3bc8 0
[   12.333970] [58237acb] TSK> 8fb3bc8 0
[   12.337643] [58237adc] REQ< 8fb3a28 10801
[   12.341664] [58237add] CMD< 37 aaaa0000
[   12.345511] [58237ae0] FCM< 8fb3a28 8fb3ae8
[   12.349706] [58237c0e] RSP  920 0
[   12.353033] [58237c13] FCM> 8fb3a28 0
[   12.356708] [58237c14] CMD  37 0
[   12.359946] [58237c15] REQ> 8fb3a28 0
[   12.363619] [58237c22] TSK< 8fb3a28 0
[   12.367294] [58237c27] TSK> 8fb3a28 0
[   12.370967] [58237c3a] REQ< 8fb3c08 10801
[   12.374989] [58237c3b] CMD< 33 0
[   12.378228] [58237c3e] CMDD 1 8
[   12.381379] [58237c3f] FCM< 8fb3c08 8fb3bc8
[   12.385574] [58237d6d] RSP  920 0
[   12.388900] [58237d6d] FCM> 8fb3c08 0
[   12.392574] [58237d6e] CMD  33 8
[   12.395813] [58237d6f] REQ> 8fb3c08 0
[   12.399487] [9823868e] IRQ< 1 0
[   12.402638] [9823868f] IRQD 8fb3b80 1
[   12.406311] [98238691] XFP< 8fb3b80 1
[   12.409984] [98238696] XFP> 8fb3b80 1
[   12.413658] [98238697] FDA< 8fb3c08 0
[   12.417331] [98238699] TCM< 8fb3b80 0
[   12.421004] [9823869a] WTC< 10801 0
[   12.424503] [9823869b] WTC> 10801 0
[   12.428002] [9823869d] TCM> 8fb3b80 0
[   12.431675] [9823869e] FDA> 8fb3c08 0
[   12.435348] [9823869e] IRQ> 0 0
[   12.438500] [982386a6] TSK< 8fb3c08 0
[   12.442174] [982386b2] TSK> 8fb3c08 0
[   12.445849] [58238dbb] REQ< 8fb3a28 10801
[   12.449870] [58238dbc] CMD< 37 aaaa0000
[   12.453717] [58238dbe] FCM< 8fb3a28 8fb3ae8
[   12.457912] [58238ed3] RSP  920 0
[   12.461238] [58238ed8] FCM> 8fb3a28 0
[   12.464912] [58238ed9] CMD  37 0
[   12.468150] [58238eda] REQ> 8fb3a28 0
[   12.471824] [58238ee7] TSK< 8fb3a28 0
[   12.475497] [58238eec] TSK> 8fb3a28 0
[   12.479170] [58238efd] REQ< 8fb3c08 10801
[   12.483191] [58238efe] CMD< d 0
[   12.486341] [58238f01] CMDD 1 40
[   12.489582] [58238f02] FCM< 8fb3c08 8fb3bc8
[   12.493777] [58239030] RSP  920 0
[   12.497102] [58239030] FCM> 8fb3c08 0
[   12.500775] [58239031] CMD  d 40
[   12.504013] [58239032] REQ> 8fb3c08 0
[   12.507686] [182392a4] IRQ< 1 0
[   12.510838] [182392a5] IRQD 8fb3b80 1
[   12.514511] [182392a6] XFP< 8fb3b80 1
[   12.518187] [18239670] XFP> 8fb3b80 1
[   12.521861] [18239670] FDA< 8fb3c08 0
[   12.525535] [18239671] TCM< 8fb3b80 0
[   12.529208] [18239672] WTC< 10805 0
[   12.532708] [1823969e] WTC> 10801 0
[   12.536206] [1823969f] TCM> 8fb3b80 0
[   12.539880] [182396a0] FDA> 8fb3c08 0
[   12.543553] [182396a0] IRQ> 0 0
[   12.546705] [182396bb] TSK< 8fb3c08 0
[   12.550379] [182396c7] TSK> 8fb3c08 0
[   12.554053] [582396df] REQ< 8fb3bd8 10801
[   12.558075] [582396e0] CMD< 6 fffff0
[   12.561661] [582396e3] CMDD 1 40
[   12.564901] [582396e4] FCM< 8fb3bd8 8fb3b98
[   12.569095] [58239812] RSP  900 0
[   12.572421] [58239813] FCM> 8fb3bd8 0
[   12.576093] [58239814] CMD  6 40
[   12.579332] [58239814] REQ> 8fb3bd8 0
[   12.583004] [58239c77] IRQ< 1 0
[   12.586157] [58239c77] IRQD 8fb3b50 1
[   12.589831] [58239c78] XFP< 8fb3b50 1
[   12.593505] [5823a03b] XFP> 8fb3b50 1
[   12.597179] [5823a03c] FDA< 8fb3bd8 0
[   12.600853] [5823a03d] TCM< 8fb3b50 0
[   12.604527] [5823a03e] WTC< 10805 0
[   12.608026] [5823a06c] WTC> 10801 0
[   12.611525] [5823a06e] TCM> 8fb3b50 0
[   12.615198] [5823a06e] FDA> 8fb3bd8 0
[   12.618871] [5823a06f] IRQ> 0 0
[   12.622024] [5823a082] TSK< 8fb3bd8 0
[   12.625698] [5823a08b] TSK> 8fb3bd8 0
[   12.629372] [5823c065] IOS< 17d7840 0
[   12.633046] [5823f2af] PRD< 352b7470 0
[   12.636806] [5823f2b1] PRD1 358f0c80 0
[   12.640566] [5823f2bb] PRD2 1 0
[   12.643717] [5823f97a] PRD3 351d2608 0
[   12.647477] [5823f97c] PDM> 352b7470 0
[   12.651238] [5823f97f] REQ< 352b7330 10801
[   12.655346] [5823f981] CMD< 12 0
[   12.658586] [5823f985] CMDD 8 200
[   12.661911] [5823f986] SDMA 352b7470 358f0c80
[   12.666280] [5823f989] FCM< 352b7330 352b73f0
[   12.670649] [5823f98d] RSP  900 0
[   12.673975] [5823f98d] FCM> 352b7330 0
[   12.677735] [5823f98f] CMD  12 200
[   12.681147] [5823f98f] REQ> 352b7330 0
[   12.684907] [58bcf392] TIM< 0 0
[   12.688063] mmc0: cmd op 18 arg 0x0 flags 0xb5 - resp 00000900 00000000 00000000 00000000, err 0
[   12.696870] mmc0: data blocks 8 blksz 200 - err 0
[   12.701591] mmc0: stop op 12 arg 0x0 flags 0x95 - resp 00000000 00000000 00000000 00000000, err 0
[   12.710484] mmc0: =========== REGISTER DUMP ===========
[   12.715721] mmc0: SDCMD  0x00000052
[   12.719218] mmc0: SDARG  0x00000000
[   12.722715] mmc0: SDTOUT 0x00bebc20
[   12.726212] mmc0: SDCDIV 0x00000008
[   12.729710] mmc0: SDRSP0 0x00000900
[   12.733207] mmc0: SDRSP1 0x00001269
[   12.736705] mmc0: SDRSP2 0x7fffffff
[   12.740202] mmc0: SDRSP3 0x00024037
[   12.743699] mmc0: SDHSTS 0x00000001
[   12.747196] mmc0: SDVDD  0x00000001
[   12.750693] mmc0: SDEDM  0x00010902
[   12.754190] mmc0: SDHCFG 0x0000040a
[   12.757687] mmc0: SDHBCT 0x000001c0
[   12.761184] mmc0: SDHBLC 0x00000008
[   12.764680] mmc0: ===========================================
[   23.010365] mmc0: timeout waiting for hardware interrupt.
[   23.015787] [5822c2a1] CMD< 0 0
[   23.018939] [5822c2a3] FCM< 8fb3b58 8fb3c18
[   23.023135] [5822c355] FCM> 8fb3b58 0
[   23.026808] [5822c356] CMD  0 0
[   23.029959] [5822c356] REQ> 8fb3b58 0
[   23.033633] [5822c363] TSK< 8fb3b58 0
[   23.037306] [5822c369] TSK> 8fb3b58 0
[   23.040979] [5822cfb1] IOS< 61a80 0
[   23.044479] [5822d4b6] REQ< 8fb3b68 10800
[   23.048501] [5822d4b7] CMD< 8 1aa
[   23.051826] [5822d4ba] FCM< 8fb3b68 8fb3c18
[   23.056023] [5822d5ed] RSP  1aa 0
[   23.059348] [5822d5f3] FCM> 8fb3b68 0
[   23.063021] [5822d5f3] CMD  8 0
[   23.066175] [5822d5f4] REQ> 8fb3b68 0
[   23.069849] [5822d601] TSK< 8fb3b68 0
[   23.073523] [5822d607] TSK> 8fb3b68 0
[   23.077197] [5822d619] REQ< 8fb39f8 10800
[   23.081218] [5822d61a] CMD< 37 0
[   23.084456] [5822d61c] FCM< 8fb39f8 8fb3ab8
[   23.088651] [5822d74a] RSP  120 0
[   23.091977] [5822d750] FCM> 8fb39f8 0
[   23.095650] [5822d751] CMD  37 0
[   23.098889] [5822d751] REQ> 8fb39f8 0
[   23.102562] [5822d75e] TSK< 8fb39f8 0
[   23.106235] [5822d764] TSK> 8fb39f8 0
[   23.109908] [5822d774] REQ< 8fb3b48 10800
[   23.113930] [5822d775] CMD< 29 40200000
[   23.117777] [5822d778] FCM< 8fb3b48 8fb3c18
[   23.121972] [5822d88c] RSP  40ff8000 0
[   23.125732] [5822d892] FCM> 8fb3b48 0
[   23.129405] [5822d893] CMD  29 0
[   23.132645] [5822d894] REQ> 8fb3b48 0
[   23.136320] [5822d8a0] TSK< 8fb3b48 0
[   23.139994] [5822d8a6] TSK> 8fb3b48 0
[   23.143668] [582309a6] REQ< 8fb39f8 10800
[   23.147689] [582309a7] CMD< 37 0
[   23.150927] [582309aa] FCM< 8fb39f8 8fb3ab8
[   23.155123] [58230ae0] RSP  120 0
[   23.158448] [58230ae7] FCM> 8fb39f8 0
[   23.162121] [58230ae8] CMD  37 0
[   23.165360] [58230ae8] REQ> 8fb39f8 0
[   23.169034] [58230af5] TSK< 8fb39f8 0
[   23.172708] [58230afb] TSK> 8fb39f8 0
[   23.176382] [58230b0c] REQ< 8fb3b48 10800
[   23.180403] [58230b0d] CMD< 29 40200000
[   23.184251] [58230b0f] FCM< 8fb3b48 8fb3c18
[   23.188446] [58230c3e] RSP  40ff8000 0
[   23.192206] [58230c44] FCM> 8fb3b48 0
[   23.195880] [58230c45] CMD  29 0
[   23.199120] [58230c45] REQ> 8fb3b48 0
[   23.202794] [58230c52] TSK< 8fb3b48 0
[   23.206468] [58230c57] TSK> 8fb3b48 0
[   23.210142] [58233d5b] REQ< 8fb39f8 10800
[   23.214163] [58233d5c] CMD< 37 0
[   23.217402] [58233d5f] FCM< 8fb39f8 8fb3ab8
[   23.221598] [58233e8f] RSP  120 0
[   23.224924] [58233e95] FCM> 8fb39f8 0
[   23.228597] [58233e95] CMD  37 0
[   23.231836] [58233e96] REQ> 8fb39f8 0
[   23.235509] [58233ea3] TSK< 8fb39f8 0
[   23.239182] [58233ea8] TSK> 8fb39f8 0
[   23.242856] [58233eb9] REQ< 8fb3b48 10800
[   23.246878] [58233eb9] CMD< 29 40200000
[   23.250725] [58233ebc] FCM< 8fb3b48 8fb3c18
[   23.254920] [58233ff2] RSP  40ff8000 0
[   23.258681] [58233ff7] FCM> 8fb3b48 0
[   23.262354] [58233ff8] CMD  29 0
[   23.265594] [58233ff9] REQ> 8fb3b48 0
[   23.269268] [58234005] TSK< 8fb3b48 0
[   23.272942] [5823400b] TSK> 8fb3b48 0
[   23.276616] [58237110] REQ< 8fb39f8 10800
[   23.280641] [58237110] CMD< 37 0
[   23.283879] [58237113] FCM< 8fb39f8 8fb3ab8
[   23.288074] [58237244] RSP  120 0
[   23.291401] [5823724a] FCM> 8fb39f8 0
[   23.295075] [5823724a] CMD  37 0
[   23.298313] [5823724b] REQ> 8fb39f8 0
[   23.301987] [58237258] TSK< 8fb39f8 0
[   23.305660] [5823725d] TSK> 8fb39f8 0
[   23.309333] [5823726d] REQ< 8fb3b48 10800
[   23.313357] [5823726e] CMD< 29 40200000
[   23.317204] [58237271] FCM< 8fb3b48 8fb3c18
[   23.321401] [58237384] RSP  c0ff8000 0
[   23.325162] [58237389] FCM> 8fb3b48 0
[   23.328835] [5823738a] CMD  29 0
[   23.332074] [5823738b] REQ> 8fb3b48 0
[   23.335747] [58237397] TSK< 8fb3b48 0
[   23.339420] [5823739d] TSK> 8fb3b48 0
[   23.343094] [582373ae] REQ< 8fb3b18 10800
[   23.347115] [582373af] CMD< 2 0
[   23.350266] [582373b2] FCM< 8fb3b18 8fb3be8
[   23.354461] [582375b6] RSP  3534453 53333247
[   23.358743] [582375bc] FCM> 8fb3b18 0
[   23.362416] [582375bc] CMD  2 0
[   23.365567] [582375bd] REQ> 8fb3b18 0
[   23.369241] [582375ca] TSK< 8fb3b18 0
[   23.372915] [582375cf] TSK> 8fb3b18 0
[   23.376590] [582375e9] REQ< 8fb3bb8 10800
[   23.380611] [582375e9] CMD< 3 0
[   23.383762] [582375ec] FCM< 8fb3bb8 8fb3c78
[   23.387957] [58237721] RSP  aaaa0520 0
[   23.391717] [58237726] FCM> 8fb3bb8 0
[   23.395390] [58237727] CMD  3 0
[   23.398542] [58237728] REQ> 8fb3bb8 0
[   23.402216] [58237734] TSK< 8fb3bb8 0
[   23.405890] [5823773a] TSK> 8fb3bb8 0
[   23.409564] [5823774c] REQ< 8fb3b58 10800
[   23.413586] [5823774d] CMD< 9 aaaa0000
[   23.417346] [58237750] FCM< 8fb3b58 8fb3c28
[   23.421541] [58237953] RSP  400e0032 5b590000
[   23.425910] [58237959] FCM> 8fb3b58 0
[   23.429583] [58237959] CMD  9 0
[   23.432735] [5823795a] REQ> 8fb3b58 0
[   23.436409] [58237966] TSK< 8fb3b58 0
[   23.440083] [5823796c] TSK> 8fb3b58 0
[   23.443757] [58237980] REQ< 8fb3bc8 10800
[   23.447778] [58237981] CMD< 7 aaaa0000
[   23.451538] [58237983] FCM< 8fb3bc8 8fb3c78
[   23.455733] [58237ab2] RSP  700 0
[   23.459060] [58237ab7] FCM> 8fb3bc8 0
[   23.462734] [58237ab8] CMD  7 0
[   23.465885] [58237ab9] REQ> 8fb3bc8 0
[   23.469559] [58237ac5] TSK< 8fb3bc8 0
[   23.473232] [58237acb] TSK> 8fb3bc8 0
[   23.476905] [58237adc] REQ< 8fb3a28 10801
[   23.480926] [58237add] CMD< 37 aaaa0000
[   23.484773] [58237ae0] FCM< 8fb3a28 8fb3ae8
[   23.488968] [58237c0e] RSP  920 0
[   23.492294] [58237c13] FCM> 8fb3a28 0
[   23.495967] [58237c14] CMD  37 0
[   23.499205] [58237c15] REQ> 8fb3a28 0
[   23.502879] [58237c22] TSK< 8fb3a28 0
[   23.506552] [58237c27] TSK> 8fb3a28 0
[   23.510226] [58237c3a] REQ< 8fb3c08 10801
[   23.514247] [58237c3b] CMD< 33 0
[   23.517485] [58237c3e] CMDD 1 8
[   23.520636] [58237c3f] FCM< 8fb3c08 8fb3bc8
[   23.524831] [58237d6d] RSP  920 0
[   23.528157] [58237d6d] FCM> 8fb3c08 0
[   23.531831] [58237d6e] CMD  33 8
[   23.535069] [58237d6f] REQ> 8fb3c08 0
[   23.538742] [9823868e] IRQ< 1 0
[   23.541893] [9823868f] IRQD 8fb3b80 1
[   23.545567] [98238691] XFP< 8fb3b80 1
[   23.549241] [98238696] XFP> 8fb3b80 1
[   23.552915] [98238697] FDA< 8fb3c08 0
[   23.556589] [98238699] TCM< 8fb3b80 0
[   23.560264] [9823869a] WTC< 10801 0
[   23.563762] [9823869b] WTC> 10801 0
[   23.567261] [9823869d] TCM> 8fb3b80 0
[   23.570935] [9823869e] FDA> 8fb3c08 0
[   23.574608] [9823869e] IRQ> 0 0
[   23.577759] [982386a6] TSK< 8fb3c08 0
[   23.581434] [982386b2] TSK> 8fb3c08 0
[   23.585108] [58238dbb] REQ< 8fb3a28 10801
[   23.589130] [58238dbc] CMD< 37 aaaa0000
[   23.592977] [58238dbe] FCM< 8fb3a28 8fb3ae8
[   23.597172] [58238ed3] RSP  920 0
[   23.600498] [58238ed8] FCM> 8fb3a28 0
[   23.604172] [58238ed9] CMD  37 0
[   23.607410] [58238eda] REQ> 8fb3a28 0
[   23.611083] [58238ee7] TSK< 8fb3a28 0
[   23.614756] [58238eec] TSK> 8fb3a28 0
[   23.618429] [58238efd] REQ< 8fb3c08 10801
[   23.622452] [58238efe] CMD< d 0
[   23.625603] [58238f01] CMDD 1 40
[   23.628841] [58238f02] FCM< 8fb3c08 8fb3bc8
[   23.633036] [58239030] RSP  920 0
[   23.636363] [58239030] FCM> 8fb3c08 0
[   23.640038] [58239031] CMD  d 40
[   23.643277] [58239032] REQ> 8fb3c08 0
[   23.646949] [182392a4] IRQ< 1 0
[   23.650100] [182392a5] IRQD 8fb3b80 1
[   23.653774] [182392a6] XFP< 8fb3b80 1
[   23.657448] [18239670] XFP> 8fb3b80 1
[   23.661123] [18239670] FDA< 8fb3c08 0
[   23.664797] [18239671] TCM< 8fb3b80 0
[   23.668471] [18239672] WTC< 10805 0
[   23.671970] [1823969e] WTC> 10801 0
[   23.675469] [1823969f] TCM> 8fb3b80 0
[   23.679142] [182396a0] FDA> 8fb3c08 0
[   23.682815] [182396a0] IRQ> 0 0
[   23.685967] [182396bb] TSK< 8fb3c08 0
[   23.689641] [182396c7] TSK> 8fb3c08 0
[   23.693315] [582396df] REQ< 8fb3bd8 10801
[   23.697336] [582396e0] CMD< 6 fffff0
[   23.700922] [582396e3] CMDD 1 40
[   23.704160] [582396e4] FCM< 8fb3bd8 8fb3b98
[   23.708355] [58239812] RSP  900 0
[   23.711682] [58239813] FCM> 8fb3bd8 0
[   23.715357] [58239814] CMD  6 40
[   23.718595] [58239814] REQ> 8fb3bd8 0
[   23.722268] [58239c77] IRQ< 1 0
[   23.725419] [58239c77] IRQD 8fb3b50 1
[   23.729093] [58239c78] XFP< 8fb3b50 1
[   23.732767] [5823a03b] XFP> 8fb3b50 1
[   23.736441] [5823a03c] FDA< 8fb3bd8 0
[   23.740115] [5823a03d] TCM< 8fb3b50 0
[   23.743789] [5823a03e] WTC< 10805 0
[   23.747288] [5823a06c] WTC> 10801 0
[   23.750787] [5823a06e] TCM> 8fb3b50 0
[   23.754461] [5823a06e] FDA> 8fb3bd8 0
[   23.758134] [5823a06f] IRQ> 0 0
[   23.761286] [5823a082] TSK< 8fb3bd8 0
[   23.764960] [5823a08b] TSK> 8fb3bd8 0
[   23.768634] [5823c065] IOS< 17d7840 0
[   23.772308] [5823f2af] PRD< 352b7470 0
[   23.776068] [5823f2b1] PRD1 358f0c80 0
[   23.779829] [5823f2bb] PRD2 1 0
[   23.782980] [5823f97a] PRD3 351d2608 0
[   23.786741] [5823f97c] PDM> 352b7470 0
[   23.790501] [5823f97f] REQ< 352b7330 10801
[   23.794609] [5823f981] CMD< 12 0
[   23.797847] [5823f985] CMDD 8 200
[   23.801172] [5823f986] SDMA 352b7470 358f0c80
[   23.805541] [5823f989] FCM< 352b7330 352b73f0
[   23.809910] [5823f98d] RSP  900 0
[   23.813235] [5823f98d] FCM> 352b7330 0
[   23.816995] [5823f98f] CMD  12 200
[   23.820409] [5823f98f] REQ> 352b7330 0
[   23.824168] [58bcf392] TIM< 0 0
[   23.827319] [58cc93df] FDA< 352b7330 0
[   23.831079] [58cc93e0] TCM< 352b7470 ffffff92
[   23.835448] [58cc93e1] CMD< c 0
[   23.838601] [58cc93e5] FCM< 352b7330 352b7430
[   23.842971] [58cc93ea] RSP  b00 0
[   23.846297] [58cc93eb] FCM> 352b7330 352b7430
[   23.850666] [58cc93ed] TCM> 352b7470 0
[   23.854427] [58cc93ee] FDA> 352b7330 352b7430
[   23.858796] [58cc9423] TSK< 352b7330 0
[   23.862557] [58cc9438] TSK> 352b7330 0
[   23.866317] [58cc944d] REQ< 8f2bbb8 10801
[   23.870339] [58cc944e] CMD< d aaaa0000
[   23.874100] [58cc9451] FCM< 8f2bbb8 8f2bc78
[   23.878295] [58cc9455] RSP  900 0
[   23.881620] [58cc945b] FCM> 8f2bbb8 0
[   23.885294] [58cc945c] CMD  d 0
[   23.888445] [58cc945d] REQ> 8f2bbb8 0
[   23.892118] [58cc946e] TSK< 8f2bbb8 0
[   23.895791] [58cc9478] TSK> 8f2bbb8 0
[   23.899464] [58cc94d7] PRD< 352b7470 0
[   23.903226] [58cc94d9] PRD1 358f0c80 0
[   23.906986] [58cc94de] PRD2 1 0
[   23.910138] [58cc94e8] PRD3 351d2708 0
[   23.913899] [58cc94ea] PDM> 352b7470 0
[   23.917659] [58cc94ed] REQ< 352b7330 10801
[   23.921766] [58cc94ee] CMD< 12 0
[   23.925004] [58cc94f1] CMDD 8 200
[   23.928330] [58cc94f1] SDMA 352b7470 358f0c80
[   23.932699] [58cc94f3] FCM< 352b7330 352b73f0
[   23.937067] [58cc94f7] RSP  900 0
[   23.940394] [58cc94f7] FCM> 352b7330 0
[   23.944154] [58cc94f8] CMD  12 200
[   23.947566] [58cc94f9] REQ> 352b7330 0
[   23.951327] [5968d3ad] TIM< 0 0
[   23.954482] mmc0: cmd op 18 arg 0x0 flags 0xb5 - resp 00000900 00000000 00000000 00000000, err 0
[   23.963289] mmc0: data blocks 8 blksz 200 - err 0
[   23.968009] mmc0: stop op 12 arg 0x0 flags 0x95 - resp 00000000 00000000 00000000 00000000, err 0
[   23.976902] mmc0: =========== REGISTER DUMP ===========
[   23.982140] mmc0: SDCMD  0x00000052
[   23.985636] mmc0: SDARG  0x00000000
[   23.989134] mmc0: SDTOUT 0x00bebc20
[   23.992630] mmc0: SDCDIV 0x00000008
[   23.996127] mmc0: SDRSP0 0x00000900
[   23.999624] mmc0: SDRSP1 0x00001269
[   24.003121] mmc0: SDRSP2 0xffffffff
[   24.006618] mmc0: SDRSP3 0x0002400f
[   24.010114] mmc0: SDHSTS 0x00000001
[   24.013611] mmc0: SDVDD  0x00000001
[   24.017108] mmc0: SDEDM  0x00010902
[   24.020605] mmc0: SDHCFG 0x0000040a
[   24.024102] mmc0: SDHBCT 0x000001c0
[   24.027598] mmc0: SDHBLC 0x00000008
[   24.031095] mmc0: ===========================================
[   24.120651] raspberrypi-firmware soc:firmware: Request 0x00028001 returned status 0x01000080
[   24.131874] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
[   24.139879] Please append a correct "root=" boot option; here are the available partitions:
[   24.148309] 0100            4096 ram0 
[   24.148321]  (driver?)
[   24.154549] 0101            4096 ram1 
[   24.154561]  (driver?)
[   24.160810] 0102            4096 ram2 
[   24.160822]  (driver?)
[   24.167009] 0103            4096 ram3 
[   24.167020]  (driver?)
[   24.173207] 0104            4096 ram4 
[   24.173218]  (driver?)
[   24.179405] 0105            4096 ram5 
[   24.179416]  (driver?)
[   24.185604] 0106            4096 ram6 
[   24.185615]  (driver?)
[   24.191801] 0107            4096 ram7 
[   24.191814]  (driver?)
[   24.198001] 0108            4096 ram8 
[   24.198012]  (driver?)
[   24.204197] 0109            4096 ram9 
[   24.204208]  (driver?)
[   24.210394] 010a            4096 ram10 
[   24.210406]  (driver?)
[   24.216679] 010b            4096 ram11 
[   24.216690]  (driver?)
[   24.222963] 010c            4096 ram12 
[   24.222975]  (driver?)
[   24.229247] 010d            4096 ram13 
[   24.229258]  (driver?)
[   24.235531] 010e            4096 ram14 
[   24.235542]  (driver?)
[   24.241813] 010f            4096 ram15 
[   24.241825]  (driver?)
[   24.248117] b300        31166976 mmcblk0 
[   24.248129]  driver: mmcblk
[   24.255011] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[   24.263479] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.27-v8+ #1
[   24.269848] Hardware name: Raspberry Pi 3 Model B (DT)
[   24.275000] Call trace:
[   24.277470]  dump_backtrace+0x0/0x190
[   24.281148]  show_stack+0x24/0x30
[   24.284480]  dump_stack+0x9c/0xd4
[   24.287808]  panic+0x12c/0x28c
[   24.290878]  mount_block_root+0x1b0/0x294
[   24.294902]  mount_root+0x148/0x17c
[   24.298406]  prepare_namespace+0x174/0x1bc
[   24.302517]  kernel_init_freeable+0x370/0x390
[   24.306889]  kernel_init+0x18/0x110
[   24.310390]  ret_from_fork+0x10/0x1c
[   24.313991] SMP: stopping secondary CPUs
[   24.317933] Kernel Offset: disabled
[   24.321434] CPU features: 0x0,24802004
[   24.325192] Memory Limit: none
[   24.328274] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]---

Here are the steps I did to compile the 4.19.y kernel (natively on a 64-bit little-endian pi):
  • make bcmrpi3_defconfig
  • make nconfig

    in "Kernel Features" I clicked on

    Code: Select all

                [*] Build big-endian kernel
    
  • make -j4 Image V=1
  • make -j4 modules V=1
  • make -j4 dtbs V=1
  • make modules_install
  • make dtbs_install
All the above steps completed without problems.

As next I copied arch/arm64/boot/Image and the bcm2710-rpi-3-b.dtb files to the usual place into /boot/.

Then powering on the pi resulted in nothing (blank screen), i.e. the green LED blinked the pattern

___|_|_|_|____|_|_|_|___ ...

which I interpreted as the standard bootloader not understanding what to do with "kernel8.img".

To continue I renamed kernel8.img into kernel8_be.img, bcm2710-rpi-3-b.dtb into bcm2710-rpi-3-b_be.dtb, copied u-boot.img into kernel8.img and powered the pi on again, booted the big-endian kernel manually and then the logs above appeared onto remote kermit-connected UART console.

As a note, to verify raspberry-pi's big-endian support I updated few bzt's bare-metal tutorial examples into big-endian and they all work fine, so the kernel panic above at first sight seems to be only due to some firmware blob or whatever which either cannot be found or is not compatible. Unfortunately if I disable firmware support in 'make nconfig', then the kernel doesn't even get that far, the above log file doesn't show anything after "Starting kernel ...".

It is true that arm big-endian support in linux kernel and gcc is quite solid, and even on raspberry pi we get all the cores up and running, but it looks like there are few minor issues which are hardly raspberry or broadcom closed-source-related:
  • The standard bootloader refuses to load kernel8.img if it appears to be big-endian linux kernel (its apparently no problem to load a big-endian bare-metal binary). According to "linux/Documentation/arm64/booting.txt" the big-endian kernel image I tried has this header:

    Code: Select all

        code0 = 0xFFFFC000
        code1 = 0x00000000
        text_offset = 0x0000000000080000
        image_size  = 0xFFFFFFFFFFFF8000
        flags = 0x000000000000000B
        res2  = 0x0000000000000000
        res3  = 0x0000000000000000
        res4  = 0x0000000000000000
        magic = 0x644D5241
        res5  = 0x00000000
    
    Is this correct?
  • The firmware dependencies: how to get rid of them? For the curious it is enough to run linux in a minimalistic mode, only supporting hardware having open-sourced drivers (mmc, ethernet, etc. etc.). Its no problem not to have proprietary hardware accelerated OpenGL or H264 codec or whatever support. Even without a framebuffer (i.e. working over ethernet or UART-connected console) the pi is a great platform.
Is there any obvious method to complete the boot above? :-)

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: booting big-endian -- Re: 4.19 kernel 64 bit support - please report issues here

Sun Mar 10, 2019 5:06 pm

pxlnpx wrote:
Sun Mar 10, 2019 3:59 pm
Here are the steps I did to compile the 4.19.y kernel (natively on a 64-bit little-endian pi):
  • make bcmrpi3_defconfig
  • make nconfig

    in "Kernel Features" I clicked on

    Code: Select all

                [*] Build big-endian kernel
    
Sorry, big-endian support is not something I'm going to invest time in, and I doubt it has ever worked on any Pi kernel, whether 32 or 64bit.

The GPU is little-endian, and the mailbox service is not set up for mixed endian-ness. That explains the errors such as

Code: Select all

[    0.303956] raspberrypi-firmware soc:firmware: Request 0x00048020 returned status 0x01000080
[    0.304022] brcmvirt-gpio soc:virtgpio: Failed to set gpiovirtbuf, trying to get err:ffffffea
[    0.304160] raspberrypi-firmware soc:firmware: Request 0x00040010 returned status 0x01000080
[    0.304207] brcmvirt-gpio soc:virtgpio: Failed to get gpiovirtbuf
Fix up the raspberrypi-firmware driver to do all the necessary endian conversions and you may have a hope, but as it is you have no frame buffer, nor much power management.
I suspect that the MMC driver is then also not doing correct endian conversions, so whilst the bootloader can load kernel8.img for you, the kernel will then fail when it tries to load modules or configuration. That would then explain the kernel being unable to mount the root file system (the cause of the kernel panic).

What is your real-life use case for switching to big-endian? It seems like setting options for the sake of setting options.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

tanshihaj
Posts: 7
Joined: Mon Jan 14, 2019 11:23 am

Re: 4.19 kernel 64 bit support - please report issues here

Sun Mar 24, 2019 12:29 pm

Hi all,

I have updated linux kernel via rpi-update and installed gstreamer 1.14.4. Now get-inspect-1.0 sees v4l2h264enc as available plugin. Is it enough to use zero-copy video encoding using v4l2 interface or I should compile kernel with some specific flags/configs?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 4.19 kernel 64 bit support - please report issues here

Mon Mar 25, 2019 10:36 am

tanshihaj wrote:
Sun Mar 24, 2019 12:29 pm
Hi all,

I have updated linux kernel via rpi-update and installed gstreamer 1.14.4. Now get-inspect-1.0 sees v4l2h264enc as available plugin. Is it enough to use zero-copy video encoding using v4l2 interface or I should compile kernel with some specific flags/configs?
You've posted on a thread for 64-bit 4.19 kernel support, but have used rpi-update which will get a 32-bit kernel. Please try to keep topics separate. In this case the comments apply equally to both.

No kernel changes required if running 4.19.
Zero copy exactly where? The V4L2 components support dmabufs, but whatever it links to needs to support them too in order for GStreamer not to have to copy the data around.
GStreamer may automatically select dma-bufs if the components support it, but there are manual controls with output-io-mode and capture-io-mode. The terminology sucks here, but comes from the V4L2 level. output-io-mode controls the input to the codec, and capture-io-mode controls the output. 4 is dmabuf export, 5 is dmabuf import.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

horai
Posts: 43
Joined: Fri Apr 21, 2017 2:45 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 11:23 am

Dear all,

I would like to kindly ask you for a help.
I tried to take advantage of hardware acceleration exposed via v4l2 present in kernel 4.19 via Gstreamer according to web page:
https://github.com/sakaki-/gentoo-on-rp ... era-Module

I ran this command:
gst-launch-1.0 -e -vvv filesrc location=test.mkv ! matroskademux ! \
queue ! h264parse ! v4l2h264dec capture-io-mode=4 ! \
glimagesink

But Gstreamer consumes 95% of CPU usage.

The same with:
ffplay -vcodec h264_v4l2m2m -i test.mkv

Could anyone explain me this issue? Is it really hardware accelerated? That all is running on top of X11 with latest Sakaki Gentoo image.

Moreover, according to Sakaki, the OpenGL acceleration is able tto run at this speed mentioned on his webpage:
"On my RPi3 at least, a glxgears score of ~1000fps can be obtained on an unloaded system (~400fps on a loaded desktop) - in the same ballbark as the non-free Raspbian driver. "

Could anyone please give me a hint how to achieve this?

Thank you
Best regards,
Ivo
"

horai
Posts: 43
Joined: Fri Apr 21, 2017 2:45 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 11:36 am

On Raspbian with Gstreamer 1.14.4 or 1.16 compiled. Using v4l2h264dec does not work at all.
Replacing v4l2h264dec with omxh264dec works file.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 12:49 pm

horai wrote:
Sat May 11, 2019 11:36 am
On Raspbian with Gstreamer 1.14.4 or 1.16 compiled. Using v4l2h264dec does not work at all.
Replacing v4l2h264dec with omxh264dec works file.
Raspbian does not use a 64 bit kernel, therefore this thread is totally the wrong place to be reporting any issues.
You also haven't provided the GStreamer pipe that you are trying to use there, and I'm not going to try guessing, nor making a rash assumption that it is the same as your previous post related to Gentoo.

glimagesink support relies significantly on which graphics option you are using, so is it legacy, Fake KMS, or Full KMS?

ffmpeg/ffplay does not work directly as it does some daft things over V4L2 selections. IIRC sakaki added my hacked patches for ffmpeg to Gentoo, but I doubt they are in Raspbian.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

horai
Posts: 43
Joined: Fri Apr 21, 2017 2:45 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 2:43 pm

Ok, do you recommend to start a new thread?

Anyway, I mentioned the pipeline before, so once more:
gst-launch-1.0 -e -vvv filesrc location=test.mkv ! matroskademux ! \
queue ! h264parse ! v4l2h264dec capture-io-mode=4 ! \
glimagesink

I used Raspbian 32 bit version with kernel obtained from rpi-update, compiled my own Gstreamer 1.14.4 as well as 1.16. I guess that one is 32 bit.
It seems to show some kind sign of v4l2 codecs in /dev/video10 /dev/video11 /dev/video12, but Gstreamer reports v4l2h264dec only and I assumed it should be among element list as something like v4l2video10dec.

horai
Posts: 43
Joined: Fri Apr 21, 2017 2:45 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 2:46 pm

In Raspbian I am using KMS, I just triend Gentoo (it uses FKMS) because in Raspbian, I was not able to run the pipeline with v4l2h264dec capture-io-mode=4, only capture-io-mode=2 was possible to run and that is not dmabuf. OMX works fine

horai
Posts: 43
Joined: Fri Apr 21, 2017 2:45 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 3:11 pm

Dear sir,

what do you mean by rash assumption? You mean trying to run something that is clearly written that is working in Gentoo?
64 bit?
This is a Sakaki statement:
"Leveraging recently improved 64-bit support in the official Raspberry Pi kernel tree, the image supports"

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 3:20 pm

horai wrote:
Sat May 11, 2019 2:43 pm
Ok, do you recommend to start a new thread?

Anyway, I mentioned the pipeline before, so once more:
gst-launch-1.0 -e -vvv filesrc location=test.mkv ! matroskademux ! \
queue ! h264parse ! v4l2h264dec capture-io-mode=4 ! \
glimagesink

I used Raspbian 32 bit version with kernel obtained from rpi-update, compiled my own Gstreamer 1.14.4 as well as 1.16. I guess that one is 32 bit.
It seems to show some kind sign of v4l2 codecs in /dev/video10 /dev/video11 /dev/video12, but Gstreamer reports v4l2h264dec only and I assumed it should be among element list as something like v4l2video10dec.
Please start a new thread. I suspect your use of glimagesink is the issue. If using any flavour of KMS then please try only booting to the console and using kmssink instead. GL is almost always a huge overhead.

/dev/video10 is video decode and should support H264, MPEG4, H263, MJPEG, by default, and MPEG2 and VC1 if you've bought the licence.
/dev/video11 is video encode and should support H264 and MJPEG.
/dev/video12 is image conversion (it wraps the ISP component), and supports a large number of input and output formats. GStreamer wraps it to v4l2transform (IIRC)
Post
https://github.com/GStreamer/gst-plugin ... cfca141f8c
https://github.com/GStreamer/gst-plugin ... 3ab41f10ef
https://github.com/GStreamer/gst-plugin ... 5ed8588abd
the first instance of any codec will omit the video node number, so you should get v4l2convert, v4l2h264dec, and v4l2h264enc, etc, unless there are multiple V4L2 M2M devices that can decode that format.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

horai
Posts: 43
Joined: Fri Apr 21, 2017 2:45 pm

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 3:21 pm

Just to make it clear, I want to run v4l2h264dec with dmabuf=4 on Raspbian, that means 32 bit system. Since I did not find much information about using v4l2h264dec on Raspbian, I triend Gentoo (64bit) because on Raspberry Gentoo image documentation, it is written that it can run v4l2 codecs with taking advantage of VC4 h264 GPU acceleration using Gstreamer, but I was not successfull

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7568
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: 4.19 kernel 64 bit support - please report issues here

Sat May 11, 2019 3:23 pm

horai wrote:
Sat May 11, 2019 3:11 pm
Dear sir,

what do you mean by rash assumption? You mean trying to run something that is clearly written that is working in Gentoo?
64 bit?
This is a Sakaki statement:
"Leveraging recently improved 64-bit support in the official Raspberry Pi kernel tree, the image supports"
This is my last response to this thread as it is not related specifically to 64 bit kernel support.

It would have been a rash assumption that you are using the same GStreamer command line on Raspbian as you did on Gentoo. I can only work with the information given.
Nothing to do with Sakaki's statement.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

jimbojones
Posts: 15
Joined: Sun Apr 15, 2018 2:33 pm

Re: 4.19 kernel 64 bit support - please report issues here

Tue Jul 02, 2019 9:34 am

Has anyone managed to build and boot a 64-bit kernel for the Pi4 yet? I currently build my own 64-bit kernel from the raspberrypi/linux github repo, to use with 64-bit arch Linux arm userland on a 3B+. I’m hoping to migrate that system over to the Pi4 when my order eventually arrives, but I’ve seen on the github issues page that there have been a few boot issues with the 64-bit kernel and the pi folks are saying the pi 4 is not 64-bit ready.

@Sakaki Do you plan on getting hold of a Pi 4 and making an autobuild project based on the bcm2711_defconfig ? I always find your project so useful on arch when I’m not building the kernel myself :)

User avatar
sakaki
Posts: 417
Joined: Sun Jul 16, 2017 1:11 pm

Re: 4.19 kernel 64 bit support - please report issues here

Tue Jul 02, 2019 3:52 pm

jimbojones wrote:
Tue Jul 02, 2019 9:34 am
@Sakaki Do you plan on getting hold of a Pi 4 and making an autobuild project based on the bcm2711_defconfig ? I always find your project so useful on arch when I’m not building the kernel myself :)
Hi jimbojones,

yes, I have a couple of Pi4s now, and have also cross-compiled the current 4.19.y bcm2711_defconfig kernel successfully. It's not really ready for prime time yet (as you note), but once these glitches are ironed out upstream then yes, I do intend to provide a public autobuild for this.

Best, sakaki

Return to “Advanced users”