Just install the ipxe package (apt install ipxe) and run sudo update-grub afterwards.
Monday, January 18, 2021
OpenWrt on HP Microserver Gen8
This was done when the server already had a working debian in its own partition. Can be done also in a new/empty disk using a live install disk.
- Download required files:
- rootfs image (e.g. https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/openwrt-19.07.5-x86-64-rootfs-ext4.img.gz).
- kernel (e.g. https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/openwrt-19.07.5-x86-64-vmlinuz).
- Network driver: kmod-libphy and kmod-tg3 (https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/packages/kmod-libphy_4.14.209-1_x86_64.ipk and https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/packages/kmod-tg3_4.14.209-1_x86_64.ipk).
- Prepare a partition for OpenWrt
- Copy image to hard disk partition with dd or similar tool.
- Copy kernel to /boot.
- Copy both ipk files for the network driver to /tmp.
- Install grub2 to the disk if not present already.
- Write a grub entry for OpenWrt, e.g. (modify partition location/id as needed):
menuentry 'OpenWrt 19.07.5 (on /dev/sdc2)' --class openwrt --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-57f8f4bc-abf4-655f-bf67-946fc0f9f25b' { insmod part_msdos insmod ext2 set root='hd2,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2 57f8f4bc-abf4-655f-bf67-946fc0f9f25b else search --no-floppy --fs-uuid --set=root 57f8f4bc-abf4-655f-bf67-946fc0f9f25b fi linux /boot/vmlinuz root=/dev/sdc2 }
- Update-grub
- Boot
- opkg install /tmp/kmod-libphy... and opkg install /tmp/kmod-tg3
- Configure as needed
- Once you have internet connection consider install additional packages (e.g. nano, luci-admin-full).
Labels:
microserver,
openwrt
Location:
08840 Viladecans, Barcelona, EspaƱa
Subscribe to:
Posts (Atom)