Difference between revisions of "Debootstrap to x86-64 LiveCD"


From Knoppix Documentation Wiki
Jump to: navigation, search
m (Reverted edit of The thing, changed back to last version by SNIa)
(Custom Kernel)
Line 72: Line 72:
  
 
== Custom Kernel ==
 
== Custom Kernel ==
*todo
+
# Download the latest stable 2.6 kernel
 +
#
 +
 
 +
tar -xjf /path/to/linux-2.X.YY.tar.bz2 -C /usr/src
 +
cd /usr/src
 +
ln -s linux-2.X.YY linux
 +
cd linux
 +
cp /boot/config-2.6.11 .config
 +
make oldconfig
 +
make menuconfig
 +
make
 +
make modules
 +
make modules_install
 +
cd include
 +
ln -s asm-i386 asm
 +
cd ..
 +
cp arch/i386/boot/bzImage /boot/vmlinuz-2.X.YY
 +
cp System.map /boot/System.map-2.X.YY
 +
cp .config /boot/config-2.X.YY
 +
cd /boot
 +
rm config System.map vmlinuz
 +
ln -s config-2.X.YY config
 +
ln -s System.map-2.X.YY System.map
 +
ln -s vmlinuz-2.X.YY vmlinuz
  
 
==TO DO==
 
==TO DO==

Revision as of 19:19, 8 July 2006

Welcome to the Knoppix 64 / 64bit / AMD64 / EM64T / Knoppix64 LiveCD

preamble

  • PLEASE if anyone knows where to find the patches for the knoppix kernel please send me an email: jupiterproject at gmail dot com, thanks!
  • In Development by SNIa 06:38, 8 Jul 2006 (GMT)
  • Using the Debian Net-inst CD as a base, still very alpha.

Variables

#!/bin/bash

SOURCEDIR=/mnt/hda1/source/KNOPPIX64
MASTERDIR=/mnt/hda1/master/KNOPPIX64
ARCH=amd64
DEBIAN_RELEASE=sarge
DEBIAN_MIRROR=http://amd64.debian.net/debian-amd64

Set Up the Environment

mkdir -p ${SOURCEDIR}
mkdir -p ${MASTERDIR}

DeBootstrap

debootstrap --arch ${ARCH} ${DEBIAN_RELEASE} ${SOURCEDIR} ${DEBIAN_MIRROR}
cp /etc/resolv.conf ${SOURCEDIR}/etc/.

Now Chroot and set up environment

chroot ${SOURCEDIR} \
   /usr/bin/env -i \
  HOME=/root \
  TERM=$TERM \
  PS1='\u:\w\$ ' \
  PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /bin/bash --login

mount proc -t proc proc

cd /dev && ./MAKEDEV generic

echo "deb http://amd64.debian.net/debian-amd64 sarge  main contrib non-free" > /etc/apt/sources.list
apt-get update
apt-get install \
 gawk \
 perl \
 libdb4.4 \
 perl-modules \
 console-tools \
 console-data \
 console-common \
 pciutils \
 libpci2 \
 udev \
 libvolume-id0 \
 dhcp3-common \
 linux-sound-base \
 ndiswrapper-utils \
 ndiswrapper-common \
 ndiswrapper-utils-1.1 \
 binutils \
 debhelper \
 dpkg-dev \
 file \
 gettext \
 html2text \
 intltool-debian \
 libmagic1 \
 make \
 patch \
 po-debconf

Custom Kernel

  1. Download the latest stable 2.6 kernel

tar -xjf /path/to/linux-2.X.YY.tar.bz2 -C /usr/src cd /usr/src ln -s linux-2.X.YY linux cd linux cp /boot/config-2.6.11 .config make oldconfig make menuconfig make make modules make modules_install cd include ln -s asm-i386 asm cd .. cp arch/i386/boot/bzImage /boot/vmlinuz-2.X.YY cp System.map /boot/System.map-2.X.YY cp .config /boot/config-2.X.YY cd /boot rm config System.map vmlinuz ln -s config-2.X.YY config ln -s System.map-2.X.YY System.map ln -s vmlinuz-2.X.YY vmlinuz

TO DO

  • Custom Kernel
  • Make a custom minirt.gz file
  • (compared from Debootstrap to LiveCD) Install Custom Kernel Configuration (now 64 bit)

notes