linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Multiple Ethernet Ports on Xilinx FPGA
@ 2006-11-27  4:40 Brett McNerney
  2006-11-27 10:07 ` fialing @ executing /sbin/int in main.c Abdul Rahaman
  0 siblings, 1 reply; 5+ messages in thread
From: Brett McNerney @ 2006-11-27  4:40 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

I currently have a custom board that we have successfully booted Linux on
and gotten telnet and ftp over a single Ethernet port to work.  What I would
like to do now is have it boot and use both the Ethernet ports located on
the board.  I have looked at the adapter.c file but was unsure how to go
about making this work.  I have searched around online to see if I could get
an idea how to do this but have not had any success in finding an answer.
Any help would be greatly appreciated.  And oh ya by the way I am working
with the 2.4.26 kernel.

Thanks

Brett

[-- Attachment #2: Type: text/html, Size: 992 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* fialing @ executing /sbin/int in main.c
  2006-11-27  4:40 Multiple Ethernet Ports on Xilinx FPGA Brett McNerney
@ 2006-11-27 10:07 ` Abdul Rahaman
  2006-11-27 21:01   ` Adrian Craine
  0 siblings, 1 reply; 5+ messages in thread
From: Abdul Rahaman @ 2006-11-27 10:07 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 3008 bytes --]

Hi All,

        Iam trying to port linux on an mpc8xx processor. Iam using 2.6.10 kernel and busybox 1.0.0.The system is booting up but its failing at the "init".For some reasons it says Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

 <0>Rebooting in 180 second

Pls check below the entire text.

Linux version 2.6.10  (gcc version 3.4.1) #83 Wed 

 

Nov

22 16:02:46 IST 2006

On node 0 totalpages: 8192

  DMA zone: 8192 pages, LIFO batch:2

  Normal zone: 0 pages, LIFO batch:1

  HighMem zone: 0 pages, LIFO batch:1

Built 1 zonelists

Kernel command line: console=ttyCPM,38400=console=ttyCPM debug root=/dev/ram0 rw

PID hash table entries: 256 (order: 8, 4096 bytes)

Decrementer Frequency = 495000000/60

m8xx_wdt: wdt disabled (SYPCR: 0xFFFFFF88)

Warning: real time clock seems stuck!

Console: colour dummy device 80x25

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory: 29592k available (1572k kernel code, 360k data, 92k init, 0k highmem)

Calibrating delay loop... 261.12 BogoMIPS (lpj=130560)

before dcache_init

after dcache_init

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

Before SysFs_init

After SysFs_init

After init_rootfs

after init_mount_tree

inside proc_root_init

after proc_misc_init

checking if image is initramfs...it isn't (no cpio magic); looks like an initrd

Freeing initrd memory: 746k freed

after SK_Init

before register file system in sockets

after register file system in sockets

after kernel mount in sockets

NET: Registered protocol family 16

JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.

Software Watchdog Timer: 0.07 initialized. soft_noboot=0 soft_margin=60 sec (nowayout= 0)

Serial: CPM driver $Revision: 0.01 $

ttyCPM0 at MMIO 0xf000a80 (irq = 20) is a CPM UART

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered

RAMDISK driver initialized: 4 RAM disks of 8192K size 1024 blocksize

loop: loaded (max 8 devices)

elevator: using anticipatory as default io scheduler

mice: PS/2 mouse device common for all mice

eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr 00:a0:1e:a8:7b:cb

u32 classifier

    OLD policer on

NET: Registered protocol family 2

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP: Hash tables configured (established 2048 bind 4096)

NET: Registered protocol family 17

RAMDISK: Compressed image found at block 0

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 92k init

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

 <0>Rebooting in 180 second

 

I have tried googling,but haven't got any suitable  answer to my problem.Please help,as Iam not able to figure out why the "init" is failing.

 

Sunil


[-- Attachment #2: Type: text/html, Size: 7493 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fialing @ executing /sbin/int in main.c
  2006-11-27 10:07 ` fialing @ executing /sbin/int in main.c Abdul Rahaman
