Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bootable 64-bit RPi3 Gentoo image (OpenRC/Xfce/VC4) UPDATED
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Nov 13, 2017 2:52 pm    Post subject: Reply with quote

orion777,

There are no stupid questions.

The shell that you get when you ssh into a system is closed when you log out.
You need screen or tmux. I use screen.

ssh to the system.
emerge screen
Run screen.
Start your compile.
Close your terminal

Log in again, from anywhere.
Run
Code:
screen -x
to reattach to your compile session.
_________________
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
orion777
n00b
n00b


Joined: 15 Mar 2017
Posts: 15
Location: Riga, Latvia

PostPosted: Tue Nov 14, 2017 12:11 pm    Post subject: Reply with quote

Sakaki wrote:
you could do:
Code:
pi64 ~ # mkdir -pv kbuild && cd kbuild
pi64 kbuild # rm -rf linux
pi64 kbuild # git clone --depth 1 https://github.com/raspberrypi/linux.git -b rpi-4.10.y
pi64 kbuild # cd linux
pi64 linux # make distclean
pi64 linux # make bcmrpi3_defconfig
pi64 linux # nice -n 19 make -j4
pi64 linux # make modules_install
pi64 linux # make firmware_install
pi64 linux # cp -v arch/arm64/boot/Image /boot/kernel8.img
pi64 linux # cp -v arch/arm64/boot/dts/broadcom/bcm{2710,2837}-rpi-3-b.dtb /boot/
pi64 linux # sync
pi64 linux # reboot

If you do that, does it boot?

Seems that Yes, it is working! Than You!!
Code:
pi64 ~ # uname -a
Linux pi64 4.10.17-v8+ #1 SMP PREEMPT Tue Nov 14 11:23:42 GMT 2017 aarch64 GNU/Linux


However, I cant understand:
1) how do we get .config? I cant understand how to generate .config if there are no any config files?
1.1)what are the differences between generated .config and this https://github.com/sakaki-/bcmrpi3-kernel/blob/master/config ?
2) What actually do command make bcmrpi3_defconfig ? Why we have to specify exactly bcmrpi3_defconfig, what does its means?
Back to top
View user's profile Send private message
orion777
n00b
n00b


Joined: 15 Mar 2017
Posts: 15
Location: Riga, Latvia

PostPosted: Tue Nov 14, 2017 12:14 pm    Post subject: Reply with quote

NeddySeagoon wrote:


Run screen.
Start your compile.
Close your terminal

Log in again, from anywhere.
Run
Code:
screen -x
to reattach to your compile session.


Thank You! I found this explanation:
to detaching screen: CTRL+A and CTRL+D
to reattach to screen: screen -r

So what is the correct one: simply close or ctrl+a and than ctrl+d? And screen -x or screen -r?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Nov 14, 2017 12:29 pm    Post subject: Reply with quote

orion777,

They are all correct.
Code:
screen -x
reattaches to a running screen session if there is only one.
Code:
screen -r
demands the process ID of the screen session you want to reattach to.

Consider the following command sequence ..
Code:
screen
Ctrl-A,D
screen
Ctrl-A,D

You now have two screen sessions running and are detached from them both.

See
Code:
 screen -h
and
Code:
man screen

_________________
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
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 98

PostPosted: Tue Nov 14, 2017 3:36 pm    Post subject: Reply with quote

orion777 wrote:
Seems that Yes, it is working! Than You!!
<snip>
However, I cant understand:
1) how do we get .config? I cant understand how to generate .config if there are no any config files?
1.1)what are the differences between generated .config and this https://github.com/sakaki-/bcmrpi3-kernel/blob/master/config ?
2) What actually do command make bcmrpi3_defconfig ? Why we have to specify exactly bcmrpi3_defconfig, what does its means?

The make bcmrpi3_defconfig command creates a default .config file, using the recommended baseline settings for the RPi3 in 64bit (you can see it in the kernel source tree here). You can of course modify the resulting .config as you wish.
The .config used in the automatically built bcmrpi3-kernel is almost exactly the vanilla bcmrpi3_defconfig version: as stated in its README:
Quote:
Builds are performed with the standard bcmrpi3_defconfig, with the only change being that the first 12 hex digits of the tip commit SHA1 hash are appended to CONFIG_LOCALVERSION (with a separating hyphen) before building.

Note though, that the bcmrpi3-kernel tracks the 4.9 branch not the 4.10 branch by default. The 4.9 branch gets most of the backport attention, but is currently missing certain drivers, most notably HDMI audio support.

In any event, now you have a booting kernel, you can go back in an try a "make menuconfig" if you like, to create your own custom .config from the baseline. Just remember to backup your working kernel and .config before you do ^-^
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
orion777
n00b
n00b


Joined: 15 Mar 2017
Posts: 15
Location: Riga, Latvia

PostPosted: Tue Nov 14, 2017 4:03 pm    Post subject: Reply with quote

MC working fine.
usb_modeswitch seems working as cellular modem is working.

However, dmesg reports failure in cpu speed operation:
Code:
[  676.833306] bcm2835-cpufreq:bcm2835_cpufreq_set_clock:84: Failed to set clock: 1200000 (-12)
[  676.833322] bcm2835-cpufreq:bcm2835_cpufreq_driver_target_index:183: Error occurred setting a new frequency (1200000)
[  676.833331] cpufreq: __target_index: Failed to change cpu frequency: -22
[  678.556268] brcmfmac: power management disabled
Back to top
View user's profile Send private message
orion777
n00b
n00b


Joined: 15 Mar 2017
Posts: 15
Location: Riga, Latvia

PostPosted: Tue Nov 14, 2017 4:07 pm    Post subject: Reply with quote

Sakaki wrote:

In any event, now you have a booting kernel, you can go back in an try a "make menuconfig" if you like, to create your own custom .config from the baseline. Just remember to backup your working kernel and .config before you do ^-^

I was just trying it by adding some USB drivers support and its working!
Thank You!

Is it necessary to disable genup schedule if I work with custom kernel, packages, etc?
Back to top
View user's profile Send private message
Sakaki
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2014
Posts: 98

PostPosted: Tue Nov 14, 2017 7:45 pm    Post subject: Reply with quote

orion777 wrote:
Is it necessary to disable genup schedule if I work with custom kernel, packages, etc?

No, if you like you can leave it scheduled, to keep the rest of your system up-to-date. Anything custom you add (packages etc.) will also be updated whenever genup runs, if new versions become available in the Gentoo tree, but these will be built locally (as they won't be present on the isshoni.org binhost).

One thing you will need to do however is to disable the binary kernel updates. To do so, edit /etc/portage/package.use/rpi3-64bit-meta, and add the following as the only uncommented line at the end:
Code:
dev-embedded/rpi3-64bit-meta -kernel-bin

Then as root, issue:
Code:
pi64 ~ # emerge -av dev-embedded/rpi3-64bit-meta

That will prevent your custom kernel being overwritten when genup triggers.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
orion777
n00b
n00b


Joined: 15 Mar 2017
Posts: 15
Location: Riga, Latvia

PostPosted: Sat Nov 18, 2017 8:08 am    Post subject: Reply with quote

Does any solution exists to eliminate Failed to set clock: 1200000 (-12) error in dmesg?
All options, as they are shown here, are enabled and maked https://wiki.gentoo.org/wiki/Raspberry_Pi_3_64_bit_Install#Configure_The_Kernel
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 18, 2017 11:33 am    Post subject: Reply with quote

orion777,

That error says that something cannot change the Pi CPU frequency.

Which kernel are you using?
What do you have in the Pis /boot/config.txt?

That guide works for me with
Code:
 Pi3_64 ~ # uname -a
Linux Pi3_64 4.10.17-v8+ #7 SMP PREEMPT Mon Oct 9 16:31:01 BST 2017 aarch64 GNU/Linux

_________________
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
orion777
n00b
n00b


Joined: 15 Mar 2017
Posts: 15
Location: Riga, Latvia

PostPosted: Sat Nov 18, 2017 7:26 pm    Post subject: Reply with quote

Kernel seems like You have..
Code:
Linux pi64 4.10.17-v8+ #2 SMP PREEMPT Tue Nov 14 15:34:08 GMT 2017 aarch64 GNU/Linux

I don't remember that I was doing something in /boot/config.txt , but here is its internals:
Code:
# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# NB the VC4 graphics driver currently displays an offset cursor when
# overscan is in use (#17), so disable_overscan is now SET by default; should
# you require overscan for your display, comment the above line out again;
# note that if you do this, the rpi3-safecursor service (assuming you have
# it installed and enabled) will automatically enforce software cursor blitting
# in X11 (which is slower, but has no offset), and turn off Xfce4 display
# compositing for all users (to avoid glitches);
# for avoidance of doubt, having "disable_overscan=1" should _not_ affect you,
# unless using your RPi3 with an HDMI TV, rather than a computer monitor

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on
#dtparam=i2c1=on
#dtparam=i2c1_baudrate=50000
#dtparam=i2c1_baudrate=50000

# select hybrid VC4 mode, so we can use X and gl
# see https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README
# we use a CMA of 256MB, 256MB-aligned (needs 1GB)
# per https://github.com/anholt/mesa/issues/56#issuecomment-263341225, no
# point trying to use >256MB, RPi3's hardware does not support it
dtoverlay=vc4-fkms-v3d,cma-256
# per https://github.com/anholt/mesa/issues/56#issuecomment-263283300
# gpu_mem is for closed-source driver only; since we are only using the
# open-source driver here, set low
gpu_mem=16

# force 64-bit mode, per https://wiki.gentoo.org/wiki/Raspberry_Pi
arm_control=0x200
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 18, 2017 9:38 pm    Post subject: Reply with quote

orion777,

That looks OK.

Pastebin your kernel .config file.
I'll compare it with mine ... or you can. My .config
_________________
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
orion777
n00b
n00b


Joined: 15 Mar 2017
Posts: 15
Location: Riga, Latvia

PostPosted: Sun Nov 19, 2017 4:27 pm    Post subject: Reply with quote

Seems that everything is here:

Your is not configured, my is Y
CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y

Your is Y,my is not configured
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set

https://paste.pound-python.org/show/ber5E3vZY2VlgcQoxqLk/

Seems that it is necessary to enter into Default CPUFreq governor (powersave) ---> and to set ONDEMAND, not POWERSAVE. However, I was following illustration only and this subsetting was not set.
https://wiki.gentoo.org/wiki/Raspberry_Pi_3_64_bit_Install#Configure_The_Kernel

Kernel is remaked and seems it works (at least, there are no more errors in dmesg). Is it possible to check does it really work and CPU freq is adjusted? Or I can check radiator heating only?

Also there are some errors in dmesg, but I dont understand are thay critical or not.. I will post them here just to know (I have very little experience in gentoo and also in linux)
Code:
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[b][    0.000000] Failed to get local register map. FIQ is disabled for cpus > 1[/b]

Code:
[    0.196959] SCSI subsystem initialized
[    0.197198] usbcore: registered new interface driver usbfs
[    0.197315] usbcore: registered new interface driver hub
[    0.197482] usbcore: registered new device driver usb
[b][    0.197752] dmi: Firmware registration failed.[/b]
[    0.198149] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-05-15 16:58

Code:
[    1.716448] smsc95xx v1.0.5
[    1.763719] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:28:f1:db
[    2.175561] random: crng init done
[b][    7.812547] cgroup: cgroup2: unknown option "nsdelegate"[/b]
[    8.543476] udevd[618]: starting version 3.2.4
[    8.744060] udevd[619]: starting eudev-3.2.4
[    9.349196] [drm] Initialized
[    9.522269] vc4-drm soc:gpu: bound 3f600000.firmwarekms (ops vc4_fkms_ops [vc4])
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Nov 19, 2017 7:04 pm    Post subject: Reply with quote

orion777,

Code:
Your is not configured, my is Y
CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE=y

Your is Y,my is not configured
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set


You may have at most one CONFIG_CPU_FREQ_DEFAULT_GOV. That's the one that the kernel uses at startup.
Its possible to switch to another governor at boot, with a kernel parameter, or at any time.
However, the POWERSAVE governor forces the Pi to run at 600MHz. If you want to change that, you must firs select a different CPU governor.

Code:
[    0.000000] Failed to get local register map. FIQ is disabled for cpus > 1
I get that, so its probably harmless.

The others I will need to reboot for, which is not ideal right now.
_________________
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
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Page 8 of 8

 
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