Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[Fwd: Re: status for Marvell Orion support]

See earlier message.

-------- Original Message --------
Subject:        Re: status for Marvell Orion support
Date:   Wed, 11 Mar 2009 08:05:59 -0400
From:   Donald T Hayford <don%donhayford.com@localhost>
To: Havard Eidnes <he%NetBSD.org@localhost>, current-users%netbsd.org@localhost, KIYOHARA Takashi <kiyohara%kk.iij4u.or.jp@localhost> References: <20090305.154201.71570811.kiyohara%kk.iij4u.or.jp@localhost> <20090310.111559.95460806.he%uninett.no@localhost> <49B71A97.2060000%donhayford.com@localhost> <20090311.100237.152506737.he%uninett.no@localhost>

Havard Eidnes wrote:
A few comments:

~/kuronet/src $ cd sys/arch/arm/marvell/
~/kuronet/src/sys/arch/arm/marvell $ nano if_oriongbe.c
...change the line:
#include "rnd.h"
//#include "rnd.h"
...save the file

Instead of this change, I changed the rnd_add_uint32() call to

                rnd_add_uint32(&sc->rnd_source, claimed);

Kiyohara's patch used "status" in "claimed"s place, and "status"
isn't declared in that scope.

Your way is better.
~/kuronet/src $ cd ../../evbarm/conf
~/kuronet/src/sys/arch/evbarm/conf $ echo 'include âarch/evbarm/conf/KUROBOX_PROâ' \
~/kuronet/src/sys/arch/evbarm/conf $ echo 'no pseudo-device md' >> KUROBOX_PRO_INSTALL ~/kuronet/src/sys/arch/evbarm/conf $ echo 'include âarch/evbarm/conf/INSTALLâ' \

OK, as an alternative to the "no pseudo-device md" dance, I
removed "pseudo-device md" from the ORION_NAS config file.

Conceptually, your way makes more sense. But some people prefer not to muck around with existing files, if possible, and make all of the changes in the new file that you have to create anyway. Either way is ok with me.
As far as I can see, the only thing missing at this point is
instructions for how to make the KUROBOX_PRO boot its own kernel
without "outside assistance".  That probably means explaining how
one could store a NetBSD kernel in flash on the box (which image,
which command to use etc.).

You don't actually need to put the NetBSD kernel in flash, though that is certainly one option (and one that I would like to explore further). Another way is: 1. Create an ext2 slice (for Linux or just for booting) that U-boot can read and a NetBSD slice that you use to install the world on.
2. Install  NetBSD to the disk.
3. Put the kernel on the ext2 slice and change the U-boot boot string (bootcmd) to point to the NetBSD kernel instead of the Linux kernel (something like:
bootcmd=ide reset; ext2load ide 0:1 0x8000 /netbsd.bin-KUROBOX_PRO; g 0x8000
- but I'm doing that from memory). If you can't figure out how/where, I'll have to look back through my notes. Mine is set right now to boot using tftp using the boot string:

bootcmd=tftp 0x8000 netbsd.bin-KUROBOX_PRO; g 0x8000

This is all still not perfect, since I think you need to use Linux to create the ext2 slice, but closer.


Home | Main Index | Thread Index | Old Index