I’m trying to install openwrt on a desktop PC with SATA hard drives, but so far all attempts have resulted in a grub error 21 message (at boot).
On the first attempt I booted up the PC with a LiveCD then did the following:
wget http://downloads.openwrt.org/backfire/10.03.1/x86_generic/openwrt-x86-generic-combined-ext2.img.gz
gunzip openwrt-x86-generic-combined-ext2.img.gz
dd if=openwrt-x86-generic-combined-ext2.img of=/dev/sda bs=1M count=100
After the above failed, I thought it might be because I’m using SATA drives. I then thought I’d try to compile my own image (this time from a VirtualBox instance of Ubuntu Desktop 12.04.1 LTS (32 bit):
sudo apt-get install subversion build-essential
mkdir ~/openwrt
svn co svn://svn.openwrt.org/openwrt/branches/backfire
cd ~/openwrt/backfire/
./scripts/feeds update –a
./scripts/feeds install –a
sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl
make defconfig
make prereq
make menuconfig
I wasn’t entirely sure what to include at this point so any suggestions would be appreciated.
make
Once completed I copied the image file (from the bin directory) to a USB stick, booted the target PC with a LiveCD, copied the file across, gunzip’d it, and then used the dd command to copy to disk:
sudo su -
cd /home/ubuntu
dd if=openwrt-x86-generic-combined-ext2.img of=/dev/sda bs=1M count=100
Again, on reboot, I receive the grub error 21 message.
I think I need the “pata_jmicron” module installed but I don’t see it in “make menuconfig”. Also, if anyone knows how to install the “solos-pci” module – that would be really great! It is normally included in the Linux kernel.
Appreciate any help you can give, cheers.