mako/nexus 4: switch to flo/nexus 7 kernel
Created by: vetzki
as the nexus 4 and nexus 7 (2013) have similar hardware it would maybe better to use the same kernel for both (e.g. here is the same kernel source used for both https://github.com/Unlegacy-Android/android_kernel_qcom_msm8960)
Nexus 4 even boots with the linux-asus-flo kernel screen stays black after showing the google logo ssh works partially (takes some time until connection is possible and seems to stop working after short usage)
ssh output:
mv@mv-pc:~$ ssh mako@172.16.42.1
mako@172.16.42.1's password:
Welcome to postmarketOS!
This distribution is based on Alpine Linux.
Read both our wikis to find a large amount of how-to guides and
general information about administrating and development.
See <https://wiki.postmarketos.org> and <https://wiki.alpinelinux.org>.
You may change this message by editing /etc/motd.
localhost:~$ uname -a
Linux localhost 4.11.12 #1-Alpine SMP PREEMPT Thu Jan 4 14:11:43 UTC 2018 armv7l GNU/Linux
localhost:~$ ls
localhost:~$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.11.12 (pmos@mv-pc) (gcc version 6.4.0 (Alpine 6.4.0) ) #1-Alpine SMP PREEMPT Thu Jan 4 14:11:43 UTC 2018
[ 0.000000] CPU: ARMv7 Processor [510f06f2] revision 2 (ARMv7), cr=10c5787d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Asus Nexus7(flo)
[ 0.000000] OF: fdt: Ignoring memory block 0x80200000 - 0x88800000
[ 0.000000] OF: fdt: Ignoring memory block 0x89000000 - 0x8da00000
[ 0.000000] OF: fdt: Ignoring memory block 0x8f700000 - 0x8fe00000
[ 0.000000] OF: fdt: Ignoring memory range 0x8ff00000 - 0x90000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 458495
[ 0.000000] free_area_init_node: node 0, pgdat c1195f00, node_mem_map ef1fc000
[ 0.000000] Normal zone: 1534 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196352 pages, LIFO batch:31
[ 0.000000] HighMem zone: 262143 pages, LIFO batch:31
[ 0.000000] percpu: Embedded 17 pages/cpu @ef194000 s38732 r8192 d22708 u69632
[ 0.000000] pcpu-alloc: s38732 r8192 d22708 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 456961
[ 0.000000] Kernel command line: uart_console=enable lcd_maker_id=primary lge.hreset=off lge.reset=rst_none gpt=enable lge.kcal=0|0|0|x lge.rev=rev_11 androidboot.emmc=true androidboot.serialno=00636d810e890862 androidboot.bootloader=MAKOZ30f androidboot.mode=charger androidboot.baseband=mdm bootreason=power_on
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1801780K/1833980K available (9216K kernel code, 702K rwdata, 2912K rodata, 1024K init, 357K bss, 32200K reserved, 0K cma-reserved, 1048572K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 283149695806 ns
[ 0.000011] sched_clock: 32 bits at 6MHz, resolution 148ns, wraps every 318145725365ns
[ 0.000041] Switching to timer-based delay loop, resolution 148ns
[ 0.001003] Console: colour dummy device 80x30
[ 0.002229] console [tty0] enabled
[ 0.002295] Calibrating delay loop (skipped), value calculated using timer frequency.. 13.50 BogoMIPS (lpj=67500)
[ 0.002380] pid_max: default: 32768 minimum: 301
[ 0.002569] Security Framework initialized
[ 0.002699] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.002761] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.003798] CPU: Testing write buffer coherency: ok
[ 0.003892] ftrace: allocating 28343 entries in 84 pages
[ 0.131680] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.171936] Setting up static identity map for 0x90300000 - 0x90300058
[ 0.253160] smp: Bringing up secondary CPUs ...
[ 0.335433] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.416456] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.497543] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.497864] smp: Brought up 1 node, 4 CPUs
[ 0.498120] SMP: Total of 4 processors activated (54.00 BogoMIPS).
[ 0.498192] CPU: All CPU(s) started in SVC mode.
[ 0.500198] devtmpfs: initialized
[ 0.521178] VFP support v0.3: implementor 51 architecture 64 part 6f variant 0 rev 2
[ 0.521817] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.521966] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.522348] pinctrl core: initialized pinctrl subsystem
[ 0.524118] NET: Registered protocol family 16
[ 0.525476] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.527992] cpuidle: using governor menu
[ 0.529439] hw-breakpoint: Failed to enable monitor mode on CPU 0.
[ 0.530876] pstore: using zlib compression
[ 0.531590] console [pstore-1] enabled
[ 0.531702] pstore: Registered ramoops as persistent store backend
[ 0.531785] ramoops: attached 0x100000@0x88d00000, ecc: 0/0
[ 0.555563] qcom_rpm 108000.rpm: RPM firmware 3.0.16842886
[ 0.577068] irq: no irq domain found for /smsm/wcnss@3 !
[ 0.611137] s1: Bringing 0uV into 1225000-1225000uV
[ 0.611916] s2: Bringing 0uV into 1300000-1300000uV
[ 0.612363] s3: Bringing 0uV into 500000-500000uV
[ 0.612853] s4: Bringing 0uV into 1800000-1800000uV
[ 0.613913] s7: Bringing 0uV into 1300000-1300000uV
[ 0.614384] qcom_rpm_reg 108000.rpm:regulators: regulator requires qcom,switch-mode-frequency property
[ 0.614518] qcom_rpm_reg 108000.rpm:regulators: driver callback failed to parse DT for regulator s8
[ 0.615110] l1: supplied by s4
[ 0.615751] l2: supplied by s4
[ 0.615900] l2: Bringing 0uV into 1200000-1200000uV
[ 0.616810] l3: Bringing 0uV into 3075000-3075000uV
[ 0.617407] l4: Bringing 0uV into 1800000-1800000uV
[ 0.618143] l5: Bringing 0uV into 2950000-2950000uV
[ 0.619236] l6: Bringing 0uV into 2950000-2950000uV
[ 0.621936] l10: Bringing 0uV into 2900000-2900000uV
[ 0.622833] l11: Bringing 0uV into 3000000-3000000uV
[ 0.624247] l12: supplied by s4
[ 0.628249] l17: Bringing 0uV into 3000000-3000000uV
[ 0.629918] l18: supplied by s4
[ 0.633618] l23: Bringing 0uV into 1800000-1800000uV
[ 0.635118] l24: supplied by s1
[ 0.635267] l24: Bringing 0uV into 750000-750000uV
[ 0.636770] l25: supplied by s1
[ 0.636927] l25: Bringing 0uV into 1250000-1250000uV
[ 0.638534] l26: supplied by s7
[ 0.640156] l27: supplied by s7
[ 0.641803] l28: supplied by s7
[ 0.645082] lvs1: supplied by s4
[ 0.646868] lvs2: supplied by s1
[ 0.648756] lvs3: supplied by s4
[ 0.650654] lvs4: supplied by s4
[ 0.652549] lvs5: supplied by s4
[ 0.654511] lvs6: supplied by s4
[ 0.656500] lvs7: supplied by s4
[ 0.662971] qcom_rpm_reg 108000.rpm:regulators: regulator requires qcom,switch-mode-frequency property
[ 0.663106] qcom_rpm_reg 108000.rpm:regulators: driver callback failed to parse DT for regulator ncp
[ 0.663364] ncp: supplied by l6
[ 0.666325] msm_iommu 7500000.iommu: could not get smmu_pclk
[ 0.666538] msm_iommu 7600000.iommu: could not get smmu_pclk
[ 0.666745] msm_iommu 7c00000.iommu: could not get smmu_pclk
[ 0.666951] msm_iommu 7d00000.iommu: could not get smmu_pclk
[ 0.667916] SCSI subsystem initialized
[ 0.668376] usbcore: registered new interface driver usbfs
[ 0.668651] usbcore: registered new interface driver hub
[ 0.668886] usbcore: registered new device driver usb
[ 0.670292] Advanced Linux Sound Architecture Driver Initialized.
[ 0.671146] Bluetooth: Core ver 2.22
[ 0.671280] NET: Registered protocol family 31
[ 0.671358] Bluetooth: HCI device and connection manager initialized
[ 0.671444] Bluetooth: HCI socket layer initialized
[ 0.671528] Bluetooth: L2CAP socket layer initialized
[ 0.671655] Bluetooth: SCO socket layer initialized
[ 0.673850] clocksource: Switched to clocksource dg_timer
[ 0.858678] NET: Registered protocol family 2
[ 0.859735] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.859982] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.860249] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.860443] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.860557] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.860871] NET: Registered protocol family 1
[ 0.861416] Trying to unpack rootfs image as initramfs...
[ 0.981916] Freeing initrd memory: 1192K
[ 0.983332] hw perfevents: enabled with armv7_krait PMU driver, 5 counters available
[ 0.985970] audit: initializing netlink subsys (disabled)
[ 0.986503] audit: type=2000 audit(0.899:1): state=initialized audit_enabled=0 res=1
[ 0.987201] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[ 0.997030] fuse init (API version 7.26)
[ 1.006966] bounce: pool size: 64 pages
[ 1.007096] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.007220] io scheduler noop registered
[ 1.007292] io scheduler deadline registered
[ 1.007554] io scheduler cfq registered (default)
[ 1.007634] io scheduler mq-deadline registered
[ 1.036459] gsbi 12440000.gsbi: GSBI port protocol: 2 crci: 0
[ 1.037532] gsbi 16200000.gsbi: GSBI port protocol: 2 crci: 0
[ 1.038440] gsbi 16500000.gsbi: GSBI port protocol: 6 crci: 0
[ 1.040208] gsbi 16600000.gsbi: GSBI port protocol: 6 crci: 0
[ 1.046771] msm_serial 16540000.serial: msm_serial: detected port #1
[ 1.046924] msm_serial 16540000.serial: uartclk = 27000000
[ 1.047046] 16540000.serial: ttyMSM1 at MMIO 0x16540000 (irq = 134, base_baud = 1687500) is a MSM
[ 1.047815] msm_serial 16640000.serial: msm_serial: detected port #0
[ 1.047962] msm_serial 16640000.serial: uartclk = 27000000
[ 1.048081] 16640000.serial: ttyMSM0 at MMIO 0x16640000 (irq = 136, base_baud = 1687500) is a MSM
[ 1.048167] msm_serial: console setup on port #0
[ 1.107081] console [ttyMSM0] enabled
[ 1.108019] msm_serial: driver initialized
[ 1.113128] msm_hdmi_phy 4a00400.hdmi-phy: 4a00400.hdmi-phy supply core-vdda not found, using dummy regulator
[ 1.145070] brd: module loaded
[ 1.162600] loop: module loaded
[ 1.162974] ssbi c00000.ssbi: SSBI controller type: 'pmic-arbiter'
[ 1.163708] pm8xxx_probe: PMIC revision 1: F3
[ 1.163769] pm8xxx_probe: PMIC revision 2: 0B
[ 1.166095] ssbi 500000.qcom,ssbi: SSBI controller type: 'pmic-arbiter'
[ 1.166790] pm8xxx_probe: PMIC revision 1: F4
[ 1.166852] pm8xxx_probe: PMIC revision 2: 06
[ 1.184943] SCSI Media Changer driver v0.25
[ 1.187847] libphy: Fixed MDIO Bus: probed
[ 1.187902] tun: Universal TUN/TAP device driver, 1.6
[ 1.188442] PPP generic driver version 2.4.2
[ 1.188797] PPP BSD Compression module registered
[ 1.188853] PPP Deflate Compression module registered
[ 1.189121] PPP MPPE Compression module registered
[ 1.189450] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
[ 1.189791] CSLIP: code copyright 1989 Regents of the University of California.
[ 1.190910] usbcore: registered new interface driver ax88179_178a
[ 1.191077] usbcore: registered new interface driver cdc_ether
[ 1.191453] usbcore: registered new interface driver net1080
[ 1.191845] usbcore: registered new interface driver cdc_subset
[ 1.192296] usbcore: registered new interface driver cdc_ncm
[ 1.193301] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.193384] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[ 1.194355] usbcore: registered new interface driver cdc_acm
[ 1.194414] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.194898] usbcore: registered new interface driver usb-storage
[ 1.195463] usbcore: registered new interface driver usbserial
[ 1.209119] msm_hsusb 12500000.usb: 12500000.usb supply vbus not found, using dummy regulator
[ 1.235446] using random self ethernet address
[ 1.235505] using random host ethernet address
[ 1.236947] usb0: HOST MAC 7a:4f:90:55:97:c8
[ 1.237156] usb0: MAC 1a:fb:d3:80:2c:de
[ 1.237251] using random self ethernet address
[ 1.237476] using random host ethernet address
[ 1.237856] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 1.238094] g_ether gadget: g_ether ready
[ 1.239109] l3: voltage operation not allowed
[ 1.240619] input: pmic8xxx_pwrkey as /devices/platform/soc/500000.qcom,ssbi/500000.qcom,ssbi:pmic@0/500000.qcom,ssbi:pmic@0:pwrkey@1c/input/input0
[ 1.242913] rtc-pm8xxx 500000.qcom,ssbi:pmic@0:rtc@11d: rtc core: registered pm8xxx_rtc as rtc0
[ 1.243159] i2c /dev entries driver
[ 1.248099] elants_i2c 1-0010: 1-0010 supply vcc33 not found, using dummy regulator
[ 1.248336] elants_i2c 1-0010: 1-0010 supply vccio not found, using dummy regulator
[ 1.249133] apq8064-pinctrl 800000.pinctrl: pin GPIO_16 already requested by 16540000.serial; cannot claim for 16580000.i2c
[ 1.249228] apq8064-pinctrl 800000.pinctrl: pin-16 (16580000.i2c) status -22
[ 1.250049] apq8064-pinctrl 800000.pinctrl: could not request pin 16 (GPIO_16) from group gpio16 on device 800000.pinctrl
[ 1.250411] i2c_qup 16580000.i2c: Error applying setting, reverse things back
[ 1.251295] i2c_qup: probe of 16580000.i2c failed with error -22
[ 1.254429] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[ 1.254836] bq27xxx-battery 0-0055: support ver. 1.2.0 enabled
[ 1.257066] device-mapper: uevent: version 1.0.3
[ 1.257999] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[ 1.260653] mmci-pl18x 12400000.sdcc: mmc0: PL180 manf 51 rev0 at 0x12400000 irq 118,0 (pio)
[ 1.261115] mmci-pl18x 12400000.sdcc: DMA channels RX dma0chan1, TX dma0chan2
[ 1.261721] s4: voltage operation not allowed
[ 1.261780] mmci-pl18x 12400000.sdcc: Voltage switch failed
[ 1.314562] sdhci: Secure Digital Host Controller Interface driver
[ 1.314623] sdhci: Copyright(c) Pierre Ossman
[ 1.315730] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.316714] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.317785] usbcore: registered new interface driver usbhid
[ 1.317866] usbhid: USB HID core driver
[ 1.318682] ashmem: initialized
[ 1.324702] remoteproc remoteproc0: 3200800.riva-pil is available
[ 1.325234] remoteproc remoteproc0: Direct firmware load for wcnss.mdt failed with error -2
[ 1.325476] remoteproc remoteproc0: Falling back to user helper
[ 1.339187] oprofile: using timer interrupt.
[ 1.339664] u32 classifier
[ 1.339791] Actions configured
[ 1.339923] Netfilter messages via NETLINK v0.30.
[ 1.341325] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 1.342286] ctnetlink v0.93: registering with nfnetlink.
[ 1.342776] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
[ 1.343865] xt_time: kernel timezone is -0000
[ 1.345332] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.346512] arp_tables: arp_tables: (C) 2002 David S. Miller
[ 1.346791] Initializing XFRM netlink socket
[ 1.348650] NET: Registered protocol family 10
[ 1.352962] Segment Routing with IPv6
[ 1.353506] mip6: Mobile IPv6
[ 1.353680] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.354499] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.356304] NET: Registered protocol family 17
[ 1.356487] NET: Registered protocol family 15
[ 1.356956] NET: Registered protocol family 42
[ 1.358759] Registering SWP/SWPB emulation handler
[ 1.370481] mmc0: new high speed MMC card at address 0001
[ 1.371765] mmcblk0: mmc0:0001 016G92 14.7 GiB
[ 1.372501] mmcblk0boot0: mmc0:0001 016G92 partition 1 4.00 MiB
[ 1.373210] mmcblk0boot1: mmc0:0001 016G92 partition 2 4.00 MiB
[ 1.373739] mmcblk0rpmb: mmc0:0001 016G92 partition 3 512 KiB
[ 1.377080] Alternate GPT is invalid, using primary GPT.
[ 1.377246] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25
[ 1.400547] msm_iommu: device mapped at f1580000, irq 121 with 2 ctx banks
[ 1.401844] msm_iommu: device mapped at f1700000, irq 123 with 2 ctx banks
[ 1.403002] msm_iommu: device mapped at f1880000, irq 125 with 3 ctx banks
[ 1.404360] msm_iommu: device mapped at f1a00000, irq 127 with 3 ctx banks
[ 1.514722] msm_dsi 4700000.mdss_dsi: 4700000.mdss_dsi supply gdsc not found, using dummy regulator
[ 1.518711] msm 5100000.mdp: bound 4700000.mdss_dsi (ops dsi_ops)
[ 1.518888] adreno 4300000.adreno-3xx: Using legacy qcom,chipid binding!
[ 1.519221] adreno 4300000.adreno-3xx: Use compatible qcom,adreno-320.2 instead.
[ 1.519782] msm 5100000.mdp: bound 4300000.adreno-3xx (ops a3xx_ops)
[ 1.520423] msm 5100000.mdp: dummy supplies not allowed for exclusive requests
[ 1.539150] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.539311] [drm] No driver support for vblank timestamp query.
[ 1.541509] [drm] Initialized msm 1.2.0 20130625 for 5100000.mdp on minor 0
[ 1.731812] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)
[ 3.117960] Console: switching to colour frame buffer device 150x120
[ 3.278580] msm 5100000.mdp: fb0: msm frame buffer device
[ 3.281048] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[ 3.282451] rtc-pm8xxx 500000.qcom,ssbi:pmic@0:rtc@11d: setting system clock to 1970-01-01 00:46:21 UTC (2781)
[ 3.287122] ext_3p3v: disabling
[ 3.287542] ALSA device list:
[ 3.287806] No soundcards found.
[ 9.894225] elants_i2c 1-0010: nothing at this address
[ 9.897379] Freeing unused kernel memory: 1024K
[ 10.316622] random: fast init done
[ 12.939822] using random self ethernet address
[ 12.940062] using random host ethernet address
[ 13.763219] EXT4-fs (dm-0): couldn't mount as ext3 due to feature incompatibilities
[ 13.766416] EXT4-fs (dm-0): mounting ext2 file system using the ext4 subsystem
[ 13.770496] EXT4-fs (dm-0): mounted filesystem without journal. Opts: (null)
[ 21.247961] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[ 26.599934] udevd[713]: starting version 3.2.5
[ 26.653371] udevd[714]: starting eudev-3.2.5
[ 28.547405] random: crng init done
[ 28.750147] EXT4-fs (dm-1): re-mounted. Opts: data=ordered
[ 29.016264] EXT4-fs (dm-0): couldn't mount as ext3 due to feature incompatibilities
[ 29.017159] EXT4-fs (dm-0): mounting ext2 file system using the ext4 subsystem
[ 29.028163] EXT4-fs (dm-0): mounted filesystem without journal. Opts: (null)
[ 64.564478] remoteproc remoteproc0: powering up 3200800.riva-pil
[ 64.567051] remoteproc remoteproc0: Booting fw image wcnss.mdt, size 6804
[ 69.767892] remoteproc remoteproc0: remote processor 3200800.riva-pil is now up
[ 69.772948] qcom_wcnss_ctrl smd-edge.wcnss: WCNSS Version 1.4 1.2
[ 69.787480] wcn36xx: mac address: 18:00:2d:88:9c:a9