Changes

Jump to: navigation, search

XUELK-AN-002: Running Debian distribution

105 bytes added, 09:16, 16 March 2017
no edit summary
This application note shows how to run one of such distributions - Debian Jessie - on SBC Lynx. '''It is assumed that the reader if already familiar with''' [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)|'''AXEL ULite and SBC Lynx Embedded Linux Kit (XUELK)''']], as it is the basis of this work.
 
The procedure was tested on a SBC Lynx with ConfigID=0x0000000C (PCB revision CS214515A), starting from XUELK 1.1.3 binaries.
=> run mmcboot
reading xuelk-1.1.3_uImage.debian
7139232 6752936 bytes read in 353 338 ms (19.3 1 MiB/s)
reading imx6ul-lynx.dtb
31436 bytes read in 20 22 ms (1.5 4 MiB/s)
FDT: override 'som_uniqueid' with 'e6b3f362:393d61d4'
FDT: override 'cb_uniqueid' with '00000000:00000000'
## Booting kernel from Legacy Image at 80800000 ...
Image Name: Linux-3.14.52-xuelk-1.1.3-xeno1-
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 7139168 6752872 Bytes = 6.8 4 MiB
Load Address: 80008000
Entry Point: 80008000
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.14.52-xuelk-1.1.3-xeno1-ipipe (guglielmini@linuxserver2) (gcc version 4.9.2 (GCC) ) #2 3 SMP PREEMPT Wed Thu Mar 15 1216 09:2528:36 51 CET 2017
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] cma: CMA: reserved 64 MiB at 9c000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 10 8 pages/cpu @9bbbe000 s20224 9bbc0000 s8832 r8192 d12544 u40960d15744 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait rw console=ttymxc0,115200 vmalloc=400M mtdparts=gpmi-nand:8M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-fdt),1M(nand-spare),8M(nand-kernel),4M(nand-splash),-(nand-ubi);spi0.0:1M(spi-uboot),256k(spi-env1),256k(spi-env2),512k(spi-dtb),6M(spi-kernel),4M(spi-splash),-(spi-free)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 439676K441088K/524288K available (8919K 8253K kernel code, 604K 599K rwdata, 3264K 3168K rodata, 515K 408K init, 974K 436K bss, 84612K 83200K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .text : 0x80008000 - 0x80bedf08 0x80b2f940 (12184 11423 kB)[ 0.000000] .init : 0x80bee000 0x80b30000 - 0x80c6ef00 0x80b96280 ( 516 409 kB)[ 0.000000] .data : 0x80c70000 0x80b98000 - 0x80d071f8 0x80c2dd38 ( 605 600 kB)[ 0.000000] .bss : 0x80d07204 0x80c2dd44 - 0x80dfacb4 0x80c9b134 ( 975 437 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] Switching to timer-based delay loop
[ 0.000020] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns[ 0.000073] I-pipe, 3.000 MHz clocksource, wrap in 1431655 ms[ 0.002531] clocksource_of_init: no matching clocksources found[ 0.003382] Interrupt pipeline (release #17)[ 0.003739] Console: colour dummy device 80x30[ 0.003787] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)[ 0.003820] pid_max: default: 32768 minimum: 301[ 0.004250] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)[ 0.004281] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)[ 0.023295] Initializing cgroup subsys net_cls[ 0.023426] CPU: Testing write buffer coherency: ok[ 0.023964] /cpus/cpu@0 missing clock-frequency property[ 0.024006] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000[ 0.024069] Setting up static identity map for 0x80881010 - 0x80881068[ 0.071288] Brought up 1 CPUs[ 0.071327] SMP: Total of 1 processors activated (6.00 BogoMIPS).[ 0.071346] CPU: All CPU(s) started in SVC mode.[ 0.072818] devtmpfs: initialized[ 0.085691] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5[ 0.086615] pinctrl core: initialized pinctrl subsystem[ 0.087677] regulator-dummy: no parameters[ 0.093164] NET: Registered protocol family 16[ 0.113354] DMA: preallocated 256 KiB pool for atomic coherent allocations[ 0.115257] cpuidle: using governor ladder[ 0.115291] cpuidle: using governor menu[ 0.115775] Use WDOG1 as reset source[ 0.136009] syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered[ 0.136830] vdd3p0: 2625 <-[ 0.000018] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns[ 0.002384] clocksource_of_init: no matching clocksources found[ 0.002734] Console: colour dummy device 80x30[ 0.002779] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)[ 0.002813] pid_max: default: 32768 minimum: 301[ 0.003222] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)[ 0.003256] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)[ 0.020249] Initializing cgroup subsys net_cls[ 0.020379] CPU: Testing write buffer coherency: ok[ 0.020894] /cpus/cpu@0 missing clock-frequency property[ 0.020935] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000[ 0.020998] Setting up static identity map for 0x807dcbd0 - 0x807dcc28[ 0.070694] Brought up 1 CPUs[ 0.070734] SMP: Total of 1 processors activated (6.00 BogoMIPS).[ 0.070754] CPU: All CPU(s) started in SVC mode.[ 0.072139] devtmpfs: initialized[ 0.083581] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5[ 0.084417] pinctrl core: initialized pinctrl subsystem[ 0.085356] regulator-dummy: no parameters[ 0.090485] NET: Registered protocol family 16[ 0.109011] DMA: preallocated 256 KiB pool for atomic coherent allocations[ 0.110707] cpuidle: using governor ladder[ 0.110845] cpuidle: using governor menu[ 0.111326] Use WDOG1 as reset source[ 0.129117] syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered[ 0.129876] vdd3p0: 2625 <--> 3400 mV at 3000 mV[ 0.130844] cpu: 725 <--> 1450 mV
Welcome to Debian GNU/Linux 8 (jessie)!
[ 65.621585893284] systemd[1]: Set hostname to <arm>.[ 7.571642] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.[ OK ] Started Dispatch Password Requests to Console Directory Watch.[ 76.607985793575] systemd[1]: Listening on Journal udev Control Socket.[ OK ] Listening on Journal udev Control Socket.[ 76.627719819361] systemd[1]: Listening on Journal udev Kernel Socket (/dev/log).[ OK ] Listening on Journal udev Kernel Socket (/dev/log).[ 7.657746] systemd[1]: Started Forward Password Requests to Wall Directory Watch.[ OK ] Started Forward Password Requests to Wall Directory Watch.[ 7.687243] systemd[1]: Reached target Paths.[ OK ] Reached target Paths.[ 7.707679] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.[ OK ] Listening on /dev/initctl Compatibility Named Pipe.[ 76.738277849399] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 76.757904] systemd[1]: Created slice User and Session Slice.[ OK ] Created slice User and Session Slice.[ 7.787212869027] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 76.808133] systemd[1]: Reached target Encrypted Volumes.[ OK ] Reached target Encrypted Volumes.[ 7.838391] systemd[1]: Listening on udev Control Socket.[ OK ] Listening on udev Control Socket.[ 7.868264] systemd[1]: Listening on udev Kernel Socket.[ OK ] Listening on udev Kernel Socket.[ 7.898487889673] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 76.910861] systemd[1]: Created slice system-getty.slice.[ OK ] Created slice system-getty.slice.[ 6.940329] systemd[1]: Created slice system-serial\x2dgetty.slice.[ OK ] Created slice system-serial\x2dgetty.slice.[ 6.924847969405] systemd[1]: Starting Remount Root and Kernel Reached target Remote File Systems (Pre).[ OK ] Reached target Remote File Systems(Pre).[ 6.999342] systemd[1]: Reached target Remote File Systems. Starting Remount Root and Kernel [ OK ] Reached target Remote File Systems.[ 7.029982] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.[ OK ] Listening on /dev/initctl Compatibility Named Pipe.[ 7.060031] systemd[1]: Created slice User and Session Slice.[ OK ] Created slice User and Session Slice.[ 7.967506089399] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 7.978131110139] systemd[1]: Created slice system-serial\x2dgetty.sliceListening on Journal Socket.[ OK ] Created slice system-serial\x2dgetty.sliceListening on Journal Socket.[ 87.014785152479] systemd[1]: Starting Load Kernel Modules...
Starting Load Kernel Modules...
[ 87.071038192788] systemd[1]: Mounting Debug File System... Mounting Debug File System...[ 7.232732] systemd[1]: Starting Create Static Device Nodes in /dev...
Starting Create Static Device Nodes in /dev...
[ 87.119433308977] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems...[ 7.324509] systemd[1]: Listening on Journal Socket (/dev/log).[ OK ] Listening on Journal Socket (/dev/log).[ 7.373285] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 87.145399411297] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ OK ] Set up automount Arbitrary Executab...ats File System Automount Point.
[ 87.234658477276] systemd[1]: Mounting Debug File System..Started Forward Password Requests to Wall Directory Watch. Mounting Debug File System..[ OK ] Started Forward Password Requests to Wall Directory Watch.[ 87.277889529053] systemd[1]: Created slice system-getty.sliceReached target Encrypted Volumes.[ OK ] Created slice system-getty.sliceReached target Encrypted Volumes.[ 87.315659549681] systemd[1]: Reached target Remote File Systems (Pre)Started Dispatch Password Requests to Console Directory Watch.[ OK ] Reached target Remote File Systems (Pre)Started Dispatch Password Requests to Console Directory Watch.[ 87.377219579006] systemd[1]: Reached target Remote File SystemsPaths.[ OK ] Reached target Remote File SystemsPaths.[ 87.406115593796] systemd[1]: Mounted Debug File System.
[ OK ] Mounted Debug File System.
[ 87.438986] systemd[1]: Started Remount Root and Kernel File Systems.[ OK ] Started Remount Root and Kernel File Systems.[ 8.502737630692] systemd[1]: Started Load Kernel Modules.
[ OK ] Started Load Kernel Modules.
[ 87.539026684582] systemd[1]: Started Create Static Device Nodes in /dev.
[ OK ] Started Create Static Device Nodes in /dev.
[ 87.586994720664] systemd[1]: Started Remount Root and Kernel File Systems.[ OK ] Started Remount Root and Kernel File Systems.[ 7.746364] systemd[1]: Starting Load/Save Random Seed... Starting Load/Save Random Seed...[ 7.796806] systemd[1]: Starting udev Coldplug all Devices... Starting udev Coldplug all Devices...[ 7.852274] systemd[1]: Starting udev Kernel Device Manager...
Starting udev Kernel Device Manager...
[ 87.621403928911] systemd[1]: Reached target Local File Systems (Pre).[ OK ] Reached target Local File Systems (Pre).[ 7.969049] systemd[1]: Reached target Local File Systems.[ OK ] Reached target Local File Systems.[ 7.998902] systemd[1]: Mounting FUSE Control File System...
Mounting FUSE Control File System...
[ 8.690840082205] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 8.772403] systemd[1]: Starting udev Coldplug all Devices... Starting udev Coldplug all Devices...[ 8.832437] systemd[1]: Starting Load/Save Random Seed... Starting Load/Save Random Seed...[ 8.881353] systemd[1]: Reached target Local File Systems (Pre).[ OK ] Reached target Local File Systems (Pre).[ 8.947414] systemd[1]: Reached target Local File Systems.[ OK ] Reached target Local File Systems.[ 9.005317170411] systemd[1]: Mounted FUSE Control File System.
[ OK ] Mounted FUSE Control File System.
[ 98.058504201728] systemd[1]: Started Load/Save Random Seed.[ OK ] Started Load/Save Random Seed.[ 8.261146] systemd[1]: Started Apply Kernel Variables.[ OK ] Started Apply Kernel Variables.[ 8.310956] systemd[1]: Started udev Kernel Device Manager.
[ OK ] Started udev Kernel Device Manager.
[ 98.090414] systemd[1]: Started Apply Kernel Variables.[ OK ] Started Apply Kernel Variables.[ 9.119596] systemd[1]: Started Load/Save Random Seed.[ OK ] Started Load/Save Random Seed.[ 9.169870354235] systemd[1]: Starting Raise network interfaces...
Starting Raise network interfaces...
[ 9.913649322029] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage...
[ 1110.438005519125] systemd-journald[140]: Received request to flush runtime journal from PID 1
[ OK ] Started Flush Journal to Persistent Storage.
Starting Create Volatile Files and Directories...
[ 14.858928] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=2188000.ethernet:03, irq=-1)
[ OK ] Started udev Coldplug all Devices.
[ 14.989292] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started udev Coldplug all Devices Starting Network Time Synchronization...
Starting Update UTMP about System Boot/Shutdown...
Starting [ OK ] Started Network Time Synchronization...[ 25.187188] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=2188000.ethernet:03, irq=-1)[ 25.367377] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Timers.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started D-Bus System Message Bus.
Starting Cape Manager Service...
Starting Login Service...
[ OK ] Started Regular background program processing daemon.
Starting isdnutils-base.service...
Starting Generic Board Startup...
Starting isdnutils-baseCape Manager Service... Starting Restore /etc/resolv.conf i...e the ppp link was shut down.service...
Starting System Logging Service...
Starting Restore /etc/resolvLogin Service...[ OK ] Started Daily Cleanup of Temporary Directories.[ OK ] Reached target Timers.[ OK ] Started D-Bus System Message Bus.conf i[ 18.859213] libphy: 2188000.ethernet:03 - Link is Up - 100/Full[ 18.e the ppp 865209] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link was shut downbecomes ready[ OK ] Reached target System Time Synchronized.[ OK ] Started System Logging Service.[FAILED] Failed to start Generic Board Startup.See 'systemctl status generic-board-startup.service' for details.
[FAILED] Failed to start Cape Manager Service.
See 'systemctl status capemgr.service' for details.
[FAILED] Failed to start Generic Board Startup.
See 'systemctl status generic-board-startup.service' for details.
[ OK ] Started System Logging Service.
[FAILED] Failed to start Restore /etc/resolv...ore the ppp link was shut down..
See 'systemctl status pppd-dns.service' for details.
[ 29.187322 OK ] libphy: 2188000.ethernet:03 - Link is Up - 100Found device /dev/Full[ 29ttymxc0.193318] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ OK ] Started Login Service.
[ 34.327349] systemd[1]: Found device /dev/ttymxc0.
[ OK ] Found device /dev/ttymxc0.
[ OK ] Started Raise network interfaces.
[ OK ] Reached target Network.
Starting Permit User Sessions...
[ OK ] Started OpenBSD Secure Shell server.
Starting /etc/rc.local Compatibility...
Starting [ OK ] Started Permit User Sessions...
[ OK ] Started /etc/rc.local Compatibility.
[ OK ] Started Permit User SessionsSerial Getty on ttymxc0.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttymxc0.
[ OK ] Reached target Login Prompts.
Architecture: armv7l
Hostname: arm
Linux kernel: 3.14.52-xuelk-1.1.3-xeno1-ipipe #2 3 SMP PREEMPT Wed Thu Mar 15 1216 09:2528:36 51 CET 2017
default username:password is [debian:debian]
Successfully installed autobahn six txaio
Cleaning up...
</pre>
==Notes about physical interfaces==
===WiFi (client mode)===
The procedure is almost identical to the one described [[XUELK-AN-001:_Using_WiFi-Bluetooth_combo_plugin_with_SBC_Lynx#WiFi_.28client_mode.29|here]]. However, as the WiFi driver is not statically linked to the kernel image, it is necessary to load the module first:
<pre class="board-terminal mw-collapsible mw-collapsed">
root@arm:/lib/modules# modprobe wl12xx
root@arm:/lib/modules# [ 630.747005] wl12xx_driver wl12xx.0.auto: Direct firmware load failed with error -2
[ 630.754613] wl12xx_driver wl12xx.0.auto: Falling back to user helper
[ 631.914814] [sched_delayed] sched: RT throttling activated
[ 632.250790] wlcore: loaded
</pre>
4,650
edits

Navigation menu