Re: Toshiba e355 (e350) no mtype

From: pHilipp Zabel <philipp.zabel_at_gmail.com>
Date: Thu, 21 Aug 2008 08:43:56 +0200

On Thu, Aug 21, 2008 at 4:48 AM, Silas Baronda <silas.baronda_at_gmail.com> wrote:
> Tried booting linux with the Toshiba e355 which seems like a e350, it
> wouldn't boot with "Invalid MYTPE"

That's because HaRET doesn't know about the e350 machine type either.
Try adding a line to src/mach/machlist.txt like this:

--- src/mach/machlist.txt 26 Jul 2008 18:46:20 -0000 1.32
+++ src/mach/machlist.txt 21 Aug 2008 06:35:45 -0000
@@ -79,6 +79,7 @@
 RX3000, S3c2440 ,HP iPAQ rx3, RX3715, set
ramsize 64*1024*1024
 Treo700wx, PXA27x ,Palm Treo 700w, T700WX, set
ramsize 64*1024*1024
 e310, SA ,Toshiba e310
+e350, PXA ,TOSHIBA e350, E350
 e740, PXA ,TOSHIBA e740
 Acer_n30, S3c2410 ,Acer n30 Handheld, N30
 Mio_P550, S3c2440 ,Mio P550, MIO_P550

and the E350 macros to includes/mach-types.h from a recent kernel, like this:

--- include/mach-types.h 10 Dec 2007 00:19:15 -0000 1.6
+++ include/mach-types.h 21 Aug 2008 06:42:30 -0000
@@ -1570,6 +1570,7 @@
 #define MACH_TYPE_MAST 1568
 #define MACH_TYPE_PFW 1569
 #define MACH_TYPE_YL_P2440 1570
+#define MACH_TYPE_E350 1596

 #ifdef CONFIG_ARCH_EBSA110
 # ifdef machine_arch_type
@@ -20267,6 +20268,18 @@
 # define machine_is_yl_p2440() (0)
 #endif

+#ifdef CONFIG_MACH_E350
+# ifdef machine_arch_type
+# undef machine_arch_type
+# define machine_arch_type __machine_arch_type
+# else
+# define machine_arch_type MACH_TYPE_E350
+# endif
+# define machine_is_e350() (machine_arch_type == MACH_TYPE_E350)
+#else
+# define machine_is_e350() (0)
+#endif
+
 /*
  * These have not yet been registered
  */

regards
Philipp
Received on Thu Aug 21 2008 - 02:44:11 EDT

This archive was generated by hypermail 2.2.0 : Thu Aug 21 2008 - 02:44:27 EDT