Re: Newbie and linux on virtex-II ppc

11 messages, 2 authors, 2007-08-29 · open the first message on its own page

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-28 13:06:32

On 8/28/07, schardt [off-list ref] wrote:
Hi Grant,

i need your help again :)

my 2.6. kernel is running. now i want to add the system ace driver to
mount a rootfs on the systemace-flash.
but i don't know how to import the EKD driver to the linux kernel, or is
there a ready to go driver in the kernel tree ?
i didn't find anything...
You've got 2 choices:
1. use the new sysace driver; it's already in mainline.  The new
driver is faster, but it doesn't handle hotswap of the CF card (yet)
2. use the EDK driver; easiest way is to use my tree which already has
it merged:  http://git.secretlab.ca

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

Re: Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-28 13:25:17

Grant Likely wrote:
On 8/28/07, schardt [off-list ref] wrote:
  
quoted
Hi Grant,

i need your help again :)

my 2.6. kernel is running. now i want to add the system ace driver to
mount a rootfs on the systemace-flash.
but i don't know how to import the EKD driver to the linux kernel, or is
there a ready to go driver in the kernel tree ?
i didn't find anything...
    
You've got 2 choices:
1. use the new sysace driver; it's already in mainline.  The new
driver is faster, but it doesn't handle hotswap of the CF card (yet)
  
But where in menuconfig could i find the sysace driver ? i'm blind, i
think :)
2. use the EDK driver; easiest way is to use my tree which already has
it merged:  http://git.secretlab.ca

  
i made an EDK update and now i have the linux_2_2 os in the software
options. the bsp with all drivers is generated.
and now ?
 - copy to kernel tree 
 - use the xmake  to build the kernel, or make ?

and why is there no dokumentation :)

Thanks a lot
Georg

Cheers,
g.

  


-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-28 13:30:21

On 8/28/07, schardt [off-list ref] wrote:
Grant Likely wrote:
quoted
You've got 2 choices:
1. use the new sysace driver; it's already in mainline.  The new
driver is faster, but it doesn't handle hotswap of the CF card (yet)
But where in menuconfig could i find the sysace driver ? i'm blind, i
think :)
Which version of kernel are you using?  The new sysace driver was
merged into 2.6.22
quoted
2. use the EDK driver; easiest way is to use my tree which already has
it merged:  http://git.secretlab.ca
i made an EDK update and now i have the linux_2_2 os in the software
options. the bsp with all drivers is generated.
and now ?
 - copy to kernel tree
 - use the xmake  to build the kernel, or make ?
Don't use EDK to build you're kernel.  It's too fragile and you need
to use the *exact* version of kernel that EDK expects.  You're better
off to manually copy the xparams file from the generated BSP.  (ie.
Don't let EDK know where your real kernel source tree is)
and why is there no dokumentation :)
Care to write some?

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

Re: Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-28 13:39:39

Grant Likely wrote:
On 8/28/07, schardt [off-list ref] wrote:
  
quoted
Grant Likely wrote:
    
quoted
You've got 2 choices:
1. use the new sysace driver; it's already in mainline.  The new
driver is faster, but it doesn't handle hotswap of the CF card (yet)

      
But where in menuconfig could i find the sysace driver ? i'm blind, i
think :)
    
Which version of kernel are you using?  The new sysace driver was
merged into 2.6.22

  
linux-2.6.22.5
quoted
quoted
2. use the EDK driver; easiest way is to use my tree which already hasGrant Likely [off-list ref]
it merged:  http://git.secretlab.ca


      
i made an EDK update and now i have the linux_2_2 os in the software
options. the bsp with all drivers is generated.
and now ?
 - copy to kernel tree
 - use the xmake  to build the kernel, or make ?
    
Grant Likely [off-list ref]
Don't use EDK to build you're kernel.  It's too fragile and you need
to use the *exact* version of kernel that EDK expects.  You're better
off to manually copy the xparams file from the generated BSP.  (ie.
Don't let EDK know where your real kernel source tree is)
  
wuh ? i dont need all the driver from the generatet bsp files ? what
about the gpios and leds  ?

i compile the kernel with a self made cross toolchain, not with the edk.
until now i copied the bsp files into the kernel tree (modfied some
defines) und compile with "make zImage". But know with the linux_2_6
option there is some more stuff in the bsp directory and i don't know
what to do with :)
  
quoted
and why is there no dokumentation :)
    
Care to write some?

  
huh, not really :)
im just a little newbie

G
g.

  


-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-28 13:55:25

