Skip to content

Instantly share code, notes, and snippets.

setenv env_addr "0x10400000"
setenv kernel_addr "0x11000000"
setenv initrd_addr "0x13000000"
setenv dtb_mem_addr "0x1000000"
setenv boot_start booti ${kernel_addr} ${initrd_addr} ${dtb_mem_addr}
if fatload mmc 1 ${kernel_addr} zImage; then if fatload mmc 1 ${initrd_addr} uInitrd; then if fatload mmc 1 ${env_addr} uEnv.ini; then env import -t ${env_addr} ${filesize}; fi; if fatload mmc 1 ${dtb_mem_addr} ${dtb_name}; then run boot_start;fi;fi;fi;
@yangxuan8282
yangxuan8282 / APKBUILD
Created July 26, 2018 13:20
bootchart2 alpine pkgs(tmp)
# Maintainer: He Yangxuan <yangxuan8282@gmail.com>
pkgname=bootchart2
pkgver=0.14.8
pkgrel=0
pkgdesc="Boot Process Performance Visualization"
arch="all"
url="https://github.com/xrmx/bootchart"
license="GPL"
depends="python2 py-gtk"
@yangxuan8282
yangxuan8282 / .bashrc
Last active May 19, 2022 03:48 — forked from rickdaalhuizen90/.bashrc
Parrot Os bash theme for alpine
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@yangxuan8282
yangxuan8282 / gen-alpine.sh
Last active April 12, 2022 09:57
shell script to help install alpine to raspberry pi, pc
#!/bin/sh
#genetate alpine edge x86/x86_64 image: chmod +x gen-alpine.sh && sudo ./gen-alpine.sh
#depends: apk-tools-static, vim(xxd)
set -x
die() {
printf '\033[1;31mERROR:\033[0m %s\n' "$@" >&2 # bold red
exit 1
}
@yangxuan8282
yangxuan8282 / README.md
Last active May 31, 2018 06:27
rpi kernel notes
  • sdcard/mmc

for raspberrypi, the I/O speed should be the most important things

among those distros with rpi support, in this aspect the raspbian is best, alarm is close, alpine worst

quote from this issues: there are three sdcard drivers:

CONFIG_MMC_BCM2835 (upstream)

@yangxuan8282
yangxuan8282 / README.md
Created April 4, 2018 07:03
install Basilisk II on rpi

install Basilisk II without X11 on raspberry pi (raspbian stretch lite)

sudo apt update && sudo apt upgrade -y
sudo apt install automake gobjc -y
@yangxuan8282
yangxuan8282 / Dockerfile
Created April 2, 2018 15:46
compile https://github.com/hex007/freej2me, run with: docker run --rm -v $(pwd)/freej2me:/tmp/freej2me-master freej2me:build
FROM arm32v7/debian
RUN set -xe \
&& apt-get update \
&& apt-get install -y ant openjdk-8-jdk openjfx wget unzip \
#&& export JAVA_HOME='/usr/lib/jvm/java-8-openjdk-armhf/' \
&& wget https://github.com/hex007/freej2me/archive/master.zip \
&& unzip master.zip
ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-armhf/"
@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
}
version: '3.1'
services:
kodexplorer:
image: yangxuan8282/kodexplorer:php-amd64
ports:
- 80:80
@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