include $(TOPDIR)/rules.mk
PKG_NAME:=lilo
-PKG_VERSION:=22.7.2
+PKG_VERSION:=22.7.3
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/lilo
-SECTION:=base
-CATEGORY:=Boot Loaders
-TITLE:=lilo
-DESCRIPTION:=lilo
-URL:=ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/
-DEPENDS:=@LINUX_2_6_X86||LINUX_2_4_X86
+ SECTION:=base
+ CATEGORY:=Boot Loaders
+ DEPENDS:=@LINUX_2_6_X86||LINUX_2_4_X86
+ TITLE:=lilo
+ URL:=ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/
endef
-
-
+define Package/lilo/conffiles
+/etc/lilo.conf
+endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) alles
endef
define Package/lilo/install
- mkdir -p $(1)/sbin
- mkdir -p $(1)/etc/init.d
- mkdir -p $(1)/boot
+ install -d -m0755 $(1)/sbin
$(CP) $(PKG_BUILD_DIR)/lilo.static $(1)/sbin/lilo
- $(CP) lilo.conf $(1)/etc
- $(CP) boot.msg $(1)/etc
- #$(CP) S11Pivot $(1)/etc/init.d
+ install -d -m0755 $(1)/etc
+ $(CP) ./files/lilo.conf $(1)/etc/
+ $(CP) ./files/boot.msg $(1)/etc/
endef
$(eval $(call BuildPackage,lilo))
+++ /dev/null
-Using this package to create a bootable usb stick for openwrt.
-
-The status of this package is currently 'it works for me', and it will
-require more effort before it's generic across the board. Currently
-only tested to be working on x86-2.6 using an initramfs image.
-My development environment for this is a via epia with a
-serial console (no monitors or keyboards attached).
-
-To create the images that are bootable, configure your buildroot to include
-the lilo package in the image, as well as e2fsprogs. Have it create an
-ext2 file system as the target file system. Let it build the works.
-
-When the build is finished, you will need to run the script 'mkbootable'
-located in the lilo package directory, it requires root privileges to
-loop mount the fs for installing lilo. When it's done, you have an
-8 meg ext2fs root file system ready to run.
-
-To use the image, dd it directly onto a usb stick. It should go onto
-/dev/sda not /dev/sda1, it's assuming the stick is not partitioned.
-When you boot the stick, you will get a lilo menu on the serial terminal.
-The three options allow you to boot with the stick itself as the root file
-system, or, to boot into a ramdisk, and not mount the stick at all. The
-stick will likely show up at /dev/disc
-
-Boot the unit, and select the ramdisk. Once up in the ramdisk, you can
-use the e2fstools to expand the image to fill the stick and add a journal
-to use it as ext3.
-
-e2fsck -f /dev/disc
-tune2fs -j /dev/disc
-resize2fs /dev/disc
-
-Reboot the box, and, have fun with openwrt on your x86 using the usb
-stick to boot and run from.
-
+++ /dev/null
-serial=0,115200n8
-boot =/dev/loop1
-disk =/dev/loop1
- bios =0x80
- sectors =63
- heads =255
- cylinders =999
-lba32
-compact
-install =mount/boot/boot.b
-map =mount/boot/map
-
-prompt
-delay =1
-timeout =100
-message =mount/etc/boot.msg
-
-
-image =mount/vmlinuz
- label =openwrt
- append =" rootfs=/dev/discs/disc0/disc console=ttyS0,115200n81 "
-
-image =mount/vmlinuz
- label =ramdisk
- append =" console=ttyS0,115200n81"
-
-image =mount/vmlinuz
- label =failsafe
- append =" FAILSAFE=MenuRequest console=ttyS0,115200n81"
-
+++ /dev/null
-
-Boot Options:-
-
-openwrt - OpenWrt with usb stick root
-ramdisk - OpenWrt with ramdisk root
-failsafe - OpenWrt failsafe
-
--- /dev/null
+Using this package to create a bootable usb stick for openwrt.
+
+The status of this package is currently 'it works for me', and it will
+require more effort before it's generic across the board. Currently
+only tested to be working on x86-2.6 using an initramfs image.
+My development environment for this is a via epia with a
+serial console (no monitors or keyboards attached).
+
+To create the images that are bootable, configure your buildroot to include
+the lilo package in the image, as well as e2fsprogs. Have it create an
+ext2 file system as the target file system. Let it build the works.
+
+When the build is finished, you will need to run the script 'mkbootable'
+located in the lilo package directory, it requires root privileges to
+loop mount the fs for installing lilo. When it's done, you have an
+8 meg ext2fs root file system ready to run.
+
+To use the image, dd it directly onto a usb stick. It should go onto
+/dev/sda not /dev/sda1, it's assuming the stick is not partitioned.
+When you boot the stick, you will get a lilo menu on the serial terminal.
+The three options allow you to boot with the stick itself as the root file
+system, or, to boot into a ramdisk, and not mount the stick at all. The
+stick will likely show up at /dev/disc
+
+Boot the unit, and select the ramdisk. Once up in the ramdisk, you can
+use the e2fstools to expand the image to fill the stick and add a journal
+to use it as ext3.
+
+e2fsck -f /dev/disc
+tune2fs -j /dev/disc
+resize2fs /dev/disc
+
+Reboot the box, and, have fun with openwrt on your x86 using the usb
+stick to boot and run from.
+
--- /dev/null
+serial=0,115200n8
+boot =/dev/loop1
+disk =/dev/loop1
+ bios =0x80
+ sectors =63
+ heads =255
+ cylinders =999
+lba32
+compact
+install =mount/boot/boot.b
+map =mount/boot/map
+
+prompt
+delay =1
+timeout =100
+message =mount/etc/boot.msg
+
+
+image =mount/vmlinuz
+ label =openwrt
+ append =" rootfs=/dev/discs/disc0/disc console=ttyS0,115200n81 "
+
+image =mount/vmlinuz
+ label =ramdisk
+ append =" console=ttyS0,115200n81"
+
+image =mount/vmlinuz
+ label =failsafe
+ append =" FAILSAFE=MenuRequest console=ttyS0,115200n81"
+
--- /dev/null
+
+Boot Options:-
+
+openwrt - OpenWrt with usb stick root
+ramdisk - OpenWrt with ramdisk root
+failsafe - OpenWrt failsafe
+
--- /dev/null
+serial=0,115200n8
+disk=/dev/discs/disc0/disc
+bios=0x80
+lba32
+compact
+install =/boot/boot.b
+map =/boot/map
+backup =/dev/null
+prompt
+delay =1
+timeout =100
+message =/etc/boot.msg
+
+image =/vmlinuz
+ label =openwrt
+ append =" rootfs=/dev/discs/disc0/disc console=ttyS0,115200n81 "
+
+image =/vmlinuz
+ label =ramdisk
+ append =" console=ttyS0,115200n81"
+
+image =/vmlinuz
+ label =failsafe
+ append =" FAILSAFE=MenuRequest console=ttyS0,115200n81"
+
+
--- /dev/null
+#!/bin/sh
+# Copyright (C) 2006 OpenWrt.org
+LOOPDEV="/dev/loop1"
+
+mkdir mount
+cp bin/openwrt-x86-2.6-ext2.img bin/boot.img
+sudo losetup $LOOPDEV bin/boot.img
+sudo mount $LOOPDEV mount
+sudo cp build_i386/linux/arch/i386/boot/bzImage mount/vmlinuz
+sudo mkdir mount/boot
+sudo build_i386/lilo-22.7.2/lilo -C package/lilo/bdlilo.conf
+sudo umount mount
+echo releasing $LOOPDEV
+sudo losetup -d $LOOPDEV
+rm -r -f mount
+++ /dev/null
-serial=0,115200n8
-disk=/dev/discs/disc0/disc
-bios=0x80
-lba32
-compact
-install =/boot/boot.b
-map =/boot/map
-backup =/dev/null
-prompt
-delay =1
-timeout =100
-message =/etc/boot.msg
-
-image =/vmlinuz
- label =openwrt
- append =" rootfs=/dev/discs/disc0/disc console=ttyS0,115200n81 "
-
-image =/vmlinuz
- label =ramdisk
- append =" console=ttyS0,115200n81"
-
-image =/vmlinuz
- label =failsafe
- append =" FAILSAFE=MenuRequest console=ttyS0,115200n81"
-
-
+++ /dev/null
-#!/bin/sh
-# Copyright (C) 2006 OpenWrt.org
-LOOPDEV="/dev/loop1"
-
-mkdir mount
-cp bin/openwrt-x86-2.6-ext2.img bin/boot.img
-sudo losetup $LOOPDEV bin/boot.img
-sudo mount $LOOPDEV mount
-sudo cp build_i386/linux/arch/i386/boot/bzImage mount/vmlinuz
-sudo mkdir mount/boot
-sudo build_i386/lilo-22.7.2/lilo -C package/lilo/bdlilo.conf
-sudo umount mount
-echo releasing $LOOPDEV
-sudo losetup -d $LOOPDEV
-rm -r -f mount