Changes

Jump to: navigation, search

Booting from NFS (XELK)

5,832 bytes added, 09:50, 16 July 2019
no edit summary
!Notes
|-
|1{{oldid|8371|3.0.01}}
|November 2018
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK_3.0.1|XELK 3.0.1]]
|First release
|-
|4.0.0
|July 2019
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK_4.0.0|XELK 4.0.0]]
|
|-
|}
== net_nfs configuration ==
XELK 34.0.0 Virtual Machine is properly configured for the TFTP and NFS debug.
In any case, some variables has to be configured on the target and the VM itself has to be configured for respect to the network environment.
=== network adapter ===
The network adpater should be configured in '''bridge mode''' in order to allow thge the target to get the files from the VM
[[File:XELK VM Network-VM.png|500px]]
<pre>
dvdk@vagrant-ubuntu-trusty-64:~$ ifconfigeth0 Link encap:Ethernet HWaddr 08:00:27:01ed:1554:46 80 inet addr:192.168.0.125 121 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe01feed:15465480/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:847415 342143 errors:0 dropped:4 0 overruns:0 frame:0 TX packets:186868 267700 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:293175710 160784829 (293160.1 7 MB) TX bytes:134758296 214001179 (134214.7 0 MB)
lo Link encap:Local Loopback
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:5091 201 errors:0 dropped:0 overruns:0 frame:0 TX packets:5091 201 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 1 RX bytes:538322 21929 (53821.3 9 KB) TX bytes:538322 21929 (53821.3 9 KB)
dvdk@vagrant-ubuntu-trusty-64:~$
</pre>
<pre>
dvdk@vagrant-ubuntu-trusty-64:~$ cat /etc/exports /home/dvdk/axel/rfs 1920.1680.0.0/2550.2550.2550.0(rw,async,no_root_squash,no_subtree_check,crossmnt)dvdk@vagrant-ubuntu-trusty-64:~$
</pre>
<pre>
dvdk@vagrant-ubuntu-trusty-64:~$ sudo /etc/init.d/nfs-kernel-server restart
[sudo] password for dvdk:
* Stopping NFS kernel daemon [ OK ]
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
dvdk@vagrant-ubuntu-trusty-64:~$
</pre>
<pre>
=> setenv serverip 192.168.0.125120=> setenv ipaddr 192.168.0.95121
</pre>
<pre>
=> setenv bootfile /tftpboot/axel/xelk-34.0.4_uImage0_uImage=> setenv fdtfile /tftpboot/axel/xelk-34.0.4_imx6dl0_imx6q-sbcxxelk-cb0048l-2.0.0.dtb
</pre>
finally, the ''root file system'' directory on the Virtual Machine should be configured for let the kernel to find the '''INIT'''
<pre>=> setenv rootpath /home/dvdk/axel/rfs/xelk-34.0.10</pre>
=> run net_nfs
Using FEC device
TFTP from server 192.168.0.13121; our IP address is 192.168.0.90120Filename '/tftpboot/axel/xelk-34.0.4_uImage0_uImage'.
Load address: 0x12000000
Loading: #################################################################
#################################################################
#################################################################
################################################################# ### 1.5 2 MiB/s
done
Bytes transferred = 6521336 6668104 (6381f8 65bf48 hex)
Using FEC device
TFTP from server 192.168.0.13121; our IP address is 192.168.0.90120Filename '/tftpboot/axel/xelk-34.0.4_imx6dl0_imx6q-xelk-sbcxl-cb00482.0.0.dtb'.
Load address: 0x18000000
Loading: ########## 977879.5 9 KiB/s
done
Bytes transferred = 46068 47771 (b3f4 ba9b hex)FDT: override 'som_uniqueid' with 'ea9b8da9:2513b9d4'FDT: override 'cb_uniqueid' with '00000000:00000000'
## Booting kernel from Legacy Image at 12000000 ...
Image Name: Linux-4.19.1511-xelk-34.0.40
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6521272 6668040 Bytes = 6.2 4 MiB
Load Address: 10008000
Entry Point: 10008000
Booting using the fdt blob at 0x18000000
Loading Kernel Image ... OK
reserving fdt memory region: addr=18000000 size=c000 Using Device Tree in place at 18000000, end 1800e3f31800efff
switch to ldo_bypass mode!
Frame buffer: configure splashscreen reserved memory to 0x4e000000 0x8e000000 (6 2 MiB)WARNING: could not find 2nd splashscreen reserved memory path Starting kernel ... </pre>
then the Linux kernel will start and mount the root file system using the nfs protocol
 
