打印
[i.MX]

imx6q kernel运行至Unpacking initramfs...无法继续

[复制链接]
6597|8
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
bestray|  楼主 | 2014-10-9 17:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 bestray 于 2014-10-9 18:10 编辑

imx6q—sabreSD自制板运行Android4.2系统,sd卡加载uboot以及系统文件,运行kernel至unpack_to_rootfs((char *)initrd_start,
            initrd_end - initrd_start)此函数时无法继续,串口打印Unpacking initramfs...       根据网上查阅以下信息配置均不能继续

These couple of kernel config variables are needed:

  • CONFIG_BLK_DEV_INITRD=y
  • CONFIG_RD_GZIP=y
See this link for an example:
     linux-imx6/arch/arm/configs/imx6_defconfig at boundary-L3.0.35_12.09.01_GA · boundarydevices/linux-imx6 · GitHub
You can also use 'menuconfig' to select it. Choose 'General Setup' on the first page:




求如何解决???
1. 有人说设置boot_args,如何设置呢,毕竟不知道地址应该是多少,size又是如何确定呢??
2. 有贴子说要编辑mfg_tools下的initramfs.cpio.gz.uboot文件,那么应该如何修改呢??

相关帖子

沙发
bestray|  楼主 | 2014-10-9 17:52 | 只看该作者
本帖最后由 bestray 于 2014-10-9 19:10 编辑

贴log信息
Hit any key to stop autoboot:  3  2  1  0
kernel   @ 10808000 (4709780)
ramdisk  @ 11800000 (192802)
kernel cmdline:
        use boot.img command line:
        console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=10M fb0base=0x27b00000 vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 3.0.35-06116-g2d14546-dirty (hanby@hanby-linux) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #3 SMP PREEMPT Thu Aug 7 17:13:26 CST 2014
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX 6Quad/DualLite/Solo Sabre-SD Board
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writealloc
CPU identified as i.MX6Q, silicon rev 1.2
PERCPU: Embedded 7 pages/cpu @c283d000 s6592 r8192 d13888 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 468448
Kernel command line: console=ttymxc0,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off fbmem=10M fb0base=0x27b00000 vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 379MB 202MB 1264MB = 1845MB total
Memory: 1861844k/1861844k available, 235308k reserved, 1490816K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xfbe00000 - 0xffe00000   (  64 MB)
    vmalloc : 0xd9800000 - 0xf2000000   ( 392 MB)
    lowmem  : 0xc0000000 - 0xd9000000   ( 400 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .init : 0xc0008000 - 0xc0045000   ( 244 kB)
      .text : 0xc0045000 - 0xc08cacbc   (8728 kB)
      .data : 0xc08cc000 - 0xc0963090   ( 605 kB)
       .bss : 0xc09630b4 - 0xc0aead68   (1568 kB)
Preemptible hierarchical RCU implementation.
NR_IRQS:624
MXC GPIO hardware
sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
arm_max_freq=1GHz
MXC_Early serial console at MMIO 0x2020000 (options '115200')
bootconsole [ttymxc0] enabled
Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys debug
Initializing cgroup subsys cpuacct
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
CPU1: Booted secondary processor
CPU2: Booted secondary processor
CPU3: Booted secondary processor
Brought up 4 CPUs
SMP: Total of 4 processors activated (6324.22 BogoMIPS).
print_constraints: dummy:
NET: Registered protocol family 16
print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal
print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal
print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal
print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal
print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal
print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal
ram_console: got buffer at 3ffe0000, size 20000
ram_console: uncorrectable error in header
ram_console: no valid data in buffer (sig = 0xffffffff)
console [ram-1] enabled
No AHCI save PWR: PDDQ enabled
hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.
hw-breakpoint: maximum watchpoint size is 4 bytes.
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B
bio: create slab <bio-0> at 0
mxs-dma mxs-dma-apbh: initialized
print_constraints: SPKVDD: 4200 mV
print_constraints: 1_8V: 1800 mV
print_constraints: MICVDD: 3300 mV
print_constraints: vmmc: 3300 mV
vgaarb: loaded
SCSI subsystem initialized
spi_imx imx6q-ecspi.0: probed
spi_imx imx6q-ecspi.2: probed
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Freescale USB OTG Driver loaded, $Revision: 1.55 $
imx-ipuv3 imx-ipuv3.1: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 driver probed
mxc_mipi_csi2 mxc_mipi_csi2: i.MX MIPI CSI2 dphy version is 0x3130302a
MIPI CSI2 driver module loaded
Advanced Linux Sound Architecture Driver Version 1.0.24.
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
i2c-core: driver [max17135] using legacy suspend method
i2c-core: driver [max17135] using legacy resume method
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 32
Unpacking initramfs...  

使用特权

评论回复
板凳
FSL_TICS_Rita| | 2014-10-10 10:03 | 只看该作者
楼主你好,你u-boot起来以后,你输入print然后回车,我看一下你u-boot中的参数设置。

使用特权

评论回复
地板
bestray|  楼主 | 2014-10-10 11:50 | 只看该作者
FSL_TICS_Rita 发表于 2014-10-10 10:03
楼主你好,你u-boot起来以后,你输入print然后回车,我看一下你u-boot中的参数设置。 ...

MX6Q SABRESD U-Boot > print
bootdelay=3
baudrate=115200
ipaddr=192.168.2.103
serverip=192.168.2.105
netmask=255.255.255.0
loadaddr=0x10800000
rd_loadaddr=0x11000000
netdev=eth0
ethprime=FEC0
fastboot_dev=mmc1
bootcmd=booti mmc1
splashimage=0x30000000
splashpos=m,m
lvds_num=1
stdin=serial
stdout=serial
stderr=serial
ethact=FEC0

Environment size: 301/8188 bytes
MX6Q SABRESD U-Boot >

使用特权

评论回复
5
FSL_TICS_Rita| | 2014-10-10 13:56 | 只看该作者
楼主你好,你改一下rd_loadaddr的值为0x10C00000 试一下,看能否正常烧写。

使用特权

评论回复
6
FSL_TICS_Rita| | 2014-10-10 13:57 | 只看该作者
楼主你好,你改一下rd_loadaddr的值为0x10C00000 试一下,看能否正常烧写。

使用特权

评论回复
7
bestray|  楼主 | 2014-10-10 15:16 | 只看该作者
本帖最后由 bestray 于 2014-10-10 15:19 编辑
FSL_TICS_Rita 发表于 2014-10-10 13:57
楼主你好,你改一下rd_loadaddr的值为0x10C00000 试一下,看能否正常烧写。

我不知道你指的是不是mfg_tools下的ucl2.xml中就是0x10C00000这个值,烧写是正常的~那是不是我该修改成0x11000000看看效果如何??

还有我试图修改uboot中的rd_loadaddr的值为0x10C00000,下载后打印printenv,log显示仍为rd_loadaddr=0x11000000

使用特权

评论回复
8
bestray|  楼主 | 2014-10-12 11:00 | 只看该作者
uboot版本问题吧,换成原始的版本就过了~

使用特权

评论回复
9
FSL_TICS_Rita| | 2014-10-13 11:49 | 只看该作者
bestray 发表于 2014-10-12 11:00
uboot版本问题吧,换成原始的版本就过了~

感谢楼主分享解决办法,请问你帖中用的uboot是哪个版本的呢?这个问题以前没有碰到过,向楼主学习一下。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

391

帖子

1

粉丝