[arm] support older plebs

[arm] support older plebs

Post by Geoffrey Le » Wed, 26 Mar 2003 18:30:15



Hi all,

This patch has been in my patch directory for a while.

The PLEB is a SA-1100-based ARM computer developed at CSE at the
University of New South Wales.  I have discovered some of the earlier
models would not set register 1 properly, which was required for Linux
to boot.  This was inside their (very old) kernel tree but which they
never submitted for inclusion (?)  It is a Photon1 with catapult
bootloader combination.

        - G.

--
char p[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
  "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
  "\x80\xe8\xdc\xff\xff\xff/bin/sh";

  arm-pleb.patch
< 1K Download
 
 
 

[arm] support older plebs

Post by Russell Kin » Wed, 26 Mar 2003 18:50:06



> The PLEB is a SA-1100-based ARM computer developed at CSE at the
> University of New South Wales.  I have discovered some of the earlier
> models would not set register 1 properly, which was required for Linux
> to boot.  This was inside their (very old) kernel tree but which they
> never submitted for inclusion (?)  It is a Photon1 with catapult
> bootloader combination.

I've been killing these - people should really be passing the right
value of r1 to the kernel.  Think what happens when 200 different
machine types add these 3 lines.

A saner solution would be to define this appropriately if we're only
being built for one platform.

BTW, please send ARM stuff to the linux-arm-kernel list.  See
http://lists.arm.linux.org.uk/mailman/listinfo/

--

             http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

[arm] support older plebs

Post by Geoffrey Le » Thu, 27 Mar 2003 02:10:21


[cc-ing to linux-arm-kernel ]



> > The PLEB is a SA-1100-based ARM computer developed at CSE at the
> > University of New South Wales.  I have discovered some of the earlier
> > models would not set register 1 properly, which was required for Linux
> > to boot.  This was inside their (very old) kernel tree but which they
> > never submitted for inclusion (?)  It is a Photon1 with catapult
> > bootloader combination.

> I've been killing these - people should really be passing the right
> value of r1 to the kernel.  Think what happens when 200 different
> machine types add these 3 lines.

I totally agree that it is wrong not to set r1.

Thank goodness that in 2.4.x not many arm boards need this hack :)

Anyway, inside the (very old) pleb kernel tree, it was marked as a "hack".  

Quote:> A saner solution would be to define this appropriately if we're only
> being built for one platform.

Yes.  That sounds good.

        -- G.
--
char p[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
  "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
  "\x80\xe8\xdc\xff\xff\xff/bin/sh";

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/