- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I can not make the kernel find the init process in the romfs filesystem.
With a 1c12 board I try this:
- kernel 2.6.11 at 0x0
- filesystem at 0x200000
The filesystem is working with another kernel, a kernel compiled under Windows.
the kernel is generated under Debian with the binary nios compile toochain.
My kernel stops when searching an init file in the filesystem (Kernel panic : no init found).
<div class='quotetop'>QUOTE </div>
Linux version 2.6.11-uc0 (root@ImuxBootDebian) (gcc version 3.4.6) #14 Wed Dec 6 09:57:15 CET 2006
uClinux/Nios II
Altera Nios II support © 2004 Microtronix Datacom Ltd.
setup_arch: No persistant network settings signature at 007F0000
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 ro
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: 14336k/16384k RAM, 0k/0k ROM (1561k kernel code, 303k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
JFFS2 version 2.2. (NAND) © 2001-2003 Red Hat, Inc.
tty_register_driver : name=pty Major=2 minor=0
tty_register_driver : name=ttyp Major=3 minor=0
tty_register_driver : name=ptm Major=128 minor=0
tty_register_driver : name=pts Major=136 minor=0
NIOSserial.c : NIOS serial driver version 0.0
tty_register_driver : name=ttyS Major=4 minor=64
ttyS0 (irq = 4) is a builtin NIOS UART
ttyS1 (irq = 6) is a builtin NIOS UART
ttyS2 (irq = 7) is a builtin NIOS UART
Serial: JTAG UART driver $Revision: 1.4 $
tty_register_driver : name=ttyJ Major=232 minor=16
ttyJ0 at MMIO 0x80920820 (irq = 3) is a jtag_uart
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: Open Ethernet Core Version 1.0
* oeth_probe: 24000 Khz Nios: 16 RX, 16 TX buffs
* * * * * * * WITH Custom HW ALIGN.
* * * * * * * CONFIG_NIOS2_HW_MULX* * defined.
* * * * * * * CONFIG_NIOS2_HW_MUL_OFF NOT defined.
Microtronix map: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
Microtronix map: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using Microtronix development partition definition
Creating 3 MTD partitions on "Microtronix map":
0x00200000-0x00600000 : "romfs"
0x00600000-0x00800000 : "flashfs"
0x00000000-0x00200000 : "loader/kernel"
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 60k freed (0x11a8000 - 0x11b6000)
run_init_process(/sbin/init)* * * * * * * * * <-I did the printk
run_init_process(/etc/init)
run_init_process(/bin/init)
run_init_process(/bin/sh)
Kernel panic - not syncing: No init found.* Try passing init= option to kernel.[/b]
I don't know why it's not working, any ideas?
thanks for helping me
Marc
<div class='quotetop'>QUOTE </div>
attachment
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Marc,
In the romfs built on Windows, all exec files have suffice ".exe" . Maybe you can add "init=/sbin/init.exe" to kernel command string in kernel config.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi hippo,
Thanks, but it does nothing more than my kernel panic . Bzh- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Perhaps, it will be easier to build them over with uClinux-dist.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page