|
发表于 2014-6-24 11:11:30
20274 浏览 8 回复
【求助】使用内核3.5的config_for_scp_9.7编译出来的内核无限重启
我是用的是全能版SCP封装,编译的内核【iTOP-4412_Kernel-3.5_20140621.tar.gz】使用的config是config_for_scp_9.7
先cp config_for_scp_9.7 .config
然后make menuconfig把boot options设置成
root=/dev/mmcblk0p2 rootfstype=ext4 init=/sbin/init console=ttySAC2115200
其余的都没改
使用我自己做的文件系统,文件系统解压在/dev/mmcblk0p2
以下是我的步骤。
1.先用SD卡格式化EMMC:
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 2048 2099199 1048576 c W95 FAT32 (LBA)
/dev/mmcblk0p2 2099200 23070719 10485760 83 Linux
/dev/mmcblk0p3 23070720 27265023 2097152 83 Linux
/dev/mmcblk0p4 27265024 30535679 1635328 83 Linux
2.把文件系统解压到/dev/mmcblk0p2
3.把modules复制到文件系统的/lib/modules/
4.进入EMMC启动,刷zImage,然后reset。
之后就是无限重启。
以下是log:
Checking Boot Mode ... EMMC4.41
Hit any key to stop autoboot: 0
iTOP-4412 # sdfuse flash kernel zImage
SD sclk_mmc is 400K HZ
SD sclk_mmc is 50000K HZ
SD sclk_mmc is 50000K HZ
[Fusing Image from SD Card.]
[Partition table on MoviNAND]
ptn 0 name='bootloader' start=0x0 len=N/A (use hard-coded info. (cmd: movi))
ptn 1 name='kernel' start=N/A len=N/A (use hard-coded info. (cmd: movi))
ptn 2 name='ramdisk' start=N/A len=0x300000(~3072KB) (use hard-coded info. (cmd:
movi))
ptn 3 name='Recovery' start=N/A len=0x600000(~6144KB) (use hard-coded info. (cmd
: movi))
ptn 4 name='system' start=0x40100000 len=0x80000000(~2097152KB)
ptn 5 name='userdata' start=0xC0100000 len=0x80000000(~2097152KB)
ptn 6 name='cache' start=0x40100000 len=0x63D00000(~1635328KB)
ptn 7 name='fat' start=0x100000 len=0x40000000(~1048576KB)
Partition: kernel, File: /sdupdate/zImage
Partition1: Start Address(0x800), Size(0x1ddd800)
reading /sdupdate/zImage
4782696 (0x0048fa68) bytes read
flashing 'kernel'
writing kernel.. 1120, 12288
MMC write: dev # 0, block # 1120, count 12288. 12288 blocks write finish
12288 blocks written: OK
completed
partition 'kernel' flashed
iTOP-4412 # resetOK
U-Boot 2010.03 (Feb 17 2014 - 01:06:13) for iTOP-4412 Android
APLL = 1000MHz, MPLL = 800MHz
ARM_CLOCK = 1000MHz
PMIC: S5M8767(VER5.0)
Board: iTOP-4412
DRAM: 2 GB
MMC: max_emmc_clock:40 MHZ
Set CLK to 400 KHz
EMMC CLOCK OUTPUT:: 400KHz -[div:50]
response timeout error : 00000104 cmd 8
response timeout error : 00000104 cmd 55
max_emmc_clock:40 MHZ
Input CLK [ 50 MHz] is higher than limit [40 MHZ]
Set CLK to 40000 KHz
EMMC clock output: 40000 KHz
max_emmc_clock:40 MHZ
Input CLK [ 50 MHz] is higher than limit [40 MHZ]
Set CLK to 40000 KHz
EMMC clock output: 40000 KHz
MMC0: 14910 MB
SD sclk_mmc is 400K HZ
SD sclk_mmc is 50000K HZ
SD sclk_mmc is 50000K HZ
MMC1: 15292 MB
*** Warning - using default environment
In: serial
Out: serial
Err: serial
eMMC OPEN Success.!!
!!!Notice!!!
!You must close eMMC boot Partition after all image writing!
!eMMC boot partition has continuity at image writing time.!
!So, Do not close boot partition, Before, all images is written.!
MMC read: dev # 0, block # 48, count 16 ...16 blocks read: OK
eMMC CLOSE Success.!!
Checking Boot Mode ... EMMC4.41
Hit any key to stop autoboot: 0
reading kernel.. 1120, 12288
MMC read: dev # 0, block # 1120, count 12288 ...12288 blocks read: OK
completed
reading RFS.. 13408, 2048
MMC read: dev # 0, block # 13408, count 2048 ...2048 blocks read: OK
completed
Boot with zImage
Wrong Ramdisk Image Format
[err] boot_get_ramdisk
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
OK
U-Boot 2010.03 (Feb 17 2014 - 01:06:13) for iTOP-4412 Android
APLL = 1000MHz, MPLL = 800MHz
ARM_CLOCK = 1000MHz
PMIC: S5M8767(VER5.0)
Board: iTOP-4412
DRAM: 2 GB
MMC: max_emmc_clock:40 MHZ
Set CLK to 400 KHz
EMMC CLOCK OUTPUT:: 400KHz -[div:50]
response timeout error : 00000104 cmd 8
response timeout error : 00000104 cmd 55
max_emmc_clock:40 MHZ
Input CLK [ 50 MHz] is higher than limit [40 MHZ]
Set CLK to 40000 KHz
EMMC clock output: 40000 KHz
max_emmc_clock:40 MHZ
Input CLK [ 50 MHz] is higher than limit [40 MHZ]
Set CLK to 40000 KHz
EMMC clock output: 40000 KHz
MMC0: 14910 MB
SD sclk_mmc is 400K HZ
SD sclk_mmc is 50000K HZ
SD sclk_mmc is 50000K HZ
MMC1: 15292 MB
*** Warning - using default environment
In: serial
Out: serial
Err: serial
eMMC OPEN Success.!!
!!!Notice!!!
!You must close eMMC boot Partition after all image writing!
!eMMC boot partition has continuity at image writing time.!
!So, Do not close boot partition, Before, all images is written.!
MMC read: dev # 0, block # 48, count 16 ...16 blocks read: OK
eMMC CLOSE Success.!!
Checking Boot Mode ... EMMC4.41
Hit any key to stop autoboot: 2
|
|
|
|
|
|
|
|
发表于 2014-6-24 11:15:38
Wrong Ramdisk Image Format
[err] boot_get_ramdisk
你的image貌似编译错了不能用啊 |
|
|
|
|
|
|
|
发表于 2014-6-24 11:21:10
编译器版本是什么?要使用Android4.2自带的编译器 |
|
|
|
|
|
|
|
楼主|
发表于 2014-6-24 11:24:42
这个没关系的,ubutu启动没有ramdisk也会有这个err |
|
|
|
|
|
|
|
楼主|
发表于 2014-6-24 11:27:28
编译器我用的光盘里面的 arm-2009q3
makefile里面我指定的
CROSS_COMPILE ?= /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi- |
|
|
|
|
|
|
|
发表于 2014-6-24 14:25:31
去网盘下载Android4.2.2的源码,然后在ubuntu下解压,修改内核目录下的Makefile文件里的CROSS_COMPILE,使编译器使用android-4.2.2_r1自带的编译器 |
|
|
|
|
|
|
|
楼主|
发表于 2014-6-24 17:35:24
|
|
|
|
|
|
|
发表于 2015-1-12 20:18:01
来自手机
|
|
|
|
|
|
|
发表于 2015-1-16 09:36:58
|
|
|
|
|
|
登录或注册
扫一扫关注迅为公众号
|