Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Puzzled nand and u-boot

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 1/12/2015 16:45:40      1#

In AndroidTool , the uboot partition is not selected by default. This is the second stage of u-boot, which is not used in the eMMC flash.


And if you fiddle around the partitions in parameter file, please make sure the partition number is matched with "/fstab.rk30board.bootmode.emmc" in Android. Detail is shown below:


In Android, run in the terminal "cat /fstab.rk30board.bootmode.emmc", you'll fine some lines:


# Android fstab file.
#
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/platform/ff0f0000.rksdmmc/by-name/system         /system             ext4      ro,noatime,nodiratime,noauto_da_alloc                            wait,resize
...
/devices/ff0f0000.rksdmmc/mmc_host/mmc          /mnt/internal_sd     vfat      defaults        voldmanaged=internal_sd:14,noemulatedsd
/devices/ff0c0000.rksdmmc/mmc_host/mmc          /mnt/external_sd     vfat      defaults        voldmanaged=external_sd:auto
...


Please take special care of this line:

/devices/ff0f0000.rksdmmc/mmc_host/mmc          /mnt/internal_sd     vfat      defaults        voldmanaged=internal_sd:14,noemulatedsd

There's a "14" after the colon, which means the partition number of internal_sd is 14.


Here is the mtdparts of dual os:

mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00010000@0x00016000(boot),0x00010000@0x00026000(recovery),0x0001a000@0x00036000(backup),0x00040000@0x00050000(cache),0x00002000@0x00090000(kpanic),0x00180000@0x00092000(system),0x00002000@0x00212000(metadata),0x00200000@0x00214000(userdata),0x00620000@0x00414000(linuxroot),-@0x00a34000(user)


The number of the first partition  "uboot" is 1. The "user" partition number is 14.


The number of partition in /fstab.rk30board.bootmode.emmc must be matched with the "user" partition in parameter file.


If you'd like to modify fstab.rk30board.bootmode.emmc, please unpack boot.img, edit it and then repack, as you already know.

Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 1/14/2015 15:20:34      2#

> Can we possibly redo the 2.17 rktool to use "parameter" instead of "u-boot 1G data".


Since parameter file contains partition info, and different people have different needs for the storage, "1G data" is just a label saying the /data partition in Android is 1G, nothing more.


I always use:

  rkflashkit backup @parameter parameter.txt

to get a copy of parameter in the device, edit it, and flash back with:

  rkflashkit flash @parameter parameter.txt

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list