Did you get the shell prompt? Like this?
Freeing unused kernel memory: 272k freed (0x138000 - 0x17b000)
init started: BusyBox v1.00-pre8 (2005.10.28-01:02+0000) multi-call binary
Please press Enter to activate this console.
BusyBox v1.00-pre8 (2005.10.28-01:02+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
#
The Linux need two parts to boot, the vmlinux and root fs.
You already load the vmlinux and boot it.
At the end of init process, it need the root fs, it can be on the CF (root=/dev/hda) , MTD, or
initrd image on a ram drive.
The root fs contain the /, /sbin,/bin,/usr /etc /proc /dev ...
You can enter the full path for the initramfs build dir, eg (/usr/src/uclinux_fs)
In the kernel build process, it will link the fs into vmilunx.
CHK usr/initramfs_list
UPD usr/initramfs_list
CPIO usr/initramfs_data.cpio
GZIP usr/initramfs_data.cpio.gz
AS usr/initramfs_data.o
LD usr/built-in.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD vmlinux
SYSMAP System.map
Building modules, stage 2.
MODPOST
Remeber, you must have /init for the user space init program.
In most case, just ln -s /sbin/init /usr/src/uclinux_fs/sbin/init
--- Quote Start ---
originally posted by jdhar+nov 24 2005, 10:17 pm--><div class='quotetop'>quote (jdhar @ nov 24 2005, 10:17 pm)</div>
--- quote start ---
<!--quotebegin-hippo@Nov 24 2005, 04:23 AM
i have build custom board. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/laugh.gif
you can use initramfs.
it is similar to initrd.
it built the root file system into the kernel image.
you can use onchip memory as a boot loader, to read and load vmlinux from sd.
you can mount your sd later, eg, inittab.
so you do not need mtd,romfs,nfs root, etc to mount your root.
just add a dummy cfi interface to your sysptf, it is only for hwselect.
delete the dummy cfi in your final hardware design.
the cfi class name in hwselect.pl in arch/nios2nommu/scripts is not consistant with nios2 v5.0,v5.1.
change it to altera_avalon_cf.
to use initramfs, enable it in menuconfig,
device drivers -> block devices -> () initramfs source files
for newer kernel, it is moved
general setups ->
enter the root dir of your root fs, ie old initrd.
then setup the user id and group id map, with your user id.
the old ram disk support is not reqired.
the kernel command line is not required, too.
be sure to add a sym link /init --> /sbin/init .
the module file format generated by the kernel makefile is not flt format, so it can't load.
--- quote start ---
originally posted by jdhar@nov 8 2005, 10:29 pm
I decided to give uClinux a try on my custom board, but I only have an SD card slot, no CFI. When reading the install guide for uClinux, and when trying it, it won't let me build a kernel project without a CFI device present? Is there any way to get around this? It seems odd that I can't build the kernel and run from DRAM, and then write to the SD Card if I wish to boot...
Thx!
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10853)
--- Quote End ---
[/b]
--- Quote End ---
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11123)</div>
[/b]
--- Quote End ---
Wow, thank you, it's good to know someone out there knows how to do this. Unfortunately, I didn't understand everything you said. First, i'm not worried about getting the kernel image into RAM; it's easy enough to write a bootloader that copies from MMC into RAM, so for now, I'm just downloading the kernel image directly to RAM for development. Second, I have a dummy CFI component in there and it works ok; well, as in I can get the kernel booting, but I can't mount yet (that's my problem!).
Now, what you said about initrd - you said to use the initramfs() option.. but I don't understand how I'm supposed to enter "source files". Lets say I make another Nios filesystem project with just the essentials... for the initramfs() option, do I just point to the directory? (ie: "../uclinux_fs/" - for example).
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
The module file format generated by the kernel Makefile is not FLT format, so it can't load.[/b]
--- Quote End ---
I don't quite understand this, could you explain?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11136)</div>
[/b]
--- Quote End ---
Sorry I was wrong about module. Please just drop it.