linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RaspberryPi "is this a real kernel?"
@ 2015-05-24 10:32 John Whitmore
  2015-05-25  1:11 ` Valdis.Kletnieks
  0 siblings, 1 reply; 5+ messages in thread
From: John Whitmore @ 2015-05-24 10:32 UTC (permalink / raw)
  To: linux-kernel

I tried to subscribe to the RaspberryPi Kernel mailing list a few days ago but
I guess that my request has not been accepted as yet. Maybe it was missed so I
re-tried a moment ago. Since I can't get in there I thought I'd try
here. Apologies, bit of a panic.

So I'm trying to make a few changes to the Ubuntu Mate kernel for the
RaspberryPi V2. The Ubuntu kernel is 3.18.0-22 so I checked out, what I
thought was the last version of 3.18.0 from the RaspberryPi Kernel git repo,
did a make oldconfig, make menuconfig, to include CAN and stuff and then built
the kernel without any issues.

Now I'm not fully understanding the rest of the process but there's a utility
in the RaspberryPi tools to actually take the output from the build and
produce the image file for your SD card. It's questioning the integrity of my
built kernel and I've no idea why. (I think it's lovely and can't see why
anybody could question it!)

$ ./mkknlimg ../../linux/arch/arm/boot/zImage 3.18.0-can+.img
tail: +: invalid number of bytes
* Is this a valid kernel? In pass-through mode.


I'm using "mkknlimg" as the other utility "imagetool-uncompressed.py" is just
giving me a data file. 

So can anybody help me to understand what it is that's going wrong with this
process. 

John

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

* Re: RaspberryPi "is this a real kernel?"
  2015-05-24 10:32 RaspberryPi "is this a real kernel?" John Whitmore
@ 2015-05-25  1:11 ` Valdis.Kletnieks
  2015-05-25  9:24   ` John Whitmore
  0 siblings, 1 reply; 5+ messages in thread
From: Valdis.Kletnieks @ 2015-05-25  1:11 UTC (permalink / raw)
  To: John Whitmore; +Cc: linux-kernel

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

On Sun, 24 May 2015 11:32:36 +0100, John Whitmore said:

> $ ./mkknlimg ../../linux/arch/arm/boot/zImage 3.18.0-can+.img
> tail: +: invalid number of bytes
> * Is this a valid kernel? In pass-through mode.

Looks like they try to use 'tail' to skip over something, but the + sign
in your uname -r gives it indigestion.  Try building with a version name
that doesn't include a + sign, and complain to the maintainers of mkknlimg
that they've probably got a parameter quoting problem (most likely, there's
someplace a

tail -this -that $foo

needs to be

tail -this -that "$foo"

[-- Attachment #2: Type: application/pgp-signature, Size: 848 bytes --]

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

* Re: RaspberryPi "is this a real kernel?"
  2015-05-25  1:11 ` Valdis.Kletnieks
@ 2015-05-25  9:24   ` John Whitmore
  2015-05-26 13:53     ` Austin S Hemmelgarn
  0 siblings, 1 reply; 5+ messages in thread
From: John Whitmore @ 2015-05-25  9:24 UTC (permalink / raw)
  To: Valdis.Kletnieks; +Cc: linux-kernel

On Sun, May 24, 2015 at 09:11:56PM -0400, Valdis.Kletnieks@vt.edu wrote:
> On Sun, 24 May 2015 11:32:36 +0100, John Whitmore said:
> 
> > $ ./mkknlimg ../../linux/arch/arm/boot/zImage 3.18.0-can+.img
> > tail: +: invalid number of bytes
> > * Is this a valid kernel? In pass-through mode.
> 
> Looks like they try to use 'tail' to skip over something, but the + sign
> in your uname -r gives it indigestion.  Try building with a version name
> that doesn't include a + sign, and complain to the maintainers of mkknlimg
> that they've probably got a parameter quoting problem (most likely, there's
> someplace a
> 
> tail -this -that $foo
> 
> needs to be
> 
> tail -this -that "$foo"

