You are not logged in.

#201 2010-02-02 15:00:20

Acecero
Member
Registered: 2008-06-21
Posts: 1,373

Re: The Arch Hurd Project

Agreed, awesome work everyone!

Offline

#202 2010-02-02 16:15:13

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

Allan wrote:

GOOD NEWS EVERYONE!

I have managed to get the toolchain completely cross compiled.  That means we can start natively compiling soon.

Woah, well done big_smile

Near one month to go from idea to bootable system with toolchain smile

Offline

#203 2010-02-02 16:35:12

SoleSoul
Member
From: Israel
Registered: 2009-06-29
Posts: 319

Re: The Arch Hurd Project

This is surprisingly exciting!
You may not see it but I'm sure many people are following your progress.

Offline

#204 2010-02-02 17:45:57

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: The Arch Hurd Project

I haven't read especially much about hurd, but it's definitely cool that you got this working!

Last edited by hatten (2010-02-02 17:46:29)

Offline

#205 2010-02-02 17:56:37

mianka
Member
From: BE LEUVEN
Registered: 2006-05-30
Posts: 230

Re: The Arch Hurd Project

Big hug!!!

Offline

#206 2010-02-02 18:08:03

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

I'd also like to help. Is the Install page up to date?

Offline

#207 2010-02-02 18:11:41

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

Giselher wrote:

I'd also like to help. Is the Install page up to date?

*checks*

Nope, but it should still work for the latest tarball. However, Allan has yet to put the new and wonderful scripts online (I'll make any necessary changes to the installing page then), so if I were you I'd wait for that.

Offline

#208 2010-02-02 18:24:50

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Barrucadu wrote:
Giselher wrote:

I'd also like to help. Is the Install page up to date?

*checks*

Nope, but it should still work for the latest tarball. However, Allan has yet to put the new and wonderful scripts online (I'll make any necessary changes to the installing page then), so if I were you I'd wait for that.

Okey, I will wait for your changes.

EDIT: Couldn't wait tongue. It is compiling now and i hope it will work. Is there a way to do this with Virtualbox instead of Qemu?

Last edited by Giselher (2010-02-02 19:11:31)

Offline

#209 2010-02-02 20:44:18

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

It took me 20 minutes to enter the commands in grub, because i am not used to the english keyboard layout, to only get an hurd panic
bildschirmfotoqemu.png

It should be possible to change the menu.lst outside of hurd, shouldn't it?

Last edited by Giselher (2010-02-02 20:45:20)

Offline

#210 2010-02-02 20:48:40

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

You entered the command line for /hurd/ext2fs.static wrong, it's normal, not curly, brackets around the "task-create" and "task-resume" at the end of the command line:

module /hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume)

Also, the /lib/ld.so.1 line, too, that has normal brackets:

module /lib/ld.so.1 /hurd/exec $(exec-task=task-create)

If you install GRUB to the Hurd partition using the GRUB command line, you can mount it and edit the menu.lst file by hand, then you don't need to do all of this typing every time.

Last edited by Barrucadu (2010-02-02 20:50:06)

Offline

#211 2010-02-02 21:52:28

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Barrucadu wrote:

You entered the command line for /hurd/ext2fs.static wrong, it's normal, not curly, brackets around the "task-create" and "task-resume" at the end of the command line:

module /hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume)

Also, the /lib/ld.so.1 line, too, that has normal brackets:

module /lib/ld.so.1 /hurd/exec $(exec-task=task-create)

If you install GRUB to the Hurd partition using the GRUB command line, you can mount it and edit the menu.lst file by hand, then you don't need to do all of this typing every time.

Thank you it works now without typing every time. I could rewrite the ./scripts/grub file for an easier grub installation, because the files are in /lib/grup/i386-pc which should be in /boot/grub. Also a menu.lst has to be handwritten and placed in /boot/grub.

menu.lst

timeout   5
default   0
color light-blue/black light-cyan/blue

# (0) Arch Hurd
title  Arch Hurd
root   (hd0,0)
kernel /boot/gnumach 
module (hd0,0)/hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-create) $(task-resume)
module (hd0,0)/lib/ld.so.1 /hurd/exec $(exec-task=task-create)
qemu -boot a -fda grub.img -hda hurd.img -net nic,vlan=1 -net user,vlan=1

In the grub command line

root (hd0,0)

setup (hd0)

After that this should work

qemu -hda hurd.img -net nic,vlan=1 -net user,vlan=1


EDIT:
One more problem
with this i get a kernel panic (panic: Debugger invoked, but there isn't one)

kernel /boot/gnumach

but with this it says it doesn't exists. Maybe this has to be renamed?

kernel /boot/gnumach  root=device:hd2s1 -s

Last edited by Giselher (2010-02-02 22:03:11)

Offline

#212 2010-02-02 22:06:44

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

Giselher wrote:

EDIT:[/b] One more problem
with this i get a kernel panic (panic: Debugger invoked, but there isn't one)

kernel /boot/gnumach

but with this it says it doesn't exists. Maybe this has to be renamed?

kernel /boot/gnumach  root=device:hd2s1 -s

It should be root=device:hd0s1 (assuming it's the first partition on the first disk). Disk numbering starts from 0, and partition numbering from 1.

Last edited by Barrucadu (2010-02-02 22:27:01)

Offline

#213 2010-02-02 22:20:07

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Barrucadu wrote:
Giselher wrote:

EDIT:[/b] One more problem
with this i get a kernel panic (panic: Debugger invoked, but there isn't one)

kernel /boot/gnumach

but with this it says it doesn't exists. Maybe this has to be renamed?

kernel /boot/gnumach  root=device:hd2s1 -s

It should be root=hd0s1 (assuming it's the first partition on the first disk). Disk numbering starts from 0, and partition numbering from 1.

I tried it, but doesn't work either, hurd says Gratuitous error and with root=device:hd0s1 i get an error about disk size is to small

Last edited by Giselher (2010-02-02 22:20:31)

Offline

#214 2010-02-02 22:28:10

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

Giselher wrote:

I tried it, but doesn't work either, hurd says Gratuitous error and with root=device:hd0s1 i get an error about disk size is to small

This one: http://allanmcrae.com/hurd/hurd-superblock.png ?

Sorry, not sure what to do. A few people have had that error but I haven't been able to reproduce it.

Offline

#215 2010-02-02 22:35:42

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Barrucadu wrote:
Giselher wrote:

I tried it, but doesn't work either, hurd says Gratuitous error and with root=device:hd0s1 i get an error about disk size is to small

This one: http://allanmcrae.com/hurd/hurd-superblock.png ?

Sorry, not sure what to do. A few people have had that error but I haven't been able to reproduce it.

Yes this one.

But now i use:

kernel /boot/gnumach -s

and get this one

bildschirmfotoqemu1.png

Offline

#216 2010-02-03 00:40:59

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: The Arch Hurd Project

The answer to the size problem (given on one of the hurd mailing lists and untested...) is:

To make it simple, I'd advise running mkfs again, giving it 261048
(i.e. 1069254144/4096) as number of blocs.

Ah, that's why. The partitioning is limited to cylinders, i.e. it rounds
down your partition a bit, here I get

/dev/loop0p1               1         130     1044193+  83  Linux

which is not exactly like linux' loop device size
   7        0    1048544 loop0

So you indeed need to give mke2fs the proper size by hand.

Offline

#217 2010-02-03 08:01:02

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Allan wrote:

The answer to the size problem (given on one of the hurd mailing lists and untested...) is:

To make it simple, I'd advise running mkfs again, giving it 261048
(i.e. 1069254144/4096) as number of blocs.

Ah, that's why. The partitioning is limited to cylinders, i.e. it rounds
down your partition a bit, here I get

/dev/loop0p1               1         130     1044193+  83  Linux

which is not exactly like linux' loop device size
   7        0    1048544 loop0

So you indeed need to give mke2fs the proper size by hand.

It works now. big_smile
I didn't think that i would run hurd earlier on my computer than bsd smile

I will write a manual how to install grub on hurd.

edit:
Filesystem is readonly

edit2: i forgot to fsysopts / --writeable

Last edited by Giselher (2010-02-03 08:52:09)

Offline

#218 2010-02-03 09:11:56

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

Giselher wrote:

I will write a manual how to install grub on hurd.

Shall I set up a wiki on archhurd.org so soon? smile

Offline

#219 2010-02-03 09:20:30

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

Barrucadu wrote:
Giselher wrote:

I will write a manual how to install grub on hurd.

Shall I set up a wiki on archhurd.org so soon? smile

Writing some manuals are to only thing i can do now.

I have to read how hurd works and what translators are and so on. sad

EDIT:
Is there something like a rc.local file on hurd or how do we make an rc.local file?

Last edited by Giselher (2010-02-03 09:27:04)

Offline

#220 2010-02-03 09:32:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: The Arch Hurd Project

Giselher wrote:

Is there something like a rc.local file on hurd or how do we make an rc.local file?

Not really, but that is something we deal with later on...  we have much to do before then.

Offline

#221 2010-02-03 09:36:29

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

So what can i do to help?

EDIT: I am testing a few things but every time it says "No such file or directory"

EDIT2: I am trying to get SysVinit running but it says /sbin/init doesn't exists also /sbin/reboot halt poweroff shutdown

EDIT3: I solved the problem. I forgot to enter i568-gnu-pc

EDIT4: Doesn't work either. I guess i have to wait for the native compiler sad. But i found a few things out about the boot process.

/hurd/init
    |
     ––> /hurd/auth
    |
     ––> /hurd/proc
    |
     ––> /libexec/runsystem
                |
                ––> /libexec/rc
                |        |
                |        ––> /sbin/syslogd
                |        |
                |        ––> /sbin/inetd
                |
                ––> /libexec/runttys <- (/etc/ttys)

I hope this will help you.

Last edited by Giselher (2010-02-03 16:32:24)

Offline

#222 2010-02-03 16:37:16

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: The Arch Hurd Project

So, Allan, feel like sharing the latest version of your wonderful cross-hurd scripts with us? tongue

Offline

#223 2010-02-03 18:54:36

coolkaine
Member
From: Spain
Registered: 2010-02-03
Posts: 24
Website

Re: The Arch Hurd Project

Hello everybody. I found ArchHurd today (I use ArchLinux). I´m a beginner in the programming world, but I´d help in everything I can. Seems great idea make real a GNU System with a Hurd kernel, specially if it´s in Arch way tongue.
Well, I´ll try to boot ArchHurd this night smile.
(Sorry about my english)

Offline

#224 2010-02-03 19:38:16

Giselher
Member
From: Austria
Registered: 2010-02-02
Posts: 150
Website

Re: The Arch Hurd Project

coolkaine wrote:

Hello everybody. I found ArchHurd today (I use ArchLinux). I´m a beginner in the programming world, but I´d help in everything I can. Seems great idea make real a GNU System with a Hurd kernel, specially if it´s in Arch way tongue.
Well, I´ll try to boot ArchHurd this night smile.
(Sorry about my english)

The most problems are bash related.
You should google for a spanish bash tutorial.

Last edited by Giselher (2010-02-03 19:45:51)

Offline

#225 2010-02-04 00:54:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: The Arch Hurd Project

Barrucadu wrote:

So, Allan, feel like sharing the latest version of your wonderful cross-hurd scripts with us? tongue

Soon.   At the moment, it is successful at building everything (+1) but does not fully boot (-1).   there must be something I am missing.  I am going to do one more rebuild today and the will post whatever I have.

Offline

Board footer

Powered by FluxBB