View previous topic :: View next topic |
Author |
Message |
tenspd137 Guru
Joined: 22 Aug 2006 Posts: 391
|
Posted: Mon Oct 20, 2008 4:53 am Post subject: Cant get hppa kernel to work at all |
|
|
Hello all,
I have gone through this several times now. The first time, I tried building the 64bit kernel because I have 10GB of ram in my hppa j6700 workstation. I couldn't get that to work. I tried building a regular kernel with no modules to load - no luck - still hangs at the same place (other post: https://forums.gentoo.org/viewtopic-t-711670-highlight-.html). So I figured I would try using genkernel to get something that works, my reasoning being that if the minimal install CD works, I should be able to get it to boot on it's own. I keep getting an error saying that no .config file is specified with genkernel all. I am kind of at the end of my rope here - I have been trying to do this for the last 3 days now.
Can someone please help me with this and maybe help me figure out what I must be missing? I would greatly appreciate it! |
|
Back to top |
|
|
mattst88 Developer
Joined: 28 Oct 2004 Posts: 422
|
Posted: Mon Oct 20, 2008 7:12 pm Post subject: |
|
|
Did you try rebuilding gcc like I suggested in the other thread? _________________ My Wiki page |
|
Back to top |
|
|
pvos n00b
Joined: 21 Oct 2008 Posts: 8
|
Posted: Tue Oct 21, 2008 7:30 pm Post subject: |
|
|
I've been struggling with my rp3410 as well the last few days .
You should generate a new config file as /usr/share/genkernel/parisc64/kernel-config. I used the default kernel config from the live-cd :
zcat /proc/config.gz /usr/share/genkernel/parisc64/kernel-config
Of course, you could also copy your .config from your /usr/src/linux dir
Next emerge kgcc64 ...
I then used gcc-config to make sure the correct gcc would be used :
gcc-config -l -> should list all the different gcc targets
Next use
gcc-config <number> <- number equals your target as , in my case 2 for hppa64
Next, the kernel source has this bug in /usr/src/linux/arch/parisc/Makefile :
Under the ifdef CONFIG_64BIT section , change cross-compile to :
CROSS_COMPILE := hppa64-unknown-linux-gnu- ( at least, that's what my hppa64 was named .. )
genkernel still wouldn't build all, so I manually build a kernel myself. Make sure you include all the essential drivers in the kernel itself ( scsi, ide, ext2 and ext3 ) , don't waste your time trying to debug why they don't load as modules . I mean, with 10 Gigs of memory, why bother with kernel size .
make && make modules_install
and then copied vmlinux to /boot.
Next I used :
genkernel initrd
to generate a initrd under /boot.
Make sure palo points to the correct initrd and vmlinux and you should finally be able to boot parisc64.
Last edited by pvos on Tue Oct 21, 2008 8:57 pm; edited 4 times in total |
|
Back to top |
|
|
pvos n00b
Joined: 21 Oct 2008 Posts: 8
|
Posted: Tue Oct 21, 2008 7:42 pm Post subject: |
|
|
Small update :
My first boot next hung , displaying :
Id "b0" respawning too fast: disabled for 5 minutes
which seems to be related to some ancient mux shit. So I disabled the ttyB0 in /etc/inittab and removed the # before the ttyS1 line, which is my remote serial port.
Now the kernel boots until login, which doesn't work . Back to boot P2 to find out what the problem is..... |
|
Back to top |
|
|
pvos n00b
Joined: 21 Oct 2008 Posts: 8
|
Posted: Tue Oct 21, 2008 7:52 pm Post subject: |
|
|
Ah,
"pam_securetty(login:auth): access denied: tty 'ttyS1' is not secure !"
pam related. Let's figure that out ......
Mmh, add ttyS1 to /etc/securetty. Let's see if that works.... |
|
Back to top |
|
|
pvos n00b
Joined: 21 Oct 2008 Posts: 8
|
Posted: Tue Oct 21, 2008 7:59 pm Post subject: |
|
|
Yeah, success at last .
This is mail.unknown_domain (Linux parisc64 2.6.25-gentoo-r7) 19:41:01
mail login: paul
Password:
Last login: Tue Oct 21 19:39:59 CEST 2008 on ttyS1
mail ~ #
( Actually my second login ... my first login wasn't captured in putty.log ). |
|
Back to top |
|
|
tenspd137 Guru
Joined: 22 Aug 2006 Posts: 391
|
Posted: Wed Oct 22, 2008 2:13 am Post subject: |
|
|
Yeah - I tried rebuilding gcc - no luck there. I am trying to use the kernel configs on the minimal install CD using make oldconfig in /usr/src/linux. (They suggested that on the gentoo-hppa irc chat node). That appears to be working so far. I also have the b0 problem which I am going to try to get rid of now after trying to compile a 64 bit kernel. Thanks to all who posted what they did here! I will post everything I did once I am done a well to help others. |
|
Back to top |
|
|
tenspd137 Guru
Joined: 22 Aug 2006 Posts: 391
|
Posted: Wed Oct 22, 2008 5:22 am Post subject: |
|
|
Well, almost there. The first 64 bit kernel I built worked, but I noticed a) it did not pick up all the memory I have
b) it was not SMP (I have 2 processors). Any idea how to make it see the extra memory (the point of the 64-bit kernel)? So far, I have made sure the memory is dicontinuous and the page size is set to 4 kb. Other than that - I don't know what else to activate in the kernel.
Thanks! |
|
Back to top |
|
|
pvos n00b
Joined: 21 Oct 2008 Posts: 8
|
Posted: Wed Oct 22, 2008 8:51 am Post subject: |
|
|
I had the same problem ( the kernel only reported 1 Gb ).
Recompiling the kernel with CONFIG_SMP=y fixed that. |
|
Back to top |
|
|
pvos n00b
Joined: 21 Oct 2008 Posts: 8
|
Posted: Wed Oct 22, 2008 8:32 pm Post subject: |
|
|
Mmh, the cciss driver doesn't seem to work with my 5300 array . The machine HPMC's when the driver sends a CISS_INQUIRY to get the firmware version. Since this is the first command where dma is involved , I suspect some big/little endian issue or maybe a misaligned struct.
Does anybody here have any experience in reading HPMC logs ? |
|
Back to top |
|
|
jer Retired Dev
Joined: 06 Dec 2006 Posts: 7
|
Posted: Sun Oct 26, 2008 3:35 pm Post subject: |
|
|
tenspd137 wrote: |
b) it was not SMP (I have 2 processors). |
This is a bit confusing - When a system has more than one processor, that's called symmetric multiprocessing or SMP... |
|
Back to top |
|
|
mattst88 Developer
Joined: 28 Oct 2004 Posts: 422
|
Posted: Sun Oct 26, 2008 9:24 pm Post subject: |
|
|
jer wrote: | tenspd137 wrote: |
b) it was not SMP (I have 2 processors). |
This is a bit confusing - When a system has more than one processor, that's called symmetric multiprocessing or SMP... |
I think he meant that that the kernel wasn't SMP aware. _________________ My Wiki page |
|
Back to top |
|
|
|