Dear all,
I'm new to a iMX233-OLinuXino-NANO. At the weekend I tried to use an out of the box arch linux installation on this board. Arch linux started fine but when I tried to use the I2C Tools I got some errors.
So I decide to follow Christians blog and compile a kernel with patches for the I2C.
http://www.jann.cc/2012/08/23/building_a_kernel_3_x_for_the_olinuxino_from_sources.html (http://www.jann.cc/2012/08/23/building_a_kernel_3_x_for_the_olinuxino_from_sources.html)
At this point I run in an issue. I don't understand what is wrong. All my screen output looks like the same as Chris shows. I'm also able to start my board. Only near to the login I get following error:
[ TIME ] Timed out waiting for device dev-ttyAMA0.device.
�[DEPEND] Dependency failed for Serial Getty on ttyAMA0.
and I m not able to login. In the kernel I can see that ttyAMA0 is available.
Here is kernel output:
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: noinitrd console=ttyAMA0,115200 root=/dev/mmcblk0p2 rw rootwait ssp1=mmc
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 50140K/65536K available (5996K kernel code, 410K rwdata, 2516K rodata, 286K init, 5506K bss, 15396K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0858540 (8514 kB)
[ 0.000000] .init : 0xc0859000 - 0xc08a082c ( 287 kB)
[ 0.000000] .data : 0xc08a2000 - 0xc0908948 ( 411 kB)
[ 0.000000] .bss : 0xc0908948 - 0xc0e69228 (5507 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] of_irq_init: children remain, but no parents
[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3695 kB
[ 0.000000] per task-struct memory footprint: 1152 bytes
[ 0.060000] Calibrating delay loop... 227.32 BogoMIPS (lpj=1136640)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 512
[ 0.080000] CPU: Testing write buffer coherency: ok
[ 0.080000] Setting up static identity map for 0xc05b3800 - 0xc05b3858
[ 0.100000] devtmpfs: initialized
[ 0.120000] pinctrl core: initialized pinctrl subsystem
[ 0.120000] regulator-dummy: no parameters
[ 0.130000] NET: Registered protocol family 16
[ 0.130000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.190000] Serial: AMBA PL011 UART driver
[ 0.190000] 80070000.serial: ttyAMA0 at MMIO 0x80070000 (irq = 17, base_baud = 0) is a PL011 rev2
[ 0.370000] console [ttyAMA0] enabled
[ 0.420000] bio: create slab <bio-0> at 0
[ 0.440000] mxs-dma 80004000.dma-apbh: initialized
[ 0.450000] mxs-dma 80024000.dma-apbx: initialized
[ 0.460000] usb0_vbus: 5000 mV
[ 0.460000] SCSI subsystem initialized
[ 0.470000] usbcore: registered new interface driver usbfs
[ 0.470000] usbcore: registered new interface driver hub
[ 0.480000] usbcore: registered new device driver usb
[ 0.490000] Linux video capture interface: v2.00
[ 0.490000] pps_core: LinuxPPS API ver. 1 registered
[ 0.500000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.500000] PTP clock support registered
[ 0.510000] Advanced Linux Sound Architecture Driver Initialized.
[ 0.530000] cfg80211: Calling CRDA to update world regulatory domain
[ 0.540000] Switched to clocksource mxs_timer
[ 0.860000] FS-Cache: Loaded
[ 0.870000] CacheFiles: Loaded
[ 0.940000] NET: Registered protocol family 2
[ 0.950000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.960000] TCP bind hash table entries: 512 (order: 2, 18432 bytes)
[ 0.960000] TCP: Hash tables configured (established 512 bind 512)
[ 0.970000] TCP: reno registered
[ 0.970000] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.980000] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.990000] NET: Registered protocol family 1
[ 1.000000] RPC: Registered named UNIX socket transport module.
[ 1.000000] RPC: Registered udp transport module.
[ 1.010000] RPC: Registered tcp transport module.
[ 1.010000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.020000] NetWinder Floating Point Emulator V0.97 (double precision)
[ 1.110000] NFS: Registering the id_resolver key type
[ 1.110000] Key type id_resolver registered
[ 1.120000] Key type id_legacy registered
[ 1.120000] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 1.130000] msgmni has been set to 97
[ 1.150000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 1.160000] io scheduler noop registered (default)
[ 1.170000] of_dma_request_slave_channel: dma-names property of node '/apb@80000000/apbx@80040000/serial@80070000' missing or empty
[ 1.190000] uart-pl011 80070000.serial: no DMA platform data
[ 1.190000] 8006c000.serial: ttyAPP0 at MMIO 0x8006c000 (irq = 145, base_baud = 1500000) is a 8006c000.serial
[ 1.200000] mxs-auart 8006c000.serial: Found APPUART 3.0.0
[ 1.240000] CAN device driver interface
[ 1.250000] PPP generic driver version 2.4.2
[ 1.250000] PPP BSD Compression module registered
[ 1.260000] PPP Deflate Compression module registered
[ 1.260000] PPP MPPE Compression module registered
[ 1.270000] usbcore: registered new interface driver rtl8192cu
[ 1.280000] usbcore: registered new interface driver rt2500usb
[ 1.280000] usbcore: registered new interface driver rt73usb
[ 1.290000] usbcore: registered new interface driver rt2800usb
[ 1.300000] usbcore: registered new interface driver ath9k_htc
[ 1.300000] usbcore: registered new interface driver ar5523
[ 1.310000] usbcore: registered new interface driver asix
[ 1.310000] usbcore: registered new interface driver ax88179_178a
[ 1.320000] usbcore: registered new interface driver cdc_ether
[ 1.330000] usbcore: registered new interface driver r815x
[ 1.330000] usbcore: registered new interface driver smsc95xx
[ 1.340000] usbcore: registered new interface driver net1080
[ 1.350000] usbcore: registered new interface driver cdc_subset
[ 1.350000] usbcore: registered new interface driver zaurus
[ 1.360000] usbcore: registered new interface driver cdc_ncm
[ 1.360000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.370000] usbcore: registered new interface driver cdc_acm
[ 1.380000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.390000] usbcore: registered new interface driver usb-storage
[ 1.390000] usbcore: registered new interface driver usbserial
[ 1.400000] usbcore: registered new interface driver usbserial_generic
[ 1.410000] usbserial: USB Serial support registered for generic
[ 1.410000] usbcore: registered new interface driver option
[ 1.420000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.430000] ci_hdrc ci_hdrc.0: doesn't support gadget
[ 1.440000] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1.450000] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.480000] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.500000] hub 1-0:1.0: USB hub found
[ 1.500000] hub 1-0:1.0: 1 port detected
[ 1.510000] mousedev: PS/2 mouse device common for all mice
[ 1.530000] stmp3xxx-rtc 8005c000.rtc: rtc core: registered 8005c000.rtc as rtc0
[ 1.530000] i2c /dev entries driver
[ 1.540000] usbcore: registered new interface driver uvcvideo
[ 1.550000] USB Video Class driver (1.1.1)
[ 1.550000] gspca_main: v2.14.0 registered
[ 1.560000] usbcore: registered new interface driver gspca_zc3xx
[ 1.610000] mxs-mmc 80010000.ssp: initialized
[ 1.630000] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.640000] usbcore: registered new interface driver usbhid
[ 1.650000] usbhid: USB HID core driver
[ 1.650000] mxs-lradc 80050000.lradc: Touchscreen not enabled.
[ 1.680000] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 1.690000] mmc0: new high speed SD card at address 0001
[ 1.700000] TCP: cubic registered
[ 1.700000] NET: Registered protocol family 17
[ 1.710000] mmcblk0: mmc0:0001 00000 1.89 GiB
[ 1.720000] can: controller area network core (rev 20120528 abi 9)
[ 1.720000] NET: Registered protocol family 29
[ 1.740000] can: raw protocol (rev 20120528)
[ 1.740000] can: broadcast manager protocol (rev 20120528 t)
[ 1.750000] mmcblk0: p1 p2
[ 1.760000] can: netlink gateway (rev 20130117) max_hops=1
[ 1.760000] lib80211: common routines for IEEE802.11 drivers
[ 1.770000] Key type dns_resolver registered
[ 1.780000] registered taskstats version 1
[ 1.790000] stmp3xxx-rtc 8005c000.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[ 1.820000] ALSA device list:
[ 1.820000] No soundcards found.
�[ 1.840000] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 1.850000] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 4.890000] EXT4-fs (mmcblk0p2): recovery complete
[ 4.900000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.910000] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 4.920000] devtmpfs: mounted
[ 4.930000] Freeing unused kernel memory: 284K (c0859000 - c08a0000)
[ 7.270000] systemd[1]: systemd 212 running in system mode. (+PAM -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ +SECCOMP -APPARMOR)
[ 7.290000] systemd[1]: Detected architecture 'arm'.
Welcome to Arch Linux ARM!
[ 7.410000] systemd[1]: Failed to insert module 'autofs4'
[ 7.420000] systemd[1]: Failed to insert module 'ipv6'
[ 7.430000] systemd[1]: Set hostname to <alarm>.
�[ 8.810000] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 8.840000] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[ 8.860000] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 8.860000] systemd[1]: Expecting device dev-ttyAMA0.device...
� Expecting device dev-ttyAMA0.device...
[ 8.890000] systemd[1]: Expecting device sys-subsystem-net-devices-eth0.device...
� Expecting device sys-subsystem-net-devices-eth0.device...
[ 8.920000] systemd[1]: Starting Remote File Systems.
�[ OK ] Reached target Remote File Systems.
[ 8.950000] systemd[1]: Reached target Remote File Systems.
[ 8.950000] systemd[1]: Starting Encrypted Volumes.
�[ OK ] Reached target Encrypted Volumes.
[ 8.980000] systemd[1]: Reached target Encrypted Volumes.
[ 8.980000] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[ 8.990000] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 9.000000] systemd[1]: Starting Paths.
�[ OK ] Reached target Paths.
[ 9.030000] systemd[1]: Reached target Paths.
[ 9.030000] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 9.040000] systemd[1]: Starting Swap.
�[ OK ] Reached target Swap.
[ 9.070000] systemd[1]: Reached target Swap.
[ 9.070000] systemd[1]: Starting Root Slice.
�[ OK ] Created slice Root Slice.
[ 9.100000] systemd[1]: Created slice Root Slice.
[ 9.100000] systemd[1]: Starting Device-mapper event daemon FIFOs.
�[ OK ] Listening on Device-mapper event daemon FIFOs.
[ 9.140000] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 9.140000] systemd[1]: Starting Delayed Shutdown Socket.
�[ OK ] Listening on Delayed Shutdown Socket.
[ 9.180000] systemd[1]: Listening on Delayed Shutdown Socket.
[ 9.180000] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
�[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ 9.220000] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 9.220000] systemd[1]: Starting LVM2 metadata daemon socket.
�[ OK ] Listening on LVM2 metadata daemon socket.
[ 9.260000] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 9.260000] systemd[1]: Starting User and Session Slice.
�[ OK ] Created slice User and Session Slice.
[ 9.300000] systemd[1]: Created slice User and Session Slice.
[ 9.300000] systemd[1]: Starting udev Control Socket.
�[ OK ] Listening on udev Control Socket.
[ 9.330000] systemd[1]: Listening on udev Control Socket.
[ 9.330000] systemd[1]: Starting udev Kernel Socket.
�[ OK ] Listening on udev Kernel Socket.
[ 9.360000] systemd[1]: Listening on udev Kernel Socket.
[ 9.360000] systemd[1]: Starting Journal Socket.
�[ OK ] Listening on Journal Socket.
[ 9.390000] systemd[1]: Listening on Journal Socket.
[ 9.390000] systemd[1]: Starting System Slice.
�[ OK ] Created slice System Slice.
[ 9.420000] systemd[1]: Created slice System Slice.
[ 9.420000] systemd[1]: Mounted POSIX Message Queue File System.
[ 9.440000] systemd[1]: Starting Apply Kernel Variables...
� Starting Apply Kernel Variables...
[ 9.490000] systemd[1]: Mounted Huge Pages File System.
[ 9.520000] systemd[1]: Started Load Kernel Modules.
[ 9.540000] systemd[1]: Started Set Up Additional Binary Formats.
[ 9.560000] systemd[1]: Starting udev Coldplug all Devices...
� Starting udev Coldplug all Devices...
[ 9.620000] systemd[1]: Started Create list of required static device nodes for the current kernel.
[ 9.640000] systemd[1]: Starting Create Static Device Nodes in /dev...
� Starting Create Static Device Nodes in /dev...
[ 9.690000] systemd[1]: Starting Setup Virtual Console...
� Starting Setup Virtual Console...
[ 9.770000] systemd[1]: Mounted Configuration File System.
[ 9.780000] systemd[1]: Mounting Debug File System...
� Mounting Debug File System...
[ 9.820000] systemd[1]: Starting system-netctl\x2difplugd.slice.
�[ OK ] Created slice system-netctl\x2difplugd.slice.
[ 9.880000] systemd[1]: Created slice system-netctl\x2difplugd.slice.
[ 9.880000] systemd[1]: Starting system-getty.slice.
�[ OK ] Created slice system-getty.slice.
[ 9.920000] systemd[1]: Created slice system-getty.slice.
[ 9.930000] systemd[1]: Starting system-serial\x2dgetty.slice.
�[ OK ] Created slice system-serial\x2dgetty.slice.
[ 10.020000] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 10.020000] systemd[1]: Mounted FUSE Control File System.
[ 10.060000] systemd[1]: Starting Journal Service...
� Starting Journal Service...
�[ OK ] Started Journal Service.
[ 10.140000] systemd[1]: Started Journal Service.
�[ OK ] Reached target Slices.
� Mounting Temporary Directory...
� Starting Remount Root and Kernel File Systems...
�[ OK ] Started Apply Kernel Variables.
�[ OK ] Started Setup Virtual Console.
�[ OK ] Mounted Temporary Directory.
�[ OK ] Mounted Debug File System.
�[ OK ] Started Create Static Device Nodes in /dev.
�[ OK ] Started Remount Root and Kernel File Systems.
� Starting Load/Save Random Seed...
� Starting udev Kernel Device Manager...
�[ OK ] Reached target Local File Systems (Pre).
�[ OK ] Reached target Local File Systems.
� Starting Trigger Flushing of Journal to Persistent Storage...
� Starting Create Volatile Files and Directories...
�[ OK ] Started udev Coldplug all Devices.
[ 12.660000] systemd-udevd[67]: starting version 212
�[ OK ] Started Load/Save Random Seed.
�[ OK ] Started udev Kernel Device Manager.
[ 13.170000] systemd-journald[55]: Received request to flush runtime journal from PID 1
�[ OK ] Started Trigger Flushing of Journal to Persistent Storage.
�[ OK ] Started Create Volatile Files and Directories.
� Starting Update UTMP about System Boot/Shutdown...
[ 13.550000] systemd-journald[55]: File /var/log/journal/e4b5dad211aa4a41920893d218a05e68/system.journal corrupted or uncleanly shut down, renaming and replacing.
�[ OK ] Started Update UTMP about System Boot/Shutdown.
�[ OK ] Reached target System Initialization.
�[ OK ] Reached target Timers.
�[ OK ] Listening on D-Bus System Message Bus Socket.
�[ OK ] Reached target Sockets.
�[ OK ] Reached target Basic System.
� Starting Entropy Harvesting Daemon...
� Starting OpenSSH Daemon...
�[ OK ] Started OpenSSH Daemon.
� Starting Network Time Service...
� Starting Permit User Sessions...
� Starting D-Bus System Message Bus...
�[ OK ] Started D-Bus System Message Bus.
� Starting Login Service...
�[ OK ] Started Network Time Service.
�[ OK ] Started Permit User Sessions.
�[ OK ] Started Entropy Harvesting Daemon.
� Starting Getty on tty1...
�[ OK ] Started Getty on tty1.
�[ OK ] Started Login Service.
[ TIME ] Timed out waiting for device sys-subsystem-net-devices-eth0.device.
�[DEPEND] Dependency failed for Automatic wired network connec...etctl profiles.
�[ TIME ] Timed out waiting for device dev-ttyAMA0.device.
�[DEPEND] Dependency failed for Serial Getty on ttyAMA0.
�[ OK ] Reached target Login Prompts.
�[ OK ] Reached target Multi-User System.
�[ OK ] Reached target Graphical Interface.
I was not able to figure out what I do wrong. Hopefully someone can help and explain what I have to do to compile a kernel successful.
Thank you!
Best regards
Hey Team ... I'm having the same issue.
What I did is used the official image from the Arch Arm website... that boots fine and I can log in ... I than updated the SD card with one of the pre-compiled kernel images for the first partition ...after booting with the new image I see the output same as the one posted by MoD ... can't login, see new messages when I plug a usb device in... but dont' get the log in prompt.
Any ideas ?
Solution:
add "CONFIG_FHANDLE" to your kernel-configfile. It can be found using menuconfig the following way:
General setup --->
[*] open by fhandle syscalls
Greetings,
Herakles