https://github.com/lupino/rpi-chroot
A scripts for build a custem Raspbain system
https://github.com/lupino/rpi-chroot
Last synced: 3 months ago
JSON representation
A scripts for build a custem Raspbain system
- Host: GitHub
- URL: https://github.com/lupino/rpi-chroot
- Owner: Lupino
- Created: 2013-04-05T04:00:19.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-09T14:22:26.000Z (about 12 years ago)
- Last Synced: 2025-01-22T11:48:12.399Z (5 months ago)
- Language: Shell
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# USAGE:
## First clone it
git clone [email protected]:Lupino/rpi-chroot.git
cd rpi-chroot## Second edit the rpi-config
export ROOT=${HOME}/chroot-raspbian-armhf
export MIRROR=http://mirror.nus.edu.sg/raspbian/raspbian
export SCRIPTROOT=`dirname $0`# U6aMy0wojraho is just a blank password
export RPI_INIT=${SCRIPTROOT}/rpi-init
export PASSWD=U6aMy0wojraho
export USER=rpi## Build the rootfs
./rpi-build-rootfs
## Enter the chroot
./rpi-chroot
# Scripts details
* `rpi-build-rootfs` build the base chroot env.
* `rpi-init` the init script, run on the rpi-build-rootfs
* `rpi-chroot` the chroot script you run it to enter the chroot. you also `rpi-chroot [command]`
* `rpi-install-kernel` install the kernel for the chroot. make sure it can run on the raspberry pi board.# Denpend
sudo apt-get install qemu-user-static debootstrap
# Install to a SD disk
./rpi-install-kernel
# split the SD disk two partent 50M fat and ext4 left
# copy boot to the first partent and other to the next.