DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-10-19 23:27:38

puterboy
Member
Registered: 2008-09-18
Posts: 306

Newly compiled kernel not working

I'm trying (with babysteps) to learn to get new kernels working on my DNS-323 Rev B1.

I built the uclibc toolchain using the instructions at http://dns323.kood.org/howto:crosscompile.
I tested that the cross-compiler basically works by building busybox and testing it on my dns-323.

I then tried to compile a (slightly) modified version of the included kernel 2.6.12.6 (I turned on ext3 extended attributes, nfs server, smb, cifs, ntfs).
Everything compiled fine and I made a zImage.

I then used Fonz's ffp-reloaded to try to load my version of the 2.6.12.6 kernel (note: I can successfully use ffp-reloaded on fonz's version of the 2.6.12.6 kernel).

However, when I use my zImage, the kernel doesn't seem to reboot (at least it's not pingable).

Are there any mods I need to make to the .config to get the included 2.6.12.6 kernel to work?
Any other suggestions about what might be going wrong?

Offline

 

#2 2008-10-20 00:09:05

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Newly compiled kernel not working

I just recompiled another version of 2.6.12.6 without ANY changes to the config and it still doesn't seem to "reload" properly.
Not sure what I might be doing wrong here...
But it seems like either:
1. I'm missing some (undocumented?) config changes to 2.6.12.6
2. or there is something wrong with my cross-compile environment

Offline

 

#3 2008-10-20 00:21:41

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Newly compiled kernel not working

I'm thinking that it's more likely to be something with the .config than with the cross-compile environment because I was able to compile my own version of usb-storage.ko and it worked just fine...

Offline

 

#4 2008-10-20 03:07:26

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Newly compiled kernel not working

I just found a posting by fonz suggesting that you need to turn off DHCP autoconfig -- so I have the following in my .config file:
    CONFIG_IP_PNP=y
    # CONFIG_IP_PNP_DHCP is not set

Unfortunately, it still is not pingable...

Offline

 

#5 2008-10-20 14:50:40

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Newly compiled kernel not working

Fonz, any chance of sharing your .config file for the 2.6.12.6 kernel to see what I am doing wrong?
thanks

Offline

 

#6 2008-10-20 14:57:39

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Newly compiled kernel not working

puterboy wrote:

Fonz, any chance of sharing your .config file for the 2.6.12.6 kernel to see what I am doing wrong?

Unless I forgot to enable it for that kernel, there should be /proc/config.gz

Code:

zcat /proc/config.gz

Attached is the config of the 2.6.12.6 kernel I'm currently running.


Attachments:
Attachment Icon config-2.6.12.6-arm1-fonz, Size: 23,592 bytes, Downloads: 510

Offline

 

#7 2008-10-20 17:51:49

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Newly compiled kernel not working

Thanks.
Note the 'running' one (with your attachment) doesn't work with 'ffp reloaded' probably because it has "CONFIG_BLK_DEV_SD=m" which won't work if your root device is a disk. Also, it has "CONFIG_IP_PNP_DHCP=y" which may interfere with ip assignment (but I'm not sure).

The one that worked for ffp-reloaded for me was the one that I got from copying over /proc/config.gz from the 2.6.12.6-arm1-huge kernel that you provide with ffp-reloaded.

I'm wondering whether my problem with firmware-reloaded is that I don't have the right kernel... Maybe I need one with similar options to 'huge' but with some of the stuff left out to make it smaller. Or maybe some of the options need to be otherwise played with.

Can you post the config that you used with 2.6.12.6 and firmware-reloaded? (or is it the one you already attached above?)

Offline

 

#8 2008-10-20 18:39:51

puterboy
Member
Registered: 2008-09-18
Posts: 306

Re: Newly compiled kernel not working

CONFIG_IP_PNP_DHCP=y is not a problem.
The issue was the need for: CONFIG_BLK_DEV_SD=y (or else you would need an initrd to load the module)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB