LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 10-16-2017, 10:51 PM   #1
alpcastro
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Rep: Reputation: Disabled
Need kernel .config from 4mLinux - any version - 23 if possible


I am trying to compile a 32bits non-pae version of 4Mlinux's kernel to use on very old Via 800 Mhz CPUs. Can someone send .config file to me ? Thanks in advance

Last edited by alpcastro; 10-16-2017 at 10:52 PM. Reason: corrections
 
Old 10-17-2017, 02:50 AM   #2
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 691

Rep: Reputation: 133Reputation: 133
Hi,

What you are asking for is a part of the 4MLinux core system. For example, the download link for the 4MLinux 22 series is:
https://sourceforge.net/projects/lin...les/22.0/core/

What you need is "kernel-4.9.49-smp.tar.gz", which includes the Linux kernel image and its configuration (text file).

.
 
Old 10-17-2017, 02:53 AM   #3
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 691

Rep: Reputation: 133Reputation: 133
Oops!

You've asked for 4MLinux 23, so:
https://sourceforge.net/projects/lin...les/23.0/core/

.
 
Old 10-17-2017, 05:42 AM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 691

Rep: Reputation: 133Reputation: 133
Just in case. A small guide how to compile programs under 4MLiunux:
https://www.linuxquestions.org/quest...ux-4175615809/

Have a nice compiling ;-)

.
 
Old 10-17-2017, 08:34 AM   #5
alpcastro
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks, I get kernel source and recompiled bzImage and modules.

Is there scripts to group modules on the modules addons? Which modules is needed for your apps ?
 
Old 10-17-2017, 09:28 AM   #6
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 691

Rep: Reputation: 133Reputation: 133
Unfortunely, there is no elegant, official script :-(
Fortunately, there is an ugly one used by me ;-)
I will post the instruction in 2 - 3 hours (*).

(*) Now I must mow the lawn. Otherwise my wife will surely kill me...

.
 
Old 10-17-2017, 09:46 AM   #7
alpcastro
LQ Newbie
 
Registered: Oct 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Ok. I understand you. I mowed mine last sunday!
 
Old 10-17-2017, 01:01 PM   #8
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 691

Rep: Reputation: 133Reputation: 133
The 4MLinux packages are called addons. You can find them in the /var/4MLinux directory. They are just simple tar.xz archives (no additional scripts, no additional files at all). Lets's say that you are going to compile the Linux kernel 4.9.56. When your compilation is over, you must manually prepare an addon that contains all modules. Such addons can be found on the 4MLinux installation CD (in the "drivers" folder) and online,e.g.: https://sourceforge.net/projects/lin.../23.0/drivers/ Your addon must be named in the same way ("addon_modules-all-4.9.56-smp.tar.xz"). Now execute the script:
Code:
modules.run 4.9.56-smp
And my modules.run script is:
Code:
#!/bin/ash
#
#
 if [ ! -e addon_modules-all-$1.tar.xz ]; then
   echo "addon_modules-all-$1.tar.xz not found!"
   exit
 fi
 rm -fr /tmp/modules
 mkdir /tmp/modules
 tar -xvf addon_modules-all-$1.tar.xz -C /tmp/modules
 cd /var/4MLinux
 for i in $(ls | grep -v vb | grep modules); do
   clear
   echo "Processing $i"
   rm -fr /$i
   mkdir /$i
   tar -xf /var/4MLinux/$i -C /$i
   cd /$i
   mv lib/modules/* lib/modules/$1
   find * | grep ko > list.txt
   rm $(cat list.txt) 2>/dev/null
   for j in $(cat list.txt); do
     cp /tmp/modules/$j $j 2>/dev/null
   done
   tar -cvJf addon.tar.xz lib
 done
This script enters the /var/4MLinux directory. It seeks for "old" addons with kernel modules, and lists their contents to files. Next, it uses these files and addon_modules-all-4.9.56-smp.tar.xz to prepare new addons with the new kernel version. You will find your new addons in some folders created the / directory.

The above will work provided that there are no big configuration differences between the new kernel and the old one.

.

Last edited by zk1234; 10-17-2017 at 01:06 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Final 4MLinux and 4MLinux Allinone Edition 12.0 Released with PAE Support LXer Syndicated Linux News 0 05-10-2015 01:56 AM
redhat 5.3 compatible Small Form Factor config 16pide Linux - Hardware 2 01-29-2010 03:15 AM
Bluetooth Internet Access form Suse to XP Config supwiddiss Linux - Networking 1 10-15-2005 09:16 AM
is It pocible to have installed two or more GLIB's version and select of some form??? pipebkn Linux - Software 3 03-25-2005 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

All times are GMT -5. The time now is 03:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration