Port-macppc archive

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

Re: Hang with 5.0.1 right after firewire init



Hi,

On Sat, Aug 08, 2009 at 12:42:26AM +0800, pavel subach wrote:
> Help me please, I was only install 5.0.1 on my PowerPC based Macintosh
> (PowerMac G4 MDD), and i want get tuned kernel for my system, without
> ipv6 and
> enabled packet filter. I read a manual how to build own kernel on net

> bsd. I get current-tree kernel sources is sys.tar.gz and download

and there is your problem. 

Since you installed 5.0.1, get syssrc.tar.gz from 5.0.1, not current.
You can find it on ftp.netbsd.org in /pub/NetBSD/NetBSD-5.0.1/source/sets.


Untar it somewhere.  You don't have to do most of this as root.

cd to <where ever you untarred it>/usr/src/sys/arch/macppc/conf

Now, do the simpliest possible thing.

cp GENERIC ZZ
config ZZ
cd ../compile/ZZ
make depend
make

then, as root, copy the kernel in place and reboot.  Does it work?

When I do this I ln /netbsd /netbsd.GENERIC, then copy the new kernel to 
/netbsd.ZZ 
(or some name NOT /netbsd) and then when I reboot make sure that I 
load hd:XX,/netbsd.ZZ.  Even if I keep the new kernel I leave /netbsd.GENERIC 
sitting around.

This way if something fails a reboot will get me back to the old kernel.


Now start editing the file named ZZ to remove or add what you want.


cheers

bruce

> config.tar.gz how tell to me this manual
> http://netbsd.org/docs/kernel/index.html#downloading_kernel_source
> The next step is unpacked sys.tar.gz in /usr directory...
> 
> system# cd /usr
> system# tar xzvpf /root/sys.tar.gz
> 
> the next step i unpack config.tar.gz to /usr
> 
> system# cd /usr
> system# tar xzvpf /root/config.tar.gz
> 
> I create my config, based on dmesg information and copy of GENERIC file.
> and i try configure by
> 
> system# config MyKernel
> ../../../../conf/files:4: your sources require a newer version of
> config(1) -- please rebuild it.
> *** Stop.
> 
> what's happen? i think that i need compile new config from source?
> right! But when i try  compile it i got the next messages:
> 
> system# cd /usr/src/usr.bin/config
> system# make
> #   compile  config/files.o
> cc -O2  -Wno-format-y2k -Werror   -I/usr/src/usr.bin/config -I.
> -I/usr/src/usr.bin/cksum    -c    files.c
> In file included from files.c:53:
> defs.h:209: error: expected specifier-qualifier-list before 'devmajor_t'
> defs.h:370: error: expected specifier-qualifier-list before 'devmajor_t'
> defs.h:434: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'maxbdevm'
> defs.h:435: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'maxcdevm'
> files.c: In function 'fixdevsw':
> files.c:351: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:351: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:352: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:352: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:358: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:358: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:360: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:360: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:366: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:367: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:375: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:375: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:378: error: 'struct devm' has no member named 'dm_opts'
> files.c:379: error: 'struct devm' has no member named 'dm_opts'
> files.c:382: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:382: error: 'NODEVMAJOR' undeclared (first use in this function)
> files.c:382: error: (Each undeclared identifier is reported only once
> files.c:382: error: for each function it appears in.)
> files.c:390: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:394: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:401: error: 'struct devm' has no member named 'dm_cmajor'
> files.c:404: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:412: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:416: error: 'struct devm' has no member named 'dm_bmajor'
> files.c:423: error: 'struct devm' has no member named 'dm_bmajor'
> files.c: In function 'fixcount':
> files.c:452: error: 'struct devbase' has no member named 'd_umax'
> files.c:456: error: 'struct devbase' has no member named 'd_umax'
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/usr.bin/config
> 
> What's happen now ? i search in google, yahoo, yandex,... and e.t.c.
> but i can't find any resolv this problem... HELP ME PLZ, Because i pay
> for internet bu can't use it from Monday.....
> 
> 2009/8/7, Bruce O'Neel <netbsd%pckswarms.ch@localhost>:
> > Hi,
> >
> > Ok, 4.0.1 worked fine.
> >
> > 5.0.1 stops after (hand typed):
> >
> > fwohci0: BUS reset
> > uhub0 at usb0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr
> > 1
> > uhub1 at usb1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr
> > 1
> >
> > Thanks for any help!
> >
> > cheers
> >
> > bruce
> >
> > On Fri, Aug 07, 2009 at 08:22:27AM -0400, Michael wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>
> >> Hello,
> >>
> >> On Aug 7, 2009, at 7:14 AM, Bruce O'Neel wrote:
> >>
> >>> I installed NetBSD 5.0.1 on my trusty old pismo.  Install went fine.
> >>>
> >>> On first boot it hung right after initializing the firewire interface.
> >>
> >> Hmm, works here ( GigE G4, iBook G4 and a G3 with a firwire / USB card )
> >>
> >>> Does anyone else see this?  Is there a good work around?  I looked for
> >>> a NetBSD current on HEAD and it seems that macppc isn't building right
> >>> now
> >>> because it wants xf86Version.h.
> >>
> >> That's X, not the kernel. I better have a look though.
> >>
> >> have fun
> >> Michael
> >>
> >> -----BEGIN PGP SIGNATURE-----
> >> Version: GnuPG v1.4.7 (Darwin)
> >>
> >> iQEVAwUBSnwcg8pnzkX8Yg2nAQIuDggAtpmBKl1z7+usDXzqTtuScOl8QzFYa2nm
> >> UYstB6K0zvEel8MH4Asza0bDo2IfrOsY1LQj84TUe9I6Fb/AokQivQwiQjiW2fdi
> >> wvtSbIrVi+eXMm7hygvm35PDLRgUFphFGF/qcWOBvnjvPnTj5qsRT8ojfk66f+Bw
> >> 6a4X7dssVtWrJuU1+6pWyrEn30c2yB+QSe1pl7zEvgC8FnIupFBFFHtjdF0EieWc
> >> BI4eLXcFJSuorW+Hk7/zTBayjhJFLkFMGsBgFFiHd6EUO8mv0uwHEHQaXLTtTUkG
> >> 0zktDB0Ey35rz61CSRXZfL5FPyVbRPdF3uuMsO4Co6EN2Lg9kMu3xw==
> >> =Vv1H
> >> -----END PGP SIGNATURE-----
> >
> 
> 
> -- 
> Ð ÑÐÐÐÐÐÐÐÐ ÐÐÐÐÐÐÑ-ÐÑÐÐÑÐÐÐÐÑÑ 2ÐÐÑ ÐÐÐ ÐÐÐ, ÐÐÐ "ÐÐÐÐÑÑÑÐÐÐÐÐÐ", ÐÐÐÐÑÐÐÐ
> ÐÑÐÐÑ ÐÐÐÐÐ ÐÐÑÐÐÑÐÐÐÑ
> 



Home | Main Index | Thread Index | Old Index