Re: [PATCH v3] moto-boot-usb: add help parameter

2012-01-09 Thread Angelo Stefanos Mavridis Bartolome

On 01/09/2012 01:45 PM, Antonio Ospite wrote:

Pushed, in:
http://cgit.openezx.org/moto-boot-usb/commit/?id=42aedf88c6f9d9c09ccdbfe1742a39d94beae1d1

Thank you very much!

with some little changes:
  - stripped trailing and leading white spaces
  - adjusted the commit message to look like the other commit messages,
(context and Signed-off-by line)
  - put the help message as the last one in the usage.

Ok. Thank you for doing these changes. Next time I will try to remember
these changes.

BTW Angelo, this was the "preliminary" change I was talking about in
the other message:
http://cgit.openezx.org/moto-boot-usb/commit/?id=e9ce08686e2ce21ccab021ed4b4f4dd6bec61f92

Sorry, I couldn't understand your message, that is the reason of
why i haven't done it.

Thanks,
Antonio

Best Regards,
 Angelo.




[PATCH v3] moto-boot-usb: add help parameter

2012-01-07 Thread Angelo S. Mavridis Bartolome
From: "Angelo S. Mavridis Bartolome" 

---
 src/moto-boot-usb.c |8 
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/moto-boot-usb.c b/src/moto-boot-usb.c
index 962a236..5af26a9 100644
--- a/src/moto-boot-usb.c
+++ b/src/moto-boot-usb.c
@@ -626,6 +626,8 @@ static void usage()
 "execute code at ram address\n"
 "   moto-boot-usb setflag usb|dumpkeys|passthrough\t"
 "set memory flag for gen-blob\n"
+"   moto-boot-usb help|--help\t\t\t"
+"show this help screen\n"
 "   moto-boot-usb off\t\t\t\t"
 "power off the phone\n\n");
 
@@ -875,6 +877,12 @@ int main(int argc, char *argv[])
error("Too few arguments.");
exit(1);
}
+   
+   if (!strcmp(argv[1], "help") || !strcmp(argv[1], "--help")) {
+   usage();
+   exit(0);
+   }
+
 
ezx_device_open();
 
-- 
1.7.5.4




Re: [PATCH v2] moto-boot-usb: add help parameter

2012-01-07 Thread Angelo Stefanos Mavridis Bartolome

Angelo you could add a preliminary patch to put the last "\n" in "power
off the phone\n\n" on a line by its own, and then add the message about
"help|--help" without the need to change the "power off the phone\n"
line. Commits are cheap, in a good way.

This is really nitpicking, but it is an example of how to split
generalization/refactoring changes from new stuff.


Ok. I'll do it, thanks by the tip.


avoid hparam, join the two new conditions like in:
  (!strcmp(argv[1], "help") || !strcmp(argv[1], "--help"))
and do this check after the "argc<  2" block, this way you KNOW
that argc is>= 2 already: follow the code. Diff attached.

In new code I would prefer strncmp() return value to be checked
explicitly (== 0 instead of !) because the NOT syntax does not match
the intuitive semantics here, and that really hurts my simple brain, but
this is another thing to keep in mind: when you add code to a project
you need to use the style already in use, you need to "blend in" in
order to keep the style consistent.

These little changes are a good didactic excuse, forgive the
verbosity :)

Thanks.
 I thought about maintaining the original code style with the patch's 
style, and i tried hard to do it.

 Unfortunately as you can see i did not think the condition that
 if the program gets in the comparison of 'help|--help'
 it obviously would have >= of two parameters.

Regards,
Antonio


I'll do the changes as soon as possible again and re-send the patch.
 Thanks by replying.

Regards,
Angelo



[PATCH v2] moto-boot-usb: add help parameter

2012-01-07 Thread Angelo S. Mavridis Bartolome
From: "Angelo S. Mavridis Bartolome" 

---
 src/moto-boot-usb.c |   23 ++-
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/src/moto-boot-usb.c b/src/moto-boot-usb.c
index 962a236..b389274 100644
--- a/src/moto-boot-usb.c
+++ b/src/moto-boot-usb.c
@@ -28,6 +28,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -627,7 +628,9 @@ static void usage()
 "   moto-boot-usb setflag usb|dumpkeys|passthrough\t"
 "set memory flag for gen-blob\n"
 "   moto-boot-usb off\t\t\t\t"
-"power off the phone\n\n");
+"power off the phone\n"
+"   moto-boot-usb help\t\t\t\t"
+"show this help screen\n\n");
 
