Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvsetenv [solved] 64 bit kernel 32 bit userland issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Mon Dec 11, 2006 6:02 am    Post subject: nvsetenv [solved] 64 bit kernel 32 bit userland issues Reply with quote

i just redid my g5 from the64 bit userland to a 32bit userland. i'm at the point of installing yaboot, and i keep gettin gthe following to output:

ioctl32(nvsetevn:20675): Unknown cmd fd(3) cmd(20007043){' '} arg(48048442) on /dev/nvram

i've tried compiling for support with nvram and not, adding things as modules or into the kernel, etc.

on reboot, there is a memory access error, and its just at the "white" screen with the welcome to openfirmware message.

anyone come across this?


Last edited by gohmdoree on Tue Dec 12, 2006 1:58 am; edited 1 time in total
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Mon Dec 11, 2006 4:00 pm    Post subject: Reply with quote

as far as the numbers that show up in that string, i forgot to mention that there are other "sets"

will post when get back to the machine.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 11, 2006 8:28 pm    Post subject: Reply with quote

For what it's worth, on PPC32, as long as your bootstrap partition comes before any other bootable partitions (OSX, etc.) it should work without needing to set the environment variables.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Mon Dec 11, 2006 9:05 pm    Post subject: Reply with quote

thats what i was reading, but i kept getting that error when running yabootconfig, mkofboot, and ybin. on boot, it stays at the first screen with the quiensce and such.

when i had the 64 bit userland, it worked without a hitch. i really didn't find much out there on this. some people had mistakenly put their bootstrap partition elsewhere. i have my bootstrap on number 2.

anyhow, when i get back to the machine, i'll post the relevant stuff. do you think its something in the kernel that is missing? i tried building the kernel as 64 bit, but it says that -m64 is not valid for the settings, which makes since it being 32 bit userland.

on to more tinkering until it works some more.
Back to top
View user's profile Send private message
gentooken
n00b
n00b


Joined: 24 Jul 2006
Posts: 23

PostPosted: Mon Dec 11, 2006 11:05 pm    Post subject: Reply with quote

gohmdoree wrote:
thats what i was reading, but i kept getting that error when running yabootconfig, mkofboot, and ybin. on boot, it stays at the first screen with the quiensce and such.

when i had the 64 bit userland, it worked without a hitch. i really didn't find much out there on this. some people had mistakenly put their bootstrap partition elsewhere. i have my bootstrap on number 2.

anyhow, when i get back to the machine, i'll post the relevant stuff. do you think its something in the kernel that is missing? i tried building the kernel as 64 bit, but it says that -m64 is not valid for the settings, which makes since it being 32 bit userland.

on to more tinkering until it works some more.


Did you read this? I have forgotten about it a lot of times.
# cd /usr/src/linux
Important: In case you are in 32-bit userland, you must edit the top
level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
make menuconfig or it may result in kernel compilation problems.

# make menuconfig

And the reason it's freezing on the open firmware screen is that the kernel HAS to be 64bit.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Tue Dec 12, 2006 1:57 am    Post subject: Reply with quote

that was the best advice!

thanks for coming through on that one. i didn't read that bit anywhere. i must have overlooked it in the handbook. going to look now.

going to mark this one as solved.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Tue Dec 12, 2006 1:58 am    Post subject: Reply with quote

i didn't see that in the handbook. maybe that is something they could add "if you are going to use a 64bit kernel and the 32 bit userland, do such and such."

where did you find that info? in the forums? elsewhere? maybe we can link to it in its entirety from here.
Back to top
View user's profile Send private message
gentooken
n00b
n00b


Joined: 24 Jul 2006
Posts: 23

PostPosted: Tue Dec 12, 2006 2:01 am    Post subject: Reply with quote

it's in the handbook, it's just hidden really well.

http://www.gentoo.org/doc/en/handbook/handbook-ppc64.xml?part=1&chap=7#doc_chap3

in the Code Listing 4: Invoking menuconfig box.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Tue Dec 12, 2006 3:20 am    Post subject: Reply with quote

gosh i completely looked over that part. you know, you do most by memory, assume some things are the same, etc.

anyways, now its logged for another one like me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum