Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel 5.4 current state #1

Open
bamkrs opened this issue Jun 19, 2020 · 2 comments
Open

Kernel 5.4 current state #1

bamkrs opened this issue Jun 19, 2020 · 2 comments

Comments

@bamkrs
Copy link

bamkrs commented Jun 19, 2020

Are the config files for the 5.4 kernel up-to-date?
Is this kernel working already? I'm asking because I compiled the kernel using the provided defconfig and it just does nothing:

## Booting kernel from Legacy Image at 00307fc0 ...
   Image Name:   ARM OpenWrt Linux-5.4.35
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3693624 Bytes = 3.5 MiB
   Load Address: 00308000
   Entry Point:  00308000
   Verifying Checksum ... OK

 ******OTP Secure Boot is OFF, return success******
## Flattened Device Tree blob at 1f901138
   Booting using the fdt blob at 0x1f901138
   XIP Kernel Image ... OK
   Loading Device Tree to 1f8f7000, end 1f8fed65 ... OK

Starting kernel ...

prefetch abort
pc : [<ffec2184>]          lr : [<0030800c>]
reloc pc : [<e013b1c4>]    lr : [<e058104c>]
sp : 1f900ab8  ip : 1f907612     fp : 00000400
r10: 00308000  r9 : 1f906eb8     r8 : 00308000
r7 : 00000000  r6 : 00308000     r5 : 1ffe015c  r4 : 00000000
r3 : 00004d66  r2 : 1f8f7000     r1 : 00000000  r0 : 1f906f98
Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
Code: data abort
pc : [<1ff885e8>]          lr : [<1ff885d5>]
reloc pc : [<00201628>]    lr : [<00201615>]
sp : 1f9009c8  ip : 00000000     fp : 00000400
r10: 00308000  r9 : 1f906eb8     r8 : 00308000
r7 : 1ffd0d38  r6 : 1ffd0d40     r5 : ffec2184  r4 : fffffffc
r3 : 00000001  r2 : 80000000     r1 : 00000000  r0 : 1ffd0d40
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32
Code: 4e184f17 0503f025 bf0c2c00 46304638 (2024f855) 
Resetting CPU ...

I compiled the kernel using the OpenWrt version that used 5.4.35 and added your changes with patches. It compiles fine and I see your drivers build. However, It just doesn't to anything.

@bamkrs
Copy link
Author

bamkrs commented Jun 19, 2020

Ok, the reason was a bogous uImage: Out of some reason, linux added two uImage headers.
Anyhow, now it tries to boot the kernel, but just hangs:

## Booting kernel from Legacy Image at 00307fc0 ...
   Image Name:   Linux-5.4.35
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3693560 Bytes = 3.5 MiB
   Load Address: 00308000
   Entry Point:  00308000
   Verifying Checksum ... OK

 ******OTP Secure Boot is OFF, return success******
## Flattened Device Tree blob at 1f901138
   Booting using the fdt blob at 0x1f901138
   XIP Kernel Image ... OK
   Loading Device Tree to 1f8f7000, end 1f8fed65 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

I did not find any caveats or special compiler/make parameters to use to get the kernel running. Its compiled with an arm-a7 toolchain. Does it depend on any special preparations?

@dmitrydvorkin
Copy link
Contributor

It requires some update in yocto_layers and tests before I'll make it default in my builds. It's coming soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants