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-02-13 09:39:09

biscuit
Member
Registered: 2008-02-13
Posts: 10

Booting debian after booting normally?

The fsck 'reloader' allows me to get to a point where I can do fsck safely. Great stuff very handy.

http://www.inreto.de/dns323/fsck/

Say I did the following:

Put the etch.tgz mentioned elsewhere in to the root directory of /mnt/HD_a2,
what do I have to have in an initrd that could be used with reloader to be able to start the full debian boot process? This means I could reboot the box, without needing a firmware flash to effectively a native debian system.

I don't know enough about the boot process to figure this out myself. I don't have serial port installed so it's pretty difficult to figure out what's going wrong.

What I would like to be able to do is:

./reload.sh zImage-2.6.12.6_huge debian_boot.gz

or, ideally,

./reload.sh zImage-2.6.12.6_huge root=/dev/sda2

I just don't know what needs to be in the initrd to work right.

Offline

 

#2 2008-02-13 11:45:14

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

Re: Booting debian after booting normally?

biscuit wrote:

This means I could reboot the box, without needing a firmware flash to effectively a native debian system.

Yes, you can do that. Afaik, you can boot into Debian without using an initrd at all. You need to use the newer reloaded modules from http://www.inreto.de/dns323/reloaded/dn … d-0.7.167/ that can boot without initrd. I use sth like the following to boot a 2.6.24 kernel without initrd and a custom linux installation from disk:

Code:

KVER=$(uname -r)
kernel=zImage
CMDLINE="console=ttyS0,115200 root=/dev/sda2"
insmod reloaded-${KVER}.ko machtype=1542 kernel=${kernel} initrd= cmdline=\"$CMDLINE\"

1542 is the machine type code for the kernel from http://git.kernel.org/?p=linux/kernel/g … /orion.git
For firmware kernels, this number must be 526, and you should add ":::DB88FXX81:egiga0:none" to $CMDLINE.

Can't help with the Debian stuff.

Offline

 

#3 2008-02-13 14:19:07

ollo
Member
Registered: 2007-06-30
Posts: 17

Re: Booting debian after booting normally?

Hi fonz,

does this mean you have a custom build kernel 2.6.24 which you can boot/reload on the DNS-323?
Do you mind sharing your .config for the kernel build?

Thanks & regards,  ollo

Offline

 

#4 2008-02-13 14:41:37

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

Re: Booting debian after booting normally?

ollo wrote:

Do you mind sharing your .config for the kernel build?

http://dns323.kood.org/forum/p9779-2008 … html#p9779

Offline

 

#5 2008-02-13 23:38:13

biscuit
Member
Registered: 2008-02-13
Posts: 10

Re: Booting debian after booting normally?

Any chance I could get a tgz with everything needed?

I've tried the fsck zImage. I can ping the machine, but I can't telnet or ssh to it. There's no sign on the drive of actual activity, i.e. there's nothing in the /var/log directory.

So, I think it's booting but I can't tell what the failure might be. Don't have serial port installed. But I might.

I'd much prefer to have debian than the stock firmware. I have debian on the linkstation which is much nicer than their standard firmware.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB