* [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images
@ 2017-09-11 18:22 Anton Botvalde
2017-09-18 14:42 ` Roland Hieber
0 siblings, 1 reply; 6+ messages in thread
From: Anton Botvalde @ 2017-09-11 18:22 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 1057 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1725 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images
2017-09-11 18:22 [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images Anton Botvalde
@ 2017-09-18 14:42 ` Roland Hieber
2017-09-20 19:27 ` Anton Botvalde
0 siblings, 1 reply; 6+ messages in thread
From: Roland Hieber @ 2017-09-18 14:42 UTC (permalink / raw)
To: ptxdist, Anton Botvalde
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
> <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
> <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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images
2017-09-18 14:42 ` Roland Hieber
@ 2017-09-20 19:27 ` Anton Botvalde
2017-09-20 19:41 ` Uwe Kleine-König
0 siblings, 1 reply; 6+ messages in thread
From: Anton Botvalde @ 2017-09-20 19:27 UTC (permalink / raw)
To: Roland Hieber; +Cc: ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 2772 bytes --]
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 <r.hieber@pengutronix.de>:
> 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 <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/Dis
>> troKit-rpi-ibrdtn <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
>
[-- Attachment #1.2: Type: text/html, Size: 4082 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images
2017-09-20 19:27 ` Anton Botvalde
@ 2017-09-20 19:41 ` Uwe Kleine-König
2017-09-21 13:31 ` Lucas Stach
0 siblings, 1 reply; 6+ messages in thread
From: Uwe Kleine-König @ 2017-09-20 19:41 UTC (permalink / raw)
To: ptxdist; +Cc: Roland Hieber
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images
2017-09-20 19:41 ` Uwe Kleine-König
@ 2017-09-21 13:31 ` Lucas Stach
2017-09-21 16:28 ` Anton Botvalde
0 siblings, 1 reply; 6+ messages in thread
From: Lucas Stach @ 2017-09-21 13:31 UTC (permalink / raw)
To: ptxdist; +Cc: Roland Hieber
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images
2017-09-21 13:31 ` Lucas Stach
@ 2017-09-21 16:28 ` Anton Botvalde
0 siblings, 0 replies; 6+ messages in thread
From: Anton Botvalde @ 2017-09-21 16:28 UTC (permalink / raw)
To: ptxdist; +Cc: Roland Hieber
[-- Attachment #1.1: Type: text/plain, Size: 2395 bytes --]
2017-09-21 15:31 GMT+02:00 Lucas Stach <l.stach@pengutronix.de>:
> 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 <l.stach@pengutronix.de>
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 <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
:040000 040000 a275cb14d29a6e572c2d6cd7e3dc28536109bce3
e33e16ac933af2f38cc5493429bc606f2a5d5682 M arch
[-- Attachment #1.2: Type: text/html, Size: 4278 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-09-21 16:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-11 18:22 [ptxdist] Status of ptxdist and distrokit raspberry pi 2 images Anton Botvalde
2017-09-18 14:42 ` Roland Hieber
2017-09-20 19:27 ` Anton Botvalde
2017-09-20 19:41 ` Uwe Kleine-König
2017-09-21 13:31 ` Lucas Stach
2017-09-21 16:28 ` Anton Botvalde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox