Compare commits

..

11 Commits

Author SHA1 Message Date
Takumi Sueda
e09c0ba017 Merge pull request #42 from brain-hackers/sh4
Update linux-brain: add SH4 keymap
2022-08-07 18:27:53 +09:00
Takumi Sueda
d74ba8a70f Update linux-brain: add SH4 keymap 2022-08-07 18:27:09 +09:00
Takumi Sueda
ec695f99f0 Merge pull request #41 from brain-hackers/ci-brain-config
Pre-install brain-config
2022-08-07 18:24:24 +09:00
Takumi Sueda
22235e8cf0 Install brain-config from packagecloud 2022-08-07 14:32:11 +09:00
Takumi Sueda
9529327097 Refactor apt install 2022-08-07 14:32:11 +09:00
Takumi Sueda
7e2b04ce18 Merge pull request #40 from brain-hackers/ci-optionalnk
Disable nk.bin boot loader injection by default etc.
2022-07-12 00:16:54 +09:00
Takumi Sueda
8c7118f0b2 Append a suffix by the tag
Conflicting tag name is now invalid
2022-07-11 20:15:34 +09:00
Takumi Sueda
7a34055ef3 Name the new volumes 2022-07-11 20:15:34 +09:00
Takumi Sueda
d64a316b1f Disable nk.bin boot loader injection by default 2022-07-11 20:15:29 +09:00
Takumi Sueda
d5ab036801 Merge pull request #39 from brain-hackers/ci-exeopener
Launch BrainLILO via exeopener
2022-05-30 17:06:46 +09:00
Takumi Sueda
fe480d7b91 Launch BrainLILO via exeopener 2022-05-30 14:38:58 +09:00
5 changed files with 40 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.release_name.outputs.name }} tag_name: ${{ steps.release_name.outputs.name }}-tag
release_name: ${{ steps.release_name.outputs.name }} release_name: ${{ steps.release_name.outputs.name }}
body_path: CHANGES.md body_path: CHANGES.md
draft: false draft: false

View File

@@ -51,8 +51,8 @@ sudo kpartx -av ${IMG}
LOOPDEV=$(losetup -l | grep sd.img | grep -o 'loop.' | tail -n 1) LOOPDEV=$(losetup -l | grep sd.img | grep -o 'loop.' | tail -n 1)
sudo mkfs.fat -F32 -v -I /dev/mapper/${LOOPDEV}p1 sudo mkfs.fat -n boot -F32 -v -I /dev/mapper/${LOOPDEV}p1
sudo mkfs.ext4 /dev/mapper/${LOOPDEV}p2 sudo mkfs.ext4 -L rootfs /dev/mapper/${LOOPDEV}p2
mkdir -p ${WORK}/p1 ${WORK}/p2 mkdir -p ${WORK}/p1 ${WORK}/p2
sudo mount -o utf8=true /dev/mapper/${LOOPDEV}p1 ${WORK}/p1 sudo mount -o utf8=true /dev/mapper/${LOOPDEV}p1 ${WORK}/p1
@@ -60,7 +60,8 @@ sudo mount /dev/mapper/${LOOPDEV}p2 ${WORK}/p2
sudo cp ${LINUX}/arch/arm/boot/zImage ${WORK}/p1/ sudo cp ${LINUX}/arch/arm/boot/zImage ${WORK}/p1/
sudo cp ${LINUX}/arch/arm/boot/dts/imx28-pw*.dtb ${WORK}/p1/ sudo cp ${LINUX}/arch/arm/boot/dts/imx28-pw*.dtb ${WORK}/p1/
sudo cp ${WORK}/*.bin ${WORK}/p1/ sudo mkdir -p ${WORK}/p1/nk
sudo cp ${WORK}/*.bin ${WORK}/p1/nk/
make -C ${REPO}/brainlilo make -C ${REPO}/brainlilo
@@ -69,7 +70,9 @@ sudo mkdir -p "${LILO}"
sudo touch "${LILO}/index.din" sudo touch "${LILO}/index.din"
sudo touch "${LILO}/AppMain.cfg" sudo touch "${LILO}/AppMain.cfg"
sudo cp ${REPO}/brainlilo/*.dll "${LILO}/" sudo cp ${REPO}/brainlilo/*.dll "${LILO}/"
sudo cp ${REPO}/brainlilo/BrainLILO.exe "${LILO}/AppMain.exe" sudo cp ${REPO}/brainlilo/BrainLILO.exe "${LILO}/AppMain_.exe"
gzip -d ${REPO}/image/exeopener.exe.gz
sudo cp ${REPO}/image/exeopener.exe "${LILO}/AppMain.exe"
sudo mkdir -p ${WORK}/p1/loader sudo mkdir -p ${WORK}/p1/loader
sudo cp ${WORK}/lilobin/*.bin ${WORK}/p1/loader/ sudo cp ${WORK}/lilobin/*.bin ${WORK}/p1/loader/

BIN
image/exeopener.exe.gz Normal file

Binary file not shown.

View File

@@ -33,6 +33,7 @@ APT::Install-Recommends "0";
APT::Install-Suggests "0"; APT::Install-Suggests "0";
EOF EOF
# locales: locale has to be set before going any further
apt update -y apt update -y
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt install -y locales apt install -y locales
@@ -50,6 +51,32 @@ rm /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
echo "brain" > /etc/hostname echo "brain" > /etc/hostname
# Install packagecloud repository
# Reference: https://packagecloud.io/brainhackers/brainux/install
# curl: downloads the GPG key from packagecloud
# gnupg, debian-archive-keyring: packagecloud verification dependency
DEBIAN_FRONTEND=noninteractive \
apt install -y curl gnupg debian-archive-keyring
# apt-transport-https can be installed after debian-archive-keyring being installed
DEBIAN_FRONTEND=noninteractive \
apt install -y apt-transport-https
# Install GPG key and packagecloud repository config
mkdir -p /etc/apt/keyrings
curl -fsSL "https://packagecloud.io/brainhackers/brainux/gpgkey" \
| gpg --dearmor > /etc/apt/keyrings/brainhackers_brainux-archive-keyring.gpg
cat <<EOF > /etc/apt/sources.list.d/packagecloud.list
deb [signed-by=/etc/apt/keyrings/brainhackers_brainux-archive-keyring.gpg] https://packagecloud.io/brainhackers/brainux/any/ any main
deb-src [signed-by=/etc/apt/keyrings/brainhackers_brainux-archive-keyring.gpg] https://packagecloud.io/brainhackers/brainux/any/ any main
EOF
# Fetch packagecloud repository
apt update -y
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt install -y dialog sudo \ apt install -y dialog sudo \
libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \ libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \
@@ -61,11 +88,12 @@ DEBIAN_FRONTEND=noninteractive \
dbus udev alsa-utils usbutils iw fake-hwclock\ dbus udev alsa-utils usbutils iw fake-hwclock\
build-essential flex bison pkg-config autotools-dev libtool autoconf automake device-tree-compiler \ build-essential flex bison pkg-config autotools-dev libtool autoconf automake device-tree-compiler \
python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \ python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \
resolvconf net-tools ssh openssh-client avahi-daemon curl wget git \ resolvconf net-tools ssh openssh-client avahi-daemon wget git \
network-manager zip neofetch sl python3-numpy ipython3 netsurf-gtk network-manager zip neofetch sl python3-numpy ipython3 netsurf-gtk fcitx-anthy
# Packages from packagecloud
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt install -y --install-recommends fcitx-anthy apt install -y --install-recommends brain-config
systemctl enable fake-hwclock systemctl enable fake-hwclock