Help needed with p-boot
#1
I have been trying to get @megous  p-boot bootloader to work, for fun and also to try benefit from the safety fixes he has put in p-boot.

But so far I have no success. In short I have re-worked his example directory to try be my working config to be able to boot mobian from an SDcard and pmOS from the eMMC. I have got p-boot installed on the SDcard and at initial boot I get the p-boot menu screen with my 2 options, but selecting either of them I get the red LED temporarily then it goes out and neither OS ever loads sufficiently to show on the screen.

So obviously my boot.conf is duff but I am not sure why.

My boot.conf:
Code:
#
# Boot configurations for PinePhone 1.2
#
# Some usefult bootargs flags:
#   - quiet loglevel=0
#   - console=tty1
#   - console=ttyS0,115200
#   - root=/dev/mmcblk2p2 rootfstype=f2fs rootflags=fastboot rootwait rw
#   - panic=3
#   - init=/bin/tablet-init
#   - initcall_debug
#   - earlycon=ns16550a,mmio32,0x01c28000 loglevel=15
#   - trace_event=regulator:*,clock:*,clk:*,gpio:* trace_buf_size=40M
#   - video=HDMI-A-1:d
#   - video=DSI-1:d
#   - fbcon=nodefer
#
# boot name is up to 36 chars

device_id = pp3 (PP 1.2a)

no          = 0
  name      = mobian from SDcard
  atf       = fw.bin
  dtb       = mobian/board.dtb
  linux     = mobian/Image
  initramfs = mobian/initramfs.img
  bootargs  = console=ttyS0,115200 no_console_suspend panic=10 consoleblank=0 loglevel=7 root=/dev/mmcblk0p2 rw splash plymouth.ignore-serial-consoles vt.global_cursor_default=0
  splash    = files/xnux.argb

no          = 1
  name      = postmarketOS from eMMC
  atf       = fw.bin
  linux     = pmOS/Image
  dtb       = pmOS/board.dtb
  initramfs = pmOS/initramfs.img
  bootargs  = init=/init.sh rw console=tty0 console=ttyS0,115200 no_console_suspend earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 cma=256M PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE pmos_boot=/dev/mmcblk2p1 pmos_root=/dev/mmcblk2p2
  splash    = files/xnux.argb
The bootargs I copied from the respective boot.cmd files and yes I did unzip the mobian kernel.

Output from my p-boot-conf:
Code:
# ./p-boot-conf . /dev/mmcblk0p1
Data space:

    00010800-0001f1e8: /media/chris/rootfs/home/mobian/p-boot/dukla/fw.bin (size 58 KiB)
    0001f200-00027fbd: /media/chris/rootfs/home/mobian/p-boot/dukla/mobian/board.dtb (size 35 KiB)
Kernel Image detected: text_offset=0x00000000
    00028000-01188008: /media/chris/rootfs/home/mobian/p-boot/dukla/mobian/Image (size 17792 KiB)
    01188200-01f24415: /media/chris/rootfs/home/mobian/p-boot/dukla/mobian/initramfs.img (size 13936 KiB)
    01f24600-02318e00: /media/chris/rootfs/home/mobian/p-boot/dukla/files/xnux.argb (size 4050 KiB)
Kernel Image detected: text_offset=0x00000000
    02318e00-03418608: /media/chris/rootfs/home/mobian/p-boot/dukla/pmOS/Image (size 17406 KiB)
    03418800-034215d5: /media/chris/rootfs/home/mobian/p-boot/dukla/pmOS/board.dtb (size 35 KiB)
WARNING: Detected uImage header magic, skipping header (/media/chris/rootfs/home/mobian/p-boot/dukla/pmOS/initramfs.img)
    03421600-0357fc6c: /media/chris/rootfs/home/mobian/p-boot/dukla/pmOS/initramfs.img (size 1401 KiB)
    0357fe00-0357fe49: /media/chris/rootfs/home/mobian/p-boot/dukla/files/README (size 0 KiB)
    03580000-03974800: /media/chris/rootfs/home/mobian/p-boot/dukla/files/arch.argb (size 4050 KiB)
    03974800-03d69000: /media/chris/rootfs/home/mobian/p-boot/dukla/files/off.argb (size 4050 KiB)
    03d69000-0415d800: /media/chris/rootfs/home/mobian/p-boot/dukla/files/pboot2.argb (size 4050 KiB)

Boot configurations:

no=0 (mobian from SDcard)

  console=ttyS0,115200 no_console_suspend panic=10 consoleblank=0 loglevel=7 root=/dev/mmcblk0p2 rw splash plymouth.ignore-serial-consoles vt.global_cursor_default=0

  A 00010800-0001f1e8 /media/chris/rootfs/home/mobian/p-boot/dukla/fw.bin
  D 0001f200-00027fbd /media/chris/rootfs/home/mobian/p-boot/dukla/mobian/board.dtb
  L 00028000-01188008 /media/chris/rootfs/home/mobian/p-boot/dukla/mobian/Image
  I 01188200-01f24415 /media/chris/rootfs/home/mobian/p-boot/dukla/mobian/initramfs.img
  S 01f24600-02318e00 /media/chris/rootfs/home/mobian/p-boot/dukla/files/xnux.argb

no=1 (postmarketOS from eMMC)

  init=/init.sh rw console=tty0 console=ttyS0,115200 no_console_suspend earlycon=uart,mmio32,0x01c28000 panic=10 consoleblank=0 loglevel=1 cma=256M PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE pmos_boot=/dev/mmcblk2p1 pmos_root=/dev/mmcblk2p2

  A 00010800-0001f1e8 /media/chris/rootfs/home/mobian/p-boot/dukla/fw.bin
  L 02318e00-03418608 /media/chris/rootfs/home/mobian/p-boot/dukla/pmOS/Image
  D 03418800-034215d5 /media/chris/rootfs/home/mobian/p-boot/dukla/pmOS/board.dtb
  I 03421600-0357fc6c /media/chris/rootfs/home/mobian/p-boot/dukla/pmOS/initramfs.img
  S 01f24600-02318e00 /media/chris/rootfs/home/mobian/p-boot/dukla/files/xnux.argb

file list block 2

  0357fe00-0357fe49 README /media/chris/rootfs/home/mobian/p-boot/dukla/files/README
  03580000-03974800 arch.argb /media/chris/rootfs/home/mobian/p-boot/dukla/files/arch.argb
  03974800-03d69000 off.argb /media/chris/rootfs/home/mobian/p-boot/dukla/files/off.argb
  03d69000-0415d800 pboot2.argb /media/chris/rootfs/home/mobian/p-boot/dukla/files/pboot2.argb
  01f24600-02318e00 xnux.argb /media/chris/rootfs/home/mobian/p-boot/dukla/files/xnux.argb

Total filesystem size 66934 KiB

Any help/hints gratefully received.
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC


Messages In This Thread
Help needed with p-boot - by dukla2000 - 09-25-2020, 04:09 AM
RE: Help needed with p-boot - by megous - 09-25-2020, 01:41 PM
RE: Help needed with p-boot - by dukla2000 - 09-26-2020, 11:05 AM
RE: Help needed with p-boot - by dukla2000 - 09-26-2020, 03:41 PM
RE: Help needed with p-boot - by megous - 09-28-2020, 06:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone won't boot. spha 13 3,050 Yesterday, 10:31 PM
Last Post: Richy_T
  Pinephone boot. Richy_T 5 238 Yesterday, 03:35 PM
Last Post: Richy_T
  PinePhone - boot from microSD laserpyramid 9 968 05-03-2024, 10:09 AM
Last Post: laserpyramid
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 327 04-02-2024, 11:50 AM
Last Post: Kevin Kofler
  Boot screen stuck at 'K' because of firmware deleted. poundantisec 9 5,437 08-28-2023, 11:38 AM
Last Post: fxc
  New Pinephone is dead. eMMC, boot, hardware issues. Shane 4 1,565 05-10-2023, 03:31 AM
Last Post: fxc
  UPDATED (June 2021): 17-distro multi-boot image for Pinephone (incl. 3GiB variant) megous 182 248,254 03-05-2023, 11:04 AM
Last Post: Eugo
Sad New PinePhone won't boot 9/10 times - Screen is on but stays black :( dante404 8 5,477 02-03-2023, 01:27 AM
Last Post: dante404
  no sdcard boot and manjaro update failed Gwen 3 1,498 11-27-2022, 07:56 AM
Last Post: fxc
  Tow-boot on Pinephone beta edition saddamus 10 5,618 09-11-2022, 02:43 PM
Last Post: saddamus

Forum Jump:


Users browsing this thread: 1 Guest(s)