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
#2
Red light is turned off by the kernel, so kernel is starting. But it may be failing for some reason afterwards. You should see why if you increase the loglevel and use the serial console.
my website: https://xnux.eu
#3
(09-25-2020, 01:41 PM)megous Wrote: Red light is turned off by the kernel, so kernel is starting. But it may be failing for some reason afterwards. You should see why if you increase the loglevel and use the serial console.

Thanks - appreciate response and even more so your great contributions to the PP.

I don't have a serial console cable so will just have to play with options "blind".
  • 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
#4
OK, have got to the point where I can boot into either mobian or pmOS, but I don't get a gui on the phone for either of them!!! I can ssh in to either though.

I can't see any obvious problems in either log file which is irksome - need to try tweaking the kernel command lines a bit more but not sure what is best.

For the record mobian tries to map p1 to /boot in fstab so removed that, and for good measure (as I am running the f2fs version of mobian) I have added rootfstype=f2fs to the mobian start line in boot.conf.

@megous  - I presume the p-boot partition (target of p-boot-conf, e.g. /dev/mmcblk0p1 on my PP SDcard) is not usable by us mere mortals? I can't even mount it. Also is dtb2 used by the released p-boot (in boot.conf) - I see you have it in the 13 system setup?
  • 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
#5
(09-26-2020, 03:41 PM)dukla2000 Wrote: OK, have got to the point where I can boot into either mobian or pmOS, but I don't get a gui on the phone for either of them!!! I can ssh in to either though.

I can't see any obvious problems in either log file which is irksome - need to try tweaking the kernel command lines a bit more but not sure what is best.

For the record mobian tries to map p1 to /boot in fstab so removed that, and for good measure (as I am running the f2fs version of mobian) I have added rootfstype=f2fs to the mobian start line in boot.conf.

@megous  - I presume the p-boot partition (target of p-boot-conf, e.g. /dev/mmcblk0p1 on my PP SDcard) is not usable by us mere mortals? I can't even mount it. Also is dtb2 used by the released p-boot (in boot.conf) - I see you have it in the 13 system setup?
Yes dtb2 is supported by the public version of p-boot. If you can't get the display, the answer will be in dmesg, most probably.
my website: https://xnux.eu


Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone Doesn't Boot LED Doesn't Show Any Signs When Charging dorkydev 1 182 04-02-2024, 11:50 AM
Last Post: Kevin Kofler
  PinePhone - boot from microSD laserpyramid 5 446 03-06-2024, 06:37 PM
Last Post: aular
  Boot screen stuck at 'K' because of firmware deleted. poundantisec 9 5,156 08-28-2023, 11:38 AM
Last Post: fxc
  Pinephone won't boot. spha 12 2,678 08-20-2023, 02:44 AM
Last Post: spha
  New Pinephone is dead. eMMC, boot, hardware issues. Shane 4 1,433 05-10-2023, 03:31 AM
Last Post: fxc
  UPDATED (June 2021): 17-distro multi-boot image for Pinephone (incl. 3GiB variant) megous 182 242,780 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,223 02-03-2023, 01:27 AM
Last Post: dante404
  no sdcard boot and manjaro update failed Gwen 3 1,367 11-27-2022, 07:56 AM
Last Post: fxc
  Tow-boot on Pinephone beta edition saddamus 10 5,277 09-11-2022, 02:43 PM
Last Post: saddamus
  Boot problem: wrong screen orientation Jetpac 6 3,743 07-18-2022, 12:47 PM
Last Post: fravoi

Forum Jump:


Users browsing this thread: 1 Guest(s)