Debootstrap

From Qi-Hardware
Jump to: navigation, search

Debootstrapping a distribution should allow one to easily create rootfs images that can be run on the NanoNote with OpenWRT/LibreWRT kernels.

Contents

[edit] Status

There are working Debian images at [1] and [2], but there are no instructions to how they were created.

[edit] How to debootstrap Debian-based distros

Only the first step differs. The last step is the same.

[edit] Step 1

[edit] gNewSense 3.0 (based on Debian Lenny)

On your desktop computer:

wget http://archive.gnewsense.org/gnewsense-metad/gnewsense/pool/overlays/kgoetz/debootstrap_1.0.27~gns1.tar.gz
tar xzf debootstrap_1.0.27~gns1.tar.gz
cd debootstrap-1.0.27~gns1/
make
sudo -s
export DEBOOTSTRAP_DIR="."
./debootstrap --arch=mipsel --foreign metad /microsdcard/

[edit] Debian sid

On your desktop computer:

wget http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.26.tar.gz
tar xzf debootstrap_1.0.26.tar.gz
cd debootstrap
make
sudo -s
export DEBOOTSTRAP_DIR="."
./debootstrap --arch=mipsel --foreign sid /microsdcard/

[edit] Step 2

Copy kernel image to microsdcard/boot/uImage

wget http://downloads.qi-hardware.com/software/images/NanoNote/Ben/latest/openwrt-xburst-qi_lb60-uImage.bin
cp openwrt-xburst-qi_lb60-uImage.bin /microsdcard/boot/uImage

On your NanoNote (running Debian, could probably also be done on an OpenWRT system):

apt-get install fakeroot
mount /dev/mmcblk0p1 /mnt/card/
chroot /mnt/card/
./debootstrap/debootstrap --second-stage
ln -s /sbin/init /etc/preinit

This results in a rootfs that have all the necessary files. Boot your NanoNote by pressing [M] and the power button at the same time

If you want to run this directly from the NAND memory, you'll have to ubinize the contents of the sd card. See Ubifs for more information.

[edit] Links

http://www.gnewsense.org/Documentation/DebootstrappingGNewSense3

Personal tools
Namespaces
Variants
Actions
Navigation
interactive
Toolbox
Print/export