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 2010-03-05 20:39:18

f4exb
Member
Registered: 2010-02-14
Posts: 18

Building kernel + ram disk for rev. C1

Hello,

I would like to know from the experts here how difficult it would be to try and build a complete kernel (with kernel NFS support) for the hardware revision C1. My proficiency in Linux system is average although in the past I did some cross compilation to build kernels for PPC architecture. In the global process ARM must not be very different.

I think I will have to go this route to save my unit from being just an(other) expensive door stop! It can also serve the community as it seems that new units that are shipped are all rev. C1

The current 2.6.12 kernel from Fonz is incompatible with C1 maybe because of the way LEDs and more importantly power off is addressed. I have read somewhere in this forum that the addresses have changed. The actual problem is a complete shutdown shortly after the system is started and shows the Busybox prompt so maybe there's a script in the background that hits the wrong key. Maybe it is just a matter of init scripts.

I have no idea about how the hardware details of the board are defined in the build configuration.

But firstly I would like to know how to start, which toolchain to download etc... I have a Linux x86-64 system (Ubuntu 9.10) as the host machine for the build.

Can anyone help?

Thanks and best regards.

Offline

 

#2 2010-03-07 17:06:56

bernd123
Member
Registered: 2010-03-07
Posts: 12

Re: Building kernel + ram disk for rev. C1

f4exb wrote:

I would like to know from the experts here how difficult it would be to try and build a complete kernel (with kernel NFS support) for the hardware revision C1. My proficiency in Linux system is average although in the past I did some cross compilation to build kernels for PPC architecture. In the global process ARM must not be very different.

Easy: see e.g. here: http://hezmatt.org/~mpalmer/blog/genera … s_323.html
You just have to install a cross-compiler (via emdebian) and set some environment variables.

f4exb wrote:

I think I will have to go this route to save my unit from being just an(other) expensive door stop! It can also serve the community as it seems that new units that are shipped are all rev. C1

The current 2.6.12 kernel from Fonz is incompatible with C1 maybe because of the way LEDs and more importantly power off is addressed. I have read somewhere in this forum that the addresses have changed. The actual problem is a complete shutdown shortly after the system is started and shows the Busybox prompt so maybe there's a script in the background that hits the wrong key. Maybe it is just a matter of init scripts.

Sounds very interesting. I'm also experimenting with a C1 and also experiencing shutdowns. But untill now I wasn't able to get my kernel mounting the initrd.

f4exb wrote:

I have no idea about how the hardware details of the board are defined in the build configuration.

But firstly I would like to know how to start, which toolchain to download etc... I have a Linux x86-64 system (Ubuntu 9.10) as the host machine for the build.

Can anyone help?

Thanks and best regards.

I started using the Debian netboot.img, see http://ftp.nl.debian.org/debian/dists/l … ot/d-link/ and the config used there.

Regards,

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB