From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 46A09E00723 for ; Thu, 20 Feb 2014 06:35:34 -0800 (PST) Received: by mail-pb0-f47.google.com with SMTP id rp16so1965368pbb.34 for ; Thu, 20 Feb 2014 06:35:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=YskzW9pRTvUGwl+ZQCx8s3BYskGjUxim6z5Fs+MyUNU=; b=GLsylMEW+JBn1zO/HMP6EnSCuYlVo1dS9hf/mRExabU/hfdpO14MmXPvug74FI6i/u lD1bDa7frwXQyLc6Yxk+q/ntbPbgzTizID66yiKKQ2fp9J5NxKBIckdnrQ0aB5gaKbsQ qgPtMwCl71OoIV9agMn7W1hqBwfw+HUW3Qyd4HVTwrkwBm/Ceto8qqXo7hSl7vSxQeEo 1E8xOt8+CheJdN04UjvTxZaIiXaMm1ouvhanSGbll3dPn1EGLL7mkHAH2KAyw6uvs94l +YK7tXVxUJBXdO6DqNlDOZPytFQNHfOLfMrGbhs1I7SvaTGHUMjKcnKA+VtlWeLYUbyw QyHw== X-Gm-Message-State: ALoCoQlZNZIl28k8jn1ljS43Pq8N0VHEB3lM5TW7faTTs9lIK1pdrlZdPP9vQD5zkSB0QR366yVv X-Received: by 10.66.220.198 with SMTP id py6mr2403894pac.21.1392906928350; Thu, 20 Feb 2014 06:35:28 -0800 (PST) Received: from [192.168.1.8] (ip98-167-230-131.ph.ph.cox.net. [98.167.230.131]) by mx.google.com with ESMTPSA id zc6sm27048500pab.18.2014.02.20.06.35.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 06:35:27 -0800 (PST) Message-ID: <530612AB.4090604@boundarydevices.com> Date: Thu, 20 Feb 2014 07:35:23 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Baodong Chen References: <53055AB9.8050803@boundarydevices.com> In-Reply-To: Cc: "meta-freescale@yoctoproject.org" Subject: Re: Errors booting SABRE Lite (was SabreLite can not boot from SD card) X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2014 14:35:35 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello Baodong, On 02/19/2014 10:30 PM, Baodong Chen wrote: > On Thu, Feb 20, 2014 at 9:30 AM, Eric Nelson > > wrote: > > Hello Baodong, > > On 02/19/2014 06:13 PM, Baodong Chen wrote: > > i found some message in the serial log, are these message means > something wrong? > > > Please start a new thread when you change topics. > > Also, please try not to top-post and full-post on the ML. > > got it,trying to Better, but you might consider a different e-mail client! > > U-Boot 2013.07 (Feb 17 2014 - 02:01:32) > > CPU: Freescale i.MX6Q rev1.2 at 792 MHz > Reset cause: POR > Board: SABRE Lite > DRAM: 1 GiB > MMC: FSL_SDHC: 0, FSL_SDHC: 1 > SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB > *** Warning - bad CRC, using default environment > > No panel detected: default to HDMI > enable_hdmi: setup HDMI monitor > Display: HDMI (1024x768) > In: serial > Out: serial > Err: serial > Net: using phy at 6 > FEC [PRIME] > Warning: failed to set MAC address > > Hit any key to stop autoboot: 0 > AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode > flags: ncq stag pm led clo only pmp pio slum part > No port device detected! > ** Bad device size - sata 0 ** > ** Bad device size - sata 0 ** > > SATA device 1: unknown device > ** Bad device sata 1 ** > ** Bad device sata 1 ** > mmc0 is current device > reading /6x_bootscript > 2340 bytes read in 16 ms (142.6 KiB/s) > ## Executing script at 10008000 > > > The following says that no displays were auto-detected. > See this post for details: > http://boundarydevices.com/__auto-configuration-of-__displays-for-i-mx6-using-a-u-__boot-script/ > > > done by script file? if so, where is the script file by which i can > change to disable this behaver board/boundary/nitrogen6x/6x_bootscript-yocto.txt: https://github.com/boundarydevices/u-boot-imx6/blob/production/board/boundary/nitrogen6x/6x_bootscript-yocto.txt The i2c probe commands are used to identify the various touch controllers, or the EDID channel for HDMI (i2c dev 1, address 50). If you know your display, you can just replace them with something that sets bootargs to include it and set fbmem For example if you have a 1280x800 LVDS panel, you might set it like so: setenv bootargs $bootargs video=mxcfb0:dev=ldb,1280x800MR@60,if=RGB666 setenv fbmem "fbmem=10M"; setenv nextcon 1 You can also use the on-line boot-script compiler to test: http://git.boundarydevices.com/bootscript.php > > > > The following is normal unless you're running a kernel > that supports device-tree (3.5.7+): > > using 3.0.35 > > > *** Unable to read file /imx6q-sabrelite.dtb *** > only CEA modes allowed on HDMI port > reading /uImage > 3739464 bytes read in 333 ms (10.7 MiB/s) > ## Booting kernel from Legacy Image at 10800000 ... > Image Name: Linux-3.0.35-4.1.0+yocto+__g580993 > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 3739400 Bytes = 3.6 MiB > Load Address: 10008000 > Entry Point: 10008000 > Verifying Checksum ... OK > Loading Kernel Image ... OK > > Starting kernel ... > > > Cool! It looks like you're booting now. > > Uncompressing Linux... done, booting the kernel. > > > Linux-3.0.35: > > Linux version 3.0.35-4.1.0+yocto+g5809938 (chenbd@chenbd-laptop) > (gcc > version 4.8.1 (GCC) ) #1 SMP PREEMPT Mon Feb 17 03:25:36 CST 2014 > CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d > CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache > Machine: Boundary Devices Nitrogen6X/SABRE Lite Board > Memory policy: ECC disabled, Data cache writealloc > CPU identified as i.MX6Q, silicon rev 1.2 > PERCPU: Embedded 7 pages/cpu @8c008000 s5440 r8192 d15040 u32768 > Built 1 zonelists in Zone order, mobility grouping on. Total > pages: 227328 > > > Also note here that all of the 'video=' clauses say "off": > > why all of them are off? by u-boot? how to enable that? > Because they weren't detected by the boot script. > > Kernel command line: enable_wait_mode=off video=mxcfb0:off > video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off > console=ttymxc1,115200 vmalloc=401 > PID hash table entries: 4096 (order: 2, 16384 bytes) > Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) > Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) > Memory: 640MB 256MB = 896MB total > Memory: 900748k/900748k available, 147828k reserved, 0K highmem > > ... > > EXT3-fs (mmcblk0p2): using internal journal > EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode > VFS: Mounted root (ext3 filesystem) on device 179:2. > devtmpfs: mounted > Freeing init memory: 200K > INIT: version 2.88 booting > > This error is because no displays were detected: > > the board had no display connected . > That explains it. > > *Error opening /dev/fb0: No such file or directory* > Starting udev > udevd[1393]: starting version 182 > camera_reset: power_gp=0x6, reset_gp=0x8 reset_gp2=0xab > ov5642_powerdown: powerdown=0, power_gp=0x6 > ov5642_read_reg:write reg error:reg=300a > camera ov5642 is not found > Starting Bootlog daemon: bootlogd. > Populating dev cache > ALSA: Restoring mixer settings... > No state is present for card sgtl5000audio > Found hardware: "sgtl5000-audio" "" "" "" "" > Hardware is initialized using a generic method > No state is present for card sgtl5000audio > Configuring network interfaces... eth0: Freescale FEC PHY driver > [Micrel > KSZ9021 Gigabit PHY] (mii_bus:phy_addr=1:06, irq=284) > > > Do you have an ethernet cable connected? > Does the network have a DHCP server? > > If the answer to both questions is yes, this is probably a > timing issue. The Gb ethernet port on SABRE Lite is pretty > slow to link, and sometimes the DHCP will time out before > that occurs. > > the board had no eth connected. > Ok. > > udhcpc (v1.21.1) started > Sending discover... > Sending discover... > Sending discover... > *No lease, failing > > ... > > apmd[2273]: apmd 3.2.1 interfacing with apm driver 1.13 and APM > BIOS 1.2 > creating NFS state directory: done > NFS daemon support not enabled in kernel > Starting syslogd/klogd: done > > > I have no idea what may be happening with the avahi-daemon. > > so... > > * * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon > ...fail!* > Starting Telephony daemon > Starting Linux NFC daemon > Starting OProfileUI server > Running local boot scripts (/etc/rc.local). > * > ** (oprofile-server:2308): WARNING **: Failed to create avahi > client: > Daemon not running* > Stopping Bootlog daemon: bootlogd. > > Poky (Yocto Project Reference Distro) 1.5.1 nitrogen6x /dev/ttymxc1 > > At this point, it appears that Yocto is fully booted. > > yes > > Did you get a login prompt? > > login ok as root without passwd. > Cool. So you're up and running. > > Regards, > > > Eric > > Thanks!