I'm having trouble with a custom board when booting Linux.After the FPGA configures, the kernel begins to boot, and hangs when trying to mount the second RAMdisk. If I RESET the processor without reconfiguring the FPGA, the kernel boots, and the system runs without any problems. This is the output to the terminal. Do I have to change the kernel source to account for 64 MB of SDRAM? -------------------------------------------------------------------------------------------------- uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. setup_arch: No persistant network settings signature at 047F0000 Built 1 zonelists Kernel command line: root=/dev/mtdblock0 ro PID hash table entries: 512 (order: 9, 8192 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory available: 63104k/65536k RAM, 0k/0k ROM (1473k kernel code, 306k data) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) NET: Registered protocol family 16 Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x85020bd0 (irq = 0) is a jtag_uart io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered RAMDISK driver initialized: 4 RAM disks of 4096K size 1024 blocksize smc_probe: 100000 Khz Nios SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6) eth0: SMC91C11xFD(rev:1) at 0x85000300 IRQ:18 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07 :ed:00:00:00 smc_probe: 100000 Khz Nios smc_probe: 100000 Khz Nios eth1: SMC91C11xFD(rev:1) at 0x85010300 IRQ:19 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07 :ed:00:00:00 smc_probe: 100000 Khz Nios smc_probe: 100000 Khz Nios Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx CF: ctl=0 Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank Intel/Sharp Extended Query Table at 0x0031 Using buffer write method cfi_cmdset_0001: Erase suspend on write enabled cmdlinepart partition parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 4 MTD partitions on "Altera NDK flash (AMD)": 0x00400000-0x00800000 : "romfs/jffs2" 0x00200000-0x00400000 : "loader/kernel" 0x00000000-0x00200000 : "User configuration" 0x00000000-0x00800000 : "safe configuration" NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 64k freed (0x19c000 - 0x1ab000) expand: from=/ramfs.img to=/dev/ram0 expand: from=/ramfs.img to=/dev/ram1 -- The kernel hangs at this point where I believe it's trying to mount /dev/ram1 as /tmp Thanks, -Gary
It looks like you're using a custom board... I don't know much about hardware, but could it be that some of the peripherals may need to be held in reset a bit longer before they're ready for use?In the meantime, maybe you can try throwing in a bunch of "echo" statements into your rc file to try and slim down where the problem is occurring?