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