Linux PARISC architecture development
 help / color / mirror / Atom feed
* Re: [parisc-linux] palo II
@ 2003-06-11 17:46 Joel Soete
  2003-06-11 17:51 ` Matthew Wilcox
  2003-06-11 19:52 ` Bjoern A. Zeeb
  0 siblings, 2 replies; 23+ messages in thread
From: Joel Soete @ 2003-06-11 17:46 UTC (permalink / raw)
  To: Bjoern A. Zeeb; +Cc: parisc-linux

Hi Bjoern,

Anoyed to change my fstab because I add or remove a disk to/from the external
scsi controler of my b2k (boot disk sda became sdb, sdc, or what else),
I decide so to test devfs kernel. It seems to works (excepted that I could
not specify root=/dev/scsi/host1/bus0/target5/lun0/part5)

Coming back to the actual pb with new palo:
the original ipl prompt is:
PALO(F0) partition contains:
    0/vmlinux32 3826722 bytes @ 0x44000

Information: No console specified on kernel command line. 
his is normal.
PALO will choose the console currently used by firmware (serial).Current
command line:
3/vmlinux-2.4.19-pre10-pa39-tsi root=/dev/sda5 HOME=/ console=ttyS0 TERM=vt102
 0: 3/vmlinux-2.4.19-pre10-pa39-tsi
 1: root=/dev/sda5
 2: HOME=/

 3: console=ttyS0
 4: TERM=vt102

which I would like to change in:
Current command line:
3/vmlinux-2.4.21-rc8-pa35-devfs root=/dev/scsi/host1/bus0/target5/lun0/part5
HOME=/ console=ttyS0 TERM=vt102
 0: 3/vmlinux-2.4.21-rc8-pa35-devfs
 1: root=/dev/scsi/host1/bus0/target5/lun0/part5
 2: HOME=/
 3: console=ttyS0
 4: TERM=vt102

Edit which field?
(or 'b' to boot with this command line)? b

Command line for kernel: 'root=/dev/scsi/host1/bus0/target5/lun0/part5 HOME=/
console=ttyS0 TERM=
t102 palo_kernel=3/vmlinux-2.4.21-rc8-pa35-devfs'
Selected kernel: /vmlinux-2.4.21-rc8-pa35-devfs from partition 3

the system hang here (just read on LCD "init c7ff")

(btw, there is no pb if I don't change root path and the final lenght of
cmd line is of 121 characters < 256 of buffer ??)

I so come back to palo-1.2 where the pb don't occure:
Command line for kernel: 'root=/dev/scsi/host1/bus0/target5/lun0/part5 HOME=/
console=ttyS0 TERM=vt102 palo_kernel=3/vmlinux-2.4.21-rc8-pa35-devfs'

Selected kernel: /vmlinux-2.4.21-rc8-pa35-devfs from partition 3
ELF32 executable
Entry 00100210 first 00100000 n 6
Segment 0 load 00100000 size 2101928 mediaptr 0x1000
[...]

Even thought later:
[...]
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "scsi/host1/bus0/target5/lun0/part5" or 02:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 02:00

