Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by hippo@Nov 24 2005, 07:43 PM sorry, the sym link should be, ln -s /sbin/init /usr/src/uclinux_fs/init
the /sbin/init program, linked to busybox, will read /etc/inittab, which is ,eg
# startup the system
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mount -t sysfs sysfs /sys
null::sysinit:/bin/mount -t usbfs none /proc/bus/usb
# set up a couple of getty's
::askfirst:/bin/sh
you can remove files in /usr/include and /usr/lib to save space.
when we design custom board, most drivers are under construction.
the initramfs need only ram, and a serial/jtag console driver is all that needed to start.
when you have tested your custom mmc driver, you may disable initramfs, and use
the mmc/sd as root device, with the kernel command line "root=/dev/mmc0".
you will need devfs to use mmc block device.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11146)
--- quote end ---
--- Quote End --- So I tried, and it didn't work: this is what I got... <div class='quotetop'>QUOTE </div> --- Quote Start --- uClinux/Nios II Altera Nios II support KERNEL -> TEXT=0x01000000-0x01162af0 DATA=0x01162af0-0x0118c000 BSS=0x012ebbd0-0 x012ebc04 KERNEL -> MEM=0x12ec000-0x2000000 STACK=0x2000000-0x2000000 No Command line passed Setting custom MAC address Setup the hardware addr for ethernet 00 10 20 30 40 50 Done setup_arch Built 1 zonelists Kernel command line: PID hash table entries: 128 (order: 7, 2048 bytes) Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory available: 13200k/16384k RAM, 0k/0k ROM (1418k kernel code, 1572k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) Kernel panic - not syncing: broken padding[/b] --- Quote End --- I removed the startup command line in the kernel (ie: the root=/dev/mtdblock0), and I pointed Initramfs() source files to the path "/cygdrive/d/hw/ep1c_lwip/software/uclinux_ep1c12_fs/target" . I made a filesytem project in that directory with all the options installed. There is nothing in sbin, only bin.. and they are all exe's. So in the directory ./target, I did "ln -s bin/init.exe ./init.exe" Any idea what I did wrong?