Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
raspberry gentoo-sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Tue Feb 06, 2018 8:29 am    Post subject: raspberry gentoo-sources Reply with quote

Good morning,
has anyone ever compiled gentoo-sources for raspberry?
I tried but the kernel does not start ... I only have a colored screen on startup.

I followed this procedure (croos-compile)

downloaded the sources
I copied the bcm2709_defconfig from the raspberry sources in the gentoo-sources

make ARCH = arm bcm2709_defconfig
make ARCH = arm CROSS_COMPILE = armv7a-hardfloat-linux-gnueabi- -j $ (nproc)
make ARCH = arm CROSS_COMPILE = armv7a-hardfloat-linux-gnueabi- modules_install INSTALL_MOD_PATH = / mnt / raspberrypiroot /

cp -a /home /<user>/raspberrypi/firmware/boot/* /mnt/gentoo/boot

cp arch/arm/boot/zImage /mnt/raspberrypiroot/boot/kernel7.img
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8723
Location: ~Brussels - Belgique

PostPosted: Tue Feb 06, 2018 1:38 pm    Post subject: Reply with quote

Hi,

I don't think the mainstream kernel has support for raspberry pi.

You can get raspberrypi-sources or clone https://github.com/raspberrypi/linux/ ; then you will have raspberrypi_defconfig that will be OK.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Tue Feb 06, 2018 2:41 pm    Post subject: Reply with quote

xaviermiller wrote:
You can get raspberrypi-sources or clone https://github.com/raspberrypi/linux/ ; then you will have raspberrypi_defconfig that will be OK.


yes, that works ... my target
was, if it was possible, to be independent from those sources.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54673
Location: 56N 3W

PostPosted: Tue Feb 06, 2018 4:40 pm    Post subject: Reply with quote

antonellocaroli,

You don't mention installing the dtb file from the kernel build.

It may not matter unless you have a Pi3, then the mainline kernel and Pi Foundation kernels use different file names.
The dtb file describes the hardware to the kernel, so the kernel will load and do nothing when its missing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Tue Feb 06, 2018 6:36 pm    Post subject: Reply with quote

NeddySeagoon wrote:
antonellocaroli,

You don't mention installing the dtb file from the kernel build.

It may not matter unless you have a Pi3, then the mainline kernel and Pi Foundation kernels use different file names.
The dtb file describes the hardware to the kernel, so the kernel will load and do nothing when its missing.

Hi,
yes Pi3

I do not have .dtb files in lnux-4.15.1-gentoo/ arch/arc/boot/dts/

and not even the dir overlays

so I copied them from the firmware https://github.com/raspberrypi/firmware
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54673
Location: 56N 3W

PostPosted: Tue Feb 06, 2018 7:32 pm    Post subject: Reply with quote

antonellocaroli,

The dts, dti and dtb files will be in arch/arm64/boot/dts/broadcom/
You need the dtb file from there.

I think the mainline kernel calls it bcm2837-rpi-3-b.dtb and the Pi kernel calls it bcm2710-rpi-3-b.dtb.
Whatever, the file name needs to be right or it won't be loaded.

Change the file name in the copy or bootcode.bin won't load it, or put some entries in /boot/config.txt.
Then you can use whatever kernel and dtb file names you want.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Wed Feb 07, 2018 7:05 pm    Post subject: Reply with quote

NeddySeagoon wrote:
antonellocaroli,

The dts, dti and dtb files will be in arch/arm64/boot/dts/broadcom/
You need the dtb file from there.

I think the mainline kernel calls it bcm2837-rpi-3-b.dtb and the Pi kernel calls it bcm2710-rpi-3-b.dtb.
Whatever, the file name needs to be right or it won't be loaded.

Change the file name in the copy or bootcode.bin won't load it, or put some entries in /boot/config.txt.
Then you can use whatever kernel and dtb file names you want.


thanks NeddySeagoon,

I tried, but it does not work :(
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54673
Location: 56N 3W

PostPosted: Wed Feb 07, 2018 8:22 pm    Post subject: Reply with quote

antonellocaroli'

Trying vanillia-sources-4.15.x is on my list of things to do but my Pi install has a few things to sort out first.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Thu Feb 08, 2018 8:27 am    Post subject: Reply with quote

NeddySeagoon,

I will try again with vanila ...
if you have news let me know
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 513

PostPosted: Wed Feb 14, 2018 2:16 pm    Post subject: Reply with quote

Vanilla almost worked ...
Video did not work ... and some other malfunction ... but all in all it started :)

sure someone more experienced can do better;)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54673
Location: 56N 3W

PostPosted: Wed Feb 14, 2018 2:21 pm    Post subject: Reply with quote

antonellocaroli,

Video should work with Simple Framebuffer.
Even Xorg should run (slowly) with VIDEO_CARDS=fbdev.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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