Never the less, in the cmdln the root device seems to be well /dev/scsi/...
and here is just mentionned scsi/... (may be normal, don't know)?

Any idea (how to debug)?

Thanks in advance,
    Joel





---------------------------------
Découvrez les 6 clés et gagnez le Club Med à Vie avec Tiscali
http://www.tiscali.be/nl/subs/tiscali4life/default.asp?lang=fr

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [parisc-linux] palo II
@ 2003-06-05 15:15 Joel Soete
  2003-06-05 15:23 ` Bjoern A. Zeeb
  2003-06-05 18:44 ` Bjoern A. Zeeb
  0 siblings, 2 replies; 23+ messages in thread
From: Joel Soete @ 2003-06-05 15:15 UTC (permalink / raw)
  To: Bjoern A. Zeeb; +Cc: parisc-linux

> I couldn't yet. It happened just the one time. What I did was:
>
> 1. power on apollo
> 2. log in to the host the serial line was attached to
> 3. start minicom
> 4. come back five minute
> later (the palo.conf entry has been wrong)
> 5. fin
 the above on the screen
> 6. delete line 1 five times
> 7. change path to kernel
> 8. boot

Could it be electrical interferences?

[I also use minicom with serial port configured as 9600 8N1 with "Hardware
Flow COntrol : yes" and cleanup "modem and dialing" init and reset strings]

> [dep building]

> I think I am missing a package for all this here where most of the
> dh_* are included ...

the package is debhelper (just in case you would find another file, it exists
a nice search tool in <http://www.debian.org/distrib/packages>; at the
bottom, you can search packages containing the file you know :) )

> Me using apt-get source then debian/rules build and finally I cannot
> use fakeroot at the moment (glibc issue though downgr
ded).

Yes there is some issue with glibc 2.3.1-17, better is 2.3.1-16

Joel





---------------------------------
Découvrez les 6 clés et gagnez le Club Med à Vie avec Tiscali
http://www.tiscali.be/nl/subs/tiscali4life/default.asp?lang=fr

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [parisc-linux] palo II
@ 2003-06-05 11:59 Joel Soete
  2003-06-05 14:14 ` Bjoern A. Zeeb
  0 siblings, 1 reply; 23+ messages in thread
From: Joel Soete @ 2003-06-05 11:59 UTC (permalink / raw)
  To: Bjoern A. Zeeb, parisc-linux; +Cc: Grant Grundler, Helge Deller

Hi Bjoern,

> On Mon, 2 Jun 2003, Bjoern A. Zeeb wrote:
>
> Hi,
>
> > g) here is the patch. Thanks I remember basic for the goto ;-)

Simple and efficent;

> > peherhaps ignore the part with the version number ...
>
> well please - before commiting - verifiy ... I t
ink there is a
> problem maybe with some pointer ... Will have to verify all possible
> paths ... going to re-check and let you know.
>
> --- cut ---
> /boot/vmlinux-2.5.69-pa1 74 00L 1X c 1Q root=/dev/sdb3 HOME=/ TERM=linux
conso0
>  0: 3/boot/vmlinux-2.5.69-pa1
>  1: 74
>  2: 00L
>  3: 1X
>  4: c
>  5: 1Q
>  6: root=/dev/sdb3
>  7: HOME=/
>  8: TERM=linux
>  9: console=ttyS0
>
> Edit which field?
> (or 'b' to boot with this command line)?
> --- cut ---

Hmm how may I reproduce?


btw (as rought draft) I also consider the case if you accidently choose
swap (even on a md), here is the full patch:
=====
diff -Naur --exclude iplboot palo-1.2/debian/changelog palo-1.3/debian/changelog
--- palo-1.2/debian/changelog	2003-01-14
21:07:52.000000000 +0100
+++ palo-1.3/debian/changelog	2003-06-05 11:20:38.000000000 +0200
@@ -1,3 +1,9 @@
+palo (1.3) unstable; urgency=low
+
+  * Comeback to interact if failled to find boot kernel (Bjoern A. Zeeb)
+
+ -- Paul Bame <bame@debian.org>  Tue, 14 Jan 2003 13:06:45 -0700
+
 palo (1.2) unstable; urgency=low

   * Recognize RAID partition types (Martin K. Petersen)
diff -Naur --exclude iplboot palo-1.2/ipl/ipl.c palo-1.3/ipl/ipl.c
--- palo-1.2/ipl/ipl.c	2003-01-14 20:44:49.000000000 +0100
+++ palo-1.3/ipl/ipl.c	2003-06-05 12:56:25.000000000 +0200
@@ -367,6 +367,7 @@
 	}
     }

+interactive_loop:
     if (is_interactive)
 	interact(&f);

@@ -406,7 +407,9 @@
     {
 	printf("ERROR: Requesting kernel from partition %d "
 		    "on unpartitioned media!\n", kern_part);
-	while(1);
+
+        is_interactive = 1;
+        goto interactive_loop;
     }

     if (rd_part != -1 && rd_part != kern_part)
@@ -510,7 +513,9 @@
 	    (partition[kern_part - 1].id != 0x83 && partition[kern_part - 1].id
!= 0xfd) )
 	{
 	    printf("ERROR: Partition %d must be ext2\n", kern_part);
-	    while(1);
+
+            is_interactive = 1;
+            goto interactive_loop;
 	}

 	pp = &partition[kern_part - 1];
@@
-518,8 +523,13 @@
 	part_fd = offset_open(bootdev, 512 * pp->start, 512 * pp->length);

 	mount_fd = ext2_mount(part_fd, 0, 0);
-	if (0) printf("ext2_mount(partition %d) returns %d\n",
-	    kern_part, mount_fd);
+	if (mount_fd < 0){
+            printf("ext2_mount(partition %d) returns %d\n",
+	            kern_part, mount_fd);
+
+            is_interactive = 1;
+            goto interactive_loop;
+	}

 	kern_fd = ext2_open(kern_name);
 	if (0) printf("ext2_open(%s) = %d\n", kern_name
 kern_fd);
@@ -527,7 +537,9 @@
 	{
 	    printf("ERROR: open %s from partition %d failed\n",
 		kern_name, kern_part);
-	    while(1);
+
+            is_interactive = 1;
+            goto interactive_loop;
 	}

 	bkern_fd = byteio_open(kern_fd);
diff -Naur --exclude iplboot palo-1.2/lib/common.h palo-1.3/lib/common.h
--- palo-1.2/lib/common.h	2003-01-14 21:06:14.000000000 +0100
+++ palo-1.3/lib/common.h	2003-06-05 11:53:20.000000000 +0200
@@ -11,7 +11,7 @@
 #include <asm/byteorder.h>

 #include <linux/genhd.h>

-#define PALOVERSION "1.2"
+#define PALOVERSION "1.3"

 /* size of I/O block used in HP firmware */
 #define FW_BLOCKSIZE	2048

====

Up to you to adapt changes in changelog and lib/common.h :)

I a not an expert 
n debian building pkg but to rebuild a source tree i
follow this small recipe:
A) grab palo_1.2.dsc palo_1.2.tar.gz into your test dir
B) dpkg-source -x palo_1.2.dsc
this will extract palo-1.2
C) I rename palo-1.2 into palo-1.3 [according to chang
log revision]
D) cd palo-1.3
E) apply above patch (patch -p1 -i YourPatchFile)
E) dpkg-buildpackage [ 2>&1 | tee ../palo-1.3.bpkg # to log build messages]
on a _linux-parisc_ box it would rebuild iplboot :)

if successfull, you would find in the 
pper dir palo_1.3_hppa.deb dpkg which
you can just install.

hth,
    Joel

PS: another kind thing would be add edition line capability (any idea?)



---------------------------------
Découvrez les 6 clés et gagnez le Club Med à Vie avec Tiscali
http://www.tiscali.be/nl/subs/tiscali4life/default.asp?lang=fr

^ permalink raw reply	[flat|nested] 23+ messages in thread
* [parisc-linux] palo II
@ 2003-06-01 13:04 Bjoern A. Zeeb
  2003-06-01 13:44 ` Helge Deller
  0 siblings, 1 reply; 23+ messages in thread
From: Bjoern A. Zeeb @ 2003-06-01 13:04 UTC (permalink / raw)
  To: parisc-linux

Hi,

is there a chance that one can recover from s.t.h like this ?

Command line for kernel: 'root=/dev/sdb3 HOME=/ TERM=linux console=ttyS0 palo_kernel=3/boot/vmlinux-2.5.60-pa1'
Selected kernel: /boot/vmlinux-2.5.60-pa1 from partition 3
ERROR: open /boot/vmlinux-2.5.60-pa1 from partition 3 failed
--- dead end ---

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT
56 69 73 69 74				http://www.zabbadoz.net/

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2003-06-12  9:16 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-11 17:46 [parisc-linux] palo II Joel Soete
2003-06-11 17:51 ` Matthew Wilcox
2003-06-11 20:31   ` Stian Søiland
2003-06-11 20:32     ` Alan Cox
2003-06-12  6:13       ` Grant Grundler
2003-06-12  8:45       ` Joel Soete
2003-06-11 19:52 ` Bjoern A. Zeeb
2003-06-12  9:16   ` Joel Soete
  -- strict thread matches above, loose matches on Subject: below --
2003-06-05 15:15 Joel Soete
2003-06-05 15:23 ` Bjoern A. Zeeb
2003-06-05 18:44 ` Bjoern A. Zeeb
2003-06-05 18:53   ` Bjoern A. Zeeb
2003-06-05 11:59 Joel Soete
2003-06-05 14:14 ` Bjoern A. Zeeb
2003-06-05 14:32   ` Matthew Wilcox
2003-06-01 13:04 Bjoern A. Zeeb
2003-06-01 13:44 ` Helge Deller
2003-06-01 14:05   ` Bjoern A. Zeeb
2003-06-01 17:51     ` Joel Soete
2003-06-02 18:14     ` Grant Grundler
2003-06-02 18:29       ` Bjoern A. Zeeb
2003-06-02 19:40         ` Bjoern A. Zeeb
2003-06-04 10:42           ` Bjoern A. Zeeb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox