[Voyage-linux] Voyage linux on USB flash drive
Lee Woldanski
(spam-protected)
Sat Nov 12 14:25:11 HKT 2011
Hi Jorge,
Sorry I didn't get back to you right away... I wanted to run through
the whole process myself and give you a more detailed tutorial...
Here's a process that should work for you to re-build the distro with
your own custom kernel:
Get the 0.8.0 SDK off the website and install it on a virtual machine
so you can create a build environment.
Boot in to your SDK environment.
Change /etc/apt/sources.list to closest mirror
apt-get update
apt-get upgrade
apt-get install dialog locales
dpkg-reconfigure tzdata (pick your proper timezone)
apt-get install subversion live-helper (they should already exist)
cd ~
svn co http://svn.voyage.hk/repos/voyage/branches/voyage-live/0.8.0/
voyage-live (I checked out R283 which was current)
cd voyage-live/config
Edit bootstrap and change the following for your closer mirrors (makes
things build faster):
# $LB_MIRROR_BOOTSTRAP: set mirror to bootstrap from
# (Default: http://ftp.jp.debian.org/debian/)
LB_MIRROR_BOOTSTRAP="http://ftp.jp.debian.org/debian/"
# $LB_MIRROR_CHROOT: set mirror to fetch packages from
# (Default: http://ftp.jp.debian.org/debian/)
LB_MIRROR_CHROOT="http://ftp.jp.debian.org/debian/"
# $LB_MIRROR_BINARY: set mirror which ends up in the image
# (Default: http://ftp.jp.debian.org/debian/)
LB_MIRROR_BINARY="http://ftp.jp.debian.org/debian/"
# $LB_MIRROR_DEBIAN_INSTALLER: set debian-installer mirror
# (Default: http://ftp.jp.debian.org/debian/)
LB_MIRROR_DEBIAN_INSTALLER="http://ftp.jp.debian.org/debian/"
cd ~/voyage-live
./build.sh img (to check that you can build a valid image without
errors, you should get a voyage-current.img when it is done)
lb clean
rm -rf auto cache
rm voyage-current.img
Now we'll work on our new kernel:
cd /usr/src
apt-get install dialog ncurses-dev build-essential zlib1g-dev
kernel-package fakeroot (to make sure all the requisite packages
are installed)
apt-get install linux-source-3.0.0-voyage
tar -xjf linux-source-3.0.0-voyage.tar.bz2
ln -s linux-source-3.0.0-voyage linux
wget http://mirror.voyage.hk/download/kernel_config/config-3.0.0-voyage_10.0-1
cp config-3.0.0-voyage_10.0-1 ./linux/.config
cd linux
make menuconfig (now you can change the options you like, save your
config and make sure your custom configuration is in .config)
make-kpkg --initrd --revision="1.0" --append_to_version="-mycustom" kernel_image
This should give you a kernel-image package called
linux-image-3.0.0-mycustom_1.0_i386.deb in /usr/src/linux
Copy this file to ~/voyage-live/config/chroot_local-packages (you can
also delete the lilo .deb's that are in that folder, they don't need
to be there)
Now go edit ~/voyage-live/config/chroot_local-hooks/098-voyage
Need to change the dpkg-reconfigure line to your flavor of kernel
(from *-voyage.postinst to whatever your flavor is, ie
*-mycustom.postinst).
Now you should be ready to go.
Go back to ~/voyage-live and run ./build.sh img again and you should
now re-build the distro, using your kernel package that is in
chroot_local-packages.
Once again, you should get a voyage-current.img file.
Take that file, use physdiskwrite (windows) or dd (linux) and write it
to a usb stick. You should be able to boot off the usb stick and use
it as you would the live-cd, including using it as install-media to
install that version on your target machine.
Note that there are a couple of other options for ./build.sh, you can
use iso to create a Live-CD iso, or SDK to build your own SDK iso.
Hope that gets you going.
Lee
On Fri, Nov 11, 2011 at 9:42 AM, George <george.news at gmx.net> wrote:
> I have managed to compile and install the new kernel on a running voyage
> linux.
>
> Now I'm trying to create the image with the new kernel. In which directory
> did you put the kernel image and which files did you modified? I do not have
> a debian package repository configured.
>
> After that, I'm creating a tutorial that I will post online.
>
> See you
> Jorge
>
--
Lee Woldanski, AScT
VE7FET
More information about the Voyage-linux
mailing list