Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

make-kpkg and uImage/cuImage.*

 
   Soft32 Home -> Linux -> Ports PowerPC RSS
Next:  Bug#528938: possible solutions  
Author Message
Gerhard Pircher

External


Since: Jun 19, 2007
Posts: 17



(Msg. 1) Posted: Fri Jul 31, 2009 3:20 pm
Post subject: make-kpkg and uImage/cuImage.*
Archived from groups: linux>debian>ports>powerpc (more info?)

Hi,

I'm trying to build a Debian kernel package for my AmigaOne which uses
"cuImage" kernel images. Unfortunately make-kpkg doesn't seem to support
U-boot images yet. Thus I would like to know, if somebody is working on/
or has a concept for implementing uImage support in make-kpkg.

Thanks!

Gerhard

--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Login to vote
Gerhard Pircher

External


Since: Jun 19, 2007
Posts: 17



(Msg. 2) Posted: Sat Aug 01, 2009 7:20 am
Post subject: Re: make-kpkg and uImage/cuImage.* [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Rogério,

-------- Original-Nachricht --------
> Datum: Fri, 31 Jul 2009 18:40:06 -0300
> Von: "Rogério Brito" <rbrito.DeleteThis@ime.usp.br>
> An: debian-powerpc.DeleteThis@lists.debian.org
> Betreff: Re: make-kpkg and uImage/cuImage.*

> Hi, Gerhard.
>
> On Jul 31 2009, Gerhard Pircher wrote:
> > I'm trying to build a Debian kernel package for my AmigaOne which uses
> > "cuImage" kernel images. Unfortunately make-kpkg doesn't seem to
> > support U-boot images yet. Thus I would like to know, if somebody is
> > working on/or has a concept for implementing uImage support in
> > make-kpkg.
>
> Yes, I miss support for that too.
There is another powerpc platform besides the AmigaOne, which boots with
U-boot images and thus would benefit from an enhanced kernel-package.
If I may ask: are you planning to get the kurobox devices officially
supported by Debian?

> I have already filed a bug against kernel-package, but I'm not sure if
> Manoj is working on it (or if he has already included hooks for
> that---if that's the case, I would love to know about the
> functionality).
AFAICT the changelog doesn't mention any U-boot image support.
Which hooks are you thinking about? I took a look at the kernel-package
source code, but couldn't get a complete picture of its inner workings
yet.

> Anyway, here is a quick'n'dirty script that I've built for cross
> compiling kernels and generating uimages. Please notice that you will
> need to install uboot-mkimage for the script to work.
>
> If you make some improvements, please let me know and share the code.
Thanks for the script! I think I just have to add a line, which copies
over the cuImage.* file (the script already invokes the kernel build
process with "make all", so everything should be in place).

Thanks!

Gerhard

--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST.DeleteThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.DeleteThis@lists.debian.org
Back to top
Login to vote
Rogério

External


Since: Dec 16, 2005
Posts: 183



(Msg. 3) Posted: Sat Aug 01, 2009 3:20 pm
Post subject: Re: make-kpkg and uImage/cuImage.* [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi, Gerhard.

On Aug 01 2009, Gerhard Pircher wrote:
> "Rogério Brito" <rbrito.RemoveThis@ime.usp.br>
> > Yes, I miss support for that too.
>
> There is another powerpc platform besides the AmigaOne, which boots
> with U-boot images and thus would benefit from an enhanced
> kernel-package.

I was once unfamiliar with these uboot images, but one you get familiar
with them, they're just another flavor of kernel images (along with
vmlinux, vmlinuz, *.coff etc).

> If I may ask: are you planning to get the kurobox devices officially
> supported by Debian?

Yes, I do. I have now 2 powerpc-based kuroboxes here:

* a Kurobox HD (a simpler one, which is the one that I'm using);
* a Kurobox HG (which has more memory, but I still didn't put it to run).

I'm quite excited to have them work out of the box with Debian, with
pure Free Software (and no non-free Software).

I may be getting an arm-based kurobox in the near future (and, of
course, I will be interested in getting better support for it with
Linux).

Currently, I've had some problems with 2.6.29/30 kernels and the Kuro
HD, but the problems seem to have gone away with a 2.6.31-rc* kernel and
things seem to be getting in shape.

Of course, this is the very first step before getting support into
Debian.

> > I have already filed a bug against kernel-package, but I'm not sure
> > if Manoj is working on it (or if he has already included hooks for
> > that---if that's the case, I would love to know about the
> > functionality).
>
> AFAICT the changelog doesn't mention any U-boot image support.
> Which hooks are you thinking about?

The ones mentioned here: http://bugs.debian.org/497738

> I took a look at the kernel-package source code, but couldn't get a
> complete picture of its inner workings yet.

I didn't have the patience to sit down and read the kernel-package
source. So, I decided to make that very short script. It works for me,
but has many, many flaws.

> > If you make some improvements, please let me know and share the code.
>
> Thanks for the script! I think I just have to add a line, which copies
> over the cuImage.* file (the script already invokes the kernel build
> process with "make all", so everything should be in place).

Nice that the script I provided you is of use for you. Please, if you
happen to make improvements, just send me a patch.

Perhaps we could even get the improvements (if any) to be included into
kernel-package itself, so that we don't have to duplicate any effort...


Regards,

--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Login to vote
Gerhard Pircher

External


Since: Jun 19, 2007
Posts: 17



(Msg. 4) Posted: Tue Aug 04, 2009 1:20 pm
Post subject: Re: make-kpkg and uImage/cuImage.* [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Rogério,

-------- Original-Nachricht --------
> Datum: Sat, 1 Aug 2009 15:07:21 -0300
> Von: "Rogério Brito" <rbrito RemoveThis @ime.usp.br>
> An: Gerhard Pircher <gerhard_pircher RemoveThis @gmx.net>
> CC: debian-powerpc RemoveThis @lists.debian.org
> Betreff: Re: make-kpkg and uImage/cuImage.*

> I was once unfamiliar with these uboot images, but one you get familiar
> with them, they're just another flavor of kernel images (along with
> vmlinux, vmlinuz, *.coff etc).
Yes, there isn't much difference. The only problem I faced were initramfs
uImages, which were not recognized by the kernel. initrd uImages however
worked fine.

> Yes, I do. I have now 2 powerpc-based kuroboxes here:
>
> * a Kurobox HD (a simpler one, which is the one that I'm using);
> * a Kurobox HG (which has more memory, but I still didn't put it to run).
>
> I'm quite excited to have them work out of the box with Debian, with
> pure Free Software (and no non-free Software).
Same here. Debian GNU/Linux everywhere (except for the WRT54GL router
with OpenWRT). Smile

> I may be getting an arm-based kurobox in the near future (and, of
> course, I will be interested in getting better support for it with
> Linux).
I thought arm/armel already supports U-boot images. Thus I was a little
bit disappointed when I couldn't find any reference for arm + u-boot in
the kernel-package sources.

> Currently, I've had some problems with 2.6.29/30 kernels and the Kuro
> HD, but the problems seem to have gone away with a 2.6.31-rc* kernel and
> things seem to be getting in shape.
I had problems with kernel versions 2.6.26 - 2.6.30, because a lot of
things were changed in the PPC MMU and DMA code.

> Of course, this is the very first step before getting support into
> Debian.
>
> > > I have already filed a bug against kernel-package, but I'm not sure
> > > if Manoj is working on it (or if he has already included hooks for
> > > that---if that's the case, I would love to know about the
> > > functionality).
> >
> > AFAICT the changelog doesn't mention any U-boot image support.
> > Which hooks are you thinking about?
>
> The ones mentioned here: http://bugs.debian.org/497738
Thanks for the link! As far as I understand it kernel-package is designed
around the old Linux ppc architecture, where every subarch (CHRP, APUS,
PReP) needed their own kernel image. The powerpc architecture should
allow to run one kernel image on different platforms (given that they
share the same CPU type). IMHO kernel-package should define subarchs
like ppc32, ppc64, 40x, 44x, 85xx, 8xx and e200 for the powerpc
architecture (like the Kconfig option for the processor type). Then the
BIOS or the bootloader would just select the correct dtb or a specific
cuImage file. Theoretically...

> > I took a look at the kernel-package source code, but couldn't get a
> > complete picture of its inner workings yet.
>
> I didn't have the patience to sit down and read the kernel-package
> source. So, I decided to make that very short script. It works for me,
> but has many, many flaws.
>
> > > If you make some improvements, please let me know and share the code.
> >
> > Thanks for the script! I think I just have to add a line, which copies
> > over the cuImage.* file (the script already invokes the kernel build
> > process with "make all", so everything should be in place).
>
> Nice that the script I provided you is of use for you. Please, if you
> happen to make improvements, just send me a patch.
For sure! I'll try to add cuImage support. However my bash shell scripting
skills are a little bit rusty.

> Perhaps we could even get the improvements (if any) to be included into
> kernel-package itself, so that we don't have to duplicate any effort...
That would be the ideal case!

Thanks!

Gerhard

--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Login to vote
Raghavendra Uppalapati

External


Since: Aug 04, 2009
Posts: 1



(Msg. 5) Posted: Tue Aug 04, 2009 3:20 pm
Post subject: Apache2 -lenny - couldn't create pollset in child.... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

I am trying to start apache on powerpc system (lenny).
My kernel version is 2.6.19.
It gives the following error:

"Function not implemented : Could not create pollset in child", check system or user limits"

I googled this problem and found that /proc/sys/fs/epoll/max_user_instances should be large.

But 2.6.19 does not create above proc entry.


Does anyone have the same issue.

Thx in advance

Raghav


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
dale

External


Since: Feb 26, 2009
Posts: 2



(Msg. 6) Posted: Tue Aug 04, 2009 9:20 pm
Post subject: Re: Apache2 -lenny - couldn't create pollset in child.... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hi;

I am currectly running apache2 on etch (2.6.18 kernel) on powerpc ibm
(7248).
no entry for /proc/sys/fs/epoll
no problems.
lenny looks like it needs kernel 2.6.26 to operate

dale

----- Original Message -----
From: "Raghavendra Uppalapati" <Raghavendra.Uppalapati DeleteThis @OnPathTech.com>
To: <debian-powerpc DeleteThis @lists.debian.org>
Sent: Tuesday, August 04, 2009 1:33 PM
Subject: Apache2 -lenny - couldn't create pollset in child....


> Hi,
>
> I am trying to start apache on powerpc system (lenny).
> My kernel version is 2.6.19.
> It gives the following error:
>
> "Function not implemented : Could not create pollset in child", check
> system or user limits"
>
> I googled this problem and found that
> /proc/sys/fs/epoll/max_user_instances should be large.
>
> But 2.6.19 does not create above proc entry.
>
>
> Does anyone have the same issue.
>
> Thx in advance
>
> Raghav
>
>
> --
> To UNSUBSCRIBE, email to debian-powerpc-REQUEST DeleteThis @lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster DeleteThis @lists.debian.org
>
>
>



--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org
Back to top
Login to vote
Rogério_Brito

External


Since: Feb 25, 2007
Posts: 21



(Msg. 7) Posted: Tue Aug 04, 2009 9:20 pm
Post subject: Re: make-kpkg and uImage/cuImage.* [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi, Gerhard.

On Aug 4, 2009, at 12:40 PM, Gerhard Pircher wrote:
> Rogério Brito wrote:
>> I was once unfamiliar with these uboot images, but one you get
>> familiar
>> with them, they're just another flavor of kernel images (along with
>> vmlinux, vmlinuz, *.coff etc).
> Yes, there isn't much difference. The only problem I faced were
> initramfs
> uImages, which were not recognized by the kernel. initrd uImages
> however
> worked fine.

Actually, one has just to be careful to feed the right kind of kernel
image to the bootloader. Knowing which one is needed is half way to
the success.

Regarding the initramfs/initrd images, I'm not using them at the
moment (yes, I do loose the flexibility of, say, mounting the
filesystems via UUID, which is kind of neat if you are experimenting
with using an PATA or SATA driver for your drive), but I intend to,
as soon as I get my own copy of uBoot compiled and a recipe of how to
create them, with all the steps described (I still intend to write a
tutorial on that).

>> Yes, I do. I have now 2 powerpc-based kuroboxes here:
>>
>> * a Kurobox HD (a simpler one, which is the one that I'm using);
>> * a Kurobox HG (which has more memory, but I still didn't put it
>> to run).
>>
>> I'm quite excited to have them work out of the box with Debian, with
>> pure Free Software (and no non-free Software).
> Same here. Debian GNU/Linux everywhere (except for the WRT54GL router
> with OpenWRT). Smile

I also have another PowerPC box here which is an old iBook G3 (but
still a NewWorld mac), whose form factor I love and would instantly
buy a more powerful machine that has all the balance between battery
autonomy and the ability to play videos (these are, BTW, my most
demanding applications).

Well, in the mean time, I'm sticking to what I have and I'll wait for
the industry to catch up with necessities.

>> I may be getting an arm-based kurobox in the near future (and, of
>> course, I will be interested in getting better support for it with
>> Linux).
> I thought arm/armel already supports U-boot images. Thus I was a
> little
> bit disappointed when I couldn't find any reference for arm + u-
> boot in
> the kernel-package sources.

I will, perhaps, get the arm-based kurobox tomorrow and investigate a
little the kernel-package sources (but not much).

If I can't figure out a solution soon, I will simply try to adapt the
script that I sent you (perhaps, polishing it a bit, for instance, to
deal with the reinstallation of a package, to be managed properly by
the postinst script, a decent preinst/postrm etc).

If you have already made some of these modifications, please let me
know and I will integrate them.

> I had problems with kernel versions 2.6.26 - 2.6.30, because a lot of
> things were changed in the PPC MMU and DMA code.

For the embedded platform that the kuroboxes use, I had some problems
with the MTD devices. I still have to check what their status is and,
perhaps, send one patch to the lkml (or some call to help Smile).

>> The ones mentioned here: http://bugs.debian.org/497738
> Thanks for the link!

You're welcome.

> As far as I understand it kernel-package is designed
> around the old Linux ppc architecture, where every subarch (CHRP,
> APUS,
> PReP) needed their own kernel image. The powerpc architecture should
> allow to run one kernel image on different platforms (given that they
> share the same CPU type).

Yes, the change in the kernel from ppc -> powerpc brought some
unification, but I don't know many subarch'es to speak in any
authoritative way (well, far, far from it---we have some much better
informed members here in the list that are knowledgeable about
hardware design/issues).

> IMHO kernel-package should define subarchs
> like ppc32, ppc64, 40x, 44x, 85xx, 8xx and e200 for the powerpc
> architecture (like the Kconfig option for the processor type). Then
> the
> BIOS or the bootloader would just select the correct dtb or a specific
> cuImage file. Theoretically...

Yes, that would be a good thing in principle, but the fact that we
have many bootloaders just seem to make things a bit harder. For
instance, we would have to teach quik, yaboot and grub2 to load
appropriate kernels for ppc32 (I am not familiar with other
bootloaders for OldWorld machines, like BootX or miboot etc).

Also, I don't know what is the bootloader that ppc64 uses (if
somebody could teach me here, I would be grateful, but as I don't
have any access to this platform at all, it would be for
documentation purposes).

Regarding the bootloader choosing the correct dtb and kernel image,
that would be fine, but wasteful for embedded systems. Perhaps
generating many binary packages for different flavours, like the
kernel maintainers do would be a good thing.

>> Nice that the script I provided you is of use for you. Please, if you
>> happen to make improvements, just send me a patch.
> For sure! I'll try to add cuImage support. However my bash shell
> scripting
> skills are a little bit rusty.

No problems with code that is less optimal. We can collaborate and,
perhaps, get something reasonable working.

>> Perhaps we could even get the improvements (if any) to be included
>> into
>> kernel-package itself, so that we don't have to duplicate any
>> effort...
> That would be the ideal case!

Once we have a less primitive script, I think that we could submit it
to Manoj as inspiration, basis, and proof-of-concept for integration
with kernel-package.


Regards, Rogério Brito.


--
To UNSUBSCRIBE, email to debian-powerpc-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[gentoo-user] sed: can't read /etc/make.profile/make.defau.. - Hi, Every time I open up a terminal(gnome-terminal or xterm) I get the message above. I've read up on the profile..

Difference between "make rpm-pkg" and "make binrpm-pkg"? - Hi, hopefully not to stupid: what is the difference between make rpm-pkg and make binrpm-pkg ? Thanks Martin ..

make changes - hi my redhat freezes during boot. i think i know the problem and i want to do changes in some conf file. Howeve, since....

"make" error - Hi, I was trying to install SMTP Vilter... But I didn't get to install it, because even the compilation failed: > ...

Where is Rules.make? - I tried something simple in RedHat Enterprise Linux 4 WS as a first experiment to implement a device driver. The kerne...

problems with "make" - Hello, I need the "make" program to install a perl module. I am on Redhat/Fedora, it seems the machine does...
       Soft32 Home -> Linux -> Ports PowerPC All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]