Ok, I am now totally lost and I'm sure I would have pulled my hair out if I could get a grip on it. This might have a simple solution, but "simple" looks like a mighty high mountain right now.
THIS IS WHAT I WANT:
I have an x86 computer that I need to turn into a router and I want to boot OpenWRT from an USB Flash drive. It "seems" simple enough and a really good application for old comptuers.
There is no hard drive in the computer, I do not have access to a router to run OpenWRT, and this is my first ever build.
POSSIBLE SOLUTION:
I suspect the solution involves including various "modules" into the build image and making tweaks to the files system (i.e., fstab, init, arrrrrgggghhhhh)...and that is where all the tips around the web get muddled together in my head.
SO FAR...WHAT I HAVE DONE:
I've installed all the tools for making OpenWRT (backfire)
I've told "make menuconfig" to compile the following into the output images (combined ext2 and squahfs):
block-mount
kmod-fs-ext3
kmod-fs-ext2
kmod-usb-core
kmod-usb-ohci
kmod-usb2
kmod-usb-storage
block-hotplug
block-extroot
fdisk
e2fsprogs
Who knows if they are the right ones, but...there ya go.
I use dd to copy the image to the flash drive, boot, get grub, get a bunch of stuff that ends with:
input: SynPS/2 ... and then the power just cut out so I can't read the screen of that computer (Im in rural Uganda), but just after that I recall that I get "waiting for root device /dev/mtdblock0" or "waiting for root device /dev/sda2" and then the system hangs...waiting..,until power goes out of course.
So, I figure boot works and init starts, but it has no way of knowing where the filesystem really is. Its all set up assuming everything is installed on an internal HD/flash. Arrrrghhh. I think the
Anyone have any experience with this?