Install Openwrt On X86 Pc

Posted on
Install Openwrt On X86 Pc Rating: 5,7/10 4614 reviews

I've tried to install OpenWRT Backfire 10.03.1-rc6 x86_generic combined ext2 on my x86 PC, but the boot process stops while 'waiting for root device /dev/sda2'.

Forums have advised me to build a custom OpenWRT image, but I don't know what packages I should include to solve this problem.

I've tried adding kmod-ata-via-sata but it doesn't help.

EuphorbiumEuphorbium

3 Answers

I ran into this problem before. I had to build a custom image from source to solve it. The cause was that the disk controller driver wasn't included in the kernel. Without the driver, the kernel couldn't access the root partition and became stuck.

To add this driver I had to compile from source. I added the driver using make kernel_menuconfig. I also ran make menuconfig and disabled the matching kmod-* kernel module. I took these steps when I realized kmod-* kernel modules were stored in the root partition, not compiled into the kernel.

Must you use a SATA hard drive as the storage device? How about using live USB instead? I worked out a method to store many disk images on a flash drive. The step-by-step instruction is at my blog http://macbruins.wordpress.com/2011/09/01/easy-live-usb-for-x86-openwrt.

macbruinsmacbruins

I'm not positive, but I believe that OpenWRT is intended to be installed on a router. It enables your router to do things that it may not have been able to do before switching the firmwares. I don't think it is intended to be installed on a computer.

Yosef GunsburgYosef Gunsburg

I think the most likely reason is the openwrt build you are using doesn't have a kernel module for some part of the disk system you are using - most likely the sata disk controller.

One approach would be to get a linux liveCD, boot it up on the PC, confirming it can see the disks, then do an lsmod to see what disk related modules were loaded.

Then see if those modules are available as kmods for openwrt.

PaulPaul

Not the answer you're looking for? Browse other questions tagged routeroperating-systemsopenwrtx86 or ask your own question.

I've tried to install OpenWRT Backfire 10.03.1-rc6 x86_generic combined ext2 on my x86 PC, but the boot process stops while 'waiting for root device /dev/sda2'.

Forums have advised me to build a custom OpenWRT image, but I don't know what packages I should include to solve this problem.

I've tried adding kmod-ata-via-sata but it doesn't help.

EuphorbiumEuphorbium

3 Answers

I ran into this problem before. I had to build a custom image from source to solve it. The cause was that the disk controller driver wasn't included in the kernel. Without the driver, the kernel couldn't access the root partition and became stuck.

To add this driver I had to compile from source. I added the driver using make kernel_menuconfig. I also ran make menuconfig and disabled the matching kmod-* kernel module. I took these steps when I realized kmod-* kernel modules were stored in the root partition, not compiled into the kernel.

Must you use a SATA hard drive as the storage device? How about using live USB instead? I worked out a method to store many disk images on a flash drive. The step-by-step instruction is at my blog http://macbruins.wordpress.com/2011/09/01/easy-live-usb-for-x86-openwrt.

macbruinsmacbruins

I'm not positive, but I believe that OpenWRT is intended to be installed on a router. It enables your router to do things that it may not have been able to do before switching the firmwares. I don't think it is intended to be installed on a computer.

Yosef GunsburgYosef Gunsburg

I think the most likely reason is the openwrt build you are using doesn't have a kernel module for some part of the disk system you are using - most likely the sata disk controller.

One approach would be to get a linux liveCD, boot it up on the PC, confirming it can see the disks, then do an lsmod to see what disk related modules were loaded.

Then see if those modules are available as kmods for openwrt.

PaulPaul

Not the answer you're looking for? Browse other questions tagged routeroperating-systemsopenwrtx86 or ask your own question.