cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
269 stars 49 forks source link

Low Memory in NAND #199

Open eluizbr opened 11 years ago

eluizbr commented 11 years ago

Hy guys,

This turorial ( https://github.com/cubieplayer/Cubian/wiki/Why-the-total-memory-is-827MB-instead-of-1GB ) don't work in cubian R3, when installed in NAND. Work's fine in SD CARD.

Any tips ?

cubieplayer commented 11 years ago

You should modify uEnv.txt rather than boot.scr if you put your system to nand

eluizbr commented 11 years ago

cubieplayer, Thanks for you quickly response.

In my uEnv.txt i have this:

cat /boot/uEnv.txt setenv bootargs console=tty0 console=ttyS0,115200 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x800p60 root=/dev/nandc rootwait panic=10 consoleblank=0

But, don't works for me.

My kernel is:

3.4.67+ #4 SMP PREEMPT Wed Nov 6 08:31:09 CST 2013 armv7l GNU/Linux

free -m total used free shared buffers cached Mem: 809 339 469 0 11 103 -/+ buffers/cache: 224 585 Swap: 0 0 0

root@ToFalando:~# cat /proc/cpuinfo Processor : ARMv7 Processor rev 4 (v7l) processor : 0 BogoMIPS : 669.41

processor : 1 BogoMIPS : 671.82

Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 4

Hardware : sun7i Revision : 0000

I just edit the uEnv.txt and put this line into to him. thats is correct ?

Thanks again.

cubieplayer commented 11 years ago

Hi, can you send your boot log?

eluizbr commented 11 years ago

Course...

see here: http://pastebin.com/UqEq9kKr

cubieplayer commented 11 years ago

line 31:

Kernel command line: console=tty0 root=/dev/nand3 loglevel=8 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x800p60 root=/dev/nandc rootwait panic=10 consoleblank=0

That's problem, are you sure you modified uEnv.txt in /boot

eluizbr commented 11 years ago

Yes..

My uEven.txt this way:

cat /boot/uEnv.txt setenv bootargs console=tty0 console=ttyS0,115200 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x800p60 root=/dev/nandc rootwait panic=10 consoleblank=0

cubieplayer commented 11 years ago

Ok, maybe the u-boot didn't read the uEnv.txt correctly, i will check it. What's your board, A10 or A20?

eluizbr commented 11 years ago

A20.

Thanks

eluizbr commented 11 years ago

Any news?

eluizbr commented 11 years ago

Hi, Same problem happen in the new R4 on A20.

HansRue commented 11 years ago

I have experienced the same issue on my Cubiboard 2. Any progress on the issue?

cposkar commented 11 years ago

This works in Cubieboard 2 throught Nand for me

root@Cubian:/proc# cat /boot/uEnv.txt console=tty0 extraargs=console=ttyS0,115200 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x800p60 root=/dev/nandc rootwait panic=10 consoleblank=0

root@Cubian:/proc# free -m total used free shared buffers cached Mem: 968 951 17 0 22 759 -/+ buffers/cache: 169 799 Swap: 0 0 0

eluizbr commented 11 years ago

Hi theoski,

Works fine with me your setup. Thanks..