LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-28-2022, 11:03 AM   #1
pingu123
LQ Newbie
 
Registered: Sep 2022
Posts: 5

Rep: Reputation: 0
Rebuilding Linux Kernel with Pagesize 16kb for Raspberry Pi 4


Hi everybody,

I'm currently trying to rebuild the Linux Kernel with a pagesize of 16kb. But when booting the Raspberry Pi after adding the updated files to the SD card, nothing shows up on the screen.

The Hardware and Software I use:
- Raspberry Pi 4 Model B (https://www.raspberrypi.com/products...pecifications/) with 8GB of RAM
- I crosscompile it on a Ubuntu Machine (OS Jammy Jellyfish) following the instructions on this page: https://www.raspberrypi.com/document...ing-the-kernel
- The OS I originally flashed to the SD card for the Raspberry is "Raspberry PI OS (64-bit)". I also tried with "Raspberry PI OS Lite (64-bit)" but didn't make a difference in the final outcome.

For changing the config I call make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig as described here: https://www.raspberrypi.com/document...ing-menuconfig. Then I choose Kernel Features -> Page size -> 16KB and save it and start the building process afterwards.

Are some further configuration modifications necessary for the modified kernel to work? As far as I've read the Arm Architecture should cope with pagesizes of 4kb, 16kb and 64kb.

Thanks for your help!
 
Old 09-29-2022, 06:52 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
Hello, pingu123 & welcome to LQ.

The way to do this if at all possible is to compile on your target machine. Even LinuxFromScratch cross compiles a static system in the /tools directory, then chroots there and uses that to compile a complete system.

Unless you need a particular page size for some reason, leave good enough alone. You'll have enough issues to worry about.
 
Old 10-02-2022, 09:28 AM   #3
pingu123
LQ Newbie
 
Registered: Sep 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Hi business_kid,

Thanks for your answer! Yeah, it is evident to change it. I built the kernel on the board, didn't work either. So might it be a HW problem that the Raspi doesn't support it?

Thanks and cheers,
pingu123
 
Old 10-02-2022, 11:33 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
Probably. It's just two ICs with everything packed in. People say 'compatible' but no extensive testing on how compatible has been done. And there's often patches needed in order to compile on Arm. It's just making extra trouble for yourself. What's the benefit of the various page sizes?
 
Old 10-02-2022, 04:32 PM   #5
pingu123
LQ Newbie
 
Registered: Sep 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Wink

Hey, it finally worked with 64kb. It is necessary to check for the specific ARM CPU (for the Raspberry Pi 4 it would be the following: https://en.wikipedia.org/wiki/ARM_Cortex-A72), to see which page sizes are actually supported
 
Old 10-03-2022, 04:49 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,453

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
Ok. Glad you're sorted. Why were you farting about with page sizes anyhow. I saw page sizes as a matter of low importance.
 
Old 10-07-2022, 03:19 PM   #7
pingu123
LQ Newbie
 
Registered: Sep 2022
Posts: 5

Original Poster
Rep: Reputation: 0
Yeah I just had a specific FS that had that constraint, that's why ^^
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rebuilding Linux Kernel with Pagesize 16kb for Raspberry Pi 4 pingu123 Linux - Kernel 1 11-07-2022 06:23 AM
rebuilding a failed portion of a SlackBuilds build, instead of rebuilding everything Geremia Slackware 26 01-21-2015 05:56 PM
why is cpuinfo showing 16KB cache size on HT 3ghz xeon? chronic397 Linux - Hardware 2 08-01-2005 12:57 AM
a way to Compile linuxant 2.6.10 16kb kernel the_one2003a Fedora 1 02-10-2005 10:13 PM
Getting Pagesize before downloading the page balanagireddy Linux - Networking 2 09-04-2004 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration