We’ve just uploaded a handful of new images to our cloud storage that combine the latest Linaro builds with our latest kernel (3.0.35_4.1.0).
We did this for a few reasons:
- The kernel used in previous Linaro images were woefully out of date, and
- The Ubuntu release from Freescale is also getting really out of date. It’s based on the Oneiric (2011.10) release and will prompt immediate for an upgrade (which isn’t supported), and
- Other platforms are in a period of transition, making it difficult to point customers at known, working filesystems to use with our latest kernel.
The process used to build these images is pretty simple, and largely outlined in this post.
In short, we simply extracted the root filesystems from the Linaro 13.08 Raring packages and overlaid them with our latest kernel and boot script:
We also installed the GPU binaries, but they’re currently only configured for Frame-buffer access. The Vivante demos are available in /opt/viv_samples/vdk.
You can read more about the Freescale 3.0.35_4.1.0 release here:
The images are available here:
Name | Size | Download |
---|---|---|
alip | 341 | linaro-raring-alip-20130926.tar.gz |
developer | 205 | linaro-raring-developer-20130926.tar.gz |
server | 199 | linaro-raring-server-20130926.tar.gz |
nano | 126 | linaro-raring-nano-20130926.tar.gz |
imx6_kernel_overlay.tar.gz :
AccessDenied
Access denied.
Sorry Tele.
I always forget to check the box that says “publicly available”.
You should be good now.
Np, it happens.
I installed it (at least the alip one) and works good, with some refinements in the video settings in the bootscript, but of course everyone has different display.
But:
I can not run ‘/opt/viv_samples/vdk’ things, usually they say ‘segmentation fault’ or maybe not, but they do nothing that’s the best.
I tried Sound & Video – GNOME MPlayer to play a movie. It was only a 720p but playing was very sluggy and erratic, probably there is no acceleration at all.
Could you make an image with full 3D and gstreamer acceleration please ?
Or at least could you explain the method, how to make one ?
Laci
Hi Tele,
There are notes about building the gstreamer plugins in the
MMCODECS Bundle (in document i.MX_6_Series_Ubuntu_Multimedia_Users_Guide.pdf), though they didn’t work for me. Specifically, the
debuild process failed, and I think the issues are related to the version of the tools.
I was able to build the gstreamer plugins by hand, but it requires a large number of build pre-requisites, and because I used the normal
tar-ball/configure/make process, the binaries weren’t cleanly extracted. We’ll try to publish some notes on the process in a separate
blog post, but probably not immediately for lack of time.
In broad strokes, the steps to build using tar-balls is to build the following packages in this order:
After all of this, you’ll get the ability to use gplay or gst-launch, but this won’t accelerate Gnome MPlayer, since that
uses a different framework for codecs (i.e. not gstreamer).
As for the Vivante samples, I believe you need to stop X before running them:
We also don’t have time to dig through the details of X acceleration using the GPU in the near term.
Thank you Eric,
I’m gonna go trough the whole building process, then I’ll share the experiences.
I’m gonna check setting X acceleration as well.
If whoever checked these
http://www.youtube.com/watch?v=p0lkZlDTq8Q
kind of demos on youtube, 2 yrs ago, would they have thought that we would be struggling right now 2 yrs later with such basic functionalities like video acceleration.
Without acceleration this card can not be used for many-many purposes. Its very important thing, in my opinion.
Am I being too fussy customer ?
Hi Tele,
Your point is well founded that video acceleration is important, but perhaps a bit harsh since there are other images available with video acceleration, and steps to get there from this image.
.
I’ll send you some more detailed notes under separate cover to assist you in getting there.
“I’ll send you some more…”
Thank you that would be nice, I appreciate that 🙂
Just a few aspects, what I like:
I would like armhf. Because I don’t like yocto or ltib, but any big distribution, like ubuntu or debian. And ubuntu doesn’t support armel since last year. Only Oneiric, but that is a very outdated and bad thing. I want 12.04 LTS or later.
I dont like yocto because its not a distribution. And because its a monster. A freak one. It downloads 40GB, it compiles for 8 hours, it has about 30 thousand recipes…so on. All this for a few MBytes rootfs and kernel. I can imagine regression tests on yocto, you poke it once with a needle, and it leaks from 10 holes. Its so overcomplicated, it might work, but its not a good product, by design. My dad always told me that I should design things as simple as possible. Easy to create sophisticated complicated things, but always do the job in the simplest way as you can. That is something. You are not building a starship, are you?
I accept linaro-ubuntu if must, but I would prefer vanilla ubuntu or debian. Linaro is a fancy layer on top of ubuntu, but its not a distribution, and its advantages are unclean, not documented, based mostly on faith and believes. I believe its good, but I can’t see proofs of that.
These are my viewpoints as customer, I hope I’m not too eccentric.
Hi Tele,
check this out : http://eewiki.net/display/linuxonarm/i.MX6x+SABRE+Lite
It’s a very detailed page from Robert Nelson about Debian & Ubuntu armhf on I.MX6
Regards,
Luca
Thank you very much Luca,
Of course I know that page. Nelson also, not Eric but Robert C.
I know his works, interesting things. But he works with mainstream multi-platform kernels, and those kernels did not support HDMI (only partially) and other important HW elements, till now.
Yesterday Freescale, has released the new LTS kernel, v3.10.9_1.0.0-alpha, and Boundary followed them immediately, with the boundary version. They make it stable in 1-2 months, I think so.
Then, the sun will shine upon us again, soon I hope so.
I second that request to armhf, or… welll third, forth, whatever 😉 …
https://community.freescale.com/thread/313458
https://community.freescale.com/search.jspa?q=armhf&sort=updatedDesc
https://community.freescale.com/message/325115
https://community.freescale.com/message/331379
Quote:
”
For your last question “Do you plan to release armhf libraries in a future freescale reference BSP”. What I knew is “Yes”. It will have Yocto release on FSL web site which will include hardfloat support
Currently yocto release is still no available but as far as I know it will be next released until 3Q of the year
”
I also don’t like this yocto stuff (does this support armhf + gstreamer video acceleration?).
Please push Freescale a bit… they don’t seem to be moving in the right direction when they STILL don’t have armhf libraries for video available that work together with Debian/Ubuntu! We don’t need a full working Ubuntu image, but those multimedia libs compiled for armhf.
I have the feeling everyone is using armhf, except Freescale.
Not your fault eric / boundary, of course, sorry for the rant! But maybe you can talk to them…
Hi ARMHF,
The Dora release of Yocto now defaults to hard-float and contains GPU binaries for X acceleration and full VPU acceleration.
The recipes are a bit opaque, but the distribution comes in two forms:
The files are self-extracting shell scripts that ask you to confirm a license
agreement and can be extracted like so:
Hi ARMHF,
To address one of your other questions, the multimedia components are buildable on this image, but it’s quite involved, and I wasn’t able to get the Debian package builds to work as such, which makes it difficult to distribute for someone simply wanting to use them (i.e. you need 100’s of MB of build dependencies).
I have instructions to tele off-list for how we accomplished this, but it was painful.
If someone on this list knows how to package things in Debian form, I’d be happy to walk the details, but documenting the steps I took doesn’t make a lot of sense.
Hi ARMHF,
I have found some other sources of binary blobs, and sources, here you go, maybe you can use it:
http://download.ossystems.com.br/bsp/freescale/source/
OSS Systems is a firm, where Otavio Salvador works at. And Otavio Salvador is a big imx6 guru, and Yocto chief, you can trust in that source.
By the way, I’m on it, Eric has put me on the rails, soon I can show something I hope.
I got the alip version running on nitrogen6x as well.
However my HDMI display turns black after the Uboot screen.
I think I have seen a previous post on how to resolve that, but I cant seem to find it again.
I am using the default boot script, which has worked fine for the other/older images I have used in the past.
I installed Xrdp and have a black screen there as well.
Hi Lasse,
Can you check /proc/cmdline to see what’s in your kernel command-line?
Sorry Eric, I did not see your message before submitting the lightdm log.
Here is the /proc/cmdline :
enable_wait_mode=off video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=28M console=ttymxc1,115200 vmalloc=400M consoleblank=0 rootwait root=/dev/mmcblk0p1 mxc_hdmi.only_cea=1
Thanks,
Lasse
Here is my lightdm log file
Sorry, I figured it out.. in my xsession-errors there was a reference to mktmp having issues. So I changed the permissions of the /tmp folder and now it works!
Still struggling with xrdp, but I am sure it is something similar.
Thanks,
Lasse
Hi
I am a newbie to the Nitrogen6x development kit. I am trying to install the server version on the Nitrogen6x. The SD card seems to contain the OS related files. However, when I try to start the board, I get a 6x_bootscript not found error. The file does exist on the SD card though. Am I missing something ?
Thanks,
Ganesh
Hi Ganesh,
The bootscript is present:
How did you format your SD card and extract the files?
If you’re using an Ubuntu-based dev machine, and your SD card shows up as /dev/sdc, the process should be something like this:
Hi Eric
Thank you for the quick response. I was using the instructions from the following webpage. I shall try the instructions you just sent
http://boundarydevice.wpengine.com/linaro-12-09-for-i-mx6/
Thanks
Ganesh
Hi Ganesh,
Those should also work (provided of course, that you change the tar-ball name and replace /dev/mmcblk0p1 with your device’s address.
That post doesn’t say how to partition the disk though, and you do need a partition table. Possible means to that include fdisk, sfdisk, or (for the GUI-inclined) gparted.
Do you by chance have a big file named /dev/mmcblk0p1 on your machine?
Hi Eric
I didn’t have /dev/mmcblk0p1. I replaced it with the device address like /dev/sdc. I got the server version working now. Thank you so much for the prompt response.
Thanks
Ganesh
Hi ericn, i tried with your above command but got following error:-
U-Boot 2013.10-00054-g2a78739 (Dec 03 2013 – 12:45:23)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: Nitrogen6X
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected SST25VF016B with page size 256 Bytes, erase size 4 KiB, total 2 MiB
*** Warning – bad CRC, using default environment
No panel detected: default to HDMI
Display: HDMI (1024×768)
In: serial
Out: serial
Err: serial
Net: using phy at 6
FEC [PRIME]
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 **
MMC: no card present
mmc0(part 0) is current device
MMC: no card present
** Bad device mmc 0 **
MMC: no card present
** Bad device mmc 0 **
mmc1 is current device
** Unrecognized filesystem type **
2593 bytes read in 28 ms (89.8 KiB/s)
## Executing script at 10008000
—— no HDMI monitor
Setting bus to 2
Valid chip addresses:
—— no Freescale display
Valid chip addresses:
—— no ft5x06 touch controller
Valid chip addresses:
—— no 800×480 display
** File not found /boot/imx6q-nitrogen6x.dtb **
only CEA modes allowed on HDMI port
3759112 bytes read in 243 ms (14.8 MiB/s)
## Booting kernel from Legacy Image at 10800000 …
Image Name: Linux-3.0.35-02828-g5cedf96
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3759048 Bytes = 3.6 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum … OK
Loading Kernel Image … OK
Starting kernel …
Uncompressing Linux… done, booting the kernel.
Linux version 3.0.35-02828-g5cedf96 (ericn@ericsam) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD — Linaro 2011.07 — Built
at 2011/08/10 09:20) ) #1 SMP PREEMPT Thu Sep 26 11:38:06 MST 2013
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 @8c810000 s5440 r8192 d15040 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 487424
Kernel command line: enable_wait_mode=off video=mxcfb0:off video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off console=ttymxc1,115200 v
malloc=400M consoleblank=0 rootwait root=/dev/mmcblk0p1 mxc_hdmi.only_cea=1
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 131072 (order: 7, 524288 bytes)
Memory: 640MB 1280MB = 1920MB total
Memory: 1940372k/1940372k available, 156780k reserved, 638976K highmem
Virtual kernel memory layout:
vector : 0xffff0000 – 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 – 0xfffe0000 ( 896 kB)
DMA : 0xf4600000 – 0xffe00000 ( 184 MB)
vmalloc : 0xd9800000 – 0xf2000000 ( 392 MB)
lowmem : 0x80000000 – 0xd9000000 (1424 MB)
pkmap : 0x7fe00000 – 0x80000000 ( 2 MB)
modules : 0x7f000000 – 0x7fe00000 ( 14 MB)
.init : 0x80008000 – 0x80039000 ( 196 kB)
.text : 0x80039000 – 0x806c99cc (6723 kB)
.data : 0x806ca000 – 0x807214a0 ( 350 kB)
.bss : 0x807214c4 – 0x80765824 ( 273 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
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 0x21e8000 (options ‘115200’)
bootconsole [ttymxc1] enabled
Console: colour dummy device 80×30
Calibrating delay loop… 1581.05 BogoMIPS (lpj=7905280)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
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).
devtmpfs: initialized
print_constraints: dummy:
NET: Registered protocol family 16
print_constraints: vddpu: 725 1300 mV at 1150 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
———— Board type Nitrogen6X/W
imx_add_mxc_pwm:pdata= (null)
imx_add_mxc_pwm:pdata= (null)
imx_add_mxc_pwm:pdata=806ed2e8
imx_add_mxc_pwm:pdata= (null)
Flexcan NXP tja1040
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 at 0
print_constraints: VDDA: 2500 mV
print_constraints: VDDIO: 3300 mV
machine_constraints_voltage: VDDD: unsupportable voltage constraints
reg-fixed-voltage reg-fixed-voltage.2: Failed to register regulator: -22
reg-fixed-voltage: probe of reg-fixed-voltage.2 failed with error -22
print_constraints: vmmc: 3300 mV
print_constraints: VDD_1.8V: 1800 mV
vgaarb: loaded
SCSI subsystem initialized
spi_imx imx6q-ecspi.0: 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.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7)
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
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 6, 262144 bytes)
TCP established hash table entries: 262144 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
UDP hash table entries: 1024 (order: 3, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 3, 32768 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.
Static Power Management for Freescale i.MX6
wait mode is disabled for i.MX6
cpaddr = d9880000 suspend_iram_base=d9918000
PM driver module loaded
iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.
PCIE: imx_pcie_pltfm_probe start link up.
link up failed, DB_R0:0x00fdfa00, DB_R1:0x08200000!
IMX PCIe port: link down!
IMX usb wakeup probe
add wake up source irq 75
IMX usb wakeup probe
cpu regulator mode:ldo_enable
i.MXC CPU frequency driver
highmem bounce pool size: 64 pages
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 2541
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pwm_config: pwm freq = 32786, clk_select=2 clock_rate=22000000
pwm_config: pwm freq = 20000, clk_select=2 clock_rate=22000000
MIPI DSI driver module loaded
mxc_sdc_fb mxc_sdc_fb.0: mxcfb0 is turned off!
mxc_sdc_fb mxc_sdc_fb.1: mxcfb1 is turned off!
mxc_sdc_fb mxc_sdc_fb.2: mxcfb2 is turned off!
mxc_sdc_fb mxc_sdc_fb.3: mxcfb3 is turned off!
imx-sdma imx-sdma: loaded firmware 1.1
imx-sdma imx-sdma: initialized
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x2020000 (irq = 58) is a IMX
imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
old_ufcr=a81 new_ufcr=b01, old_ucr2=4027 new_ucr2=4027, old_ubir=f num=1f7, old_ubmr=15b denom=c34
clk=80000000 div=7 num=504 denom=3125 baud=115200
console [ttymxc1] enabled, bootconsole disabled
console [ttymxc1] enabled, bootconsole disabled
imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX
loop: module loaded
No sata disk.
m25p80 spi0.0: sst25vf016b (2048 Kbytes)
Creating 3 MTD partitions on “m25p80”:
0x000000000000-0x0000000c0000 : “bootloader”
0x0000000c0000-0x0000000c2000 : “ubparams”
0x0000000c2000-0x000000200000 : “unused”
vcan: Virtual CAN interface driver
CAN device driver interface
flexcan netdevice driver
flexcan imx6q-flexcan.0: device registered (reg_base=d99a8000, irq=142)
FEC Ethernet Driver
fec_enet_mii_bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky
ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
add wake up source irq 72
fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200
fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver…
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
USB Serial support registered for Qualcomm USB modem
usbcore: registered new interface driver qcserial
ARC USBOTG Device Controller driver (1 August 2005)
mousedev: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys/input/input0
tsc2004_prepare_for_reading: write_cmd -5
tsc2004: probe of 2-0048 failed with error -5
egalax_ts 2-0004: egalax_ts: failed to read firmware version
egalax_ts: probe of 2-0004 failed with error -5
ft5x06-ts 2-0038: ft5x06: Could not detect touch screen.
ft5x06: Sep 26 2013
rtc-isl1208 0-006f: chip found, driver version 0.3
add wake up source irq 108
rtc-isl1208 0-006f: rtc core: registered rtc-isl1208 as rtc0
rtc-isl1208 0-006f: rtc power failure detected, please set clock.
check_alarm_past: alarm in the past
snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc1
i2c /dev entries driver
Linux video capture interface: v2.00
i2c-core: driver [mma8450] using legacy suspend method
i2c-core: driver [mma8450] using legacy resume method
add mma8450 i2c driver
imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)
device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com
Bluetooth: HCI UART driver ver 2.2
Bluetooth: HCILL protocol initialized
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci sdhci-esdhc-imx.2: no write-protect pin available!
mmc0: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA
sdhci sdhci-esdhc-imx.3: no write-protect pin available!
mmc1: SDHCI controller on platform [sdhci-esdhc-imx.3] using DMA
mmc2: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA
mxc_vdoa mxc_vdoa: i.MX Video Data Order Adapter(VDOA) driver probed
VPU initialized
mxc_asrc registered
Galcore version 4.6.9.6622
Thermal calibration data is 0x5604b27d
Thermal sensor with ratio = 177
usb 2-1: new high speed USB device number 2 using fsl-ehci
Anatop Thermal registered as thermal_zone0
anatop_thermal_probe: default cooling device is cpufreq!
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio
imx-hdmi-soc-dai imx-hdmi-soc-dai.0: Failed: Load HDMI-video first.
sgtl5000 0-000a: Failed to get supply ‘VDDD’: -19
print_constraints: 0-000a: 850 1600 mV at 1200 mV normal
sgtl5000 0-000a: sgtl5000 revision 17
asoc: sgtl5000 imx-ssi.1 mapping ok
Initialize HDMI-audio failed. Load HDMI-video first!
ALSA device list:
#0: sgtl5000-audio
NET: Registered protocol family 26
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
can: raw protocol (rev 20090105)
can: broadcast manager protocol (rev 20090105 t)
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
hub 2-1:1.0: USB hub found
lib80211: common routines for IEEE802.11 drivers
hub 2-1:1.0: 3 ports detected
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
Bus freq driver module loaded
Bus freq driver Enabled
mxc_dvfs_core_probe
DVFS driver module loaded
rtc-isl1208 0-006f: hctosys: invalid date/time
Waiting for root device /dev/mmcblk0p1…
mmc1: host does not support reading read-only switch. assuming write-enable.
mmc1: new high speed SDHC card at address aaaa
mmcblk0: mmc1:aaaa SU04G 3.69 GiB
mmcblk0: p1
mmc2: card claims to support voltages below the defined range. These will be ignored.
mmc2: queuing unknown CIS tuple 0x91 (3 bytes)
mmc2: new SDIO card at address 0001
EXT3-fs: barriers not enabled
kjournald starting. Commit interval 5 seconds
EXT3-fs (mmcblk0p1): using internal journal
EXT3-fs (mmcblk0p1): recovery complete
EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:1.
devtmpfs: mounted
Freeing init memory: 196K
init: ureadahead main process (1386) terminated with status 5
ov5642_read_reg:write reg error:reg=300a
Hi Eric
Your instructions work like a charm. I think there was problem with the way I was formatting the SD card.
Thanks
Ganesh
I’ve compiled the kernel 4.1.0 with the ov5640_camera_mipi for this image but I can’t use it with gstreamer. Also I can’t use the camera with opencv? Is there a way to make it work already?
Hi Daniel,
Your previous question wasn’t regarding the Raring image, so I didn’t realize that you had another issue.
This image doesn’t contain any of the Freescale gstreamer components. We’re working to address this. Please subscribe to the blog and you should see some notes and binaries shortly.
Hi,
I am trying to get audio of of the head phone jack. Audio works fine on the HDMI port.
I can aplay to the hw0,0 device but nothing comes out on the jack, (hw1,0 sends it out on the HDMI port just fine)
I have tried changing different amixer parameters to no avail.
Is there a known issue with the audio driver for this kernel ?
Thanks,
Lasse
Hi Lasse,
No. Most of the userspaces that we test against default to the
headphone output and are working well, and we’ve definitely tested
this kernel with them.
There are some notes here about selecting particular audio channels.
http://boundarydevice.wpengine.com/audio-output-selection-under-linux-on-i-mx6/
The last time I looked (on an Oneiric build, I think), there was an
applet in Ubuntu to control audio output(s). I believe that in
Oneiric, the “pulse audio” system needs to be configured.
Has anyone had success getting BD-SL-i.MX6 to use Bluetooth.. I downloaded the raring image and kernel parts above.. Yet, when I insert a bluetooth dongleit turns on..i,e the light but when I do a hcitool dev I get nothing returned.. I do see it in lsusb list.
Thought, suggestions
Thanks
Gary
I have linaro-raring-developer-20130926.tar.gz running on my imx6 solo board. The vivante demos in /opt run, more or less. I am having problems running my own code. Does anyone have a simple c demo that runs on this linux distribution, that I can see the code for and how to build the code?
I currently have my own code that runs on the Vivante Simulator on windows. It seems to be crashing when opening a window in Linaro Linux.
I am a bit new to running the linaro builds, ( I usually use buildroot to bring up my rootfs)
with alip & dev images, I am getting the kernel boot stuck here…. I have tried 2 nit6x’s and a SOM’s with the carrier board, SATA and MMC
init: ureadahead main process (1388) terminated with status 5
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 3 ports detected
ov5642_read_reg:write reg error:reg=300a
Do you have ethernet and a display connected?
I’ve seen similar things on Freescale Ubuntu builds, and the culprit seemed to be the package manager trying to find out which packages need updates.
That usually resolves itself after a few long minutes though.
Yes, I have ethernet and the display connected. I also have a USB hub with a keyboard and mouse connected. The version that came with the board does not do this. I need the raring developer version to get some OpenGL ES code to run. Sometimes if you wait 5 minutes or so it boots up, but I have waited up to an hour without it booting. If I am lucky it boots up a couple of times per day.
Hi Jeff,
Can you compare the kernel command-line between an iteration that boots and one that doesn’t? We’ve had some reports of trouble with HDMI detection code, and I’ve seen at least one case where HDMI detection failed for me when the monitor wasn’t sync’d in U-Boot.
How do i get a kernel command line? I am not changing this. U-Boot always puts up a penquin. Linux, on the rare times it boots, either the display is on, but most of the time it is off. I am using a Sharp 1024×768 display with a DVI connection, and I have it connected to the board with a DVI to hdmi cable. Does linux recognize native HDMI monitors more reliably?
One of the first few lines of output to the serial port during kernel startup begins with “Kernel command line”. The rest of the line is what you’re looking for.
If the penguins show up, the monitor must have been specified in the video= clauses though.
Other debugging options for the kernel command-line are: --debug, initcall_debug, and debug=y. These will enable various kernel-level debug statements.
There’s also an Ubuntu-specific debug flag that you can use to trace the init process, but I can’t recall off-hand what it is.
To add kernel command-line arguments interactively, it’s best to bypass the
boot script and simply issue the commands by hand, pasting from a text buffer.
For this build, the process looks like the following:
I had the display connected only, once I had eth0 connected, it booted in 15 seconds or so, but without, about 5-10 minutes. I will search to see if I can turn on this check, my deployment will not have an Ethernet connection….
I am downloading linaro-raring-alip-20130926.tar.gz to try with UDOO quad which has Freescale imx6.Can I flash it from windows with windowsimagewriter or from the linux with dd?Does it need more steps and if yes,does someone have any link to start from?Thank you guys.
Hi,
I’m a beginner about SBC and I’m trying to install the developer’s version of linaro raring images in SabreLite following ericn’s process:
~/$ sudo umount /dev/sdc*
~/$ echo ‘,,83,*’ | sudo sfdisk /dev/sdc
~/$ sudo partprobe
~/$ sudo mkfs.ext3 -L raring-dev /dev/sdc1
~/$ sudo partprobe
~/$ udisks –mount /dev/sdc1
~/$ sudo tar zxvf linaro-raring-developer-20130926.tar.gz -C /media/raring-dev/
~/$ sync && sudo umount /media/raring-dev
But it’s not working. I get a error:
6x_bootscript is not found.
serial console at 115200, 8N1…
What should I do to fix it?
Thanks,
Bruno
Hi Bruno,
The first step is to validate the steps above.
Can you insert your SD card and enter mount from the shell on your dev machine?
Does your system auto-mount /media/raring-dev?
If so, does it contain a file named 6x_bootscript?
Hi Ericn,
My system auto-mount the SD card but in /media/bruno/raring-dev and it contains the files 6x_bootscript and 6x_bootscript.txt ( others files too).
When I execute the command:
sudo fdisk /dev/sdb
where sdb is the name of my 4GB SD card.
I get the partition table:
Disk /dev/sdb: 4035 MB, 4035969024 bytes
125 heads, 62 sectors/track, 1017 cylinders, total 7882752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20736f63
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 7881749 3940874+ 83 Linux
It’s the partition where I build Linaro image.
I had built Linaro’s Ubuntu Oneiric and Yocto Dora images on Windows, available here and they worked well, but they are .img and .sdcard images, different from now.
Thanks,
Bruno
Hi Bruno,
All of this looks perfect.
Can you forward the full output from U-Boot (preferably through pastebin)?
Hi Eric,
Sorry for the delay, but I had some problems with the serial interface (now it’s ok).
The output from U-boot I get is:
Thanks,
Bruno
The content is missing?
Did you by chance use angle-brackets somewhere in there?
WordPress allows quoting stuff within comments with <pre></pre>…
Sorry,
I used angle-brackets…
I’m not normally use these web applications, so I will put the link.
http://pastebin.com/0yDYMXZZ
Hi Bruno,
I think this part shows the issue:
If you notice, mmc 0 (full-sized SD card on SABRE Lite) has no card.
mmc 1 is present, but U-Boot isn’t recognizing the partition table…
Hmmm. I notice from your earlier post that you used sfdisk in the normal way, and the fdisk output looks normal.
Can you run these commands and paste the output (just pasting into the msg should work):
Hi Eric,
Running the commands above, I got:
U-Boot > mmc dev 1
mmc1 is current device
U-Boot > mmc info
mmc – MMC sub system
Usage:
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part – lists available partition on current mmc device
mmc dev [dev] [part] – show or set current mmc device [partition]
mmc list – lists available devices
U-Boot > mmc part
## Unknown partition table
U-Boot >
Okay, so my memory was faulty, and “mmc info” was only present in the U-Boot 2009.08 releases…
It looks like you have a different form of partition table.
Can you dump block zero of the card like so?
I got it:
U-Boot > mmc read 10008000 0 1
MMC read: dev # 1, block # 0, count 1 ... 1 blocks read: OK
U-Boot > md.b 10008000 0x200
10008000: eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 08 fa 03 .X.MSDOS5.0.....
10008010: 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 00 00 00 ........?.......
10008020: 00 48 78 00 03 1e 00 00 00 00 00 00 02 00 00 00 .Hx.............
10008030: 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
10008040: 80 01 29 55 c3 34 c2 4e 4f 20 4e 41 4d 45 20 20 ..)U.4.NO NAME
10008050: 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 FAT32 3.....
10008060: 7b 8e c1 8e d9 bd 00 7c 88 4e 02 8a 56 40 b4 41 {......|.N..V@.A
10008070: bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a f6 c1 01 ..U..r...U.u....
10008080: 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd 13 73 05 t..F..-.V@....s.
10008090: b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 d1 80 e2 .....f...@f.....
100080a0: 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 66 f7 e1 ?.......Af...f..
100080b0: 66 89 46 f8 83 7e 16 00 75 38 83 7e 2a 00 77 32 f.F..~..u8.~*.w2
100080c0: 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 00 e8 2b f.F.f..........+
100080d0: 00 e9 2c 03 a0 fa 7d b4 7d 8b f0 ac 84 c0 74 17 ..,...}.}.....t.
100080e0: 3c ff 74 09 b4 0e bb 07 00 cd 10 eb ee a0 fb 7d
Yep. That ain’t a partition table.
Can you re-run the sfdisk part and re-run this? You should see the magic 55 aa at the end of the block.
You can also use hexdump on your Linux box:
hi Eric,
I could only use:
sudo hexdump -C /dev/sdb | grep 1f0
on Linux, but I saw the 55 aa at the end of the block, like you posted before.
I re-runned the fdisk part, but any change. I re-runned the U-boot part, but any change too ( I saw the 55 aa at the end of the block again).
Hi Ericn,
I got a good result.
I had a problem in my hard disk, so I’m using a 40GB provisory HDD. Because of the capacity, I installed VirtualBox to emulate a 12.10 Ubuntu ( I was using Ubuntu 13.10 in my HDD).
I installed the developer’s version of linaro raring images in SabreLite following using your process (the first one) and it seems working.
Now, my display is showing a command line interface.
I would know if there’s a graphical user interface or only ALIP version comes with that ( I installed the ALIP version too and it works).
One last question: I need to access some peripherals (I2C, MIPI interface and UART) and use them in my C source files, so I need the peripheral drives. Do I have to create the drivers? Is there any build with the peripherals drivers? I’m thinking to use the SDK platform from freescale.
Thanks,
Bruno
Hi,
Is it be possible to get the linux headers that were used for building the kernel in these images? “uname -r” shows “3.0.35-02828-g5cedf96”, but commit g5cedf96 can not be found on https://github.com/boundarydevices/linux-imx6.git
I appreciate the your effort of building images, but having to build and deploy a new kernel just to enable another driver reduces the benefits gained from using the images.
Thanks
Hi Kalle,
The tags in uname -r have an extraneous g that you need to skip when looking for a commit:
Thanks, Eric!
After spending half a day on it, I feel a bit dumb now 🙂
Thank you for creating these linux images!
No problem Kalle.
And you should feel smarter (or at least more informed)!
Hi,
I have a question regarding the MAC address or ethaddr in u-boot.imx. My board is a very similiar to Nitrogen6x using the ifconfig showed the HWaddr as below.
eth0 Link encap:Ethernet HWaddr 1E:ED:19:27:1A:B3
………………………
wlan0 Link encap:Ethernet HWaddr DE:AD:BE:EF:00:00
If I want to change these HWaddrs, I have no idea how to. I googled, and learned there is sample for atngw100 board to find the u-boot “env” definition struct in flash.c file, which is 0x7f0000 – 0x800000. then use u-boot commands to protect, erase, setevn to change the ethaddr.
I wonder if Boundary Nithogen6x board uses the same method to change MAC address. however, I’ve searched so far in /arch/arm/mach-mx6, I did not see the flash.c file. If someone can kindly help me how to use u-boot to set ethaddr. I’ve used printenv command on my board, but it does not show any ethaddr information.
thanks,
-Bill
Hi Eric!
I flashed the nano image and don’t see any login prompt. Did you test it?
The latest lines of the boot log are:
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
devtmpfs: mounted
Freeing init memory: 212K
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: queuing unknown CIS tuple 0x80 (4 bytes)
mmc1: queuing unknown CIS tuple 0x02 (1 bytes)
mmc1: new SDIO card at address 0001
usb 2-1.2: new low speed USB device number 3 using fsl-ehci
input: HID 0566:3002 as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.2/2-1.2:1.0/input/input0
generic-usb 0003:0566:3002.0001: input,hidraw0: USB HID v1.10 Keyboard [HID 0566:3002] on usb-fsl-ehci.1-1.2/input0
input: HID 0566:3002 as /devices/platform/fsl-ehci.1/usb2/2-1/2-1.2/2-1.2:1.1/input/input1
generic-usb 0003:0566:3002.0002: input,hidraw1: USB HID v1.10 Device [HID 0566:3002] on usb-fsl-ehci.1-1.2/input1
init: ureadahead main process (61) terminated with status 5
usb 2-1.3: new high speed USB device number 4 using fsl-ehci
scsi0 : usb-storage 2-1.3:1.0
usb 2-1.4: new high speed USB device number 5 using fsl-ehci
mountall: Disconnected from Plymouth
I think it’s Ubuntu and therefore created a file /etc/init/serial.conf the following content but it does not help.
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec /sbin/getty 115200 ttymxc0
Please help
Hi Lisarden,
Yes we’ve tested this out, but it’s been a while. Note that it should produce a console on ttymxc1 (our standard serial console for U-Boot), not ttymxc0.
Eric,
I have noticed it yet, but can’t figure out where it should be changed. I want to run the same SD card on a different board with console at ttymxc0. Do you know where it is configured?
Eric,
I found it: the rootfs can’t be mount in RO mode, only in RW