fix: make it boot on pinephone

This commit is contained in:
DanyLE
2025-07-21 00:10:47 +02:00
parent 1fe7d54ae8
commit 37571d17cc
11 changed files with 238 additions and 58 deletions

View File

@@ -2,13 +2,48 @@ hostname = "diya"
do_install:append () {
cat << 'EOF' >> "${D}${sysconfdir}/profile"
export DISK="mmcblk1"
export DISK="mmcblk0"
EOF
cat << EOF >> "${D}${sysconfdir}/modules"
sprdwl_ng
sprdbt_tty
install -d ${D}${sysconfdir}/modules-load.d
cat << EOF >> "${D}${sysconfdir}/modules-load.d/diya.conf"
option
cfg80211
bluetooth
hci_uart
rfcomm
qmi_wwan
usbnet
usb_wwan
usbserial
mii
snd_seq_dummy
snd_hrtimer
842_decompress
842_compress
zram
crct10dif_ce
polyval_ce
8723cs
btbcm
sm4
gpio_vibra
st_magn_spi
st_sensors_spi
sunxi_wdt
snd_soc_ec25
led_class_flash
i2c_gpio
ledtrig_pattern
i2c_algo_bit
ppkb_manager
joydev
sch_fq_codel
crypto_user
loop
fuse
nfnetlink
ip_tables
ipv6
sun4i_lradc_keys
EOF
}

View File

@@ -1,2 +1,2 @@
# IMAGE_BOOT_FILES:append:pinephone = " boot.scr ${KERNEL_DEVICETREE} allwinner/overlay/sun50i-h616-fixup.scr "
IMAGE_INSTALL:append:pinephone = " pinephone-firmware "
IMAGE_BOOT_FILES:append:pinephone = " boot.scr ${KERNEL_DEVICETREE} "
IMAGE_INSTALL:append:pinephone = " pinephone-firmware eg25-manager glibmm "

View File

@@ -1,7 +1,7 @@
image_patch:append () {
# create /etc/fstab
cat << EOF > ${IMAGE_ROOTFS}/etc/fstab
/dev/mmcblk1p1 /boot auto defaults 0 0
/dev/mmcblk1p4 /home auto defaults 0 0
/dev/mmcblk0p1 /boot auto defaults 0 0
/dev/mmcblk0p4 /home auto defaults 0 0
EOF
}