Compare commits

...

28 Commits

Author SHA1 Message Date
Takumi Sueda
ee93757ff1 Merge pull request #51 from brain-hackers/ci-ly-fix
Switch ly repository to freeze the source code
2023-01-18 04:25:37 +09:00
Takumi Sueda
9f41a0bbd2 Switch ly repository to freeze the source code 2023-01-10 19:14:57 +09:00
Takumi Sueda
9671252f5d Merge pull request #50 from brain-hackers/ci-bullseye
Change the base rootfs to bullseye
2022-12-21 13:11:01 +09:00
Takumi Sueda
935363d6ac Change the base rootfs to bullseye
It is unintentionally reverted back to buster
2022-12-21 13:09:18 +09:00
Takumi Sueda
25668a72e3 Merge pull request #49 from brain-hackers/bump
Update linux-brain: update keyboard driver & maximize brightness
2022-12-08 01:03:01 +09:00
Takumi Sueda
d7da4a6e44 Update linux-brain: update keyboard driver & maximize brightness 2022-12-08 01:02:34 +09:00
Takumi Sueda
8f3f63be44 Merge pull request #48 from brain-hackers/ci-timesyncd
Add systemd-timesyncd & revert back issue and os-release
2022-11-24 00:23:56 +09:00
Takumi Sueda
a4350f303c Fix sudoers 2022-11-23 23:28:22 +09:00
Takumi Sueda
f7a20f61b7 Revert back issue and os-release 2022-11-23 23:20:09 +09:00
Takumi Sueda
2ecec60001 Add systemd-timesyncd 2022-11-23 23:14:38 +09:00
Takumi Sueda
eaa027db98 Merge pull request #47 from brain-hackers/sudoer
Show asterisks in sudo
2022-11-23 23:07:09 +09:00
Takumi Sueda
53e39a8bb6 Show asterisks in sudo 2022-11-23 23:00:06 +09:00
Takumi Sueda
453fe8d60f Merge pull request #46 from brain-hackers/ci-update
Bump versions
2022-11-23 02:06:05 +08:00
Takumi Sueda
e7d3c4629a G5300 -> A7200 2022-11-23 01:23:39 +09:00
Takumi Sueda
57c5052909 Update BrainLILO: support 1G
1G is supported by no one else though
2022-11-23 00:14:58 +09:00
Takumi Sueda
84960b1471 Update u-boot-brain: unify 2G, update env 2022-11-23 00:12:11 +09:00
Takumi Sueda
515aff62be Update linux-brain: unify 2G, enable UAC 2022-11-23 00:11:29 +09:00
Takumi Sueda
6cf0f749d4 Merge pull request #44 from brain-hackers/fix
Fix
2022-11-13 20:35:42 +08:00
Takumi Sueda
7ca8ed3cc1 Install ly service 2022-11-13 21:35:03 +09:00
Takumi Sueda
f444f68a3b Install ca-certificates 2022-11-13 11:48:38 +09:00
Takumi Sueda
f503ef87ef Merge pull request #43 from brain-hackers/license
Add exeopener license agreement
2022-11-04 10:36:54 +09:00
Takumi Sueda
3f4afedf45 Add exeopener license agreement
as per the body approved by the original author
2022-11-03 00:39:09 +09:00
Takumi Sueda
5e92df0600 Update u-boot-brain 2022-08-27 16:30:48 +09:00
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
13 changed files with 93 additions and 28 deletions

View File

@@ -128,7 +128,7 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- model: g5300 - model: a7200
nk: edna3exe.bin nk: edna3exe.bin
lilo: gen2.bin lilo: gen2.bin
- model: sh1 - model: sh1

View File

@@ -144,9 +144,9 @@ brainux:
sudo mkdir -p brainux sudo mkdir -p brainux
@if [ "$(CI)" = "true" ]; then \ @if [ "$(CI)" = "true" ]; then \
echo "I'm in CI and debootstrap without cache."; \ echo "I'm in CI and debootstrap without cache."; \
sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign buster brainux/; \ sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign bullseye brainux/; \
else \ else \
sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign buster brainux/ http://localhost:65432/debian/; \ sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign bullseye brainux/ http://localhost:65432/debian/; \
fi fi
sudo cp /usr/bin/qemu-arm-static brainux/usr/bin/ sudo cp /usr/bin/qemu-arm-static brainux/usr/bin/
sudo cp ./os-brainux/setup_brainux.sh brainux/ sudo cp ./os-brainux/setup_brainux.sh brainux/

23
image/LICENSE Normal file
View File

@@ -0,0 +1,23 @@
*** exeopener ***
MIT License
Copyright (c) 2022 Chiharu Shirasaka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -11,7 +11,7 @@ export CROSS_COMPILE=arm-linux-gnueabi-
mkdir -p ${WORK} mkdir -p ${WORK}
mkdir -p ${WORK}/lilobin mkdir -p ${WORK}/lilobin
for i in "g5300" "sh1" "sh2" "sh3" "sh4" "sh5" "sh6" "sh7"; do for i in "a7200" "sh1" "sh2" "sh3" "sh4" "sh5" "sh6" "sh7"; do
NUM=$(echo $i | sed -E 's/sh//g') NUM=$(echo $i | sed -E 's/sh//g')
make -C ${REPO}/u-boot-brain distclean pw${i}_defconfig make -C ${REPO}/u-boot-brain distclean pw${i}_defconfig
@@ -19,7 +19,7 @@ for i in "g5300" "sh1" "sh2" "sh3" "sh4" "sh5" "sh6" "sh7"; do
${REPO}/nkbin_maker/bsd-ce ${REPO}/u-boot-brain/u-boot.bin ${REPO}/nkbin_maker/bsd-ce ${REPO}/u-boot-brain/u-boot.bin
case $i in case $i in
"g5300") "a7200")
mv ${REPO}/nk.bin ${WORK}/edna3exe.bin mv ${REPO}/nk.bin ${WORK}/edna3exe.bin
mv ${REPO}/u-boot-brain/u-boot.bin ${WORK}/lilobin/gen2.bin;; mv ${REPO}/u-boot-brain/u-boot.bin ${WORK}/lilobin/gen2.bin;;
"sh1" | "sh2" | "sh3") "sh1" | "sh2" | "sh3")

View File

@@ -5,10 +5,8 @@ set -uex -o pipefail
SRC=$1 SRC=$1
DST=$2 DST=$2
install -g root -o root -m 0644 $SRC/usr/lib/os-release $DST/usr/lib/os-release
install -g root -o root -m 0644 $SRC/etc/issue $DST/etc/issue
install -g root -o root -m 0644 $SRC/etc/issue.net $DST/etc/issue.net
install -g root -o root -m 0644 $SRC/etc/motd $DST/etc/motd install -g root -o root -m 0644 $SRC/etc/motd $DST/etc/motd
install -g root -o root -m 0440 $SRC/etc/sudoers $DST/etc/sudoers
install -g root -o root -m 0644 $SRC/etc/X11/xorg.conf $DST/etc/X11/xorg.conf install -g root -o root -m 0644 $SRC/etc/X11/xorg.conf $DST/etc/X11/xorg.conf
install -g root -o root -m 0644 $SRC/etc/X11/Xsession.d/96calibrate $DST/etc/X11/Xsession.d/96calibrate install -g root -o root -m 0644 $SRC/etc/X11/Xsession.d/96calibrate $DST/etc/X11/Xsession.d/96calibrate

View File

@@ -1,2 +0,0 @@
Brainux GNU/Linux 10 \n \l

View File

@@ -1 +0,0 @@
Brainux GNU/Linux 10

View File

@@ -0,0 +1,27 @@
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset,pwfeedback
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "@include" directives:
@includedir /etc/sudoers.d

View File

@@ -1,9 +0,0 @@
PRETTY_NAME="Brainux GNU/Linux 11 (bullseye)"
NAME="Brainux GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://github.com/brain-hackers/README"
SUPPORT_URL="https://github.com/brain-hackers/buildbrain"
BUG_REPORT_URL="https://github.com/brain-hackers/buildbrain"

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, ca-certificates: downloads the GPG key from packagecloud
# gnupg, debian-archive-keyring: packagecloud verification dependency
DEBIAN_FRONTEND=noninteractive \
apt install -y curl ca-certificates 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 \
@@ -58,14 +85,15 @@ DEBIAN_FRONTEND=noninteractive \
weston xwayland \ weston xwayland \
bash tmux vim htop \ bash tmux vim htop \
midori pcmanfm lxterminal xterm gnome-terminal fbterm uim-fep uim-anthy fonts-noto-cjk \ midori pcmanfm lxterminal xterm gnome-terminal fbterm uim-fep uim-anthy fonts-noto-cjk \
dbus udev alsa-utils usbutils iw fake-hwclock\ dbus udev alsa-utils usbutils iw fake-hwclock systemd-timesyncd\
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
@@ -73,10 +101,11 @@ systemctl enable fake-hwclock
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \
apt install -y libpam0g-dev libxcb-xkb-dev apt install -y libpam0g-dev libxcb-xkb-dev
cd / cd /
git clone --recurse-submodules https://github.com/nullgemm/ly.git git clone --recurse-submodules -b master-24f017e https://github.com/brain-hackers/ly.git
cd ly cd ly
make make
make install make install
make installsystemd
cd / cd /
rm -r ly rm -r ly
systemctl enable ly systemctl enable ly