iMX35 Java SE for embedded and JVM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX35 Java SE for embedded and JVM

Jump to solution
3,956 Views
jvidal
Contributor III

Hi:

 

I have a iMx35 PDK with Linux OS (install with LTIB), but i dont know how install a java virtual machine (JVM) in board, and i dont found any information about this.

 

Thanks for your help.

0 Kudos
Reply
1 Solution
1,756 Views
fabio_estevam
NXP Employee
NXP Employee

You can also look at this interesting site: http://www.imxdev.org/wiki/index.php?title=All_Boards_Java

 

Regards,

 

Fabio Estevam

View solution in original post

0 Kudos
Reply
8 Replies
1,756 Views
jvidal
Contributor III

Hi:

 

Thanks for your answers. I try to install jvm but i dont have enought space in rootfs. I create a rtffs2 file with ltib and mkfs.jfss2. Then i create a partition (root) in NAND flash in iMX35 PDK.

 

RedBoot> fis create 0x600000 root

 

But i dont have free space to install jvm...i try:

 

RedBoot> fis create root -f 0x600000 -b 0x100000 -l 0x9E00000

 

But dont work...

 

Any idea...

 

Thanks for all.

0 Kudos
Reply
1,756 Views
jvidal
Contributor III

I create a root image in NAND Flash, this partition have 200Mg, then in this image i "download" a rootfs.jffs2.

 

Then run linux:

 

fis load kernel

exec -c "noinit console=..."

 

I display in linux partition:

df -h

 

But showme only have 80 megas.

 

Any suggestion???

0 Kudos
Reply
1,756 Views
fabio_estevam
NXP Employee
NXP Employee

For development purposes I would recommend you to use NFS instead of JFFS2.

 

Regards,

 

Fabio Estevam

0 Kudos
Reply
1,756 Views
jvidal
Contributor III

Hi:

 

I use NFS to transfer files to PDK:

 

Download Kernel to RAM and program to NAND Flash

RedBoot> load -r -b 0x100000 /<your tftp folder>/zImage -h <host IP address>

RedBoot> fis create -f 0x100000 kernel

 

Download root file system to RAM and program to NAND Flash 

RedBoot> load -r -b 0x100000 rootfs.jffs2 -h <host IP address>

RedBoot> fis create -f 0x600000 root

 

Run linux

fis load kernel
exec -c "noinitrd console=ttymxc0,115200 root=/dev/mtdblock8 rw rootfstype=jffs2 ..."

 

But linux only detect 20Mg free space, but PDK have 2Gb NAND Flash...How i can use 2Gb?

 

If we only have 150 free space in RAM, how we can transfer a rffs2 file more big than RAM free space to NAND flash?

 

Thanks for all.

Message Edited by jvidal on 2009-11-07 08:46 AM
Message Edited by jvidal on 2009-11-07 08:51 AM
Message Edited by jvidal on 2009-11-07 08:53 AM
Message Edited by jvidal on 2009-11-07 09:03 AM
0 Kudos
Reply
1,756 Views
jvidal
Contributor III

Hi:

 

I see IMX35PDKHUG.pdf document in 3.2.- 3-stack memory say:

 

"For instance, DDR SDRAM occupies only 128 MB of the 256MB space available to CSD0, so it appears in two different ranges of ddresses."

 

If we use TFTP to load rootfs in RAM, we only have a 128MB free espace to load rffs2 file in RAM and then create a root in NAND Flash...

 

Someone know how grow up root file system since linux or how linux can detect 2GB NAND flash???

 

Thanks for all.

Message Edited by jvidal on 2009-11-08 05:32 PM
0 Kudos
Reply
1,756 Views
jvidal
Contributor III

Tto create 1024Mg free space in NAND Flash

In freescale@root make:

 

cd /mnt

mkdir tmpfs

mount tmpfs /mnt/tmpfs -t tmpfs -o size=1024m

 

That´s all

0 Kudos
Reply
1,756 Views
fabio_estevam
NXP Employee
NXP Employee

Hi,

 

I think you can try phoneME JVM on MX35. Take a look at: http://forums.java.net/jive/message.jspa?messageID=201217

 

Regards,

 

Fabio Estevam

0 Kudos
Reply
1,757 Views
fabio_estevam
NXP Employee
NXP Employee

You can also look at this interesting site: http://www.imxdev.org/wiki/index.php?title=All_Boards_Java

 

Regards,

 

Fabio Estevam

0 Kudos
Reply