Skip to content

Commit

Permalink
Merge branch 'main' into fix_slow_image_creation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexl83 authored May 17, 2024
2 parents 5ca86bb + aa6ed7c commit 490ba36
Show file tree
Hide file tree
Showing 9 changed files with 2,156 additions and 2,054 deletions.
24 changes: 3 additions & 21 deletions config/boards/firefly-rk3399.csc
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
# Rockchip RK3399 hexa core 4GB SoC eMMC GBE USB3 WiFi
BOARD_NAME="Firefly RK3399"
BOARDFAMILY="media"
BOARD_MAINTAINER="150balbes"
BOARDFAMILY="rockchip64"
BOARD_MAINTAINER=""
BOOTCONFIG="firefly-rk3399_defconfig"
KERNEL_TARGET="legacy,current,edge"
KERNEL_TARGET="current,edge"
FULL_DESKTOP="yes"
BOOT_LOGO="desktop"
BOOT_FDT_FILE="rockchip/rk3399-firefly.dtb"
SRC_EXTLINUX="yes"
SRC_CMDLINE="console=ttyS2,1500000 console=tty0"
#ASOUND_STATE="asound.state.station-p1"

function post_family_tweaks_bsp__firefly-rk3399_BSP() {
display_alert "Installing BSP firmware and fixups"

if [[ $BRANCH == legacy ]]; then

# Bluetooth for most of others (custom patchram is needed only in legacy)
install -m 755 $SRC/packages/bsp/rk3399/brcm_patchram_plus_rk3399 $destination/usr/bin
cp $SRC/packages/bsp/rk3399/rk3399-bluetooth.service $destination/lib/systemd/system/

# need to swap chips in the service
sed -i s%BCM4345C5%BCM4356A2%g $destination/lib/systemd/system/rk3399-bluetooth.service

fi

return 0
}
5 changes: 5 additions & 0 deletions lib/functions/rootfs/distro-agnostic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ function install_distribution_agnostic() {
# @TODO: rpardini: still needed? people might want working Samba
disable_systemd_service_sdcard nmbd

# move sshd activation from ssh.service to ssh.socket (more realiable, avoids possible race condition on first boot) supplementary to ffee50a8a6b99bb4f35af90895e019eced7ff71b and 67250321918e59582b8f1003d331f4b1db253b21
display_alert "Moving SSH activation from service to socket" "systemd" "info"
disable_systemd_service_sdcard ssh
chroot_sdcard systemctl enable ssh.socket

# disable low-level kernel messages for non betas
if [[ -z $BETA ]]; then
sed -i "s/^#kernel.printk*/kernel.printk/" "${SDCARD}"/etc/sysctl.conf
Expand Down
2 changes: 1 addition & 1 deletion packages/bsp/common/usr/lib/armbian/armbian-firstlogin
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
# re-enable passing locale environment via ssh
sed -e '/^#AcceptEnv LANG/ s/^#//' -i /etc/ssh/sshd_config
# restart sshd daemon
systemctl reload ssh.service
systemctl restart ssh.service

# rpardini: hacks per-dm, very much legacy stuff that works by a miracle
if [[ "${desktop_dm}" == "lightdm" ]] && [ -n "$RealName" ]; then
Expand Down
Loading

0 comments on commit 490ba36

Please sign in to comment.