Kernel source available to build my own modules?

This forum is for all other ARMv5 devices

Kernel source available to build my own modules?

Postby fnu » Wed Sep 07, 2011 10:55 am

Hi there,

since the search function of this forum is not really cooperative, I always get:

$this->bbcode_second_pass_quote('', 'T')he following words in your search query were ignored because they are too common words:


I wanted to ask if the kernel sources of the "Pogoplug Pro" (2.6.31.6_SMP_820) is available somewhere? I interessted to build my own set of kernel modules, or could I use sources from kernel.org?

Thx for all your exceptional work, I love to use my Pogoplug Pro w/ archlinux | ARM!

Regards
fnu
[*] Pogoplug Pro, Hitachi Travelstar 7K320 160GB 2,5" S-ATA, archlinux | ARM
fnu
 
Posts: 12
Joined: Fri Sep 02, 2011 12:06 pm

Re: Kernel source available to build my own modules?

Postby WarheadsSE » Wed Sep 07, 2011 1:48 pm

There's no secret sauce here, but as I've said numerous times by default, the kernel is loaded from NAND. You'll need one of a few things if you plan on testing kernels:
1) serial connection & tftp server (simplest)
2) willingness to royally F' up your NAND (because one typo will) and writing it to NAND (bad, bad idea)
3) SATA drive connected in some fashion, with the Magic Dust (tm) that makes it boot directly from it. (pain in *****)


Then, it's as simple as grabbing the CE sources (from their developers open source page), and replacing the /arch/arm/mm/cache-v6.S with an updated one (compatibility with newer glibc).

Now, other than that.. there is no secret sauce. If you want to lend a hand in porting up to newer kernels, the community would greatly appreciate any help you can give. I'm no kernel dev after all.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Kernel source available to build my own modules?

Postby fnu » Wed Sep 07, 2011 2:43 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'N')ow, other than that.. there is no secret sauce. If you want to lend a hand in porting up to newer kernels, the community would greatly appreciate any help you can give. I'm no kernel dev after all.


Actually no plans for this. I just wanted to try to build some single modules for the existing kernel. But for this task I need the kernel sources on which is the installed one built.

Regards
fnu
[*] Pogoplug Pro, Hitachi Travelstar 7K320 160GB 2,5" S-ATA, archlinux | ARM
fnu
 
Posts: 12
Joined: Fri Sep 02, 2011 12:06 pm

Re: Kernel source available to build my own modules?

Postby quindo » Fri Sep 09, 2011 10:37 am

Cloudengine has all sourcecode available here:
http://www.pogoplug.com/developers-open-source.html
Including the kernel :-)
quindo
 
Posts: 2
Joined: Fri Sep 09, 2011 10:34 am

Re: Kernel source available to build my own modules?

Postby WarheadsSE » Fri Sep 09, 2011 2:30 pm

The cache-v6.S is still required however.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Kernel source available to build my own modules?

Postby fnu » Mon Oct 10, 2011 7:25 am

@quindo

Well, you're right, it has been to easy to see for me ... ;)

@WarheadSE

Ok, got the changes for cache-v6.S.

But on which .config does the used kernel base on? Unlike Debian/Ubuntu world the config is not stored in /boot, not in /proc/config.gz nor do I find something on NAND ...

Regards
fnu
[*] Pogoplug Pro, Hitachi Travelstar 7K320 160GB 2,5" S-ATA, archlinux | ARM
fnu
 
Posts: 12
Joined: Fri Sep 02, 2011 12:06 pm

Re: Kernel source available to build my own modules?

Postby quindo » Mon Oct 10, 2011 12:24 pm

Extract the pogopro-linux-2.6.31.6-r2.tar.bz2 file.
The config file is pogopro-linux-2.6.31.6-r2/.config~

(all files starting with a . are "hidden" they can be seen with 'ls -a')
quindo
 
Posts: 2
Joined: Fri Sep 09, 2011 10:34 am

Re: Kernel source available to build my own modules?

Postby WarheadsSE » Mon Oct 10, 2011 12:51 pm

My .config is available at the same location as the cache-v6.S changes.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Kernel source available to build my own modules?

Postby fnu » Mon Oct 10, 2011 2:53 pm

$this->bbcode_second_pass_quote('quindo', '(')all files starting with a . are "hidden" they can be seen with 'ls -a')

Thx for the hint with the hidden files, didn't got this at my time working w/ Un*x based OSes the past 20 years ... :(

Well, I found actually there two files, one ".config~", which is IMHO a backup of a broken "vi" session and another one ".config.old". Both are slightly different, and I cannot proof which one has been used for the running kernel of archlinuxarm for OXNAS based Pogoplug Pro?

@WarheadsSE

Sometimes it would be very kind if you could point to the information you mention, instead of circling cryptographic around them.

I found several entries what has to be changed for "cache-v6.S" w/ newer glibc versions. But bottomline all has been the same for me, something like:$this->bbcode_second_pass_code('', ' __INITDATA

- .type v6_cache_fns, #object
-ENTRY(v6_cache_fns)
- .long v6_flush_icache_all
- .long v6_flush_kern_cache_all
- .long v6_flush_user_cache_all
- .long v6_flush_user_cache_range
- .long v6_coherent_kern_range
- .long v6_coherent_user_range
- .long v6_flush_kern_dcache_area
- .long v6_dma_map_area
- .long v6_dma_unmap_area
- .long v6_dma_flush_range
- .size v6_cache_fns, . - v6_cache_fns
+ @ define struct cpu_cache_fns (see <asm/cacheflush.h> and proc-macros.S)
+ define_cache_functions v6')But I guess I missed your statement and therefore your ".config", too?

Regards
fnu
[*] Pogoplug Pro, Hitachi Travelstar 7K320 160GB 2,5" S-ATA, archlinux | ARM
fnu
 
Posts: 12
Joined: Fri Sep 02, 2011 12:06 pm
Top

Re: Kernel source available to build my own modules?

Postby WarheadsSE » Mon Oct 10, 2011 4:10 pm

http://my.pogoplug.com/share/vArHUudFPhMW8MZGCEDcIA/

In that share is a patch file, and a source. You may try whichever you like.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 9 guests