Built linux-odroid-c2 but it's not booting in [solved]

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

Built linux-odroid-c2 but it's not booting in [solved]

Postby graysky » Sun Jul 24, 2016 9:05 pm

I applied a patch to linux-odroid-c2 from the github repo; the build was successful but when I reboot, I do not appear to be using my package since I added "FOO" to the output of several commands. I built with just 'makepkg -s' and I can verify that the files did indeed get patched by visual inspection of them in ./src and the "build date" output from pacman -Qi linux-odroid-c2 matches my build. Is there something special I am missing?

EDIT: problem was my patch affected arm not arm64.
Last edited by graysky on Fri Jul 29, 2016 7:15 pm, edited 1 time in total.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: I built/installed linux-odroid-c2 but it's not booting i

Postby WarheadsSE » Mon Jul 25, 2016 11:36 am

Why are you patching this, instead of just modifying the cmdline to set 'debug' and 'earlyprintk' ?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: I built/installed linux-odroid-c2 but it's not booting i

Postby graysky » Mon Jul 25, 2016 11:55 am

I tried this but no change:
$this->bbcode_second_pass_code('', '
% cat /proc/sys/kernel/printk
7 4 1 7

# echo 4 > /proc/sys/kernel/printk
# cat /proc/sys/kernel/printk
4 4 1 7')
Lower values such as 1 do not affect it for me either.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: I built/installed linux-odroid-c2 but it's not booting i

Postby graysky » Tue Jul 26, 2016 2:29 pm

...is that the wrong syntax to silence these messages? Using the following does not do it either:
$this->bbcode_second_pass_code('', '# dmesg -n 4')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: I built/installed linux-odroid-c2 but it's not booting i

Postby graysky » Tue Jul 26, 2016 7:45 pm

Just for testing purposes, I put ubuntu64-16.04lts-mate-odroid-c2-20160525 onto a spare card... there too I cannot suppress the printing of these messages even setting /proc/sys/kernel/printk to 2

$this->bbcode_second_pass_code('', '
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

$ cat /proc/sys/kernel/printk
2 4 1 7

$ dmesg
...
[ 862.722032] IRQ94 no longer affine to CPU2
[ 862.722322] CPU2: shutdown
[ 864.303014] IRQ93 no longer affine to CPU1
[ 864.305315] CPU1: shutdown
[ 865.502533] CPU1: Booted secondary processor
[ 867.892946] IRQ93 no longer affine to CPU1
[ 867.895228] CPU1: shutdown')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: I built/installed linux-odroid-c2 but it's not booting i

Postby graysky » Thu Jul 28, 2016 7:44 pm

@warhead - Setting the dmesg level thing to the side, why in the world does my kernel package NOT honor the patched code I marked up? The box behaves as if I am booting into the stock Arch kernel, not my own.

Here is how I modified the PKGBUILD... basically just adding a patch and bumping the pkgver as an easy way to see that the new package was in fact installed.

Note that the patch inserts the word 'FOO' into the lines that I believe control output to dmesg when the governor on/offlines a CPU... yet the word 'FOO' is not in my demsg output.

Thoughts are welcomed.

$this->bbcode_second_pass_code('', '% uname -r
3.14.65-17-ARCH

% dmesg
...
[ 11.352910] IRQ94 no longer affine to CPU2
[ 11.354844] CPU2: shutdown
[ 13.952832] IRQ95 no longer affine to CPU3
[ 13.954830] CPU3: shutdown
[ 25.562633] CPU1: Booted secondary processor
[ 25.942658] CPU2: Booted secondary processor
[ 26.142605] CPU3: Booted secondary processor
[ 29.872013] IRQ94 no longer affine to CPU2
[ 29.872238] CPU2: shutdown
[ 31.353060] IRQ93 no longer affine to CPU1
[ 31.354964] CPU1: shutdown
[ 32.843021] IRQ95 no longer affine to CPU3
[ 32.844939] CPU3: shutdown
[ 36.462620] CPU1: Booted secondary processor
[ 37.242644] CPU2: Booted secondary processor
[ 37.442671] CPU3: Booted secondary processor')

EDIT: AH! Perhaps I should be patching arch/arm64/kernel/smp.c and arch/arm64/kernel/irq.c
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Built linux-odroid-c2 but it's not booting in [solved]

Postby graysky » Fri Jul 29, 2016 7:17 pm

Using this patch which directs the annoying output to a level of "critical" which I omit from dmesg by using the below alias is how I did this. Not elegant but desired effect is achieved.

$this->bbcode_second_pass_code('', '% which dmesg
dmesg: aliased to dmesg -l 1,3,4,5,6,7')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 14 guests