On 8/28/07, schardt [off-list ref] wrote:
Grant Likely wrote:
quoted
On 8/28/07, schardt [off-list ref] wrote:
quoted
Grant Likely wrote:
quoted
You've got 2 choices:
1. use the new sysace driver; it's already in mainline.  The new
driver is faster, but it doesn't handle hotswap of the CF card (yet)
But where in menuconfig could i find the sysace driver ? i'm blind, i
think :)
Which version of kernel are you using?  The new sysace driver was
merged into 2.6.22
linux-2.6.22.5
Should be under drivers->block devices then.
quoted
quoted
quoted
2. use the EDK driver; easiest way is to use my tree which already hasGrant Likely [off-list ref]
it merged:  http://git.secretlab.ca

i made an EDK update and now i have the linux_2_2 os in the software
options. the bsp with all drivers is generated.
and now ?
 - copy to kernel tree
 - use the xmake  to build the kernel, or make ?
Grant Likely [off-list ref]
Don't use EDK to build you're kernel.  It's too fragile and you need
to use the *exact* version of kernel that EDK expects.  You're better
off to manually copy the xparams file from the generated BSP.  (ie.
Don't let EDK know where your real kernel source tree is)
wuh ? i dont need all the driver from the generatet bsp files ? what
about the gpios and leds  ?
Most drivers are already in my tree; any that are missing you can copy
over manually.
i compile the kernel with a self made cross toolchain, not with the edk.
until now i copied the bsp files into the kernel tree (modfied some
defines) und compile with "make zImage". But know with the linux_2_6
option there is some more stuff in the bsp directory and i don't know
what to do with :)
quoted
quoted
and why is there no dokumentation :)
Care to write some?
huh, not really :)
im just a little newbie
best way to learn.  :-)

g.
-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

Re: Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-28 14:12:47

Okay, im really blind i think, so i started again :

- 2.6.22 kernel from kernel.org
- cp /arch/ppc/configs/ml300_defconfig .config
- edit Makefile to use ARCH=ppc and CROSS_COMPILE=powerpc-405-linux-gnu-
- copy xparams
- make menuconfig -> no SYSACE blockdevice :((( *aaaaargh*

i will try the grant kernel now :)

G


Grant Likely wrote:
On 8/28/07, schardt [off-list ref] wrote:
  
quoted
Grant Likely wrote:
    
quoted
On 8/28/07, schardt [off-list ref] wrote:

      
quoted
Grant Likely wrote:

        
quoted
You've got 2 choices:
1. use the new sysace driver; it's already in mainline.  The new
driver is faster, but it doesn't handle hotswap of the CF card (yet)


          
But where in menuconfig could i find the sysace driver ? i'm blind, i
think :)

        
Which version of kernel are you using?  The new sysace driver was
merged into 2.6.22


      
linux-2.6.22.5
    
Should be under drivers->block devices then.

  
quoted
quoted
quoted
quoted
2. use the EDK driver; easiest way is to use my tree which already hasGrant Likely [off-list ref]
it merged:  http://git.secretlab.ca



          
i made an EDK update and now i have the linux_2_2 os in the software
options. the bsp with all drivers is generated.
and now ?
 - copy to kernel tree
 - use the xmake  to build the kernel, or make ?

        
Grant Likely [off-list ref]
Don't use EDK to build you're kernel.  It's too fragile and you need
to use the *exact* version of kernel that EDK expects.  You're better
off to manually copy the xparams file from the generated BSP.  (ie.
Don't let EDK know where your real kernel source tree is)

      
wuh ? i dont need all the driver from the generatet bsp files ? what
about the gpios and leds  ?
    
Most drivers are already in my tree; any that are missing you can copy
over manually.

  
quoted
i compile the kernel with a self made cross toolchain, not with the edk.
until now i copied the bsp files into the kernel tree (modfied some
defines) und compile with "make zImage". But know with the linux_2_6
option there is some more stuff in the bsp directory and i don't know
what to do with :)

    
quoted
quoted
and why is there no dokumentation :)
        
Care to write some?

      
huh, not really :)
im just a little newbie
    
best way to learn.  :-)

g.
  


-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-28 14:43:53

On 8/28/07, schardt [off-list ref] wrote:
Okay, im really blind i think, so i started again :

