View previous topic :: View next topic |
Author |
Message |
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Tue Feb 06, 2018 8:29 am Post subject: raspberry gentoo-sources |
|
|
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 |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Tue Feb 06, 2018 1:38 pm Post subject: |
|
|
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 |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Tue Feb 06, 2018 2:41 pm Post subject: |
|
|
yes, that works ... my target
was, if it was possible, to be independent from those sources. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54673 Location: 56N 3W
|
Posted: Tue Feb 06, 2018 4:40 pm Post subject: |
|
|
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 |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Tue Feb 06, 2018 6:36 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54673 Location: 56N 3W
|
Posted: Tue Feb 06, 2018 7:32 pm Post subject: |
|
|
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 |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Wed Feb 07, 2018 7:05 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54673 Location: 56N 3W
|
Posted: Wed Feb 07, 2018 8:22 pm Post subject: |
|
|
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 |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Thu Feb 08, 2018 8:27 am Post subject: |
|
|
NeddySeagoon,
I will try again with vanila ...
if you have news let me know |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 513
|
Posted: Wed Feb 14, 2018 2:16 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54673 Location: 56N 3W
|
Posted: Wed Feb 14, 2018 2:21 pm Post subject: |
|
|
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 |
|
|
|