<pre class="workstation-terminal">
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.1511-xelk-34.0.4 0 (jenkinsdvdk@linuxserver2vagrant) (gcc version 56.2.0 (GCC) ) #1 SMP PREEMPT Sat Nov 3 23Thu Jun 27 11:3134:09 CET 201817 CEST 2019
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: AxelLite DL Quad on SBCX CB0048XELK-L rev 2.0.0[ 0.000000] Reserved memory: created ipuv3_fb memory pool at 0x4e0000000x8e000000, size 6 2 MiB[ 0.000000] Reserved memoryOF: reserved mem: initialized node splashscreen, compatible id fsl,ipuv3-fb
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPUpercpu: Embedded 12 14 pages/cpu @bf7bb000 s16960 e579b000 s25996 r8192 d24000 u49152d23156 u57344[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258560520496[ 0.000000] Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.13121:/opthome/nfsrootdvdk/axel/rfs/xelk-4.0.0,v3,tcp ip=192.168.0.90120:192.168.0.13121:192.168.0.254:255.255.255.0:xelk:eth0:off panic=1 console=ttymxc2,115200 vmalloc=400M mtdparts=gpmi-nand:8M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-fdt),1M(nand-sparespare),8M(nand-kernel),4M(nand-splash),-(nand-ubi);spi0.0:1M(spi-uboot),256k(spi-env1),256k(spi-env2),512k(spi-dtb),8M(spi-kernel),4M(spi-splash),-(spispi-free)
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 262144 (order: 78, 524288 1048576 bytes)[ 0.000000] Inode-cache hash table entries: 65536 131072 (order: 67, 262144 524288 bytes)[ 0.000000] Memory: 693136K1734744K/1042432K 2095104K available (8375K 9216K kernel code, 450K 522K rwdata, 2732K 2380K rodata, 312K 1024K init, 429K 448K bss, 349296K 360360K reserved, 0K cma-reservedreserved, 0K 88064K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc0800000 0xe7000000 - 0xff000000 0xff800000 (1000 392 MB)[ 0.000000] lowmem : 0x80000000 - 0xc0000000 0xe6800000 (1024 1640 MB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .text : 0x80008000 - 0x80ae1278 0x80a00000 (11109 10208 kB)[ 0.000000] .init : 0x80ae2000 0x80d00000 - 0x80b30000 0x80e00000 ( 312 1024 kB)[ 0.000000] .data : 0x80b30000 0x80e00000 - 0x80ba0a48 0x80e82a90 ( 451 523 kB)[ 0.000000] .bss : 0x80ba0a48 0x80e82a90 - 0x80c0c06c 0x80ef2e60 ( 430 449 kB)[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=24, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 Build-time adjustment of leaf fanout to nr_cpu_ids=232.[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C-310 erratum errata 752271 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 16 ways, 512 1024 kB[ 0.000000] L2C-310: CACHE_ID 0x410000c80x410000c7, AUX_CTRL 0x76450001[ 0.000000] mxc_clocksource_init 30000000x76470001
[ 0.000000] Switching to timer-based delay loop, resolution 333ns
[ 0.000006] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns[ 0.000026] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns[ 0.000960] Console: colour dummy device 80x30[ 0.000977] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)[ 0.000994] pid_max: default: 32768 minimum: 301[ 0.001090] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)[ 0.001105] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)[ 0.001738] CPU: Testing write buffer coherency: ok[ 0.002033] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000[ 0.002128] Setting up static identity map for 0x10008280 - 0x100082d8[ 0.060274] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001[ 0.060347] Brought up 2 CPUs[ 0.060364] SMP: Total of 2 processors activated (12.00 BogoMIPS).[ 0.060374] CPU: All CPU(s) started in SVC mode.[ 0.060857] devtmpfs: initialized[ 0.071894] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4[ 0.072283] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns[ 0.072692] pinctrl core: initialized pinctrl subsystem[ 0.073692] NET: Registered protocol family 16[ 0.075235] DMA: preallocated 256 KiB pool for atomic coherent allocations[ 0.099694] cpuidle: using governor ladder[ 0.129689] cpuidle: using governor menu[ 0.129880] CPU identified as i.MX6DL, silicon rev 1.3[ 0.129991] Use WDOG2 as reset source[ 0.[ 0.000007] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns[ 0.000025] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns[ 0.001336] Console: colour dummy device 80x30[ 0.001359] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)[ 0.001374] pid_max: default: 32768 minimum: 301[ 0.001457] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes)[ 0.001469] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes)[ 0.002050] CPU: Testing write buffer coherency: ok[ 0.002386] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000[ 0.002444] Setting up static identity map for 0x10100000 - 0x10100058[ 0.149865] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001[ 0.219851] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002[ 0.289849] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003[ 0.289930] Brought up 4 CPUs[ 0.289957] SMP: Total of 4 processors activated (24.00 BogoMIPS).[ 0.289965] CPU: All CPU(s) started in SVC mode.[ 0.290762] devtmpfs: initialized[ 0.302714] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4[ 0.303023] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns[ 0.303148] pinctrl core: initialized pinctrl subsystem[ 0.304103] NET: Registered protocol family 16[ 0.305139] DMA: preallocated 256 KiB pool for atomic coherent allocations[ 0.339595] cpuidle: using governor menu[ 0.339807] CPU identified as i.MX6Q, silicon rev 1.5[ 0.339954] Use WDOG2 as reset source[ 0.349965] vddarm: bypassed regulator has no supply![ 0.349980] vddarm: failed to get the current voltage(-517)[ 0.350733] vddsoc: bypassed regulator has no supply![ 0.350747] vddsoc: failed to get the current voltage(-517)[ 0.361884] hw-breakpoint: found 5 (+
Freescale NXP i.MX Release Distro 4.19.1511-21.0.1 0 imx6qxelk /dev/ttymxc2
imx6qxelk login:
</pre>
dave_user
22
edits

Navigation menu