Basically, I took the. I ran "make oldconfig" and then kept compiling and tweaking until I got it to run on the NAS It's a work in progress; some stuff is implemented and some stuff is not.
Some stuff doesn't work at all yet, such as the Real-Time-Clock; I tried to get I2C and the RTC going but when I did that, the unit kept turning off its power in the middle of the boot. It was pretty easy to get the kernel to boot up to the point of the panic where it can't mount the root file system. It took me a while before I figured out how to partition the flash in the Linksys kernel this is hard-coded in the kernel, I did it from the kernel command line.
So I decided I might as well use the hard disk as root file system instead of the flash. I could of course copy the Linksys root filesystem to the harddisk but I thought, let's go one step further and try a Gentoo root file system. I unpacked the stage3 tarball for x86 not i! I had to re-pack it into a tar.
I tweaked some of the configuration files using the Gentoo handbook I've done many Gentoo installs before. The config file tweaks are also a work in progress as you can see from the boot warnings and errors; for example it detects both network adapters but only starts eth0 and fails.
Registered protocol family 16 PCI: Using configuration type 1 for base access khelper used greatest stack depth: Linux Plug and Play Support v0. Probing PCI hardware bus: Registered protocol family 2 IP route cache hash table entries: Registered protocol family 1 checking if image is initramfs SGI XFS with security attributes, large block numbers, no debug enabled SGI XFS Quota Management subsystem msgmni has been set to 53 io scheduler noop registered io scheduler anticipatory registered default io scheduler deadline registered io scheduler cfq registered Serial: SATA link up 1.
Attached scsi generic sg0 type 0 scsi 1: Attached scsi generic sg1 type 0 physmap platform flash device: Erase suspend on write enabled 4 cmdlinepart partitions found on MTD device physmap-flash. USB hub found hub New USB device strings: Registered protocol family 17 RPC: Registered udp transport module.
Registered tcp transport module. Using IPI Shortcut mode md: Scanned 0 and added 0 devices. Couldn't find valid RAM disk image starting at 0. Mounted root xfs filesystem. Freeing unused kernel memory: Error 2 while executing fsck.
No such file or directory This is localhost. By the way, if you have Jac2b running, you can play around with Gentoo a little bit even if you don't have a serial port without loading the kernel, by simply unpacking a stage3 to the root of the first hard disk and optionally a portage snapshot to the usr directory and chrooting to it.
Remember to use tar xvzp -f yourconvertedtarball. Your chroot should remove the earlyfail file as part of its startup scripts. I'm planning on doing some more tweaks to the kernel. For more information check www.