Skip to main content

PinePhone issues

Connecting to UART

Set headphone micorswitch to OFF.

tio /dev/ttyUSB0

Apparently baud of 1500000 should be used but only default works.

Booting from SD
arch=arm
baudrate=115200
board=sunxi
board_name=sunxi
...
bootargs=init=/init.sh rw console=tty0 console=ttyS0,115200 earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE pmos_boot=/dev/mmcblk0p1 pmos_root=/dev/mmcblk0p2 lima.sched_timeout_ms=2000

So it could be some bootloader setting.

PinePhone audio playback kernel panic

After around 5-6 minutes of mpv mp3 stream playback I get:

Linux futaba 6.1.9 #2-postmarketos-allwinner SMP PREEMPT Sun Feb 26 21:53:50 UTC 20 aarch64 GNU/Linux

[  827.257300] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
[  827.263581] Modules linked in: nft_reject_inet nft_reject nft_ct nf_tables ov5640 snd_soc_hdmi_codec gc2145 hci_uart btbcm 8723cs(C) btrtl bluetooth st_magn_i2c st_magn snd_soc_simple_card snd_soc_simple_card_utils sun9i_hdmi_audio inv_mpu6050_i2c sun50i_codec_analog ecdh_generic ecc dw_hdmi_i2s_audio inv_mpu6050 st_sensors sun8i_a33_mbus sun8i_adda_pr_regmap industrialio_triggered_buffer kfifo_buf sun8i_codec stk3310 st_sensors_i2c snd_soc_bt_sco sun4i_lradc_keys sun4i_i2s snd_soc_ec25 snd_soc_simple_amplifier snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd ppkb_manager i2c_gpio soundcore dm_crypt pinephone_keyboard gpio_vibra anx7688
[  827.320482] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G         C         6.1.9 #2-postmarketos-allwinner
[  827.329788] Hardware name: Pine64 PinePhone (1.2) (DT)
[  827.334927] pstate: 400000c5 (nZcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  827.341892] pc : sun6i_dma_interrupt+0x164/0x240
[  827.346528] lr : sun6i_dma_interrupt+0x160/0x240
[  827.351152] sp : ffff800008003ea0
[  827.354468] x29: ffff800008003ea0 x28: ffff8000090e8b80 x27: 0000000000000000
[  827.361616] x26: 0000000000000010 x25: ffff000001af1880 x24: ffff0000026083f0
[  827.368764] x23: 0000000000000001 x22: 0000000000000000 x21: 0000000000000000
[  827.375911] x20: ffff0000025bba80 x19: 0000000000000003 x18: 0000000000000000
[  827.383057] x17: ffff8000b69fe000 x16: ffff800008004000 x15: 0000000000004000
[  827.390204] x14: 00000000000003d1 x13: 00000000000003d1 x12: ffff8000090dae60
[  827.397350] x11: 0000000000000001 x10: 0000000000000930 x9 : ffff8000090d3ce0
[  827.404497] x8 : ffff0000bf95bbb8 x7 : 379da3c4df1854b1 x6 : a0c41cc6790e1dbe
[  827.411644] x5 : c3cb7390598308f4 x4 : 0000000000000001 x3 : ffff0000026083f0
[  827.418791] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000001
[  827.425938] Call trace:
[  827.428387]  sun6i_dma_interrupt+0x164/0x240
[  827.432665]  __handle_irq_event_percpu+0x48/0x160
[  827.437385]  handle_irq_event+0x4c/0xc0
[  827.441233]  handle_fasteoi_irq+0xa4/0x1a0
[  827.445340]  generic_handle_domain_irq+0x2c/0x4c
[  827.449968]  gic_handle_irq+0x44/0xc0
[  827.453644]  call_on_irq_stack+0x2c/0x5c
[  827.457577]  do_interrupt_handler+0x80/0x84
[  827.461770]  el1_interrupt+0x34/0x6c
[  827.465359]  el1h_64_irq_handler+0x18/0x2c
[  827.469467]  el1h_64_irq+0x64/0x68
[  827.472874]  cpuidle_enter_state+0x130/0x2fc
[  827.477157]  cpuidle_enter+0x38/0x50
[  827.480741]  do_idle+0x22c/0x2c0
[  827.483981]  cpu_startup_entry+0x28/0x30
[  827.487913]  kernel_init+0x0/0x130
[  827.491329]  arch_post_acpi_subsys_init+0x0/0x18
[  827.495962]  start_kernel+0x650/0x690
[  827.499636]  __primary_switched+0xb4/0xbc
[  827.503666] Code: 91028018 aa1803e0 941a3c75 f9400e81 (b9400023)
[  827.509763] ---[ end trace 0000000000000000 ]---
[  827.514382] Kernel panic - not syncing: Oops: Fatal exception in interrupt
[  827.521253] SMP: stopping secondary CPUs
[  828.741041] SMP: failed to stop secondary CPUs 0-1
[  828.745836] Kernel Offset: disabled
[  828.749324] CPU features: 0x00000,00c00080,0000420b
[  828.754203] Memory Limit: none
[  828.757267] Rebooting in 120 seconds..

Linux futaba 6.1.9 #4-postmarketos-allwinner SMP PREEMPT Mon Apr 10 21:39:33 UTC 20 aarch64 GNU/Linux