Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images

2017-09-21 Thread Anton Botvalde
2017-09-21 15:31 GMT+02:00 Lucas Stach :

> Am Mittwoch, den 20.09.2017, 21:41 +0200 schrieb Uwe Kleine-König:
> > On Wed, Sep 20, 2017 at 09:27:44PM +0200, Anton Botvalde wrote:
> > > Thanks for the reply!
> > > I tried out what you said but I had no success with copying the
> > > zImage to
> > > the boot partition.
> > > I git cloned the official bearbox repo and tried different tagged
> > > releases
> > > and I noticed that the last version that appear to work on my rpi2
> > > is
> > > v2017.03.0 and the versions afterwards appear to be broken (I
> > > haven't tried
> > > them all yet but I am guessing none of them work on rpi2)..
> >
> > Do you care to bisect?
> >
> >   git bisect start
> >   git bisect good v2017.03.0
> >   git bisect bad v2017.04.0
> >
> > and then test each proposed step and go to the next test with
> >
> >   git bisect good
> >
> > or
> >
> >   git bisect bad
> >
> > depending on "works" or "works not"?
> >
> > Maybe it might be even quicker when testing
> > a2e3bad25f6033e35e7a0f729cbd164d2d079c17 and
> > 6134116686ea7ecd3e29db3ab40e4eac837680c3 first.
> >
> > Eventually it will diagnose the first bad commit.
>
> If you look at the commits between 2017.03.0 and 2017.04.0, you'll
> notice that the complete conversion of Raspi platform to DT and multi-
> image is right in there. While this has some chance to introduce
> regressions like this, it has been tested on Raspi 1 and Raspi 3 at
> least.
>
> Does DistroKit copy the correct Barebox image to the SD card?
>
> Regards,
> Lucas
>
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de
>


Didn't know about git bisect, pretty neat :)
Here is the output:

fe506e132c4f06ef82a7374841a884958b27931f is the first bad commit

commit fe506e132c4f06ef82a7374841a884958b27931f

Author: Lucas Stach 

Date:   Wed Mar 1 15:31:30 2017 +0100



ARM: rpi: move model detection before console init



This way we can print the correct model in the Barebox banner.



Signed-off-by: Lucas Stach 

Signed-off-by: Sascha Hauer 



:04 04 a275cb14d29a6e572c2d6cd7e3dc28536109bce3
e33e16ac933af2f38cc5493429bc606f2a5d5682 March
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images

2017-09-21 Thread Lucas Stach
Am Mittwoch, den 20.09.2017, 21:41 +0200 schrieb Uwe Kleine-König:
> On Wed, Sep 20, 2017 at 09:27:44PM +0200, Anton Botvalde wrote:
> > Thanks for the reply!
> > I tried out what you said but I had no success with copying the
> > zImage to
> > the boot partition.
> > I git cloned the official bearbox repo and tried different tagged
> > releases
> > and I noticed that the last version that appear to work on my rpi2
> > is
> > v2017.03.0 and the versions afterwards appear to be broken (I
> > haven't tried
> > them all yet but I am guessing none of them work on rpi2)..
> 
> Do you care to bisect?
> 
>   git bisect start
>   git bisect good v2017.03.0
>   git bisect bad v2017.04.0
> 
> and then test each proposed step and go to the next test with
> 
>   git bisect good
> 
> or
> 
>   git bisect bad
> 
> depending on "works" or "works not"?
> 
> Maybe it might be even quicker when testing
> a2e3bad25f6033e35e7a0f729cbd164d2d079c17 and
> 6134116686ea7ecd3e29db3ab40e4eac837680c3 first.
> 
> Eventually it will diagnose the first bad commit.

If you look at the commits between 2017.03.0 and 2017.04.0, you'll
notice that the complete conversion of Raspi platform to DT and multi-
image is right in there. While this has some chance to introduce
regressions like this, it has been tested on Raspi 1 and Raspi 3 at
least.

Does DistroKit copy the correct Barebox image to the SD card?

Regards,
Lucas

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images

2017-09-20 Thread Uwe Kleine-König
On Wed, Sep 20, 2017 at 09:27:44PM +0200, Anton Botvalde wrote:
> Thanks for the reply!
> I tried out what you said but I had no success with copying the zImage to
> the boot partition.
> I git cloned the official bearbox repo and tried different tagged releases
> and I noticed that the last version that appear to work on my rpi2 is
> v2017.03.0 and the versions afterwards appear to be broken (I haven't tried
> them all yet but I am guessing none of them work on rpi2)..

Do you care to bisect?

git bisect start
git bisect good v2017.03.0
git bisect bad v2017.04.0

and then test each proposed step and go to the next test with

git bisect good

or

git bisect bad

depending on "works" or "works not"?

Maybe it might be even quicker when testing
a2e3bad25f6033e35e7a0f729cbd164d2d079c17 and
6134116686ea7ecd3e29db3ab40e4eac837680c3 first.

Eventually it will diagnose the first bad commit.

Best regards
Uwe


-- 
Pengutronix e.K.   | Uwe Kleine-König|
Industrial Linux Solutions | http://www.pengutronix.de/  |

___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images

2017-09-20 Thread Anton Botvalde
Thanks for the reply!
I tried out what you said but I had no success with copying the zImage to
the boot partition.
I git cloned the official bearbox repo and tried different tagged releases
and I noticed that the last version that appear to work on my rpi2 is
v2017.03.0 and the versions afterwards appear to be broken (I haven't tried
them all yet but I am guessing none of them work on rpi2)..

