Hi there,
I'd appreciate your patience, as this may sound like a dumb question. I've just started working with ARM processors (AT91SAM9261-EK) and Linux within the last three weeks, previously I've only worked on 16-bit and 8-bit micros.
Anyway, I've sucessfully built my own 2.6.21 kernel. I followed the kernel compilation guide on arm.linux.org, and got a uImage kernel, together with the modules.
Now this is where I'm struggling.
My kernel command line is "mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw"
I've successfully unzipped and booted the kernel on my target board. But I'm lacking the RAM disk image and I get:
RAMDISK: Couldn't find valid RAM disk image starting at 0.
No filesystem could mount root, tried: ext2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
So (and this is where I probably sound stupid) how do I make RAMDISK? Is this file system built using mkfs.ext2 /dev/ram0, because I did that but can't find any output image!
Alternatively, can I mount a complete FLASH file system immediately using all my compiled modules, or do I have to install initrd first
I'd appreciate any pointers. Particularly suggestions for mkfs commands, and corresponding kernel command lines.
Incidentally, I don't want to use Buildroot since I want to get a real understanding of the low-level operation of the system. Plus I tried it and just got a massive string of "undefined reference" errors
Thanks in advance,
Timmins
EDIT: I've googled my ar$e off looking for a file system/kernel init guide to no avail. Just so you know!