[package] also install rbash (#6927)
[openwrt/svn-archive/archive.git] / utils / lilo / files / README
1 Using this package to create a bootable usb stick for openwrt.
2
3 The status of this package is currently 'it works for me', and it will
4 require more effort before it's generic across the board. Currently
5 only tested to be working on x86-2.6 using an initramfs image.
6 My development environment for this is a via epia with a
7 serial console (no monitors or keyboards attached).
8
9 To create the images that are bootable, configure your buildroot to include
10 the lilo package in the image, as well as e2fsprogs. Have it create an
11 ext2 file system as the target file system. Let it build the works.
12
13 When the build is finished, you will need to run the script 'mkbootable'
14 located in the lilo package directory, it requires root privileges to
15 loop mount the fs for installing lilo. When it's done, you have an
16 8 meg ext2fs root file system ready to run.
17
18 To use the image, dd it directly onto a usb stick. It should go onto
19 /dev/sda not /dev/sda1, it's assuming the stick is not partitioned.
20 When you boot the stick, you will get a lilo menu on the serial terminal.
21 The three options allow you to boot with the stick itself as the root file
22 system, or, to boot into a ramdisk, and not mount the stick at all. The
23 stick will likely show up at /dev/disc
24
25 Boot the unit, and select the ramdisk. Once up in the ramdisk, you can
26 use the e2fstools to expand the image to fill the stick and add a journal
27 to use it as ext3.
28
29 e2fsck -f /dev/disc
30 tune2fs -j /dev/disc
31 resize2fs /dev/disc
32
33 Reboot the box, and, have fun with openwrt on your x86 using the usb
34 stick to boot and run from.
35