Skip to content

Instantly share code, notes, and snippets.

ifeq ($(CONFIG_PLATFORM_ARM_RPI), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
ARCH ?= arm
CROSS_COMPILE ?=
KVER ?= $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
endif
@yangxuan8282
yangxuan8282 / install.md
Created December 24, 2017 11:35
install enlightenment on archlinux arm

Install Enlightenment ( Wayland ) on Raspberry Pi (Archlinux arm)

sudo pacman -Syu 
sudo pacman -S packer
@yangxuan8282
yangxuan8282 / rpi-pkgs.txt
Created December 25, 2017 15:22
e20 pkgs list for archlinux arm
a52dec
aalib
acl
adwaita-icon-theme
alsa-lib
alsa-plugins
aspell
at-spi2-atk
at-spi2-core
atk
a52dec aalib acl adwaita-icon-theme alsa-lib alsa-plugins aspell at-spi2-atk at-spi2-core atk attr audit autoconf automake avahi bash binutils bison boost-libs bullet bzip2 ca-certificates ca-certificates-cacert ca-certificates-mozilla ca-certificates-utils cairo cantarell-fonts ccache cdparanoia celt check chromaprint colord compositeproto connman coreutils cracklib crda cryptsetup curl damageproto db dbus dbus-glib dconf desktop-file-utils device-mapper dhcpcd dialog diffutils dnssec-anchors dri2proto dri3proto e2fsprogs elfutils enca expat faac faad2 fakeroot ffmpeg fftw file filesystem findutils fixesproto flac flex fontconfig fontsproto freetype2 fribidi gawk gc gcc gcc-libs gdb gdb-common gdbm gdk-pixbuf2 geoclue2 geocode-glib gettext ghostscript giflib git glib-networking glib2 glibc glibmm glproto glu gmime gmp gnupg gnutls gobject-introspection-runtime gpgme gpm graphene graphite grep groff gsettings-desktop-schemas gsfonts gsm gst-libav gst-plugins-bad gst-plugins-base gst-plugins-base-libs gst-plug
@yangxuan8282
yangxuan8282 / Dockerfile
Last active January 4, 2018 06:13
install debian use pxe, docker
FROM arm32v6/alpine
RUN apk add --no-cache dnsmasq
EXPOSE 53/tcp \
53/udp \
67/udp
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
@yangxuan8282
yangxuan8282 / Dockerfile.dnsmasq
Last active September 27, 2022 10:52
pi netboot with docker
FROM arm32v6/alpine
RUN apk add --no-cache dnsmasq
EXPOSE 53/tcp \
53/udp \
67/udp
ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"]
@yangxuan8282
yangxuan8282 / addswap
Last active August 6, 2018 05:25
bash script to add zram for rpi
#!/bin/bash
function addswap {
SIZE=${1:-2G}
fallocate -l $SIZE /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
}
@yangxuan8282
yangxuan8282 / dependencies.txt
Last active April 8, 2019 09:03
archlinux arm xfce4 packages list
# aur
packer
# compile
git
base-devel
# xorg
xorg-server
xf86-video-fbdev
version: '3.1'
services:
kodexplorer:
image: yangxuan8282/kodexplorer:php-amd64
ports:
- 80:80
@yangxuan8282
yangxuan8282 / gen-arch.sh
Last active April 28, 2018 00:40
linux install helper for xps13 9343 && rpi, works for USB stick, HDD and vmware, generate debian (pixel DE) and archlinux image, support BIOS/UEFI
#!/bin/sh
#genetate archlinux image: chmod +x gen-arch.sh && sudo ./gen-arch.sh
#depends: arch-install-scripts, vim(xxd)
set -eu
die() {
printf '\033[1;31mERROR:\033[0m %s\n' "$@" >&2 # bold red
exit 1
}