Thanks a million for that help. I'll do a bit of looking into the scripts.



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

* Re: RaspberryPi "is this a real kernel?"
  2015-05-25  9:24   ` John Whitmore
@ 2015-05-26 13:53     ` Austin S Hemmelgarn
  2015-05-29 14:02       ` John Whitmore
  0 siblings, 1 reply; 5+ messages in thread
From: Austin S Hemmelgarn @ 2015-05-26 13:53 UTC (permalink / raw)
  To: John Whitmore, Valdis.Kletnieks; +Cc: linux-kernel

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

On 2015-05-25 05:24, John Whitmore wrote:
> On Sun, May 24, 2015 at 09:11:56PM -0400, Valdis.Kletnieks@vt.edu wrote:
>> On Sun, 24 May 2015 11:32:36 +0100, John Whitmore said:
>>
>>> $ ./mkknlimg ../../linux/arch/arm/boot/zImage 3.18.0-can+.img
>>> tail: +: invalid number of bytes
>>> * Is this a valid kernel? In pass-through mode.
>>
>> Looks like they try to use 'tail' to skip over something, but the + sign
>> in your uname -r gives it indigestion.  Try building with a version name
>> that doesn't include a + sign, and complain to the maintainers of mkknlimg
>> that they've probably got a parameter quoting problem (most likely, there's
>> someplace a
>>
>> tail -this -that $foo
>>
>> needs to be
>>
>> tail -this -that "$foo"
>
> Thanks a million for that help. I'll do a bit of looking into the scripts.
>
Actually, unless you are using ancient firmware (from prior to the first 
production revisions of the Model B), you should be able to boot the 
zImage directly, just drop it in /boot and edit config.txt to point to it.



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2967 bytes --]

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

* Re: RaspberryPi "is this a real kernel?"
  2015-05-26 13:53     ` Austin S Hemmelgarn
@ 2015-05-29 14:02       ` John Whitmore
  0 siblings, 0 replies; 5+ messages in thread
From: John Whitmore @ 2015-05-29 14:02 UTC (permalink / raw)
  To: Austin S Hemmelgarn; +Cc: Valdis.Kletnieks, linux-kernel

On Tue, May 26, 2015 at 09:53:07AM -0400, Austin S Hemmelgarn wrote:
> On 2015-05-25 05:24, John Whitmore wrote:
> >On Sun, May 24, 2015 at 09:11:56PM -0400, Valdis.Kletnieks@vt.edu wrote:
> >>On Sun, 24 May 2015 11:32:36 +0100, John Whitmore said:
> >>
> >>>$ ./mkknlimg ../../linux/arch/arm/boot/zImage 3.18.0-can+.img
> >>>tail: +: invalid number of bytes
> >>>* Is this a valid kernel? In pass-through mode.
> >>
> >>Looks like they try to use 'tail' to skip over something, but the + sign
> >>in your uname -r gives it indigestion.  Try building with a version name
> >>that doesn't include a + sign, and complain to the maintainers of mkknlimg
> >>that they've probably got a parameter quoting problem (most likely, there's
> >>someplace a
> >>
> >>tail -this -that $foo
> >>
> >>needs to be
> >>
> >>tail -this -that "$foo"
> >
> >Thanks a million for that help. I'll do a bit of looking into the scripts.
> >
> Actually, unless you are using ancient firmware (from prior to the
> first production revisions of the Model B), you should be able to
> boot the zImage directly, just drop it in /boot and edit config.txt
> to point to it.
> 
>

Hey thanks for that. That really solves the problem thanks a million for the
info.

John 



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

end of thread, other threads:[~2015-05-29 14:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-24 10:32 RaspberryPi "is this a real kernel?" John Whitmore
2015-05-25  1:11 ` Valdis.Kletnieks
2015-05-25  9:24   ` John Whitmore
2015-05-26 13:53     ` Austin S Hemmelgarn
2015-05-29 14:02       ` John Whitmore

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).