Tiny4412 4G eMMC problem

majil
I have bought a Tiny4412 4G eMMC version but when I ran "df -h" command to
see the status of the system it gives this:

[root@FriendlyARM /]# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mmcblk0p1          379.1M    319.1M     60.0M  84% /
tmpfs                   485.6M         0    485.6M   0% /dev/shm

Why does /dev/mmcblk0p1 have 379MB capacity? 
Shouldn't it be 4GB or something?

Plus what is /dev/shm ?
When I mount this to / using:
[root@FriendlyARM /]# mount /dev/shm/ /mnt

it gets mounted under /mnt and I can use it but when I save some data on it
after rebooting the system that data is lost and gone for good! 
Even if I mount it again that data is lost.

What can I do? I need more space. It's ridiculous.

majil
Ok I figured what /dev/shm is . 
/dev/shm is nothing but implementation of traditional shared memory
concept. It gets created during boot process and it's not something I can
use.


But my problem with capacity of the / (root) still exists. 
It's supposed to give a 4GB not 400MB 

Can you check you Tiny4412 board and get back to me? 

Thank you

majil
Any idea?

jiameijiang
What system did you use ? Maybe you should brush latest zImage . And use
the mommand #cat /proc/partitions to see hard disk partition

majil
Hi jiameijiang 
What do you mean by "What system did you use?"
Like I said it's a Tiny4412 with 4G eMMC and it's default Linux system. 
Kernel is 3.5 and it has a Qtopia rootfs which is simply a busybox. 
Also what do you mean by brushing latest zImage? I didn't understand that. 

Anyway I ran your command: 

[root@FriendlyARM /]# cat /proc/partitions
major minor  #blocks  name

 179        0    3817472 mmcblk0
 179        1    3680523 mmcblk0p1
 179       16       2048 mmcblk0boot1
 179        8       2048 mmcblk0boot0

I don't know what is the unit of those numbers. Like 3817472 and 3680523 
Do you have some idea? 
Thank you.

majil
Dude ...

jiameijiang
1 block = 1024 bytes

majil
Ok. Then how come cat /proc/partitions says that mmcblk0p1 is 3680523
blocks (which is about 4GByte) but "df" says it's 379MByte ?

[root@FriendlyARM /]# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mmcblk0p1          379.1M    319.1M     60.0M  84% /
tmpfs                   485.6M         0    485.6M   0% /dev/shm

I'm really running out of space over here! I cant save some pictures
anymore.

jiameijiang
4G emmc is say that 4*1000*1000*1000/1024/1024 , the result is
3814.697265625 
1 block = 1024 bytes

chaunguyen
@majil: Can you upload your zImage(linux kernel) for me? I use linux kernel
from the CD but it has a problem with LCD touchscreen. When I port it to my
tiny4412, the LCD touchscreen work but it doesn't display full and
clearly,it also lags, I can't calibrate or work with it

majil
@jiameijiang: Yeah I figured the unit but what I didn't understand was that
how come I don't have 3814MByte (or 3.8GByte)

@chaunguyen: I used the default zImage included in CD. I don't understand
what your problem is.

chaunguyen
@majil: I have replaced arm-linux-gcc-4.3.2 with arm-linux-gcc-4.5.1 and I
have recompiled linux source with it and the LCD touchscreen works
perfectly. But now I have the same problem with you in this topic:
http://www.friendlyarm.net/forum/topic/6154 . Have you had any idea to
solve this problem yet?

reza
Hi chaunguyen 
I compile linux source and zImage was build successfully
but when i port it to my tiny4412 it not load
can you help me?