Skip to content

Commit

Permalink
Merge pull request #11 from pcengines/dunfell-fixes
Browse files Browse the repository at this point in the history
Dunfell fixes
  • Loading branch information
macpijan authored Nov 23, 2020
2 parents 90232e0 + d1a2de9 commit 1907b2f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts/lib/wic/plugins/source/__pycache__/
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ Yocto BSP layer for PC Engines hardware

# Building

Make sure to adjust `~/ssh-keys` according to your configuration:

```
SHELL=bash kas-docker --ssh-dir ~/ssh-keys build meta-pcengines/kas-docker.yml
SHELL=/bin/bash kas-docker build meta-pcengines/kas-docker.yml
```

Check a device node of the drive to be flashed:
Expand All @@ -25,8 +23,18 @@ sudo fdisk -l
Change directory to `<build-directory>/tmp/deploy/images/pcengines-apu2`. Find
desired image and flash the drive:

> Replace the `/dev/sdx` with the proper device path
```
sudo bmaptool copy --bmap docker-image-minimal-pcengines-apu2.wic.bmap docker-image-minimal-pcengines-apu2.wic.gz /dev/sdx
```

> The `bmaptool` can flash images much faster than the `dd`
or if `bmap-tools` are not available in your system:

```
sudo dd if=xen-dom0-image-pcengines-apu2.hddimg of=/dev/<drive_dir>
gzip -cdk docker-image-minimal-pcengines-apu2.wic.gz | sudo dd of=/dev/sdx
```

# Bootup log
Expand Down
10 changes: 5 additions & 5 deletions conf/machine/include/pcengines-apux.inc
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ MACHINE_FEATURES += " \
ima \
"

MACHINE_EXTRA_RRECOMMENDS += " \
kernel-modules \
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += " \
grub \
parted \
util-linux-blkid \
kernel-modules \
"

# QEMU does not support some of the enhanced instructions available
Expand All @@ -49,7 +47,7 @@ MACHINE_FEATURES_remove = "qemu-usermode"
APPEND_ADDITIONAL ??= ""
APPEND += "${APPEND_ADDITIONAL}"

IMAGE_FSTYPES += "ext4"
IMAGE_FSTYPES += "ext4 wic.gz wic.bmap"

IMAGE_OVERHEAD_FACTOR = "1.1"

Expand All @@ -64,3 +62,5 @@ KERNEL_MODULE_AUTOLOAD_pce-xen += " \
xen-pciback \
xen-blkback \
"

WKS_FILES ?= "directdisk-grub-legacy.wks"
10 changes: 5 additions & 5 deletions kas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ repos:

poky:
url: https://git.yoctoproject.org/git/poky
refspec: d0ac956dc2454da252ab718267af0dcf504e6a13
refspec: 0fc9d32ae11ebb53aa33342f50887c1e692a1f32
layers:
meta:
meta-poky:
meta-yocto-bsp:

meta-openembedded:
url: http://git.openembedded.org/meta-openembedded
refspec: e0daf6f8e0c53e388c631b8cdf3d7d8173dcea95
refspec: e413c1ef621688e69bb7830bb3151ed23b30b73e
layers:
meta-oe:
meta-networking:
Expand All @@ -23,17 +23,17 @@ repos:

meta-virtualization:
url: https://git.yoctoproject.org/git/meta-virtualization
refspec: 062d9f1f4faf2ca8a1fe78b7c7365e6378c15836
refspec: 5c2de3daedd3f65171b9debf938683ce6e7746ea

meta-security:
url: https://git.yoctoproject.org/git/meta-security
refspec: 27ddb455543b670097e252ba0d0ad5b7e4101748
refspec: c74cc97641fd93e0e7a4383255e9a0ab3deaf9d7
layers:
meta-tpm:

meta-selinux:
url: https://git.yoctoproject.org/git/meta-selinux
refspec: 44d760413920ba440439b8bc7c2a71ca26cd7a2d
refspec: 7af62c91d7d00a260cf28e7908955539304d100d

bblayers_conf_header:
standard: |
Expand Down
3 changes: 3 additions & 0 deletions wic/directdisk-grub-legacy.wks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
part /boot --source bootimg-grub-legacy --label msdos --active --align 1024 --use-uuid --size 32M
part / --source rootfs --fstype=ext4 --align 1024 --overhead-factor 1.5
bootloader --ptable msdos --timeout=5 --append="rootfstype=ext4 console=ttyS0,115200 earlyprintk=serial,ttyS0,115200"

0 comments on commit 1907b2f

Please sign in to comment.