sulq23 发表于 2015-4-30 13:10:58

使用RK3288_PAD_IPS5K0350FPC_Android4.4_201504222155.7z固件,可以正常启动

下载源码后编译,什么都没改,更改parameter为
CMDLINE:console=ttyS2 earlyprintk androidboot.hardware=rk30board androidboot.console=ttyS2 board.ap_has_alsa=0 init=/init initrd=0x62000000,0x00800000 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),0x00020000@0x00414000(radical_update),-@0x00434000(user)
也可以正常启动
关键是我修改arch/arm/boot/dts/firefly-rk3288.dts 文件后,随便改一处地方 i2c5 。烧写就不能正常启动了。

sulq23 发表于 2015-4-30 14:19:47

版主你好,我将RK3288_PAD_IPS5K0350FPC_Android4.4_201504222155.7z固件解包后,将里面的recovery.img提取出来。
烧写下载源码编译后的misc.img、resource.img 、kernel.img 、boot.img 、recovery.img(201504222155.7z固件提取) 、system.img
可以正常启动了,也能进recovery

但是使用源码编译的recovery.img不行,现在确认应该问题在recovery.img中,不知道固件中的recovery.img和源码编译的recovery.img有什么区别。

zhansb 发表于 2015-4-30 14:27:38

编译和wiki上一样,make后./mkimage.sh

试试make clean后重新编译

sulq23 发表于 2015-4-30 14:34:58

make clean了,编译时出现下面错误,是否有关系
----- Making recovery image ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: 无法获取"out/target/product/rk3288/root/init.recovery.*.rc" 的文件状态(stat): 没有那个文件或目录
make: 错误 1 (忽略)
device/rockchip/rksdk/recovery_contents.sh rk3288 out/target/product/rk3288 rk3288 false
rk3288 out/target/product/rk3288 rk3288 false
----- Made recovery image: out/target/product/rk3288/recovery.img --------
Construct recovery from boot
mkdir -p out/target/product/rk3288/obj/PACKAGING/recovery_patch_intermediates/
PATH=out/host/linux-x86/bin:$PATH out/host/linux-x86/bin/imgdiff out/target/product/rk3288/boot.img out/target/product/rk3288/recovery.img out/target/product/rk3288/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p

sulq23 发表于 2015-5-4 15:20:07

版主有什么发现吗?我们现在就差这个了,这个问题解决了 我们就可以量产了!!!

zhansb 发表于 2015-5-4 16:18:09

cp: 无法获取"out/target/product/rk3288/root/init.recovery.*.rc" 的文件状态(stat): 没有那个文件或目录

这个正常编译的也有,可以把:
git log -5
git status
完整的编译指令

这些信息发出来

sulq23 发表于 2015-5-4 16:45:03

版主 你好,我将RK3288_PAD_IPS5K0350FPC_Android4.4_201504222155.7z提取出的recovery.img解包出三个文件:
recovery.img-kernelrecovery.img-ramdisk.gzrecovery.img-second.gz,其中recovery.img-second.gz是干什么的?
pad 版源码编译完recovery.img,解包没有这个文件?怎么能编译出recovery.img-second.gz

sulq23 发表于 2015-5-4 16:53:10

git log -5
commit 45fb49ab0f4137287ff22b85ebdea5e37b88da3a
Author: Firefly-RK3288 <service@t-firefly.com>
Date:   Tue Jan 27 16:16:02 2015 +0800

    Kernel->Camera:set the AF_VDD default voltage as 2.8V

commit 6e3a1de76223e816e5b16848b0db89c10fa10b46
Author: Firefly-RK3288 <service@t-firefly.com>
Date:   Thu Jan 22 16:24:01 2015 +0800

    kernel->lcd: increase the capacity of mipi cmds

commit 62c41e21af39968efc91bcad796fddc25839c55c
Author: Firefly-RK3288 <service@t-firefly.com>
Date:   Fri Jan 16 14:52:01 2015 +0800

    kernel->backlight: scale backlight, skip dark parameter

commit c2b05e62c52a7e126d3ea86060e5c0963928a2c1
Author: Firefly-RK3288 <service@t-firefly.com>
Date:   Wed Jan 21 20:52:56 2015 +0800

    Kernel->Ethernet:raise the Ethernet speed

commit 9ab4f22a4866a17e224e84b9ada9c3d1d36d629a
Author: Firefly-RK3288 <service@t-firefly.com>
Date:   Tue Jan 20 18:33:00 2015 +0800

    Android->Mkimage:rm fw_config
smdt@ubuntu:~/work/rk3288-pad-original$ git status
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#        modified:   device/rockchip/rk3288/rk3288.mk
#        modified:   device/rockchip/rk3288/system.prop
#        modified:   frameworks/base/core/java/android/net/EthernetDataTracker.java
#        modified:   frameworks/base/core/res/res/values/config.xml
#        modified:   frameworks/base/core/res/res/values/dimens.xml
#        modified:   frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
#        modified:   frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
#        modified:   frameworks/base/packages/SettingsProvider/res/values/defaults.xml
#        modified:   frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
#        modified:   frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
#        modified:   frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
#        modified:   frameworks/base/services/input/InputReader.cpp
#        modified:   frameworks/base/services/java/com/android/server/power/PowerManagerService.java
#        modified:   frameworks/base/services/java/com/android/server/wm/WindowManagerService.java
#        modified:   frameworks/native/services/surfaceflinger/SurfaceFlinger.cpp
#        modified:   kernel/arch/arm/boot/dts/firefly-rk3288.dts
#        modified:   packages/apps/Settings/res/values-zh-rCN/arrays.xml
#        modified:   packages/apps/Settings/res/values/arrays.xml
#        modified:   packages/apps/Settings/src/com/android/settings/DisplaySettings.java
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#        device/rockchip/rk3288/bootanimation.zip
no changes added to commit (use "git add" and/or "git commit -a")

编译是指令是按照文档
cd ~/proj/firefly-rk3288/kernel
make firefly-rk3288_defconfig
make -j8 firefly-rk3288.img

cd ~/proj/firefly-rk3288
make -j8
./mkimage.sh

zhansb 发表于 2015-5-4 19:06:03

改了很多文件啊,可以做一下排除,看看是哪个修改导致的
有可能是devices里面的修改

sulq23 发表于 2015-5-5 09:38:28

版主 你好,我将RK3288_PAD_IPS5K0350FPC_Android4.4_201504222155.7z提取出的recovery.img解包出三个文件:
recovery.img-kernelrecovery.img-ramdisk.gzrecovery.img-second.gz,其中recovery.img-second.gz是干什么的?
pad 版源码编译完recovery.img,解包没有这个文件?怎么能编译出recovery.img-second.gz
页: 1 [2] 3
查看完整版本: 关于pad版 修改dts后不能启动问题