2017-09-18 16:42 GMT+02:00 Roland Hieber :

> Hi,
>
> On 11.09.2017 20:22, Anton Botvalde wrote:
>
>> Hello,
>>
>> I am new to the world of ptxdist and firmware image building. To get my
>> feet wet I have tried to build an image for my raspberry pi 2 with ptxdist
>> and distrokit following the blog post on the pengutronix homepage (
>> http://pengutronix.de/en/2017-08-28-distrokit-a-playground-
>> bsp-for-ptxdist.html > -08-28-distrokit-a-playground-bsp-for-ptxdist.html>).
>>
>> The image for rpi2 is successfully built but I am unable to get the image
>> working on my rpi2. Nothing happens after the gpu firmware has booted and
>> using serial to usb connector gives nothing but radio silence so I am
>> guessing that the kernel is not booting at all. I have tried several sd
>> cards and another rpi2 so I have ruled out faulty hardware. I also tried
>> building an image for rpi1 but it didn't work as well.
>>
> I just tried it out, and you're right. We should see some barebox
> messages, and then some systemd startup messages, followed by a login
> prompt. However, the system does not even seem to start the barebox
> bootloader.
>
> I'm not sure how to debug this, but you could try to work-around this bug
> by copy /boot/zImage from the second partition on the SD card to the boot
> partition, and changing "kernel=barebox.bin" to "kernel=zImage" in
> config.txt.
>
> I found the following github repo (https://github.com/rohieb/Dis
>> troKit-rpi-ibrdtn )
>> which seemed aimed at distrokit and rpi images so I tried to build an image
>> with it instead and managed to get an image that actually boots on my rpi2.
>>
>
> This is one of my old repos which I used as a playground for DistroKit
> when working on my master's thesis. It is a fork of an old version of the
> official DistroKit Git repo. Back then, I only had access to a RPi1, so I
> used platform-rpi. Also, this was before platform-rpi and platform-v7a was
> recently overhauled in DistroKit in July.
>
> What is the official status of the distrokit support for raspberry pi?
>>
>
> RPi 1 should work with platform-rpi, RPi 2 should work with platform-v7a.
> RPi 3 should in theory also work with platform-v7a, but I think no one has
> come around yet to testing that...
>
>  - Roland
>
___
ptxdist mailing list
ptxdist@pengutronix.de

Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images

2017-09-18 Thread Roland Hieber

Hi,

On 11.09.2017 20:22, Anton Botvalde wrote:

Hello,

I am new to the world of ptxdist and firmware image building. To get my 
feet wet I have tried to build an image for my raspberry pi 2 with 
ptxdist and distrokit following the blog post on the pengutronix 
homepage 
(http://pengutronix.de/en/2017-08-28-distrokit-a-playground-bsp-for-ptxdist.html 
).


The image for rpi2 is successfully built but I am unable to get the 
image working on my rpi2. Nothing happens after the gpu firmware has 
booted and using serial to usb connector gives nothing but radio silence 
so I am guessing that the kernel is not booting at all. I have tried 
several sd cards and another rpi2 so I have ruled out faulty hardware. I 
also tried building an image for rpi1 but it didn't work as well.
I just tried it out, and you're right. We should see some barebox 
messages, and then some systemd startup messages, followed by a login 
prompt. However, the system does not even seem to start the barebox 
bootloader.


I'm not sure how to debug this, but you could try to work-around this 
bug by copy /boot/zImage from the second partition on the SD card to the 
boot partition, and changing "kernel=barebox.bin" to "kernel=zImage" in 
config.txt.


I found the following github repo 
(https://github.com/rohieb/DistroKit-rpi-ibrdtn 
) which seemed aimed at 
distrokit and rpi images so I tried to build an image with it instead 
and managed to get an image that actually boots on my rpi2.


This is one of my old repos which I used as a playground for DistroKit 
when working on my master's thesis. It is a fork of an old version of 
the official DistroKit Git repo. Back then, I only had access to a RPi1, 
so I used platform-rpi. Also, this was before platform-rpi and 
platform-v7a was recently overhauled in DistroKit in July.



What is the official status of the distrokit support for raspberry pi?


RPi 1 should work with platform-rpi, RPi 2 should work with 
platform-v7a. RPi 3 should in theory also work with platform-v7a, but I 
think no one has come around yet to testing that...


 - Roland

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] Status of ptxdist and distrokit raspberry pi 2 images

2017-09-11 Thread Anton Botvalde
Hello,

I am new to the world of ptxdist and firmware image building. To get my
feet wet I have tried to build an image for my raspberry pi 2 with ptxdist
and distrokit following the blog post on the pengutronix homepage (
http://pengutronix.de/en/2017-08-28-distrokit-a-playground-
bsp-for-ptxdist.html).

The image for rpi2 is successfully built but I am unable to get the image
working on my rpi2. Nothing happens after the gpu firmware has booted and
using serial to usb connector gives nothing but radio silence so I am
guessing that the kernel is not booting at all. I have tried several sd
cards and another rpi2 so I have ruled out faulty hardware. I also tried
building an image for rpi1 but it didn't work as well.

I found the following github repo (https://github.com/rohieb/Dis
troKit-rpi-ibrdtn) which seemed aimed at distrokit and rpi images so I
tried to build an image with it instead and managed to get an image that
actually boots on my rpi2.

What is the official status of the distrokit support for raspberry pi?

Thanks
Anton Botvalde
___
ptxdist mailing list
ptxdist@pengutronix.de