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 2009-05-03 13:49:18

kenalulo
New member
Registered: 2009-05-03
Posts: 3

config for 2.6.29.1

Does anybody have config file for kernel 2.6.29.1?

Offline

 

#2 2009-05-20 00:48:20

baarney
Member
From: Sydney
Registered: 2008-02-05
Posts: 29

Re: config for 2.6.29.1

Hi kenalulo,

Not sure if you found one or not, but you can get a Debian armel kernel package for 2.6.30-rc6 from here:

http://people.debian.org/~tbm/armel/ker … _armel.deb

Unpack the deb (using dpkg -x) and the config is in boot/config-2.6.30-rc6-orion5x.

HTH

Offline

 

#3 2009-05-26 11:51:12

kenalulo
New member
Registered: 2009-05-03
Posts: 3

Re: config for 2.6.29.1

Hi baarney,

Thanks for the link, but where can I get the sources of this kernel? And I do not have debian. Is it possible to use this kernel with gentoo?

Offline

 

#4 2009-05-26 12:01:03

kenalulo
New member
Registered: 2009-05-03
Posts: 3

Re: config for 2.6.29.1

How to know where the problem, in kernel or initramfs?

I compiled 2.6.29.1 kernel with orion5x_defconfig. And I try to load it with
modprobe reloaded machtype=1542 kernel=zImage-2.6.29.1-orion5x initrd=my-initramfs.cpio.gz 'cmdline=console=ttyS0,115200 ip=::192.160.1.1::nas::dhcp'

On dhcp server I see that kernel receives IP address, and i can ping it, but it seems that my initramfs does not start properly.

This is my init script

Code:

#!/bin/busybox sh

export PATH=/sbin:/bin

busybox --install -s

umask 022

# mount proc and sys
mount -t proc proc /proc
#mount -t usbfs usbfs /proc/bus/usb
#mount -o remount -w /
mount -t sysfs sysfs /sys

# /dev
mount -t tmpfs tmpfs /dev
mknod -m 0600 /dev/console      c 5 1
mknod -m 0666 /dev/null         c 1 3
mknod -m 0666 /dev/zero         c 1 5
mkdir -p /dev/pts /dev/shm
ln -s /proc/kcore       /dev/core
ln -s /proc/self/fd     /dev/fd
ln -s /proc/self/fd/0   /dev/stdin
ln -s /proc/self/fd/1   /dev/stdout
ln -s /proc/self/fd/2   /dev/stderr
mdev -s
echo '/sbin/mdev' >/proc/sys/kernel/hotplug
mount /dev/sda4 /root

(
mkdir /dev/pts
mount -t devpts devpts /dev/pts
mknod -m 0666 /dev/ptmx c 5 2
) > /root/reloaded.log 2>&1

dmesg >>/root/reloaded.log 2>&1

ifconfig eth0 up >>/root/reloaded.log 2>&1
ifconfig lo 127.0.0.1 up >>/root/reloaded.log 2>&1

telnetd -l /bin/sh >> /root/reloaded.log 2>&1

exec /bin/sh

# clean up
umount /proc
umount /sys

It works with fonz's kernel. After reboot I can see log in /dev/sda4/reloaded.log, but after 2.6.29.1 kernel there is nothing=(

Offline

 

#5 2009-05-29 05:10:16

baarney
Member
From: Sydney
Registered: 2008-02-05
Posts: 29

Re: config for 2.6.29.1

kenalulo wrote:

Hi baarney,

Thanks for the link, but where can I get the sources of this kernel? And I do not have debian. Is it possible to use this kernel with gentoo?

I used this config as a base for the vanilla 2.6.30-rc6 source from kernel.org and it all works fine, so I would imagine you could do the same for Gentoo.

AFAIK, the only difference between distribution-specific kernels (such as Debian and Gentoo etc.) is that they have slightly different patches applied to them, but they are all basically interchangeable. For example, I think there is a Debian 2.6.29 kernel which has fan control support which hasn't made its way into the mainline kernel yet, but I haven't had a chance to check that out yet.

Cheers

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB