Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 13:34
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Kernel build script
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [43 Posts]   Goto page: Previous 1, 2, 3
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 11 Jun 2011, 03:56    Post subject:  

Just compiled linux_kernel-2.6.32-41-lts. Uploading to my repo.

Haven't tested it yet; this one was built on a Debian Wheezy chroot with GCC 4.5.3 and has BFS 404 and a Puppy boot logo for framebuffer consoles.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
dejan555


Joined: 30 Nov 2008
Posts: 2685
Location: Montenegro

PostPosted: Sat 11 Jun 2011, 05:27    Post subject:  

Sounds good Iguleder, I will try to build lts for dpup485, so I see script also downloads kernel and does everything auto.
How much space is required, after devx is loaded, to download and compile/package the kernel?
I get about 700+ MB free RAM when I load devx so I'd compile it in ram if possible

_________________


Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 11 Jun 2011, 05:35    Post subject:  

Quite a lot ... I suggest you to have at least 1 GB. The kernel sources are several hundreds of MBs.

I used to do that in RAM on the PC with 2 GB of RAM, but now I do it on the netbook and it has just 1 GB, so I run it on a partition.

By the way - once the upload is over, I'll upload the build scripts. My wireless connection keeps disconnecting so I can't upload the cool stuff in parallel Laughing

btw: the only thing the script doesn't do is the actual package creation. It doesn't run dir2pet and mksquashfs; it just creates the packages in their extracted form.

btw II: you can use a chroot environment to run the script. This one (the .41) was built in a Debian Wheezy chroot environment with GCC 4.5.3, with Debian's goodness atop - the result is a 2 MB smaller package, compared to the .40 I built under 5.2.5. However, this kernel has been around for a long time, so you should use either 4.4.x or 4.5.x with it ... 4.6.0 has regressions and there is a possibility the kernel won't build with it.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
dejan555


Joined: 30 Nov 2008
Posts: 2685
Location: Montenegro

PostPosted: Sat 11 Jun 2011, 05:43    Post subject:  

Haven't used chroot enviroments yet. Could it be compiled with dpup's devx?
_________________


Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 11 Jun 2011, 05:46    Post subject:  

Yep, of course. Doing it the chroot just makes it ... more geeky :p

Btw - I uploaded the build script with all patches, etc' - here.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
dejan555


Joined: 30 Nov 2008
Posts: 2685
Location: Montenegro

PostPosted: Sat 11 Jun 2011, 16:03    Post subject:  

Ok, cool I tried your latest script and built kernel - works like a charm.
Booted in ram and loaded devx, then ran build.sh from partition.

Afterwards I replaced vmlinuz, unpack/resquashed initrd.gz and sfs with new modules and it booted OK.
I had to manually modprobe PS/2 mouse to work though Confused
What could be the problem there, I tried adding input drivers including psmouse.ko to initrd.gz but it wouldn't work on boot anyway.
Net, sound and video modules work ok as well as usb mouse, just PS/2 mouse remains frozen.
I can add modprobe psmouse line to some of rc scripts maybe?

_________________


Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Tue 14 Jun 2011, 15:10    Post subject:  

I think I saw some line which says that Barry made that module built-in since some kernel.

Do a diff between your rc.sysint or the initramfs' init to see the difference. I'm almost certain you need that line for kernel older than some kernel, I think it was the 4.3.1 one.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 25 Jun 2011, 06:11    Post subject:  

Just built linux_kernel-2.6.32-42-lts; uploading it right now. I haven't tested it yet but it should work ... like the previous ones Very Happy

The directory contains the sources (plus patches, Aufs, etc'), the kernel package, the kernel headers package, the kernel sources SFS and the build script. Have fun Smile

There's also a build log, for the skeptic Laughing

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Sat 25 Jun 2011, 09:49    Post subject:  

Could your kernel build scripts be added to your Pur-tools thing?
_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Sat 25 Jun 2011, 10:08    Post subject:  

Theoretically, yes - but it's a very bad idea, for two reasons:
1) You can't install a kernel in Puppy, you'll have to remaster or rebuild your Puppy for that.
2) The kernel is a very sensitive component - it deserves its own build system.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Sat 25 Jun 2011, 10:37    Post subject:  

Iguleder wrote:
Theoretically, yes - but it's a very bad idea, for two reasons:
1) You can't install a kernel in Puppy, you'll have to remaster or rebuild your Puppy for that.
2) The kernel is a very sensitive component - it deserves its own build system.

I thought it would be wrong to put it in there, as its not installable in the same way as the pther packages, just wondered.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Lothar


Joined: 02 Jun 2011
Posts: 22

PostPosted: Fri 19 Aug 2011, 02:55    Post subject:  

Hey Iguleder and Pemasu,

I emailed J R Okajima (the man behind Aufs) in regard to the aufs-allow-sfs patch, and he wanted me to ask:

"Would you try aufs without the aufs-allow-sfs patch? I think it should work since July last year."
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Fri 19 Aug 2011, 07:15    Post subject:  

If it works, don't touch it Laughing

All Puppy's kernels are built with this patch and work just fine, and I don't want to do all the testing that follows its removal. It causes zero issues, so I see no problem with using it.

_________________
My homepage
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
Display posts from previous:   Sort by:   
Page 3 of 3 [43 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0780s ][ Queries: 13 (0.0152s) ][ GZIP on ]