@ 2006-11-27 21:01   ` Adrian Craine
  2006-11-28  5:22     ` Abdul Rahaman
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Craine @ 2006-11-27 21:01 UTC (permalink / raw)
  To: Abdul Rahaman; +Cc: linuxppc-embedded

Abdul Rahaman wrote:
> Hi All,
> Iam trying to port linux on an mpc8xx processor. Iam using 2.6.10
> kernel and busybox 1.0.0.The system is booting up but its failing at
> the “init”.For some reasons it says Kernel panic - not syncing: No
> init found. Try passing init= option to kernel.
> <0>Rebooting in 180 second
> Pls check below the entire text.
> Linux version 2.6.10 (gcc version 3.4.1) #83 Wed
> Nov
> 22 16:02:46 IST 2006
> On node 0 totalpages: 8192
> DMA zone: 8192 pages, LIFO batch:2
> Normal zone: 0 pages, LIFO batch:1
> HighMem zone: 0 pages, LIFO batch:1
> Built 1 zonelists
> Kernel command line: console=ttyCPM,38400=console=ttyCPM debug
> root=/dev/ram0 rw
> PID hash table entries: 256 (order: 8, 4096 bytes)
> Decrementer Frequency = 495000000/60
> m8xx_wdt: wdt disabled (SYPCR: 0xFFFFFF88)
> Warning: real time clock seems stuck!
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> Memory: 29592k available (1572k kernel code, 360k data, 92k init, 0k
> highmem)
> Calibrating delay loop... 261.12 BogoMIPS (lpj=130560)
> before dcache_init
> after dcache_init
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> Before SysFs_init
> After SysFs_init
> After init_rootfs
> after init_mount_tree
> inside proc_root_init
> after proc_misc_init
> checking if image is initramfs...it isn't (no cpio magic); looks like
> an initrd
> Freeing initrd memory: 746k freed
> after SK_Init
> before register file system in sockets
> after register file system in sockets
> after kernel mount in sockets
> NET: Registered protocol family 16
> JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
> Software Watchdog Timer: 0.07 initialized. soft_noboot=0
> soft_margin=60 sec (nowayout= 0)
> Serial: CPM driver $Revision: 0.01 $
> ttyCPM0 at MMIO 0xf000a80 (irq = 20) is a CPM UART
> io scheduler noop registered
> io scheduler anticipatory registered
> io scheduler deadline registered
> io scheduler cfq registered
> RAMDISK driver initialized: 4 RAM disks of 8192K size 1024 blocksize
> loop: loaded (max 8 devices)
> elevator: using anticipatory as default io scheduler
> mice: PS/2 mouse device common for all mice
> eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr 00:a0:1e:a8:7b:cb
> u32 classifier
> OLD policer on
> NET: Registered protocol family 2
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 4096)
> NET: Registered protocol family 17
> RAMDISK: Compressed image found at block 0
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 92k init
> Kernel panic - not syncing: No init found. Try passing init= option to
> kernel.
> <0>Rebooting in 180 second
> I have tried googling,but haven’t got any suitable answer to my
> problem.Please help,as Iam not able to figure out why the “init” is
> failing.
> Sunil
Are all the libraries present for init?
# readelf -lh sbin/init
should contain a line similar to the following: [Requesting program
interpreter: /lib/ld.so.1]
If this is missing the kernel will fail to run init with the above behavior.

Adrian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fialing @ executing /sbin/int in main.c
  2006-11-27 21:01   ` Adrian Craine
@ 2006-11-28  5:22     ` Abdul Rahaman
  2006-11-30  4:11       ` Abdul Rahaman
  0 siblings, 1 reply; 5+ messages in thread
From: Abdul Rahaman @ 2006-11-28  5:22 UTC (permalink / raw)
  To: Adrian Craine, linuxppc-embedded

Hi Adrain,

I just cheked what you have told about ld.so.1 looks its there, here the
dump of 'init'
[chandrashekharp@linux sbin]$ pwd
/home/chandrashekharp/linux/new_fs8xx/ramdisk/sbin
[chandrashekharp@linux sbin]$ readelf -lh init
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           PowerPC
  Version:                           0x1
  Entry point address:               0x100034c4
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1010184 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         8
  Size of section headers:           40 (bytes)
  Number of section headers:         40
  Section header string table index: 37

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0x10000034 0x10000034 0x00120 0x00120 R E 0x4
  INTERP         0x000154 0x10000154 0x10000154 0x0000d 0x0000d R   0x1
      [Requesting program interpreter: /lib/ld.so.1]
  LOAD           0x000000 0x10000000 0x10000000 0x6c184 0x6c184 R E 0x10000
  LOAD           0x06c184 0x1007c184 0x1007c184 0x0045c 0x07018 RWE 0x10000
  DYNAMIC        0x06c47c 0x1007c47c 0x1007c47c 0x000d0 0x000d0 RW  0x4
  NOTE           0x000164 0x10000164 0x10000164 0x00020 0x00020 R   0x4
  GNU_EH_FRAME   0x06c160 0x1006c160 0x1006c160 0x00024 0x00024 R   0x4
  STACK          0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x4

 Section to Segment mapping:
  Segment Sections...
   00
   01     .interp
   02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version
.gnu.version_
r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr
   03     .data .eh_frame .got2 .dynamic .ctors .dtors .jcr .got .sdata
.sbss .p
lt .bss
   04     .dynamic
   05     .note.ABI-tag
   06     .eh_frame_hdr
   07
[chandrashekharp@linux sbin]$

Regards,
Rahaman
----- Original Message ----- 
From: "Adrian Craine" <adrian.craine@nec.com.au>
To: "Abdul Rahaman" <abdul.rahaman@semindia.in>
Cc: <linuxppc-embedded@ozlabs.org>
Sent: Tuesday, November 28, 2006 2:31 AM
Subject: Re: fialing @ executing /sbin/int in main.c


Abdul Rahaman wrote:
> Hi All,
> Iam trying to port linux on an mpc8xx processor. Iam using 2.6.10
> kernel and busybox 1.0.0.The system is booting up but its failing at
> the “init”.For some reasons it says Kernel panic - not syncing: No
> init found. Try passing init= option to kernel.
> <0>Rebooting in 180 second
> Pls check below the entire text.
> Linux version 2.6.10 (gcc version 3.4.1) #83 Wed
> Nov
> 22 16:02:46 IST 2006
> On node 0 totalpages: 8192
> DMA zone: 8192 pages, LIFO batch:2
> Normal zone: 0 pages, LIFO batch:1
> HighMem zone: 0 pages, LIFO batch:1
> Built 1 zonelists
> Kernel command line: console=ttyCPM,38400=console=ttyCPM debug
> root=/dev/ram0 rw
> PID hash table entries: 256 (order: 8, 4096 bytes)
> Decrementer Frequency = 495000000/60
> m8xx_wdt: wdt disabled (SYPCR: 0xFFFFFF88)
> Warning: real time clock seems stuck!
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> Memory: 29592k available (1572k kernel code, 360k data, 92k init, 0k
> highmem)
> Calibrating delay loop... 261.12 BogoMIPS (lpj=130560)
> before dcache_init
> after dcache_init
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> Before SysFs_init
> After SysFs_init
> After init_rootfs
> after init_mount_tree
> inside proc_root_init
> after proc_misc_init
> checking if image is initramfs...it isn't (no cpio magic); looks like
> an initrd
> Freeing initrd memory: 746k freed
> after SK_Init
> before register file system in sockets
> after register file system in sockets
> after kernel mount in sockets
> NET: Registered protocol family 16
> JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
> Software Watchdog Timer: 0.07 initialized. soft_noboot=0
> soft_margin=60 sec (nowayout= 0)
> Serial: CPM driver $Revision: 0.01 $
> ttyCPM0 at MMIO 0xf000a80 (irq = 20) is a CPM UART
> io scheduler noop registered
> io scheduler anticipatory registered
> io scheduler deadline registered
> io scheduler cfq registered
> RAMDISK driver initialized: 4 RAM disks of 8192K size 1024 blocksize
> loop: loaded (max 8 devices)
> elevator: using anticipatory as default io scheduler
> mice: PS/2 mouse device common for all mice
> eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr 00:a0:1e:a8:7b:cb
> u32 classifier
> OLD policer on
> NET: Registered protocol family 2
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 4096)
> NET: Registered protocol family 17
> RAMDISK: Compressed image found at block 0
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 92k init
> Kernel panic - not syncing: No init found. Try passing init= option to
> kernel.
> <0>Rebooting in 180 second
> I have tried googling,but haven’t got any suitable answer to my
> problem.Please help,as Iam not able to figure out why the “init” is
> failing.
> Sunil
Are all the libraries present for init?
# readelf -lh sbin/init
should contain a line similar to the following: [Requesting program
interpreter: /lib/ld.so.1]
If this is missing the kernel will fail to run init with the above behavior.

Adrian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: fialing @ executing /sbin/int in main.c
  2006-11-28  5:22     ` Abdul Rahaman
@ 2006-11-30  4:11       ` Abdul Rahaman
  0 siblings, 0 replies; 5+ messages in thread
From: Abdul Rahaman @ 2006-11-30  4:11 UTC (permalink / raw)
  To: linuxppc-embedded

Hi srideep ,

I tried putting hello world program in Ramdisk image.It is Ok.
But its not busy box link, but just object file.

I tried creating helloworld program also as busy box link, coudnt create.
perhaps u can tell me some tip to create hello world program as busy box
link.

Then i will head towards init , can tell clear what did you mean , you took
init from package , but not from busy box,
do you mean you have selected init from linux package!!!

Regards,
Rahaman



----- Original Message ----- 
From: "Abdul Rahaman" <abdul.rahaman@semindia.in>
To: "Adrian Craine" <adrian.craine@nec.com.au>;
<linuxppc-embedded@ozlabs.org>
Sent: Tuesday, November 28, 2006 10:52 AM
Subject: Re: fialing @ executing /sbin/int in main.c


Hi Adrain,

I just cheked what you have told about ld.so.1 looks its there, here the
dump of 'init'
[chandrashekharp@linux sbin]$ pwd
/home/chandrashekharp/linux/new_fs8xx/ramdisk/sbin
[chandrashekharp@linux sbin]$ readelf -lh init
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           PowerPC
  Version:                           0x1
  Entry point address:               0x100034c4
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1010184 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         8
  Size of section headers:           40 (bytes)
  Number of section headers:         40
  Section header string table index: 37

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  PHDR           0x000034 0x10000034 0x10000034 0x00120 0x00120 R E 0x4
  INTERP         0x000154 0x10000154 0x10000154 0x0000d 0x0000d R   0x1
      [Requesting program interpreter: /lib/ld.so.1]
  LOAD           0x000000 0x10000000 0x10000000 0x6c184 0x6c184 R E 0x10000
  LOAD           0x06c184 0x1007c184 0x1007c184 0x0045c 0x07018 RWE 0x10000
  DYNAMIC        0x06c47c 0x1007c47c 0x1007c47c 0x000d0 0x000d0 RW  0x4
  NOTE           0x000164 0x10000164 0x10000164 0x00020 0x00020 R   0x4
  GNU_EH_FRAME   0x06c160 0x1006c160 0x1006c160 0x00024 0x00024 R   0x4
  STACK          0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0x4

 Section to Segment mapping:
  Segment Sections...
   00
   01     .interp
   02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version
.gnu.version_
r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr
   03     .data .eh_frame .got2 .dynamic .ctors .dtors .jcr .got .sdata
.sbss .p
lt .bss
   04     .dynamic
   05     .note.ABI-tag
   06     .eh_frame_hdr
   07
[chandrashekharp@linux sbin]$

Regards,
Rahaman
----- Original Message ----- 
From: "Adrian Craine" <adrian.craine@nec.com.au>
To: "Abdul Rahaman" <abdul.rahaman@semindia.in>
Cc: <linuxppc-embedded@ozlabs.org>
Sent: Tuesday, November 28, 2006 2:31 AM
Subject: Re: fialing @ executing /sbin/int in main.c


Abdul Rahaman wrote:
> Hi All,
> Iam trying to port linux on an mpc8xx processor. Iam using 2.6.10
> kernel and busybox 1.0.0.The system is booting up but its failing at
> the “init”.For some reasons it says Kernel panic - not syncing: No
> init found. Try passing init= option to kernel.
> <0>Rebooting in 180 second
> Pls check below the entire text.
> Linux version 2.6.10 (gcc version 3.4.1) #83 Wed
> Nov
> 22 16:02:46 IST 2006
> On node 0 totalpages: 8192
> DMA zone: 8192 pages, LIFO batch:2
> Normal zone: 0 pages, LIFO batch:1
> HighMem zone: 0 pages, LIFO batch:1
> Built 1 zonelists
> Kernel command line: console=ttyCPM,38400=console=ttyCPM debug
> root=/dev/ram0 rw
> PID hash table entries: 256 (order: 8, 4096 bytes)
> Decrementer Frequency = 495000000/60
> m8xx_wdt: wdt disabled (SYPCR: 0xFFFFFF88)
> Warning: real time clock seems stuck!
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> Memory: 29592k available (1572k kernel code, 360k data, 92k init, 0k
> highmem)
> Calibrating delay loop... 261.12 BogoMIPS (lpj=130560)
> before dcache_init
> after dcache_init
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> Before SysFs_init
> After SysFs_init
> After init_rootfs
> after init_mount_tree
> inside proc_root_init
> after proc_misc_init
> checking if image is initramfs...it isn't (no cpio magic); looks like
> an initrd
> Freeing initrd memory: 746k freed
> after SK_Init
> before register file system in sockets
> after register file system in sockets
> after kernel mount in sockets
> NET: Registered protocol family 16
> JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
> Software Watchdog Timer: 0.07 initialized. soft_noboot=0
> soft_margin=60 sec (nowayout= 0)
> Serial: CPM driver $Revision: 0.01 $
> ttyCPM0 at MMIO 0xf000a80 (irq = 20) is a CPM UART
> io scheduler noop registered
> io scheduler anticipatory registered
> io scheduler deadline registered
> io scheduler cfq registered
> RAMDISK driver initialized: 4 RAM disks of 8192K size 1024 blocksize
> loop: loaded (max 8 devices)
> elevator: using anticipatory as default io scheduler
> mice: PS/2 mouse device common for all mice
> eth0: FEC ENET Version 0.2, FEC irq 3, MII irq 4, addr 00:a0:1e:a8:7b:cb
> u32 classifier
> OLD policer on
> NET: Registered protocol family 2
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 2048 bind 4096)
> NET: Registered protocol family 17
> RAMDISK: Compressed image found at block 0
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 92k init
> Kernel panic - not syncing: No init found. Try passing init= option to
> kernel.
> <0>Rebooting in 180 second
> I have tried googling,but haven’t got any suitable answer to my
> problem.Please help,as Iam not able to figure out why the “init” is
> failing.
> Sunil
Are all the libraries present for init?
# readelf -lh sbin/init
should contain a line similar to the following: [Requesting program
interpreter: /lib/ld.so.1]
If this is missing the kernel will fail to run init with the above behavior.

Adrian.




_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-30  4:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-27  4:40 Multiple Ethernet Ports on Xilinx FPGA Brett McNerney
2006-11-27 10:07 ` fialing @ executing /sbin/int in main.c Abdul Rahaman
2006-11-27 21:01   ` Adrian Craine
2006-11-28  5:22     ` Abdul Rahaman
2006-11-30  4:11       ` Abdul Rahaman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).