This two days played the next Development Board, installed an Android system, 2.3.3 System.
But the installation of software can only be installed into the file system, the so-called internal space, but the board of the file systems only 120M, loaded the system used to 90M, save space can not install a few software there is no space, so to study how to expand the method.
First try to build a folder on the SD card, delete the/data/app and point the app to the/sdcard/app by symbolic link, but it seems to be a matter of privilege or something.
I saw it in the boot record.
S3C NAND Driver is using hardware ECC.
NAND device:manufacturer id:0xec, Chip id:0xd5 (Samsung NAND 2GiB 3,3v 8-bit)
Creating 4 MTD partitions on "NAND 2GiB 3,3v 8-bit":
0x000000000000-0x000000100000: "Bootloader"
0x000000100000-0x000000600000: "Kernel"
0x000000600000-0x000007e00000: "User"
0x000007e00000-0x000080000000: "File System"
The words, began to think this is the boot in the specified, in the boot code search AH search is not found.
Look at the context, this is already the kernel in the boot, must be specified in the kernel. The above user is the 6m-126m, that is, 120M space. The size of the file system is the remaining nearly 2G of space,
BusyBox DF looked down, in fact this third piece did not mount on. As I understand it, user and file system should actually change their names,
The corresponding devices are
/dev/block/mtdblock0-->bootloader
/dev/block/mtdblock1-->kernel
/dev/block/mtdblock2-->file System
/dev/block/mtdblock3-->unused
Its size definition see MACH-SMDK6410.C
/*
* Configuring Nandflash on SMDK6410
*/
struct Mtd_partition ok6410_nand_part[] = {
{
. Name = "Bootloader",
. Offset = 0,
. Size = (1 * sz_1m),
. Mask_flags = Mtd_cap_nandflash,
},
{
. Name = "Kernel",
. Offset = (1 * sz_1m),
. Size = (5*sz_1m),
. Mask_flags = Mtd_cap_nandflash,
},
{
. Name = "User",
. Offset = (6 * sz_1m),
. Size = (120*sz_1m),
},
{
. Name = "File System",
. offset = Mtdpart_ofs_append,
. Size = Mtdpart_siz_full,
}
};
Try to modify the size of the Block2 to 1500*sz_1m. Then compile and USB line updates the kernel, start successfully ...
Uncompressing Linux ... done, booting the kernel.
Linux version 2.6.36ZhuJinhua (ROOT@LINUX-ZJH) (gcc version 4.3.2 (sourcery g++ Lite 2008q3-72)) #461 preempt Tue May 17 22:29:30 CST 2011
Slightly
Kernel command Line:root=/dev/mtdblock2 rootfstype=yaffs2 init=/linuxrc nconsole=tty1 console=ttysac0,115200
PID Hash Table entries:1024 (order:0, 4096 bytes)
Dentry Cache Hash Table entries:32768 (order:5, 131072 bytes)
Inode-cache Hash Table entries:16384 (order:4, 65536 bytes)
MEMORY:256MB = 256MB Total
memory:232880k/232880k available, 29264k reserved, 0K highmem
Virtual Kernel Memory layout:
vector:0xffff0000-0xffff1000 (4 KB)
fixmap:0xfff00000-0xfffe0000 (896 KB)
dma:0xff600000-0xffe00000 (8 MB)
vmalloc:0xd0800000-0xe0000000 (248 MB)
lowmem:0xc0000000-0xd0000000 (256 MB)
pkmap:0xbfe00000-0xc0000000 (2 MB)
modules:0xbf000000-0xbfe00000 (MB)
. init:0xc0008000-0xc0032000 (MB)
. text:0xc0032000-0xc06ff000 (6964 KB)
. data:0xc0728000-0xc0775760 (310 KB)
slub:genslabs=11, hwalign=32, order=0-3, Minobjects=0, Cpus=1, Nodes=1
Slightly
Creating 4 MTD partitions on "NAND 2GiB 3,3v 8-bit":
0x000000000000-0x000000100000: "Bootloader"
0x000000100000-0x000000600000: "Kernel"
0x000000600000-0x00005e200000: "User"//This has gone sour for 6M to 1506M.
0x00005e200000-0x000080000000: "File System"
PPP Generic driver Version 2.4.2
View
/# [6NDF
FileSystem Size Used Free blksize
/1G 112M 1G 4096
/1G 112M 1G 4096
/dev 113M 44K 113M 4096
/dev 113M 44K 113M 4096
/mnt/asec 113M 0K 113M 4096
/mnt/obb 113M 0K 113M 4096
/var 2M 0K 2M 4096
Only 1 G. Doubt can not exceed 1G, but the experiment is hanging success of the original BLOCK3, nearly 2G it
Using BusyBox DF to see the
/# [6nbusybox DF
FileSystem 1k-blocks Used Available usemounted on
/dev/root 1536000 115052 1420948 7/
Devtmpfs 116524 116480 0/dev
Tmpfs 116524 116480 0/dev
Tmpfs 116524 0 116524 0/mnt/asec
Tmpfs 116524 0 116524 0/mnt/obb
TMPFS 2048 0 2048 0/var
/dev/block/vold/179:1 2701624 168260 2533364 6/mnt/sdcard
/dev/block/vold/179:1 2701624 168260 2533364 6/mnt/secure/asec
Follow-up studies:
"1" Memory
"2" START process
Wait
What else is this/mnt/secure/asec, like SDcard?