8/16 meg images and boards...

Pyrofer
 
Posts: 61
Joined: Tue Oct 21, 2014 11:35 am

8/16 meg images and boards...

Mon Jan 19, 2015 7:14 pm

Ok, so how do I tell from inside the OS if I have 8 or 16meg flash?

If I have accidentally flashed an 8meg image to the "retail" board (not an 8meg Alpha) can I fix/resize that from inside the OS or do I need to reflash an image?

Can you please link to the guide on changing the build to make an image for 16meg instead of 8 as that is how my system has been building since I got the Alpha boards...

Vonger
 
Posts: 754
Joined: Sun Oct 19, 2014 6:00 am

Re: 8/16 meg images and boards...

Tue Jan 20, 2015 2:57 am

From outside, flash named W25Q64, it is 8MB, W25Q128, it is 16MB.
From inside, I think the easy way is to call df

root@OpenWrt:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 12800 568 12232 4% /
/dev/root 2304 2304 0 100% /rom
tmpfs 14668 80 14588 1% /tmp
/dev/mtdblock5 12800 568 12232 4% /overlay
overlayfs:/overlay 12800 568 12232 4% /
tmpfs 512 0 512 0% /dev

rootfs > 8MB, so of course it is 16MB :)

But this way depends on system partition, a better way is to update flash driver and show the chip type/capacity under sysfs.

dape
 
Posts: 2
Joined: Thu Jan 22, 2015 9:31 am

Re: 8/16 meg images and boards...

Thu Jan 22, 2015 9:35 am

Hi,
just got my VoCore from customes, i see i have the 16 MB flash version so can i compile my own OpenWrt Chaos Calmer and flash on it? will it see the full 16MB or will i get in trouble?
Thanks!

dape
 
Posts: 2
Joined: Thu Jan 22, 2015 9:31 am

Re: 8/16 meg images and boards...

Thu Jan 22, 2015 10:51 am

Uhm.. just flashed my compiled version of latest trunk (Chaos Calmer) and now i only see 8 MB of flash.. any ideas please?

Vonger
 
Posts: 754
Joined: Sun Oct 19, 2014 6:00 am

Re: 8/16 meg images and boards...

Fri Jan 23, 2015 1:31 am

You need to change VOCORE.dts, default is 8MB, change partition from 0x7b0000 to 0xfb0000, you will get a 16MB partition.

Pyrofer
 
Posts: 61
Joined: Tue Oct 21, 2014 11:35 am

Re: 8/16 meg images and boards...

Fri Jan 23, 2015 1:20 pm

Thanks. That did it.

Filesystem Size Used Available Use% Mounted on
rootfs 11.1M 424.0K 10.7M 4% /
/dev/root 3.5M 3.5M 0 100% /rom
tmpfs 14.3M 56.0K 14.2M 0% /tmp
/dev/mtdblock5 11.1M 424.0K 10.7M 4% /overlay
overlayfs:/overlay 11.1M 424.0K 10.7M 4% /
tmpfs 512.0K 0 512.0K 0% /dev


I just need to remember to change it back if I make an image for my alpha boards in the future.

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 0 guests