android - making basic linux 2.6.27 up - IMX27ads based platform - hanging at Freeing init memory - please help me

114 views
Skip to first unread message

vadivelan m

unread,
Nov 3, 2009, 4:26:26 AM11/3/09
to android-porting
Hi ,

I am trying to port android 1.5 on IMX27 based platform. But i am
blocked in making linux 2.6.27 up.

Its blocking at Freeing init memory .
While exploring through the code

init/main.c -> rest_init -> kernel_init -> init_post

Here it is trying to open the initial consloe
sys_open(initial consloe...) is get hanging . ... i could not see
any prints after Freeing init memory.......


While exploring sys_open -> do_sys_open-> fd_install() --> here
after no print statements are coming .....

we have tried

---> console baud rate -- its ok 115200n8

please see the logs below and help me to go forward..... This will
help others also. .. . .


Launch LinuxUncompressing
> Linux......................................................................
> done, booting the kernel.
> Linux version 2.6.28-arm2 (ro...@localhost.localdomain) (gcc version 4.1.1) #75
> Wed Oct 28 13:12:53 IST 2009
> CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
> CPU: VIVT data cache, VIVT instruction cache
> Machine: Freescale i.MX27ADS
> Memory policy: ECC disabled, Data cache writeback
> Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
> Kernel command line: root=/dev/ram rw mem=64M console=ttymxc0,115200
> MXC GPIO hardware
> MXC IRQ initialized
> PID hash table entries: 256 (order: 8, 1024 bytes)
>
> Clock input source is 26000000
>
> After for loop
> test1
> CCM_PCCR1 = fe5aef88
> b4 spll_clk.disableConsole: colour dummy device 80x30
> Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
> Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
> Memory: 64MB = 64MB total
> Memory: 60780KB available (1956K code, 252K data, 92K init)
> Calibrating delay loop... 132.71 BogoMIPS (lpj=663552)
> Security Framework initialized
> Mount-cache hash table entries: 512
> CPU: Testing write buffer coherency: ok
> kernel thread started : M.V<5>SCSI subsystem initialized
> checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
> do_sys_open entry<6>Freeing initrd memory: 1792K
> NetWinder Floating Point Emulator V0.97 (extended precision)
> VFS: Disk quotas dquot_6.5.1
> Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> JFS: nTxBlock = 489, nTxLock = 3914
> msgmni has been set to 122
> io scheduler noop registered
> io scheduler anticipatory registered
> io scheduler deadline registered
> io scheduler cfq registered (default)
> Serial: IMX driver
> imx-uart.0: ttymxc0 at MMIO 0x1000a000 (irq = 20) is a IMX
> console [ttymxc0] enabled
> imx-uart.1: ttymxc1 at MMIO 0x1000b000 (irq = 19) is a IMX
> imx-uart.2: ttymxc2 at MMIO 0x1000c000 (irq = 18) is a IMX
> imx-uart.3: ttymxc3 at MMIO 0x1000d000 (irq = 17) is a IMX
> imx-uart.4: ttymxc4 at MMIO 0x1001b000 (irq = 49) is a IMX
> imx-uart.5: ttymxc5 at MMIO 0x1001c000 (irq = 48) is a IMX
> brd: module loaded
> loop: module loaded
> st: Version 20080504, fixed bufsize 32768, s/g segs 256
> Driver 'st' needs updating - please use bus_type methods
> Driver 'sd' needs updating - please use bus_type methods
> drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> do_sys_open entrydo_sys_open entry<5>RAMDISK: Compressed image found at block 0
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem).
> Freeing init memory: 92K
>
>
> After this some junk characters are coming like ....
>
> ��֍�򁰠0^ޝ��r�'���ϊ��r:�������:��M
� ��D�d�z ?�� Τ��8V�`�Т���V잊]nn]^ク�m8m��^� �m�
> E��N��8��6���:]���

Thanks and regards ,
vels

Hamilton Vera

unread,
Nov 3, 2009, 4:46:17 PM11/3/09
to android...@googlegroups.com
Hi Vels, I am starting with an imx27, can you describe the steps you
followed to deploy android?

Actually we are working with ltib and openembeded, now I am gathering
info about to android to play with it.

Maybe you have to do some links to the devices, as we do in ltib

ln -s /dev/vc/0 /dev/tty0
ln -s /dev/vc/1 /dev/tty1
ln -s /dev/vc/2 /dev/tty2

Maybe you can get more help in our site www.imxdev.org.

[]'s

Hamilton Vera
> --
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting



--

vadivelan m

unread,
Nov 5, 2009, 2:37:05 AM11/5/09
to android-porting
hi vera,

first you have to make your basic linux 2.6.X up on board.
Provide information like

the linuxversion you are having on board. :
so that i can tell you which android version you can go ...

Thanks and regards,
vels
> >> Linux version 2.6.28-arm2 (r...@localhost.localdomain) (gcc version 4.1.1) #75

Hamilton Vera

unread,
Nov 5, 2009, 6:26:21 AM11/5/09
to android...@googlegroups.com
Hi Vels,

Actually I do have a working 2.6.22 kernel with patches working on
imx27ads using ltib and openembeded, we are trying to deploy kernel
2.6.26 from freescale but we still have problems with the PMIC, so we
are working on this.

In fact I just want to copy what you did to help solve your problem
and finally ( with your permission ) have a documentation about imx27
and android at www.imxdev.org :)

Thanks
Hamilton Vera
int Administrator (char Network[],char ComputationalSystems[])
http://hvera.wordpress.com

vadivelan m

unread,
Nov 9, 2009, 3:51:43 AM11/9/09
to android-porting
Hi vera,


Actually i am trying on plain 2.6.27 linux from arm git.

May i know which version and from where (open soure web ) you started
your work. ?
I think freescale opensource git (opensource.freescale.git) is giving
all their version of linux. But i am facing some problem in
downloading it. Have you tried it? -- If you have downloaded help me
how you have downloaded.

For me git clone git://opensource.freescale.com/linux-2.6-mx.git is
not downloading some socket error i am getting .

It will be good to start from their kernel..



Thanks and regards ,
Vels

On Nov 5, 4:26 pm, Hamilton Vera <hamilton.lis...@gmail.com> wrote:
> Hi Vels,
>
> Actually I do have a working 2.6.22 kernel with patches  working on
> imx27ads using ltib and openembeded, we are trying to deploy kernel
> 2.6.26 from freescale but we still have problems with the PMIC, so we
> are working on this.
>
> In fact I just want to copy what you did to help solve your problem
> and finally ( with your permission ) have a documentation aboutimx27
> and android atwww.imxdev.org:)
>
> Thanks
>
>
>
> On Thu, Nov 5, 2009 at 5:37 AM, vadivelan m <vadivelan...@gmail.com> wrote:
> > hi vera,
>
> > first you have to make your basic linux 2.6.X up on board.
> > Provide information like
>
> > the linuxversion you are having on board. :
> > so that i can tell  you which android version you can go ...
>
> > Thanks and regards,
> > vels
>
> > On Nov 4, 2:46 am, Hamilton Vera <hamilton.lis...@gmail.com> wrote:
> >> Hi Vels, I am starting with animx27, can you describe the steps you
> >> followed to deploy android?
>
> >> Actually we are working with ltib and openembeded, now I am gathering
> >> info about to android to play with it.
>
> >> Maybe you have to do some links to the devices, as we do in ltib
>
> >> ln -s /dev/vc/0 /dev/tty0
> >> ln -s /dev/vc/1 /dev/tty1
> >> ln -s /dev/vc/2 /dev/tty2
>
> >> Maybe you can get more help in our sitewww.imxdev.org.
>
> >> []'s
>
> >> Hamilton Vera
>
> >> On Tue, Nov 3, 2009 at 7:26 AM, vadivelan m <vadivelan...@gmail.com> wrote:
> >> > Hi ,
>
> >> > I am trying to port android 1.5 onIMX27based platform. But i am

Hamilton Vera

unread,
Nov 9, 2009, 9:55:08 AM11/9/09
to android...@googlegroups.com
Hi Vels, I am trying to use kernel 2.6.23.

I have a patched kernel from freescale (2.6.22-5), I am trying to
deploy 2.6.23 over 2.6.22. Unfortunately it is not an easy task for
me.

About freescale git ,maybe you can try this one:


git clone http://opensource.freescale.com/pub/scm/linux-2.6-mx.git


I am downloading right now, I think it will work here. If you have
problems please let me know, I will post the files somewhere so you
can download them.

Thanks

vadivelan m

unread,
Nov 10, 2009, 5:23:38 AM11/10/09
to android-porting
Hi vera,

You are correct. Applying patches will be good if you know the full
details ( clock , memory map etc ) of the board. otherwise most of the
time
will be spent just in making linux up.

You can take from freescale git repository and try. That will be
better .

I have tried to download the same. but i am keep on getting the error.
i dont know how to get it from you. is there any way ?
If possible you just tell me the procedure you followed .. ( on which
linux , commands , etc )

Thanks and regards ,
vels


> >> On Thu, Nov 5, 2009 at 5:37 AM,vadivelanm <vadivelan...@gmail.com> wrote:
> >> > hi vera,
>
> >> > first you have to make your basic linux 2.6.X up on board.
> >> > Provide information like
>
> >> > the linuxversion you are having on board. :
> >> > so that i can tell  you which android version you can go ...
>
> >> > Thanks and regards,
> >> > vels
>
> >> > On Nov 4, 2:46 am, Hamilton Vera <hamilton.lis...@gmail.com> wrote:
> >> >> Hi Vels, I am starting with animx27, can you describe the steps you
> >> >> followed to deploy android?
>
> >> >> Actually we are working with ltib and openembeded, now I am gathering
> >> >> info about to android to play with it.
>
> >> >> Maybe you have to do some links to the devices, as we do in ltib
>
> >> >> ln -s /dev/vc/0 /dev/tty0
> >> >> ln -s /dev/vc/1 /dev/tty1
> >> >> ln -s /dev/vc/2 /dev/tty2
>
> >> >> Maybe you can get more help in our sitewww.imxdev.org.
>
> >> >> []'s
>
> >> >> Hamilton Vera
>

Hamilton Vera

unread,
Nov 10, 2009, 9:57:43 AM11/10/09
to android...@googlegroups.com
Hi Vels,

Basically I got the running kernel from Ltib (
http://www.ltib.org/resources-download http://www.bitshrine.org/gpp
).

I will upload the kernel files to a webserver and send you a link to
download ok?

The latest kernel that I got from freescale's git is the v2.6.25-rc5,
but checking the code it does not have any specific code for imx27
added from freescale. In fact it is just a copy from the android git
server.


Thanks!

vadivelan m

unread,
Nov 11, 2009, 12:11:38 AM11/11/09
to android-porting
Hi vera,

Even i have downloaded from freescale git. But the same problem. imx27
features are not there.

I think you are working on LTIB ( linux 2.6.22 kernel ) provided in
freescale.com
This is not running for me.

please upload the working kernel code and provide the link for me .

Thanks and regards ,
vels


On Nov 10, 7:57 pm, Hamilton Vera <hamilton.lis...@gmail.com> wrote:
> Hi Vels,
>
> Basically I got the running kernel from Ltib  (http://www.ltib.org/resources-download http://www.bitshrine.org/gpp

Hamilton Vera

unread,
Nov 12, 2009, 4:35:43 PM11/12/09
to android...@googlegroups.com
Hi Vels, here are the downloads, sorry about the delay

Android kernels:
http://download.theforce.com.br/linux-2.6.22.android.tar.gz
http://download.theforce.com.br/linux-2.6.23-android-m3-rc20.tar.gz
http://download.theforce.com.br/linux-2.6.23-android-m5-rc14.tar.gz

Patches from freescale to kernel 2.6.22
http://download.theforce.com.br/pactches.tgz

Patched kernel 2.6.22 from freescale :
http://download.theforce.com.br/linux-2.6.22.ltib.tgz

Kernel 2.6.25 from Freescale android git
http://download.theforce.com.br/linux-2.6.25-rc5-mx-fromfreescale.tar.gz

http://download.theforce.com.br/md5sum.txt


What is the problem with the freescale kernel 2.6.22 ? Maybe I can help you.

vadivelan m

unread,
Nov 17, 2009, 12:47:43 AM11/17/09
to android-porting
Hi vera,

Thanks for your help.
But still we will be having problem even 2.6.22 / 2.6.23 comes up.
May i know why should we try linux 2.6.23 ? because
android expects
linux 2.6.25 version or 2.6.27 , 29 to port android
1.0 / 1.5 / 1.6 etc
So working on 22,23 will not help us. we should start from 24/25
version.

If you refer from 2.6.19 to 2.6.23 the imx 27 folder structure (arch/
arm/mach-mx27)is same.
applying patches is not a problem.

where as in 2.6.24 onwards folder structure support for imx27 is not
at all there.
i got some patches for 24, 25 . but i dont know how to appy that.
Because the plain linux downloaded from kernel.org or arm-linux git is
not having the folder structure for imx27 .
In this case how to apply the patches?

The folder structure is supported from 2.6.27 onwards. Almost we did
the changes here. its coming till mounting file system . but blocked
in starting user space process, boot prompt... (waiting to get boot
prompt..... but blocked)

Thanks and regards ,
vels


On Nov 13, 2:35 am, Hamilton Vera <hamilton.lis...@gmail.com> wrote:
> Hi Vels, here are the downloads, sorry about the delay
>
> Android kernels:http://download.theforce.com.br/linux-2.6.22.android.tar.gzhttp://download.theforce.com.br/linux-2.6.23-android-m3-rc20.tar.gzhttp://download.theforce.com.br/linux-2.6.23-android-m5-rc14.tar.gz
>
> Patches from freescale to kernel 2.6.22http://download.theforce.com.br/pactches.tgz
>
> Patched kernel 2.6.22 from freescale :http://download.theforce.com.br/linux-2.6.22.ltib.tgz
>
> Kernel 2.6.25 from Freescale android githttp://download.theforce.com.br/linux-2.6.25-rc5-mx-fromfreescale.tar.gz
>
> http://download.theforce.com.br/md5sum.txt
>
> What is the problem with the freescale kernel 2.6.22 ? Maybe I can help you.
>
> ...
>
> read more »

Hamilton Vera

unread,
Nov 19, 2009, 9:38:38 AM11/19/09
to android...@googlegroups.com
You are absolutely right.

I will try out the 2.6.27, I will get a kernel 2.6.26 from iMX27 PDK
Freescale and try to do it.

Unfortunately I am faraway from my machine, I will send you the
patching procedure as soon as possible.

Hamilton Vera

unread,
Nov 25, 2009, 9:42:57 AM11/25/09
to android...@googlegroups.com
Hi Vels, I got a 2.6.32-rc6 kernel runing in imx27ads, now I am trying
to patch android.

Do you have any news about your tests?

Thanks

vadivelan m

unread,
Dec 7, 2009, 3:03:40 AM12/7/09
to android-porting
Hi veera,

Its good to see that 32 is running for you.
I hope u have downloaded the code from kernel.org.
Have you applied any changes or just working directly?

2.6.25 is up for us. Now we are porting the drivers to the latest
version .

Still i have not touched android code. can you just share

* How the android images will be ?
* Did you find the patches for android ?

Thanks and regards ,
Vels

On Nov 25, 7:42 pm, Hamilton Vera <hamilton.lis...@gmail.com> wrote:
> Hi Vels, I got a 2.6.32-rc6 kernel runing in imx27ads, now I am trying
> to patch android.
>
> Do you have any news about your tests?
>
> Thanks
>
>
>
> On Tue, Nov 3, 2009 at 7:26 AM,vadivelanm <vadivelan...@gmail.com> wrote:
> > Hi ,
>
> > I am trying to port android 1.5 onIMX27based platform. But i am
> > blocked in making linux 2.6.27 up.
>
> > Its blocking at Freeing init memory .
> > While exploring through the code
>
> > init/main.c -> rest_init -> kernel_init -> init_post
>
> > Here it is trying to open the initial consloe
> > sys_open(initial consloe...)   is get hanging . ... i could not see
> > any prints after Freeing init memory.......
>
> > While exploring sys_open -> do_sys_open-> fd_install()  -->  here
> > after no print statements are coming .....
>
> > we have tried
>
> > ---> console baud rate -- its ok 115200n8
>
> > please see the logs below and help me to go forward..... This will
> > help others also. .. . .
>
> > Launch LinuxUncompressing
> >> Linux......................................................................
> >> done, booting the kernel.
> >> Linux version 2.6.28-arm2 (r...@localhost.localdomain) (gcc version 4.1.1) #75

superspirit

unread,
Jan 15, 2010, 4:05:03 AM1/15/10
to android-porting
Hi vera. i would like to port android on to imx27 ads and build some
multimedia applications (audio,video and nework support). i like to
know difficulties, any issues u faced. can you please share your
knowledge on it, and any suggestions.

thanks
super

On Nov 25 2009, 7:42 pm, Hamilton Vera <hamilton.lis...@gmail.com>
wrote:


> Hi Vels, I got a 2.6.32-rc6 kernel runing in imx27ads, now I am trying
> to patch android.
>
> Do you have any news about your tests?
>
> Thanks
>
>
>
> On Tue, Nov 3, 2009 at 7:26 AM, vadivelan m <vadivelan...@gmail.com> wrote:
> > Hi ,
>

> > I am trying to port android 1.5 onIMX27based platform. But i am


> > blocked in making linux 2.6.27 up.
>
> > Its blocking at Freeing init memory .
> > While exploring through the code
>
> > init/main.c -> rest_init -> kernel_init -> init_post
>
> > Here it is trying to open the initial consloe
> > sys_open(initial consloe...)   is get hanging . ... i could not see
> > any prints after Freeing init memory.......
>
> > While exploring sys_open -> do_sys_open-> fd_install()  -->  here
> > after no print statements are coming .....
>
> > we have tried
>
> > ---> console baud rate -- its ok 115200n8
>
> > please see the logs below and help me to go forward..... This will
> > help others also. .. . .
>
> > Launch LinuxUncompressing
> >> Linux......................................................................
> >> done, booting the kernel.

> >> Linux version 2.6.28-arm2 (r...@localhost.localdomain) (gcc version 4.1.1) #75

Eric Nelson

unread,
Oct 25, 2012, 7:42:57 PM10/25/12
to android...@googlegroups.com
HI Vadivelan,
 

> On Tue, Nov 3, 2009 at 7:26 AM, vadivelan m <vadivelan...@gmail.com> wrote:
> > Hi ,
>
> > I am trying to port android 1.5 onIMX27based platform. But i am
> > blocked in making linux 2.6.27 up.
>
> > Its blocking at Freeing init memory .
> > While exploring through the code
>
> > init/main.c -> rest_init -> kernel_init -> init_post
>
> > Here it is trying to open the initial consloe
> > sys_open(initial consloe...)   is get hanging . ... i could not see
> > any prints after Freeing init memory.......


We recently encountered the same sort of issue on i.MX6 and found a trigger, 
if not the cause:

Our i.MX6 system was hanging after a failure in an ext4 mount.

See also this Linaro bug report (which may or may not be the same thing):

 

Reply all
Reply to author
Forward
0 new messages