Compare commits
2 commits
2356211a1c
...
9bc61c96fd
Author | SHA1 | Date | |
---|---|---|---|
9bc61c96fd | |||
64d8767858 |
8 changed files with 13 additions and 22 deletions
|
@ -30,6 +30,7 @@ PREFERRED_PROVIDER_u-boot-fw-utils = "libubootenv"
|
||||||
ENABLE_UART = "1"
|
ENABLE_UART = "1"
|
||||||
ENABLE_I2C = "1"
|
ENABLE_I2C = "1"
|
||||||
KERNEL_MODULE_AUTOLOAD:rpi += "i2c-dev i2c-bcm2708"
|
KERNEL_MODULE_AUTOLOAD:rpi += "i2c-dev i2c-bcm2708"
|
||||||
|
RPI_EXTRA_CONFIG = "dtoverlay=i2c-rtc,ds3231"
|
||||||
|
|
||||||
require conf/distro/include/yocto-uninative.inc
|
require conf/distro/include/yocto-uninative.inc
|
||||||
INHERIT += "uninative buildstats sstate license remove-libtool"
|
INHERIT += "uninative buildstats sstate license remove-libtool"
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/run/hostapd.pid
|
|
||||||
ExecStart=@SBINDIR@/hostapd /app/hostapd/hostapd.conf -P /run/hostapd.pid -B
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -4,7 +4,7 @@ SRC_URI_append = "\
|
||||||
file://hostapd.conf \
|
file://hostapd.conf \
|
||||||
"
|
"
|
||||||
|
|
||||||
FILES_${PN} += "/app/hostapd/hostapd.conf"
|
FILES_${PN} += "/data/hostapd/hostapd.conf"
|
||||||
|
|
||||||
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
|
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
|
||||||
|
|
||||||
|
@ -13,11 +13,11 @@ do_install_append() {
|
||||||
rm -rf ${D}${sysconfdir}
|
rm -rf ${D}${sysconfdir}
|
||||||
|
|
||||||
# Install config file to appfs
|
# Install config file to appfs
|
||||||
install -D -m 644 ${WORKDIR}/hostapd.conf ${D}/app/hostapd/hostapd.conf
|
install -D -m 644 ${WORKDIR}/hostapd.conf ${D}/data/hostapd/hostapd.conf
|
||||||
|
|
||||||
# Change config file path
|
# Change config file path
|
||||||
install -m 0644 ${WORKDIR}/hostapd.service ${D}${systemd_unitdir}/system/
|
install -m 0644 ${WORKDIR}/hostapd.service ${D}${systemd_unitdir}/system/
|
||||||
sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@SYSCONFDIR@,/app/hostapd,g' ${D}${systemd_unitdir}/system/hostapd.service
|
sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@SYSCONFDIR@,/data/hostapd,g' ${D}${systemd_unitdir}/system/hostapd.service
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFFILES_${PN} = "/app/hostapd/hostapd.conf"
|
CONFFILES_${PN} = "/data/hostapd/hostapd.conf"
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
#ListenAddress 0.0.0.0
|
#ListenAddress 0.0.0.0
|
||||||
#ListenAddress ::
|
#ListenAddress ::
|
||||||
|
|
||||||
HostKey /app/ssh/ssh_host_rsa_key
|
HostKey /data/ssh/ssh_host_rsa_key
|
||||||
HostKey /app/ssh/ssh_host_ecdsa_key
|
HostKey /data/ssh/ssh_host_ecdsa_key
|
||||||
HostKey /app/ssh/ssh_host_ed25519_key
|
HostKey /data/ssh/ssh_host_ed25519_key
|
||||||
|
|
||||||
# Ciphers and keying
|
# Ciphers and keying
|
||||||
#RekeyLimit default none
|
#RekeyLimit default none
|
||||||
|
|
|
@ -7,4 +7,4 @@ tmpfs /run tmpfs mode=0755,nodev,nosuid,stri
|
||||||
tmpfs /var/volatile tmpfs defaults 0 0
|
tmpfs /var/volatile tmpfs defaults 0 0
|
||||||
|
|
||||||
/dev/mmcblk0p1 /boot vfat defaults 0 0
|
/dev/mmcblk0p1 /boot vfat defaults 0 0
|
||||||
/dev/mmcblk0p4 /app ext4 defaults 0 0
|
/dev/mmcblk0p4 /data ext4 defaults 0 0
|
||||||
|
|
|
@ -8,6 +8,7 @@ IMAGE_INSTALL = "\
|
||||||
curl \
|
curl \
|
||||||
python3 \
|
python3 \
|
||||||
i2c-tools \
|
i2c-tools \
|
||||||
|
rauc-grow-data-part \
|
||||||
sebrauc \
|
sebrauc \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Service to grow data partition size
|
Description=Service to grow data partition size
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Before=home.mount
|
Before=data.mount
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
@ -9,4 +9,4 @@ RemainAfterExit=yes
|
||||||
ExecStart=/usr/sbin/parted --script /dev/mmcblk0 resizepart 4 100%
|
ExecStart=/usr/sbin/parted --script /dev/mmcblk0 resizepart 4 100%
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=home.mount
|
WantedBy=data.mount
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 100
|
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 100
|
||||||
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_A --align 4096
|
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_A --align 4096
|
||||||
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_B --align 4096
|
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_B --align 4096
|
||||||
part /app --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/app --ondisk mmcblk0 --fstype=ext4 --label appfs --align 1024 --size 500 --fsoptions "x-systemd.growfs"
|
part /data --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/data --ondisk mmcblk0 --fstype=ext4 --label appfs --align 1024 --size 500
|
||||||
|
|
Loading…
Reference in a new issue