- 2.6.22 kernel from kernel.org
- cp /arch/ppc/configs/ml300_defconfig .config
- edit Makefile to use ARCH=3Dppc and CROSS_COMPILE=3Dpowerpc-405-linux-g=
nu-
- copy xparams
- make menuconfig -> no SYSACE blockdevice :((( *aaaaargh*
grant@trillian:~/linux-hacking/linux-2.6$ grep SYSACE drivers/block/Kconfig=
 -A 6
config XILINX_SYSACE
        tristate "Xilinx SystemACE support"
        depends on 4xx
        help
          Include support for the Xilinx SystemACE CompactFlash interface
i will try the grant kernel now :)

G


Grant Likely wrote:
quoted
On 8/28/07, schardt [off-list ref] wrote:
quoted
Grant Likely wrote:
quoted
On 8/28/07, schardt [off-list ref] wrote:

quoted
Grant Likely wrote:

quoted
You've got 2 choices:
1. use the new sysace driver; it's already in mainline.  The new
driver is faster, but it doesn't handle hotswap of the CF card (yet=
)
quoted
quoted
quoted
quoted
quoted
But where in menuconfig could i find the sysace driver ? i'm blind, =
i
quoted
quoted
quoted
quoted
think :)
Which version of kernel are you using?  The new sysace driver was
merged into 2.6.22

linux-2.6.22.5
Should be under drivers->block devices then.

quoted
quoted
quoted
quoted
2. use the EDK driver; easiest way is to use my tree which already =
hasGrant Likely [off-list ref]
quoted
quoted
quoted
quoted
quoted
it merged:  http://git.secretlab.ca


i made an EDK update and now i have the linux_2_2 os in the software
options. the bsp with all drivers is generated.
and now ?
 - copy to kernel tree
 - use the xmake  to build the kernel, or make ?
Grant Likely [off-list ref]
Don't use EDK to build you're kernel.  It's too fragile and you need
to use the *exact* version of kernel that EDK expects.  You're better
off to manually copy the xparams file from the generated BSP.  (ie.
Don't let EDK know where your real kernel source tree is)
wuh ? i dont need all the driver from the generatet bsp files ? what
about the gpios and leds  ?
Most drivers are already in my tree; any that are missing you can copy
over manually.

quoted
i compile the kernel with a self made cross toolchain, not with the ed=
k.
quoted
quoted
until now i copied the bsp files into the kernel tree (modfied some
defines) und compile with "make zImage". But know with the linux_2_6
option there is some more stuff in the bsp directory and i don't know
what to do with :)

quoted
quoted
and why is there no dokumentation :)
Care to write some?
huh, not really :)
im just a little newbie
best way to learn.  :-)

g.


-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------
Forschungszentrum J=FClich GmbH
52425 J=FClich

Sitz der Gesellschaft: J=FClich
Eingetragen im Handelsregister des Amtsgerichts D=FCren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in B=E4rbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stell=
v.
Vorsitzender)
-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-28 14:44:44

On 8/28/07, Grant Likely [off-list ref] wrote:
On 8/28/07, schardt [off-list ref] wrote:
quoted
Okay, im really blind i think, so i started again :

- 2.6.22 kernel from kernel.org
- cp /arch/ppc/configs/ml300_defconfig .config
BTW, "make ml300_defconfig" does this for you.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

Re: Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-29 09:30:10

Step by step i becomes running :)

kernel is booting, root-fs is mounting on systemace, busybox compiled
and rootfs installed (i used klingauf's mkrootfs)

but now it says:
[    2.964978] Freeing unused kernel memory: 92k init
[    3.081332] Warning: unable to open an initial console.
[    3.306406] request_module: runaway loop modprobe binfmt-4c46
[    3.375612] request_module: runaway loop modprobe binfmt-4c46
[    3.446800] request_module: runaway loop modprobe binfmt-4c46

and i don't know what this is :(

Can give me a hint, where to look ?

thx
Georg

Grant Likely wrote:
On 8/28/07, Grant Likely [off-list ref] wrote:
  
quoted
On 8/28/07, schardt [off-list ref] wrote:
    
quoted
Okay, im really blind i think, so i started again :

- 2.6.22 kernel from kernel.org
- cp /arch/ppc/configs/ml300_defconfig .config
      
BTW, "make ml300_defconfig" does this for you.

g.

  


-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich

Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

Re: Newbie and linux on virtex-II ppc

From: schardt <hidden>
Date: 2007-08-29 13:32:13

me again :)

i added a /dev/ttyUL0 (mknod ttyUL0 c 204 187) device and and a console
link to it.
no warning anymore, but i think i'm listen on the "wrong" console ??? i
see bootmessages
and an errormessage from init ("init: can't open /dev/null: no such
device or directory")

but the messages from init.d/rcS did not appear

this is my inittab (from klingauf mkrootfs):

::sysinit:/etc/init.d/rcS
::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::respawn:/sbin/getty 9600 tts/0

Georg

schardt wrote:
Step by step i becomes running :)