info("You can use hexadecimal and decimal "
 "for  and  arguments,\n"
@@ -866,14 +869,24 @@ int main(int argc, char *argv[])
int k_offset = 0;
int mach_id = 867; /* 867 is the old EZX mach id */
int ret;
+   bool hparam = 0;
 
printf("%s\n", "$Id$");
-
-   if (argc < 2) {
+   
+   if (argc >= 2 && (!strcmp(argv[1], "help"))) 
+   hparam = 1;
+   else if (argc >= 2 && (!strcmp(argv[1], "--help"))) 
+   hparam = 1;
+   
+   if (argc < 2 || hparam) {
usage();
 
-   error("Too few arguments.");
-   exit(1);
+   if (!hparam) {
+   error("Too few arguments.");
+   exit(1);
+   }
+   
+   exit(0);
}
 
ezx_device_open();
-- 
1.7.5.4




Re: [PATCH] moto-boot-usb: add help parameter

2012-01-06 Thread Angelo Bartolome
On Fri, Jan 6, 2012 at 7:37 AM, Stefan Schmidt wrote:

> Hello.
>
> Thanks for your patch.
>
> I'm fine with the idea but have some problems with the coding style.
> It behaves differently form the other code and thus makes it harder to
> read. See below.
>
> On Thu, 2012-01-05 at 20:30, Angelo S. Mavridis Bartolome wrote:
> > From: "Angelo S. Mavridis Bartolome" 
> >
> > ---
> >  src/moto-boot-usb.c |   18 +-
> >  1 files changed, 13 insertions(+), 5 deletions(-)
> >
> > diff --git a/src/moto-boot-usb.c b/src/moto-boot-usb.c
> > index 962a236..d57d888 100644
> > --- a/src/moto-boot-usb.c
> > +++ b/src/moto-boot-usb.c
> > @@ -28,6 +28,7 @@
> >
> >  #include 
> >  #include 
> > +#include 
> >  #include 
> >  #include 
> >  #include 
> > @@ -627,7 +628,9 @@ static void usage()
> >"   moto-boot-usb setflag usb|dumpkeys|passthrough\t"
> >"set memory flag for gen-blob\n"
> >"   moto-boot-usb off\t\t\t\t"
> > -  "power off the phone\n\n");
> > +  "power off the phone\n"
> > +  "   moto-boot-usb help\t\t\t\t"
> > +  "show this help screen\n\n");
> >
> >   info("You can use hexadecimal and decimal "
> >"for  and  arguments,\n"
> > @@ -866,14 +869,19 @@ int main(int argc, char *argv[])
> >   int k_offset = 0;
> >   int mach_id = 867; /* 867 is the old EZX mach id */
> >   int ret;
> > + bool helpParam = 0;
>
> Please don't use camelCase variable name here. We just use lower case
> names as you can see from the variable above.
>
> >   printf("%s\n", "$Id$");
> > -
> > - if (argc < 2) {
> > +
> > + if (argc >= 2 && (!strcmp(argv[1], "help"))) helpParam = 1;
>
> Please write the statement after if on a new line. Even if it is only
> one statemenmt. Same for the changes below.
>
> > + else if (argc >= 2 && (!strcmp(argv[1], "--help"))) helpParam = 1;
> > +
> > + if (argc < 2 || helpParam) {
> >   usage();
> >
> > - error("Too few arguments.");
> > - exit(1);
> > + if (!helpParam) error("Too few arguments.");
> > + if (!helpParam) exit(1);
> > + exit(0);
>
> regards
> Stefan Schmidt
>
> Thanks by Reply. I'll do the changes as soon as possible  and then re-send
a patch.

best regards,
Angelo.


[PATCH] moto-boot-usb: add help parameter

2012-01-05 Thread Angelo S. Mavridis Bartolome
From: "Angelo S. Mavridis Bartolome" 

---
 src/moto-boot-usb.c |   18 +-
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/moto-boot-usb.c b/src/moto-boot-usb.c
index 962a236..d57d888 100644
--- a/src/moto-boot-usb.c
+++ b/src/moto-boot-usb.c
@@ -28,6 +28,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -627,7 +628,9 @@ static void usage()
 "   moto-boot-usb setflag usb|dumpkeys|passthrough\t"
 "set memory flag for gen-blob\n"
 "   moto-boot-usb off\t\t\t\t"
-"power off the phone\n\n");
+"power off the phone\n"
+"   moto-boot-usb help\t\t\t\t"
+"show this help screen\n\n");
 
info("You can use hexadecimal and decimal "
 "for  and  arguments,\n"
@@ -866,14 +869,19 @@ int main(int argc, char *argv[])
int k_offset = 0;
int mach_id = 867; /* 867 is the old EZX mach id */
int ret;
+   bool helpParam = 0;
 
printf("%s\n", "$Id$");
-
-   if (argc < 2) {
+   
+   if (argc >= 2 && (!strcmp(argv[1], "help"))) helpParam = 1;
+   else if (argc >= 2 && (!strcmp(argv[1], "--help"))) helpParam = 1;
+   
+   if (argc < 2 || helpParam) {
usage();
 
-   error("Too few arguments.");
-   exit(1);
+   if (!helpParam) error("Too few arguments.");
+   if (!helpParam) exit(1);
+   exit(0);
}
 
ezx_device_open();
-- 
1.7.5.4




Re: Re: rootfs for a780

2010-11-02 Thread Angelo Stefanos

Dmitri:
 Have any possibility to you enter on a client IRC? Like Xchat,mIrc... and 
enter on server freenode on this channel #openezx ?
 It's better to talk.
 i'll compile for you a image with Fluxbox running ok?



Re: rootfs for a780

2010-10-31 Thread Angelo Stefanos
Hi Dmitri.
 At this time we don't have very rootfs's for EZX  phones about Angstrom... 
it uses Kdrive to be the Xserver
 I'm developing a new Distribution for these phones,named Metano Linux,that 
uses Xorg as Xserver and run's fine,for example,Fluxbox window manager,if you 
want a special rootfs with things that you want,please say to me... i can help 
you



QTopia of Muromec - Touchscreen don`t work

2010-07-06 Thread Angelo
Hello. My name is Angelo..and i tried to run the QTopia distributed by 
Muromec...but the Touchscreen does not work...i use A1200.
   The colors shows normal...the kernel is 2.6.30...i tried the latest 
kernel,but the graphicals don`t run...


Thanks.
   Angelo.   Brazil . SP - Sao Paulo



Some patches for 2.6.24

2010-07-06 Thread Angelo
Here i paste some patches to OpenEZX old 2.6.24 kernel...But makes the 
rootfs images builded for A780 with graphicals parts runs on 
A1200anybody can port it to news kernels.
Its named android-*.patch because is projected to run Android on 
A1200,but works in anothers rootfs.


I will paste one-by-one in my emails
--- offical/linux-2.6.24/arch/arm/mach-pxa/ezx-a1200.c  2008-08-03 
14:10:26.981376264 +0800
+++ android/linux-2.6.24/arch/arm/mach-pxa/ezx-a1200.c  2008-08-03 
14:19:50.586695232 +0800
@@ -149,20 +149,29 @@
 /* PCAP */
 static int a1200_pcap_init(void)
 {
-   /* FIXME */
-   ezx_pcap_write(PCAP_REG_INT_SEL, 0x0); /* wrong */
-   ezx_pcap_write(PCAP_REG_SWCTRL, 0x2ee6); /* partially wrong */
-   ezx_pcap_write(PCAP_REG_VREG1, 0x15778e3); /* wrong */
-   ezx_pcap_write(PCAP_REG_VREG2, 0x810234); /* partially wrong */
-   ezx_pcap_write(PCAP_REG_AUXVREG, 0x1024bec); /* wrong */
-   ezx_pcap_write(PCAP_REG_PWR, 0x94108); /* partially wrong */
-   ezx_pcap_write(PCAP_REG_AUXVREG_MASK, 0x214d48); /* wrong */
-   ezx_pcap_write(PCAP_REG_BUSCTRL, 0x2a0); /* wrong */
-   ezx_pcap_write(PCAP_REG_LOWPWR, 0x1d9610c);
-   ezx_pcap_write(PCAP_REG_PERIPH, 0x0); /* wrong */
-   ezx_pcap_write(PCAP_REG_GP, 0x107); /* probably unnecessary */
-
-   return 0;
+   ezx_pcap_write(PCAP_REG_MSR, 0x007BEF7C);
+   ezx_pcap_write(PCAP_REG_INT_SEL,0x);
+   ezx_pcap_write(PCAP_REG_SWCTRL,0x2EE6);
+   ezx_pcap_write(PCAP_REG_VREG1,0x2EE6);
+   ezx_pcap_write(PCAP_REG_VREG2,0x00810234);
+
+   ezx_pcap_write(PCAP_REG_AUXVREG,0x01024BEC);
+   ezx_pcap_write(PCAP_REG_BATT,0x00228E00);
+   ezx_pcap_write(PCAP_REG_ADC1,0x001A00E4);
+   ezx_pcap_write(PCAP_REG_CODEC,0x0800);
+   ezx_pcap_write(PCAP_REG_RX_AMPS,0x0003);
+
+   ezx_pcap_write(PCAP_REG_ST_DAC,0x00099700);
+   ezx_pcap_write(PCAP_REG_PWR,0x00094108);
+   ezx_pcap_write(PCAP_REG_BUSCTRL,0x02A0);
+   ezx_pcap_write(PCAP_REG_AUXVREG_MASK,0x00214D48);
+   ezx_pcap_write(PCAP_REG_LOWPWR,0x01D9610C);
+
+   ezx_pcap_write(PCAP_REG_PERIPH_MASK,0x);
+   ezx_pcap_write(PCAP_REG_TX_AMPS,0xE000);
+   ezx_pcap_write(PCAP_REG_GP,0x0107);
+   
+return 0;
 }
 
 static struct pcap_platform_data a1200_pcap_platform_data = {


Patches for 2.6.24

2010-07-06 Thread Angelo
Here i paste some patches to OpenEZX old 2.6.24 kernel...But makes the 
rootfs images builded for A780 with graphicals parts runs on 
A1200anybody can port it to news kernels.
Its named android-*.patch because is projected to run Android on 
A1200,but works in anothers rootfs.


I will paste one-by-one in my emails


--- offical/linux-2.6.24/arch/arm/mach-pxa/ezx-a1200.c  2008-08-03 
14:10:26.981376264 +0800
+++ android/linux-2.6.24/arch/arm/mach-pxa/ezx-a1200.c  2008-08-03 
14:15:44.606089968 +0800
@@ -126,8 +126,8 @@
.pixclock = 192308,
.xres = 240,
.yres = 320,
-   .bpp = 18,
-   .nonstd = 32,
+   .bpp = 16,
+   .nonstd = 0,
.hsync_len = 10,
.left_margin = 20,
.right_margin = 10,
@@ -140,8 +140,8 @@
 static struct pxafb_mach_info a1200_fb_info = {
.modes = &mode_a1200,
.num_modes = 1,
-   .lccr0 = 0x022008B8,
-   .lccr3 = 0xC130FF13,
+   .lccr0 = 0x042008B8,
+   .lccr3 = 0xC430FF13,
.pxafb_backlight_power = &ezx_backlight_power,
.pxafb_lcd_power = &ezx_lcd_power,
 };


Patches for 2.6.24

2010-07-06 Thread Angelo
Here i paste some patches to OpenEZX old 2.6.24 kernel...But makes the 
rootfs images builded for A780 with graphicals parts runs on 
A1200anybody can port it to news kernels.
Its named android-*.patch because is projected to run Android on 
A1200,but works in anothers rootfs.


I will paste one-by-one in my emails

--- offical/linux-2.6.24/drivers/input/touchscreen/pcap_ts.c2008-08-03 
14:10:24.582740912 +0800
+++ android/linux-2.6.24/drivers/input/touchscreen/pcap_ts.c2008-08-03 
14:23:32.384976768 +0800
@@ -156,8 +156,8 @@
enable_irq(pcap_ts->irq_touch);
} else {
DEBUGP("DOWN\n");
-   input_report_abs(pcap_ts->input, ABS_X, pcap_ts->x);
-   input_report_abs(pcap_ts->input, ABS_Y, pcap_ts->y);
+   input_report_abs(pcap_ts->input, ABS_X, X_AXIS_MAX - 
X_AXIS_MIN - pcap_ts->x);
+   input_report_abs(pcap_ts->input, ABS_Y, Y_AXIS_MAX - 
Y_AXIS_MIN - pcap_ts->y);
 
/* switch back to pressure read mode */
pcap_ts_mode(pcap_ts, PRESSURE_MEASUREMENT);


Patches one-by-one.... Some Patches to OpenEZX Kernels 2.6.24

2010-07-06 Thread Angelo
Here i paste some patches to OpenEZX old 2.6.24 kernel...But makes the 
rootfs images builded for A780 with graphicals parts runs on 
A1200anybody can port it to news kernels.
Its named android-*.patch because is projected to run Android on 
A1200,but works in anothers rootfs.


I will paste one-by-one in my emails

android-framebuffer.patch

--- offical/linux-2.6.24/drivers/video/pxafb.c  2008-08-03 
16:42:41.186365264 +0800
+++ android/linux-2.6.24/drivers/video/pxafb.c  2008-08-03 
15:32:43.0 +0800
@@ -48,6 +48,8 
@@ 
#include 
   
#include 
  
  

+#define C_PAN_DISPLAY 
10 
+  

/*

 * Complain if VAR is out of 
range.  
 
*/   

@@ -276,7 +278,7 
@@   
   var->sync   = 
mode->sync; 
   var->grayscale  = 
mode->cmap_greyscale;   
   var->xres_virtual   = 
var->xres;  
-   var->yres_virtual   = 
var->yres;  
+   var->yres_virtual   = 2 * 
var->yres;  
} 

  

/*

@@ -512,6 +514,14 
@@  
   return 
-EINVAL;   
} 

  

+static int pxafb_pan_display(struct fb_var_screeninfo *var, struct 
fb_info *info)
+{ 

+   struct pxafb_info *fbi = (struct pxafb_info 
*)info;   
+  

+   fbi->fb.var.yoffset = 
var->yoffset;   
+   pxafb_schedule_work(fbi, 
C_PAN_DISPLAY);  
+} 

+  

static struct fb_ops pxafb_ops = 
{   
   .owner  = 
THIS_MODULE,
   .fb_check_var   = 
pxafb_check_var,
@@ -522,6 +532,7 
@@   
   .fb_imageblit   = 
cfb_imageblit,  
   .fb_blank   = 
pxafb_blank,
   .fb_mmap= 
pxafb_mmap, 
+   .fb_pan_display = 
pxafb_pan_display,  
};

  

/*

@@ -890,6 +901,7 
@@   
  

   FDADR0 = 
fbi->fdadr0; 
   FDADR1 = 
fbi->fdadr1; 
+   DFBR0 = fbi->fdadr0 | 
1;  
   LCCR0 |= 
LCCR0_ENB;   
  

   pr_debug("FDADR0 0x%08x\n", (unsigned int) 
FDADR0);   
@@ -1034,6 +1046,15 
@@
   __pxafb_backlight_power(fbi, 
1);  
   
} 
   
break;
+

Re: [Fwd: Re: Kernel source code]

2010-05-18 Thread angelo

Antonio Ospite escreveu:

On Tue, 18 May 2010 12:49:13 -0300
angelo  wrote:


  

I had resolve the problem... But the correct patch is:
http://www.rpsys.net/openzaurus/patches/mmcsd_no_scr_check-r2.patch



So with this one you can get the latest kernel to work with your card?
This workaround is different from the fix Andreas was pointing to,
isnt'it?

Ciao,
   Antonio
  

This patch work with the Linux Kernel 2.6.24... I use it.

 Now i having problems to init the rootfs,But ok,i having help with my 
friends Thanks.

Angelo




So you didn't try latest openezx kernel (now updated to 2.6.34), with or
without that patch, did you?

Ciao,
   Antonio

  

I tryed to compile and only show funny colors... It do not boot correctly
Can you help me? I  using  the  last  version compiled 
by:http://people.openezx.org/ao2/tmp/openezx-i686-20090818-armv5te-arm-oe-linux-gnueabi-toolchain.tar.bz


Regards.
   Angelo



Re: [Fwd: Re: Kernel source code]

2010-05-18 Thread angelo

Antonio Ospite escreveu:

On Tue, 18 May 2010 12:49:13 -0300
angelo  wrote:


  

I had resolve the problem... But the correct patch is:
http://www.rpsys.net/openzaurus/patches/mmcsd_no_scr_check-r2.patch



So with this one you can get the latest kernel to work with your card?
This workaround is different from the fix Andreas was pointing to,
isnt'it?

Ciao,
   Antonio
  

This patch work with the Linux Kernel 2.6.24... I use it.

 Now i having problems to init the rootfs,But ok,i having help with my 
friends Thanks.

Angelo




So you didn't try latest openezx kernel (now updated to 2.6.34), with or
without that patch, did you?

Ciao,
   Antonio

  

I had tryed... But i not could... i got errors in the compilation




Re: [Fwd: Re: Kernel source code]

2010-05-18 Thread angelo

Antonio Ospite escreveu:

On Tue, 18 May 2010 10:18:29 -0300
angelo  wrote:

  
 


Do you have any patch to the kernel recognize the sd-card?

Show error:

/mmc0: unrecognized SCR structure version 2.
mmc0: error -22 whilst initialising SD card./



[...]
  
  
  

I had resolve the problem... But the correct patch is:
http://www.rpsys.net/openzaurus/patches/mmcsd_no_scr_check-r2.patch




So with this one you can get the latest kernel to work with your card?
This workaround is different from the fix Andreas was pointing to,
isnt'it?

Ciao,
   Antonio

  

This patch work with the Linux Kernel 2.6.24... I use it.

Now i having problems to init the rootfs,But ok,i having help with my 
friends Thanks.

Angelo




Re: [Fwd: Re: Kernel source code]

2010-05-18 Thread angelo

Antonio Ospite escreveu:

On Mon, 17 May 2010 22:14:33 -0300
angelo  wrote:

  

Antonio Ospite escreveu:


On Mon, 17 May 2010 11:59:02 -0300
angelo  wrote:

  
  

Andreas Mohr escreveu:



On Sun, May 16, 2010 at 12:00:01PM +0200, 
openezx-devel-requ...@lists.openezx.org wrote:
  
  
  

Do you have any patch to the kernel recognize the sd-card?

Show error:

/mmc0: unrecognized SCR structure version 2.
mmc0: error -22 whilst initialising SD card./




Do some internet research.

This is the error message that I had been debugging quite a while ago,
unsuccessfully at that time, unfortunately.
Some months later someone else fortunately managed to nail it:
it is an SD struct member mis-alignment issue (quite directly causing the
"unrecognized SCR structure version 2" message), patch _is_ available,
but I don't know any specifics now, would need research to find this
patch (I publicly thanked the one who managed to fix it, though).

Andreas Mohr
 
  
  

I found here: http://lists.denx.de/pipermail/u-boot/2009-April/050516.html
It this patch?





This patch is for u-boot, not for linux kernel.

Ciao,
   Antonio

  
  

I have found the correct patch,but i receive a error of permission
 I had tried to edit permissions,but  do not effect Can help Me?




Please send the exact error you get, otherwise we cannot do any guess
about what the cause is.

Also, tell where the correct patch is, so others will find with search
engines in future.

Ciao,
   Antonio

  

I had resolve the problem... But the correct patch is:
http://www.rpsys.net/openzaurus/patches/mmcsd_no_scr_check-r2.patch



Re: [Fwd: Re: Kernel source code]

2010-05-17 Thread angelo

Antonio Ospite escreveu:

On Mon, 17 May 2010 11:59:02 -0300
angelo  wrote:

  

Andreas Mohr escreveu:


On Sun, May 16, 2010 at 12:00:01PM +0200, 
openezx-devel-requ...@lists.openezx.org wrote:
  
  

Do you have any patch to the kernel recognize the sd-card?

Show error:

/mmc0: unrecognized SCR structure version 2.
mmc0: error -22 whilst initialising SD card./



Do some internet research.

This is the error message that I had been debugging quite a while ago,
unsuccessfully at that time, unfortunately.
Some months later someone else fortunately managed to nail it:
it is an SD struct member mis-alignment issue (quite directly causing the
"unrecognized SCR structure version 2" message), patch _is_ available,
but I don't know any specifics now, would need research to find this
patch (I publicly thanked the one who managed to fix it, though).

Andreas Mohr
 
  

I found here: http://lists.denx.de/pipermail/u-boot/2009-April/050516.html
It this patch?





This patch is for u-boot, not for linux kernel.

Ciao,
   Antonio

  

I have found the correct patch,but i receive a error of permission
I had tried to edit permissions,but  do not effect Can help Me?

Thanks
Angelo



Re: [Fwd: Re: Kernel source code]

2010-05-17 Thread angelo

Andreas Mohr escreveu:

On Sun, May 16, 2010 at 12:00:01PM +0200, 
openezx-devel-requ...@lists.openezx.org wrote:
  

Do you have any patch to the kernel recognize the sd-card?

Show error:

/mmc0: unrecognized SCR structure version 2.
mmc0: error -22 whilst initialising SD card./



Do some internet research.

This is the error message that I had been debugging quite a while ago,
unsuccessfully at that time, unfortunately.
Some months later someone else fortunately managed to nail it:
it is an SD struct member mis-alignment issue (quite directly causing the
"unrecognized SCR structure version 2" message), patch _is_ available,
but I don't know any specifics now, would need research to find this
patch (I publicly thanked the one who managed to fix it, though).

Andreas Mohr


  


I found here: http://lists.denx.de/pipermail/u-boot/2009-April/050516.html
It this patch?



Toolchain to compile openezx

2010-05-16 Thread angelo
I need a new link to download the toolchain to compile the openezx,this 
link ( http://www.angstrom-distribution.org/unstable/toolchain/ ) don´t 
work

Thanks for all.




Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Do you have any patch to the kernel recognize the sd-card?

Show error:

/mmc0: unrecognized SCR structure version 2.
mmc0: error -22 whilst initialising SD card./


Thanks

Angelo.



Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Antonio Ospite escreveu:

On Sat, 15 May 2010 16:53:33 -0300
angelo  wrote:

  

You can grab a .tgz snapshot from here:
http://git.openezx.org/openezx.git?a=snapshot;h=refs/heads/ezx/current;sf=tgz 



[...]
  

I can compile this kernel with the tool arm-none-linux-gnueabi for a1200?




I guess so, if not, you can get a tested toolchain here:
http://people.openezx.org/ao2/deploy/sdk/

Ciao,
   Antonio

  

Ok. What file i choose?

Thank.



Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

angelo escreveu:

Antonio Ospite escreveu:

On Sat, 15 May 2010 16:30:17 -0300
angelo  wrote:

 

Antonio Ospite escreveu:
   

On Sat, 15 May 2010 13:51:55 -0300
angelo  wrote:
  

[...]
 

Angelo if you are interested in having latest openezx kernel working,
follow the guide on the wiki.
http://wiki.openezx.org/Kernel_hacking_-_linux-2.6
and tell us the _exact_ message the kernel gives you.

  

[...]
 
Please,can you show to me one alternate link  for  download  the 
latest  openezx  kernel? I can not download from the git...





You can grab a .tgz snapshot from here:
http://git.openezx.org/openezx.git?a=snapshot;h=refs/heads/ezx/current;sf=tgz 



or clone via http if the git protocol is blocked by some firewall:
git clone http://git.openezx.org/openezx.git
(note that you won't get progress report via http you just have to
wait for the clone operation to complete, with no visual feedback)

Regards,
   Antonio

  

Thank you.

The command git clone do not work in my linux.

I trying now to download a snapshot. Thanks.


I can compile this kernel with the tool arm-none-linux-gnueabi for a1200?

Thank




Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Antonio Ospite escreveu:

On Sat, 15 May 2010 16:30:17 -0300
angelo  wrote:

  

Antonio Ospite escreveu:


On Sat, 15 May 2010 13:51:55 -0300
angelo  wrote:
  

[...]
  

Angelo if you are interested in having latest openezx kernel working,
follow the guide on the wiki.
http://wiki.openezx.org/Kernel_hacking_-_linux-2.6
and tell us the _exact_ message the kernel gives you.

  

[...]
  
Please,can you show to me one alternate link  for  download  the latest  
openezx  kernel? I can not download from the git...





You can grab a .tgz snapshot from here:
http://git.openezx.org/openezx.git?a=snapshot;h=refs/heads/ezx/current;sf=tgz

or clone via http if the git protocol is blocked by some firewall:
git clone http://git.openezx.org/openezx.git
(note that you won't get progress report via http you just have to
wait for the clone operation to complete, with no visual feedback)

Regards,
   Antonio

  

Thank you.

The command git clone do not work in my linux.

I trying now to download a snapshot. Thanks.



Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Antonio Ospite escreveu:

On Sat, 15 May 2010 13:51:55 -0300
angelo  wrote:
 
  

Friends.

Thank you for all help. It work here,the Android Linux it running now in 
my cell.

But others kernels don´t work..




Angelo if you are interested in having latest openezx kernel working,
follow the guide on the wiki.
http://wiki.openezx.org/Kernel_hacking_-_linux-2.6
and tell us the _exact_ message the kernel gives you.

  

But all ok.

Thank you

Thanks OPENEZX.




You're welcome.

If you put online any videos of android on a1200, please paste the link
here.

Regards,
   Antonio

  
Please,can you show to me one alternate link  for  download  the latest  
openezx  kernel? I can not download from the git...


Thanks.




Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Antonio Ospite escreveu:

On Sat, 15 May 2010 13:32:52 -0300
"Luis Claudio R. Goncalves"  wrote:

Antonio:
  

| >| >| >If you use "param" in menu.lst you have to pass a full command line to
| >| >| >the kernel, try:
| >| >| >
| >| >| >mem=...@0xa000 mem=...@0xac00 console=tty1 root=/dev/mmcblk0p2
| >| >| >rootfstype=ext2 rootdelay=3
| >| >| >ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug
| >| >| >



Angelo:
  

| >| >| Ok...
| >| >| | Worked for me placing root=b301 (partition),but i need telnet
| >| >the
| >| >| cell for my project. What the ip,how to configure the ip on
| >| >| boot-options?
| >| >| | I trying 192.168.0.2 ; 192.168.1.2 ; but don´t work..
| >| >| Thankyou. I send this email to you and
| >| >| openezx-de...@lists.openezx.org. It´s correct?
| >| >



It's fine how you sent the mail, thanks.

Luis:
  

| >| >Angelo,
| >| >
| >| >Your kernel command line has, along with other parameters, these:
| >| >
| >| >   ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug
| >| >
| >| >In short, you can ssh to 192.168.0.200. In order to be able to ssh my 
phone
| >| >I have to perform the following steps:
| >| >



Correction, phone IP will be 192.168.0.202 with 2 not 0 as last digit.
I suggest you follow
http://wiki.openmoko.org/wiki/USB_Networking#Simple_Manual_Linux_Configuration
Which should definitely work for us as well.

Luis' steps might work but they looked different from how we generally
do this.

  

Angleo,

All the stepsI mentioned are supposed to be executed on your PC, not on the
phone. So, if your kernel is booting fine on the phone, you don't need to
mess with it :)




Agreed!

Regards,
   Antonio

P.S. please try quoting only the relevant part on reply :)

  


Friends.

Thank you for all help. It work here,the Android Linux it running now in 
my cell.

But others kernels don´t work..

But all ok.

Thank you

Thanks OPENEZX.




Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Luis Claudio R. Goncalves escreveu:

On Sat, May 15, 2010 at 01:09:02PM -0300, angelo wrote:
| Luis Claudio R. Goncalves escreveu:
| >On Sat, May 15, 2010 at 12:26:16PM -0300, angelo wrote:
| >| Antonio Ospite escreveu:
| >| >Hi, Angelo I reformatted the message to better follow the discussion,
| >| >you can reply inline braking in pieces the quoted original message, it
| >| >will be easier and you don't have to copy content around.
| >| >
| >| >And be sure to "Reply to All" for future discussions, so that the reply
| >| >arrives both to me and the list. Or just write to the list only if in
| >| >doubt.
| >| >
| >| >On Sat, 15 May 2010 11:03:58 -0300
| >| >angelo  wrote:
| >| >
| >| >>Antonio Ospite escreveu:
| >| >>>On Fri, 14 May 2010 22:39:19 -0300
| >| >>>angelo  wrote:
| >| >>>
| >| >>>
| >| >>>Ok, two different issues, card detection and rootfs location, we'd
| >| >>>better not mix them for now, focus on the first one.
| >| >>>
| >| >>>Where did you get the working kernel? How is it named? Which version is
| >| >>>it? On the non-working kernel, which error is printed? I mean the exact
| >| >>>error message.
| >| >>On the Kernel that no recognize my sd-card,it the original by Linus 
Torvalds
| >| >>To compile,i first patched with the openezx patches,after
| >| >>patched,i compile the kernel (linus torvalds 2.6.24) with
| >| >>toolchain,the compile works successfully,i run on my cell with
| >| >>dual-boot,but do not recognize my sd-card.
| >| >>
| >| >
| >| >Try always with latest kernel first, bugs are fixed every day.
| >| >Follow http://wiki.openezx.org/Kernel_hacking_-_linux-2.6
| >| >
| >| >>>Then a stupid question, have you tried with a different card?
| >| >>>
| >| >>No,i don´t try,i have only one sd-card :(
| >| >>
| >| >
| >| >I see. MicroSD btw, that's the form factor A1200 uses, but you know
| >| >that.
| >| >
| >| >>*My menu.lst on my card:
| >| >>*/
| >| >>machid 1740
| >| >>title  Motorola (default)
| >| >>kernel /boot/default
| >| >>
| >| >>title   A1200 OpenEZX
| >| >>kernel/boot/zImage-200906161422
| >| >>param mem=...@0xa000 mem=...@0xac00
| >| >>machid1742/
| >| >>
| >| >>
| >| >> I downloaded the secound kernel(of the menu.lst) from 
http://people.openezx.org/wyrm/images/200906161422/zImage-200906161422
| >| >>I rename to zImage-2 and i boot with it.This recognize my
| >| >>sd-card,but don´t boot with the correct partition.
| >| >
| >| >If you use "param" in menu.lst you have to pass a full command line to
| >| >the kernel, try:
| >| >
| >| >mem=...@0xa000 mem=...@0xac00 console=tty1 root=/dev/mmcblk0p2
| >| >rootfstype=ext2 rootdelay=3
| >| >ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug
| >| >
| >| >everything on ONE line, and you might want to change 'root' value
| >| >according to you partition table on the MicroSD.
| >| >Ah, and watch out the trailing / in the machid entry.
| >| >
| >| >Kernels from wyrm are usually just the openezx official ones, so try the
| >| >guide from the wiki and let us know.
| >| >
| >| >>>About rootfs location, print the exact message the working kernel gives
| >| >>>you about the 5511 address.
| >| >>>
| >| >>It show this on top:
| >| >>mmc0: new SD card at address 5571.
| >| >>
| >| >>and show the avaliable partitions under.
| >| >>
| >| >
| >| >One of the partitions needs to be used as root, not this address.
| >| >>>The openezx kernel can be found on http://git.openezx.org/openezx.git
| >| >>>building instructions are on
| >| >>>http://wiki.openezx.org/Kernel_hacking_-_linux-2.6
| >| >>>
| >| >>>Cool project. Keep us posted.
| >| >>Thanks Antonio.
| >| >>
| >| >> Now my battery its 0%,then i charging it now.
| >| >>
| >| >
| >| >I am looking forward to see how the latest code behave.
| >| >
| >| >Regards,
| >| >   Antonio
| >| >
| >| Ok...
| >| | Worked for me placing root=b301 (partition),but i need telnet
| >the
| >| cell for my project. What the ip,how to configure the ip on
| >| boot-options?
| >| | I trying 192.168.0.2 ; 192.168.1.2 ; but don´t work..
| >| Thankyou. I send this email to you and
| >| openezx-de...@lists.op

Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Luis Claudio R. Goncalves escreveu:

On Sat, May 15, 2010 at 12:26:16PM -0300, angelo wrote:
| Antonio Ospite escreveu:
| >Hi, Angelo I reformatted the message to better follow the discussion,
| >you can reply inline braking in pieces the quoted original message, it
| >will be easier and you don't have to copy content around.
| >
| >And be sure to "Reply to All" for future discussions, so that the reply
| >arrives both to me and the list. Or just write to the list only if in
| >doubt.
| >
| >On Sat, 15 May 2010 11:03:58 -0300
| >angelo  wrote:
| >
| >>Antonio Ospite escreveu:
| >>>On Fri, 14 May 2010 22:39:19 -0300
| >>>angelo  wrote:
| >>>
| >>>
| >>>Ok, two different issues, card detection and rootfs location, we'd
| >>>better not mix them for now, focus on the first one.
| >>>
| >>>Where did you get the working kernel? How is it named? Which version is
| >>>it? On the non-working kernel, which error is printed? I mean the exact
| >>>error message.
| >>On the Kernel that no recognize my sd-card,it the original by Linus Torvalds
| >>To compile,i first patched with the openezx patches,after
| >>patched,i compile the kernel (linus torvalds 2.6.24) with
| >>toolchain,the compile works successfully,i run on my cell with
| >>dual-boot,but do not recognize my sd-card.
| >>
| >
| >Try always with latest kernel first, bugs are fixed every day.
| >Follow http://wiki.openezx.org/Kernel_hacking_-_linux-2.6
| >
| >>>Then a stupid question, have you tried with a different card?
| >>>
| >>No,i don´t try,i have only one sd-card :(
| >>
| >
| >I see. MicroSD btw, that's the form factor A1200 uses, but you know
| >that.
| >
| >>*My menu.lst on my card:
| >>*/
| >>machid 1740
| >>title  Motorola (default)
| >>kernel /boot/default
| >>
| >>title   A1200 OpenEZX
| >>kernel/boot/zImage-200906161422
| >>param mem=...@0xa000 mem=...@0xac00
| >>machid1742/
| >>
| >>
| >> I downloaded the secound kernel(of the menu.lst) from 
http://people.openezx.org/wyrm/images/200906161422/zImage-200906161422
| >>I rename to zImage-2 and i boot with it.This recognize my
| >>sd-card,but don´t boot with the correct partition.
| >
| >If you use "param" in menu.lst you have to pass a full command line to
| >the kernel, try:
| >
| >mem=...@0xa000 mem=...@0xac00 console=tty1 root=/dev/mmcblk0p2
| >rootfstype=ext2 rootdelay=3
| >ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug
| >
| >everything on ONE line, and you might want to change 'root' value
| >according to you partition table on the MicroSD.
| >Ah, and watch out the trailing / in the machid entry.
| >
| >Kernels from wyrm are usually just the openezx official ones, so try the
| >guide from the wiki and let us know.
| >
| >>>About rootfs location, print the exact message the working kernel gives
| >>>you about the 5511 address.
| >>>
| >>It show this on top:
| >>mmc0: new SD card at address 5571.
| >>
| >>and show the avaliable partitions under.
| >>
| >
| >One of the partitions needs to be used as root, not this address.
| >>>The openezx kernel can be found on http://git.openezx.org/openezx.git
| >>>building instructions are on
| >>>http://wiki.openezx.org/Kernel_hacking_-_linux-2.6
| >>>
| >>>Cool project. Keep us posted.
| >>Thanks Antonio.
| >>
| >> Now my battery its 0%,then i charging it now.
| >>
| >
| >I am looking forward to see how the latest code behave.
| >
| >Regards,
| >   Antonio
| >
| Ok...
| 
| Worked for me placing root=b301 (partition),but i need telnet the

| cell for my project. What the ip,how to configure the ip on
| boot-options?
| 
| I trying 192.168.0.2 ; 192.168.1.2 ; but don´t work..

| Thankyou. I send this email to you and
| openezx-de...@lists.openezx.org. It´s correct?

Angelo,

Your kernel command line has, along with other parameters, these:

   ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug

In short, you can ssh to 192.168.0.200. In order to be able to ssh my phone
I have to perform the following steps:

* boot the kernel on your phone. After you see the boot ended, unplug the
  USB cable and plug it again. I can't recall if it has been already fixed
  (or even if it is a distro problem in the PC side) but I have to do that
  in order to my distro identify the usbnet device. Then:

* As root:
  - ifconfig usb0 192.168.0.199
  - route add -host 192.168.0.200 usb0

* And you are ready to:
  - ssh r...@192.168.0.202

Keep in mind that sshd is enabled in most of the rootfs images but telnet
is not always enabled. I suggest you use ssh instead of telnet or at least
ssh to your cell phone, enable telnet and save this setup.

Regards,
Luis
  

Thank you.

I try to ifconfig usb0 192.168.0.199,but appear one error.
usb0: ERROR while getting interface flags: Device absent
usb0: ERROR while getting interface flags: Device absent

the others commands appear the same error.

How to solve this?

Thanks



Re: [Fwd: Re: Kernel source code]

2010-05-15 Thread angelo

Antonio Ospite escreveu:

Hi, Angelo I reformatted the message to better follow the discussion,
you can reply inline braking in pieces the quoted original message, it
will be easier and you don't have to copy content around.

And be sure to "Reply to All" for future discussions, so that the reply
arrives both to me and the list. Or just write to the list only if in
doubt.

On Sat, 15 May 2010 11:03:58 -0300
angelo  wrote:

  

Antonio Ospite escreveu:


On Fri, 14 May 2010 22:39:19 -0300
angelo  wrote:


Ok, two different issues, card detection and rootfs location, we'd
better not mix them for now, focus on the first one.

Where did you get the working kernel? How is it named? Which version is
it? On the non-working kernel, which error is printed? I mean the exact
error message.
  

On the Kernel that no recognize my sd-card,it the original by Linus Torvalds
To compile,i first patched with the openezx patches,after patched,i 
compile the kernel (linus torvalds 2.6.24) with toolchain,the compile 
works successfully,i run on my cell with dual-boot,but do not recognize 
my sd-card.





Try always with latest kernel first, bugs are fixed every day.
Follow http://wiki.openezx.org/Kernel_hacking_-_linux-2.6

  

Then a stupid question, have you tried with a different card?

  

No,i don´t try,i have only one sd-card :(




I see. MicroSD btw, that's the form factor A1200 uses, but you know
that.

  

*My menu.lst on my card:
*/
machid 1740
title  Motorola (default)
kernel /boot/default

title   A1200 OpenEZX
kernel/boot/zImage-200906161422
param mem=...@0xa000 mem=...@0xac00
machid1742/


 I downloaded the secound kernel(of the menu.lst) from 
http://people.openezx.org/wyrm/images/200906161422/zImage-200906161422
I rename to zImage-2 and i boot with it.This recognize my sd-card,but 
don´t boot with the correct partition.
 



If you use "param" in menu.lst you have to pass a full command line to
the kernel, try:

mem=...@0xa000 mem=...@0xac00 console=tty1 root=/dev/mmcblk0p2
rootfstype=ext2 rootdelay=3
ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug

everything on ONE line, and you might want to change 'root' value
according to you partition table on the MicroSD.
Ah, and watch out the trailing / in the machid entry.

Kernels from wyrm are usually just the openezx official ones, so try the
guide from the wiki and let us know. 

  

About rootfs location, print the exact message the working kernel gives
you about the 5511 address.

  

It show this on top:
mmc0: new SD card at address 5571.

and show the avaliable partitions under.




One of the partitions needs to be used as root, not this address.
 
  
  
The openezx kernel can be found on http://git.openezx.org/openezx.git

building instructions are on
http://wiki.openezx.org/Kernel_hacking_-_linux-2.6

Cool project. Keep us posted.
  

Thanks Antonio.

 Now my battery its 0%,then i charging it now.




I am looking forward to see how the latest code behave.

Regards,
   Antonio

  

Ok...

Worked for me placing root=b301 (partition),but i need telnet the cell 
for my project. What the ip,how to configure the ip on boot-options?


I trying 192.168.0.2 ; 192.168.1.2 ; but don´t work..
Thankyou. I send this email to you and openezx-de...@lists.openezx.org. 
It´s correct?




[Fwd: Re: Kernel source code]

2010-05-14 Thread angelo


--- Begin Message ---

Antonio Ospite escreveu:

On Fri, 14 May 2010 18:59:56 -0300
angelo  wrote:

  

Hello
I am from Brazil,and i need a old version of OpenEzx kernel source code. 
Do you have the Download link for anything old version? My SD card is 
only recognized by a  compiled version,but  not work  correctly,i need 
old source of kernel for me .





Hi Angelo, if you know what kernel version you need you could try
getting it from the git repository itself by grepping through the
history. Give us more details.

If instead a simple patch is needed to make your SD work, maybe we could
consider adding it to our repository so you can track the latest kernel
version.

  

Thank you,and sorry by my bad english.
Angelo




Regards,
   Antonio

P.S. Consider subscribing to the list, I had to pass your message
manually.

  


Hi Antonio.

In reality i tried to compile a linux kernel with the openezx patches,i 
tried to compile the 2.6.24 version,i can compile successfully,but my 
kernel  do not recognize the rootfs on the sd card,show error.I had 
tried one old compiled openezx kernel,it recognize the sd,and work,but 
show a error to append the correct location of rootfs,im my case,this 
show address  5511 for SD,but i tried to edit boot-options on 
menu.lst,to place the correct location,on line root=5517,but no effects 
appear. Then i realized that re-compile the kernel with this 
modification,but i dont found the source code. Can you give me a 
download link,or a patch for arrange this problem?
I is on a project of port Android Linux for the A1200 EZX Phone,but 
this error kill me !!! :)



Thank you.

Angelo

--- End Message ---


Kernel source code

2010-05-14 Thread angelo

Hello
I am from Brazil,and i need a old version of OpenEzx kernel source code. 
Do you have the Download link for anything old version? My SD card is 
only recognized by a  compiled version,but  not work  correctly,i need 
old source of kernel for me .


Thank you,and sorry by my bad english.
Angelo