This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Executing /etc/qemu-ifup" | |
echo "Creating bridge" | |
sysctl -w net.link.ether.inet.proxyall=1 | |
sysctl -w net.inet.ip.forwarding=1 | |
sysctl -w net.inet.ip.fw.enable=1 | |
ifconfig bridge0 create | |
echo "Bringing up $1 for bridged mode" | |
ifconfig $1 0.0.0.0 up | |
echo "Add $1 to bridge" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Executing /etc/qemu-ifdown" | |
echo "Bringing TAP interface down" | |
ifconfig $1 down | |
echo "Removing interfaces" | |
ifconfig bridge0 deletem en0 deletem $1 | |
echo "Bring down bridge" | |
ifconfig bridge0 down | |
echo "Removing bridge" | |
ifconfig bridge0 destroy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Enter Developer Mode | |
Disclaimer. I will take no responsibility if you somehow brick your chrome book. You should only attempt the following if you are familiar with embedded system hackery :) | |
With the laptop turned off, hold down the escape and refresh keys, then press the power key | |
The device is now in Recovery Mode, pressing Ctrl-D will enable Developer Mode. | |
Confirm the action by pressing Enter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apt-get install android-tools-fastboot unzip | |
fastboot flash bootloader $1 | |
fastboot reboot-bootloader | |
sleep 5 | |
unzip $2 | |
fastboot flash boot boot.img | |
fastboot flash recovery recovery.img | |
fastboot flash system system.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip -6 route add <ipv6-prefix>::/<subnet> dev docker0 | |
sysctl net.ipv6.conf.default.forwarding=1 | |
sysctl net.ipv6.conf.all.forwarding=1 | |
sysctl net.ipv6.conf.enP2p1s0.accept_ra=2 | |
service ndppd restart | |
service docker restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /root | |
apt-get update | |
apt-get install -y debootstrap debian-archive-keyring git devscripts build-essential | |
git clone https://github.com/bitnami/minideb.git | |
cd minideb | |
./mkimage stretch-arm64.tar stretch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /root | |
apt-get update | |
apt-get install -y debootstrap debian-archive-keyring git devscripts build-essential | |
git clone https://github.com/bitnami/minideb.git | |
cd minideb | |
./mkimage stretch-armhf.tar stretch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo docker pull kernelci/lava-slave-docker-v2-lab-tbaker:latest | |
sudo docker stop lava-slave-01 | |
sudo docker rm lava-slave-01 | |
sudo docker run -dit -v /dev:/dev -e LAVA_SERVER_IP='192.168.1.21' -e LAVA_MASTER=192.168.1.16 --name=lava-slave-01 -h lava-slave-01 --privileged kernelci/lava-slave-docker-v2-lab-tbaker:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /root | |
install_packages debootstrap debian-archive-keyring git devscripts build-essential | |
GIT_SSL_NO_VERIFY=true git clone https://github.com/bitnami/minideb.git | |
cd minideb | |
./mkimage stretch-$ARCH.tar stretch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GIT_SSL_NO_VERIFY=true git clone https://github.com/EmbeddedAndroid/alpine-docker.git | |
cd alpine-docker | |
chmod a+x wrapper.sh mkimage-alpine.sh | |
if [ $ARCH = "arm64" ]; then | |
if [ $REL == "edge" ]; then | |
./wrapper.sh -a aarch64 -o alpine -r $REL | |
else |
OlderNewer