09-25-2020, 04:09 AM
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:
The bootargs I copied from the respective boot.cmd files and yes I did unzip the mobian kernel.
Output from my p-boot-conf:
Any help/hints gratefully received.
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
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