OpenWrt Forum Archive

Topic: Installing OpenWRT on desktop PC (x86) with SATA drives

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

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.

Does anyone know what I might be doing wrong here?  Any information about how a newbie can get this working on a x86 machine (with SATA hdd) would be great!

Just in case this helps, please see the below link for my .config file (too long to post here) - maybe something's wrong here?

https://www.dropbox.com/s/2g7u02ba91lwa0g/config.txt

Cheers,
Andy

The discussion might have continued from here.