kernel is booting, root-fs is mounting on systemace, busybox compiled
and rootfs installed (i used klingauf's mkrootfs)

but now it says:
[    2.964978] Freeing unused kernel memory: 92k init
[    3.081332] Warning: unable to open an initial console.
[    3.306406] request_module: runaway loop modprobe binfmt-4c46
[    3.375612] request_module: runaway loop modprobe binfmt-4c46
[    3.446800] request_module: runaway loop modprobe binfmt-4c46

and i don't know what this is :(

Can give me a hint, where to look ?

thx
Georg

Grant Likely wrote:
 =20
quoted
On 8/28/07, Grant Likely [off-list ref] wrote:
 =20
   =20
quoted
On 8/28/07, schardt [off-list ref] wrote:
   =20
     =20
quoted
Okay, im really blind i think, so i started again :

- 2.6.22 kernel from kernel.org
- cp /arch/ppc/configs/ml300_defconfig .config
     =20
       =20
BTW, "make ml300_defconfig" does this for you.

g.

 =20
   =20


-----------------------------------------------------------------------=
------------------
-----------------------------------------------------------------------=
------------------
Forschungszentrum J=FClich GmbH
52425 J=FClich

Sitz der Gesellschaft: J=FClich
Eingetragen im Handelsregister des Amtsgerichts D=FCren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in B=E4rbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (ste=
llv.=20
Vorsitzender)
-----------------------------------------------------------------------=
------------------
-----------------------------------------------------------------------=
------------------
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

 =20


-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------
Forschungszentrum J=FClich GmbH
52425 J=FClich

Sitz der Gesellschaft: J=FClich
Eingetragen im Handelsregister des Amtsgerichts D=FCren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in B=E4rbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stell=
v.=20
Vorsitzender)
-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------

Re: Newbie and linux on virtex-II ppc

From: Grant Likely <hidden>
Date: 2007-08-29 14:44:56

On 8/29/07, schardt [off-list ref] wrote:
me again :)

i added a /dev/ttyUL0 (mknod ttyUL0 c 204 187) device and and a console
link to it.
Yeah, you don't want a symlink, you want a console device node instead:

mknod /dev/tty 5 0
mknod /dev/console 5 1
no warning anymore, but i think i'm listen on the "wrong" console ??? i
see bootmessages
and an errormessage from init ("init: can't open /dev/null: no such
device or directory")
I would say you need to add a /dev/null device node, or fix it's
permissions.  :-)

mknod /dev/null 1 3
but the messages from init.d/rcS did not appear

this is my inittab (from klingauf mkrootfs):

::sysinit:/etc/init.d/rcS
::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::respawn:/sbin/getty 9600 tts/0

Georg

schardt wrote:
quoted
Step by step i becomes running :)

kernel is booting, root-fs is mounting on systemace, busybox compiled
and rootfs installed (i used klingauf's mkrootfs)

but now it says:
[    2.964978] Freeing unused kernel memory: 92k init
[    3.081332] Warning: unable to open an initial console.
[    3.306406] request_module: runaway loop modprobe binfmt-4c46
[    3.375612] request_module: runaway loop modprobe binfmt-4c46
[    3.446800] request_module: runaway loop modprobe binfmt-4c46

and i don't know what this is :(

Can give me a hint, where to look ?

thx
Georg

Grant Likely wrote:
quoted
On 8/28/07, Grant Likely [off-list ref] wrote:

quoted
On 8/28/07, schardt [off-list ref] wrote:

quoted
Okay, im really blind i think, so i started again :

- 2.6.22 kernel from kernel.org
- cp /arch/ppc/configs/ml300_defconfig .config
BTW, "make ml300_defconfig" does this for you.

g.



-----------------------------------------------------------------------=
------------------
quoted
-----------------------------------------------------------------------=
------------------
quoted
Forschungszentrum J=FClich GmbH
52425 J=FClich

Sitz der Gesellschaft: J=FClich
Eingetragen im Handelsregister des Amtsgerichts D=FCren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in B=E4rbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (ste=
llv.
quoted
Vorsitzender)
-----------------------------------------------------------------------=
------------------
quoted
-----------------------------------------------------------------------=
------------------
quoted
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded


-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------
Forschungszentrum J=FClich GmbH
52425 J=FClich

Sitz der Gesellschaft: J=FClich
Eingetragen im Handelsregister des Amtsgerichts D=FCren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in B=E4rbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stell=
v.
Vorsitzender)
-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help