Changes

Jump to: navigation, search

Standalone boot (BELK/BXELK)

22,955 bytes added, 15:57, 30 January 2020
no edit summary
Added images of case #1's partitioning scheme
|-
|{{oldid|9151|2.0.2}}
|June 2019
|Fixed definition of <code>nandboot2</code> variable<br>
Fixed dump related to the download of the bitstream file
|-
|3.0.0
|Jan 2020
|Update for BELK/BXELK 4.1.0
|}
* Boot the system via SD or NFS as described into the [[System_boot_and_recovery_via_microSD_card_(BELK/BXELK)|System boot and recovery via microSD card]] and [[Booting_the_system_via_NFS_(BELK/BXELK)|Booting the system via NFS]]
* By default, the NAND is already partitioned to allow booting from NAND-only (see next section) and, thus, some partitions are reserved for FSBL, U-boot and kernel images. Here we won't modify this default configuration. The [[Memory Tecnology Device (MTD)|MTD]] partitions can be dumped with <code>/proc/mtd</code> (the partition's name should be self-explanatory)
 
<pre class="board-terminal">
root@bora:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00040000 00020000 "nand-SPLspl"mtd1: 00080000 000c0000 00020000 "nand-uboot"mtd2: 00040000 00020000 "nand-uboot-env1"mtd3: 00040000 00020000 "nand-uboot-env2"mtd4: 00440000 00600000 00020000 "nand-bitstreamfpga"mtd5: 00040000 00080000 00020000 "nand-device-treefdt"mtd6: 00400000 00800000 00020000 "nand-linuxkernel"mtd7: 1f600000 3f000000 00020000 "nand-rootfsubi"
</pre>
<pre class="board-terminal">
root@bora:~# ubiformat /dev/mtd7
ubiformat /dev/mtd7ubiformat: mtd7 (nand), size 526385152 1056964608 bytes (5021008.0 MiB), 4016 8064 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 byteslibscan: scanning eraseblock 4015 8063 -- 100 % completeubiformat: 4016 8060 eraseblocks have valid erase counter, mean value is 21ubiformat: 4 bad eraseblocks found, numbers: 8060, 8061, 8062, 8063ubiformat: formatting eraseblock 4015 8063 -- 100 % complete
root@bora:~# ubiattach -m 7
[ 95 275.732434247791] UBIubi0: attaching mtd7 to ubi0[ 100280.930047486952] UBIubi0: scanning is finished[ 100280.954932520370] UBIubi0: attached mtd7 (name "nand-rootfsubi", size 502 1008 MiB) to ubi0[ 100280.961772526302] UBIubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 129024 bytes[ 100280.968534533222] UBIubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048512[ 100280.975248539860] UBIubi0: VID header offset: 2048 512 (aligned 2048512), data offset: 40962048[ 100280.982129546610] UBIubi0: good PEBs: 40168060, bad PEBs: 04, corrupted PEBs: 0[ 100280.988100552720] UBIubi0: user volume: 0, internal volumes: 1, max. volumes count: 128[ 100280.995271559908] UBIubi0: max/mean erase counter: 43/32, WL threshold: 4096, image sequence number: 1955579947857573235[ 101280.004308568946] UBIubi0: available PEBs: 38527900, total reserved PEBs: 164160, PEBs reserved for bad PEB handling: 160156[ 101280.013959578486] UBIubi0: background thread "ubi_bgt0d" started, PID 913983UBI device number 0, total 4016 8060 LEBs (509935616 1039933440 bytes, 486991.3 8 MiB), available 3852 7900 LEBs (489111552 1019289600 bytes, 466972.5 1 MiB), LEB size 126976 129024 bytes (124126.0 KiB)
root@bora:~# ubimkvol /dev/ubi0 -N rootfs -m
Set volume size to 4891115521019289600Volume ID 0, size 3852 7900 LEBs (489111552 1019289600 bytes, 466972.5 1 MiB), LEB size 126976 129024 bytes (124126.0 KiB), dynamic, name "rootfs", alignment 1root@bora:~#
</pre>
root@bora:~# mkdir -p /mnt/nand
root@bora:~# mount -t ubifs ubi0_0 /mnt/nand
[ 151327.397013559316] UBIFS(ubi0:0): default file-system created[ 151327.402858565925] UBIFS(ubi0:0): background thread "ubifs_bgt0_0" started, PID 918990[ 151327.529438694738] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"[ 151327.535395702090] UBIFS(ubi0:0): LEB size: 126976 129024 bytes (124 126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes[ 151327.544507711995] UBIFS(ubi0:0): FS size: 487079936 1016967168 bytes (464 969 MiB, 3836 7882 LEBs), journal size 24379392 33546240 bytes (23 31 MiB, 192 260 LEBs)[ 151327.554646722998] UBIFS(ubi0:0): reserved for root: 4952683 bytes (4836 KiB)[ 151327.560452729608] UBIFS(ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 447F14800D33F80E-E173E80A-4BE943F7-B5BEBE9E-A3EC1267F99EC2D24C4FCD14, small LPT model
</pre>
<pre class="board-terminal">
tar zxvf belk-3.0.1_borajxvf dave-image-devel-bora.tar.gz bz2 . -C /mnt/nand
</pre>
<pre class="board-terminal">
root@bora:~# umount /mnt/nand/
[ 385417.604146604700] UBIFS(ubi0:0): un-mount UBI device 0, volume 0[ 385417.608892609362] UBIFS(ubi0:0): background thread "ubifs_bgt0_0" stops
root@bora:~# ubidetach -m 7
[ 387424.671411230219] UBIubi0: detaching mtd7 from ubi0[ 387424.677554238132] UBIubi0: mtd7 is detached from ubi0
root@bora:~#
 
</pre>
SF: 10019 bytes @ 0x780000 Written: OK
</pre>
 
In U-Boot environment please set the following variables in order to be able to boot from NOR + NAND
==Use case #2==
===Introduction===
This configuration makes use the most common partitioning schemes for booting completely from NAND flash, that is:
*The NAND flash acts as boot memory and root file system storage; as such, it contains
**bootrom header and FSBL (or header+U-Boot SPL)
**U-Boot
**U-Boot redundant environment
**Even though these images are not strictly required to boot the system, the NOR flash also contains:
***The Linux kernel image
***The Linux Device Tree Blob (DTB)
***The bitstream file for the Programmable Logic (PL).
***The read/write UBIFS root filesystem.
 
The resulting flash memory layout is illustrated in the following pictures.
 
[[File:BELK-NAND-flash-partitioning-case-boot-NAND.png|thumb|center|600px|NAND flash partitioning scheme]]
 
In essence, the bootstrap sequence looks like this:
*U-Boot fetches and programs the PL bitstream
*Then it fetches the Linux kernel binary images (kernel and DTB) from the on-board NAND flash memory
*The Linux kernel mount the root filesystem from a NAND partition.
 
====Testbed====
This configuration was tested with the following testbed:
*SOM: DBTD4111I0R
*carrier board: EVBBX0000C0R
*software: [[BELK/BXELK_software_components#BELK_4.1.0|BELK 4.1.0]]
 
=== Program the boot images in NAND flash===
It is assumed that the following U-Boot's environment variables are defined:
 
<pre class="board-terminal">
fdt_base=0x00780000
fpga_base=0x00180000
kernel_base=0x00800000
loadk=tftpboot ${loadaddr} ${bootfile}
loadfdt=tftpboot ${fdtaddr} ${fdtfile}
loadfpga=tftpboot ${loadaddr} ${fpgafile}
nand_updatek=nand erase.part kernel; nand write ${loadaddr} kernel ${filesize}
nand_updatefdt=nand erase.part fdt; nand write ${fdtaddr} fdt ${filesize}
nand_updatefpga=nand erase.part fpga; nand write ${loadaddr} fpga ${filesize}
nand_loadk=nand read ${loadaddr} kernel
nand_loadfdt=nand read ${fdtaddr} fdt
nand_loadfpga=nand read ${loadaddr} fpga
program_fpga=run nand_loadfpga;fpga load 0 ${loadaddr} 0x${filesize}
</pre>
 
* Update the <code>bootfile</code>, <code>fdtfile</code> and <code>fpgafile</code> environment variables to fit the filename as found inside the TFTP server.
* Program kernel and device tree on NAND flash with the following U-Boot command
 
<pre class="board-terminal">
Bora> run loadfpga nand_updatefpga loadk nand_updatek loadfdt nand_updatefdt
</pre>
 
E.g.:
 
<pre class="board-terminal">
Bora> run loadfpga nand_updatefpga loadk nand_updatek loadfdt nand_updatefdt
Using ethernet@e000b000 device
TFTP from server 192.168.0.13; our IP address is 192.168.0.90
Filename 'bora/belk-4.1.0_bora_BASE_fpga.bin'.
Load address: 0x2080000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########
1.3 MiB/s
done
Bytes transferred = 4045564 (3dbafc hex)
 
NAND erase.part: device 0 offset 0x180000, size 0x600000
Erasing at 0x760000 -- 100% complete.
OK
 
NAND write: device 0 offset 0x180000, size 0x3dbafc
4045564 bytes written: OK
Using ethernet@e000b000 device
TFTP from server 192.168.0.13; our IP address is 192.168.0.90
Filename 'bora/linux/belk-4.1.0_uImage'.
Load address: 0x2080000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################
1.3 MiB/s
done
Bytes transferred = 3796168 (39ecc8 hex)
 
NAND erase.part: device 0 offset 0x800000, size 0x800000
Erasing at 0xfe0000 -- 100% complete.
OK
 
NAND write: device 0 offset 0x800000, size 0x39ecc8
3796168 bytes written: OK
Using ethernet@e000b000 device
TFTP from server 192.168.0.13; our IP address is 192.168.0.90
Filename 'bora/linux/belk-4.1.0_bora.dtb'.
Load address: 0x2000000
Loading: ##
655.3 KiB/s
done
Bytes transferred = 10073 (2759 hex)
 
NAND erase.part: device 0 offset 0x780000, size 0x80000
Erasing at 0x7e0000 -- 100% complete.
OK
 
NAND write: device 0 offset 0x780000, size 0x2759
10073 bytes written: OK
Bora>
</pre>
 
In U-Boot environment please set the following variables in order to be able to boot from NAND
 
<pre class="board-terminal">
nandargs=setenv bootargs ubi.mtd=7 root=ubi0_0 rootfstype=ubifs rw
nand_nand=run program_fpga nand_loadk nand_loadfdt nandargs addcons addmisc; bootm ${loadaddr} - ${fdtaddr}
</pre>
 
Reboot the system and configure U-Boot to apply the new configuration
 
<pre class="board-terminal">
=> setenv bootcmd run nand_nand
=> saveenv
</pre>
 
===Full bootstrap procedure===
For the reader's convenience, the following box shows the full bootstrap procedure (please, click on the "Expand" link):
 
<pre class="board-terminal mw-collapsible mw-collapsed">
U-Boot SPL 2017.01-belk-4.1.1 (Jan 08 2020 - 16:52:16)
nand boot
Trying to boot from NAND
1024 MiB
 
 
U-Boot 2017.01-belk-4.1.1 (Jan 08 2020 - 16:52:16 +0100), Build: belk-4.1.1
 
Model: Bora
Board: Xilinx Zynq
I2C: ready
DRAM: ECC disabled 1 GiB
Relocating to 3ff14000, new gd at 3ead3ee8, sp at 3ead3ec0
NAND: 1024 MiB
MMC: sdhci@e0100000: 0 (SD)
In: serial@e0001000
Out: serial@e0001000
Err: serial@e0001000
Model: Bora
Board: Xilinx Zynq
SOM ConfigID#: 00000008
SOM UniqueID#: 01234567:89abcdef
CB ConfigID CRC mismatch for 0x00000000 (was 0x00000000, expected 0x2144df1c) at block 3 (offset 96): using default
CB ConfigID#: ffffffff
CB UniqueID#: 00000000:00000000
Net: ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
eth0: ethernet@e000b000
Hit ENTER within 3 seconds to stop autoboot
 
NAND read: device 0 offset 0x180000, size 0x600000
6291456 bytes read: OK
 
NAND read: device 0 offset 0x800000, size 0x800000
8388608 bytes read: OK
 
NAND read: device 0 offset 0x780000, size 0x80000
524288 bytes read: OK
## Booting kernel from Legacy Image at 02080000 ...
Image Name: Linux-4.9.0-belk-4.1.0-xilinx
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3796104 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
Booting using the fdt blob at 0x2000000
Loading Kernel Image ... OK
Loading Device Tree to 1effa000, end 1efff758 ... OK
Switching to NAND storage before starting Linux
 
Starting kernel ...
 
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.0-belk-4.1.0-xilinx (jenkins@linuxserver2) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 SMP PREEMPT Tue Dec 24 11:34:28 CET 2019
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Bora
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] cma: Reserved 16 MiB at 0x3f000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 262144
[ 0.000000] free_area_init_node: node 0, pgdat c0a2ddc0, node_mem_map ef7f7000
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:31
[ 0.000000] HighMem zone: 65536 pages, LIFO batch:15
[ 0.000000] percpu: Embedded 14 pages/cpu @ef7d2000 s26124 r8192 d23028 u57344
[ 0.000000] pcpu-alloc: s26124 r8192 d23028 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: ubi.mtd=7 root=ubi0_0 rootfstype=ubifs rw console=ttyPS0,115200n8 debug earlyprintk cma=16M mtdparts=pl35x-nand:256K(spl),768K(uboot),256K(env1),256K(env2),6M(fpga),512K(fdt),8M(kernel),-(nand-ubi)
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1012740K/1048576K available (6144K kernel code, 234K rwdata, 1532K rodata, 1024K init, 323K bss, 19452K reserved, 16384K cma-reserved, 245760K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB)
[ 0.000000] .init : 0xc0900000 - 0xc0a00000 (1024 kB)
[ 0.000000] .data : 0xc0a00000 - 0xc0a3aa38 ( 235 kB)
[ 0.000000] .bss : 0xc0a3aa38 - 0xc0a8b834 ( 324 kB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] efuse mapped to f0802000
[ 0.000000] slcr mapped to f0804000
[ 0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x02460000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x02460000
[ 0.000000] L2C-310 erratum 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 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46460001
[ 0.000000] zynq_clock_init: clkc starts at f0804100
[ 0.000000] Zynq clock init
[ 0.000000] ps_clk frequency not specified, using 33 MHz.
[ 0.000011] sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
[ 0.007869] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
[ 0.018886] Switching to timer-based delay loop, resolution 3ns
[ 0.024888] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[ 0.033935] timer #0 at f080c000, irq=17
[ 0.038267] Console: colour dummy device 80x30
[ 0.042597] Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)
[ 0.053077] pid_max: default: 32768 minimum: 301
[ 0.057856] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.064361] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.071995] CPU: Testing write buffer coherency: ok
[ 0.076917] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.082505] Setting up static identity map for 0x100000 - 0x100058
[ 0.258338] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.258442] Brought up 2 CPUs
[ 0.266978] SMP: Total of 2 processors activated (1333.33 BogoMIPS).
[ 0.273357] CPU: All CPU(s) started in SVC mode.
[ 0.278942] devtmpfs: initialized
[ 0.285309] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.293073] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.303701] pinctrl core: initialized pinctrl subsystem
[ 0.310076] NET: Registered protocol family 16
[ 0.316253] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.358392] cpuidle: using governor ladder
[ 0.398350] cpuidle: using governor menu
[ 0.415353] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.423248] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.429192] zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
[ 0.436053] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[ 0.456378] vgaarb: loaded
[ 0.459737] SCSI subsystem initialized
[ 0.463985] usbcore: registered new interface driver usbfs
[ 0.470006] usbcore: registered new interface driver hub
[ 0.475316] usbcore: registered new device driver usb
[ 0.481323] pps_core: LinuxPPS API ver. 1 registered
[ 0.486156] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.495401] PTP clock support registered
[ 0.501389] clocksource: Switched to clocksource arm_global_timer
[ 0.522421] NET: Registered protocol family 2
[ 0.527491] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.534572] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.541005] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.547324] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.553249] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.559717] NET: Registered protocol family 1
[ 0.564419] RPC: Registered named UNIX socket transport module.
[ 0.570203] RPC: Registered udp transport module.
[ 0.574963] RPC: Registered tcp transport module.
[ 0.579663] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.586132] PCI: CLS 0 bytes, default 64
[ 0.590711] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.600381] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.607298] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.614340] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.622267] bounce: pool size: 64 pages
[ 0.625984] io scheduler noop registered
[ 0.629938] io scheduler deadline registered
[ 0.634284] io scheduler cfq registered (default)
[ 0.641598] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[ 0.648161] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[ 0.657287] e0000000.serial: ttyPS1 at MMIO 0xe0000000 (irq = 145, base_baud = 3125000) is a xuartps
[ 0.666733] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 146, base_baud = 3125000) is a xuartps
à[ 0.675856] console [ttyPS0] enabled
[ 0.675856] console [ttyPS0] enabled
[ 0.682949] bootconsole [earlycon0] disabled
[ 0.682949] bootconsole [earlycon0] disabled
[ 0.692174] xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f086f000
[ 0.699073] [drm] Initialized
[ 0.714985] brd: module loaded
[ 0.725471] loop: module loaded
[ 0.730823] libphy: Fixed MDIO Bus: probed
[ 0.737912] libphy: mdio_driver_register: xgmiitorgmii
[ 0.743111] CAN device driver interface
[ 0.749380] libphy: MACB_mii_bus: probed
[ 0.852145] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 148 (00:50:c2:1e:af:e0)
[ 0.862019] Micrel KSZ9031 Gigabit PHY e000b000.etherne:07: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e000b000.etherne:07, irq=-1)
[ 0.876204] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 0.881981] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.888875] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.895372] ehci-pci: EHCI PCI platform driver
[ 0.899915] usbcore: registered new interface driver usb-storage
[ 0.906105] e0002000.usb supply vbus not found, using dummy regulator
[ 0.912795] ULPI transceiver vendor/product ID 0x0424/0x0006
[ 0.918368] Found SMSC USB331x ULPI transceiver.
[ 0.923003] ULPI integrity check: passed.
[ 0.928808] mousedev: PS/2 mouse device common for all mice
[ 0.934751] i2c /dev entries driver
[ 0.938424] cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 142
[ 0.948144] rtc-ds3232 0-0068: rtc core: registered ds3232 as rtc0
[ 0.955792] ina2xx 0-0041: power monitor ina226 (Rshunt = 10000 uOhm)
[ 0.962591] tmp421 0-004f: Could not read configuration register (-6)
[ 0.970543] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 666666 KHz
[ 0.977828] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 666667 KHz
[ 0.986424] Xilinx Zynq CpuIdle Driver started
[ 0.991294] sdhci: Secure Digital Host Controller Interface driver
[ 0.997421] sdhci: Copyright(c) Pierre Ossman
[ 1.001749] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.061455] mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using DMA
[ 1.069084] usbcore: registered new interface driver usbhid
[ 1.075634] usbhid: USB HID core driver
[ 1.082573] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xd3
[ 1.088843] nand: Unknown W29N08GV
[ 1.092292] nand: 1024 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.100596] Bad block table found at page 524224, version 0x01
[ 1.107676] Bad block table found at page 524160, version 0x01
[ 1.114266] 8 cmdlinepart partitions found on MTD device pl35x-nand
[ 1.120470] Creating 8 MTD partitions on "pl35x-nand":
[ 1.125608] 0x000000000000-0x000000040000 : "spl"
[ 1.142605] 0x000000040000-0x000000100000 : "uboot"
[ 1.158482] 0x000000100000-0x000000140000 : "env1"
[ 1.174374] 0x000000140000-0x000000180000 : "env2"
[ 1.184974] mmc0: new high speed SDHC card at address 59b4
[ 1.190236] 0x000000180000-0x000000780000 : "fpga"
[ 1.201439] 0x000000780000-0x000000800000 : "fdt"
[ 1.205848] mmcblk0: mmc0:59b4 USDU1 14.9 GiB
[ 1.211140] mmcblk0: p1 p2
[ 1.211772] 0x000000800000-0x000001000000 : "kernel"
[ 1.222910] 0x000001000000-0x000040000000 : "nand-ubi"
[ 1.247391] NET: Registered protocol family 17
[ 1.251856] can: controller area network core (rev 20120528 abi 9)
[ 1.258008] NET: Registered protocol family 29
[ 1.262407] can: raw protocol (rev 20120528)
[ 1.266628] can: broadcast manager protocol (rev 20161123 t)
[ 1.272303] can: netlink gateway (rev 20130117) max_hops=1
[ 1.278132] Registering SWP/SWPB emulation handler
[ 1.288204] ubi0: attaching mtd7
[ 6.527574] ubi0: scanning is finished
[ 6.559907] ubi0: attached mtd7 (name "nand-ubi", size 1008 MiB)
[ 6.565877] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 6.572720] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 6.579380] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[ 6.586165] ubi0: good PEBs: 8060, bad PEBs: 4, corrupted PEBs: 0
[ 6.592244] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 6.599432] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 857573235
[ 6.608473] ubi0: available PEBs: 0, total reserved PEBs: 8060, PEBs reserved for bad PEB handling: 156
[ 6.617868] ubi0: background thread "ubi_bgt0d" started, PID 679
[ 6.618911] rtc-ds3232 0-0068: hctosys: unable to read the hardware clock
[ 6.632658] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 681
[ 6.715428] UBIFS (ubi0:0): recovery needed
[ 6.965346] UBIFS (ubi0:0): recovery completed
[ 6.969793] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 6.977129] UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 6.987017] UBIFS (ubi0:0): FS size: 1016967168 bytes (969 MiB, 7882 LEBs), journal size 33546240 bytes (31 MiB, 260 LEBs)
[ 6.998035] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[ 7.004636] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 0D33F80E-E80A-43F7-BE9E-C2D24C4FCD14, small LPT model
[ 7.017320] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 7.025315] devtmpfs: mounted
[ 7.031335] Freeing unused kernel memory: 1024K (c0900000 - c0a00000)
INIT: version 2.88 booting
Starting udev
[ 9.081287] udevd[710]: starting version 3.2
[ 9.111284] random: udevd: uninitialized urandom read (16 bytes read)
[ 9.122792] random: udevd: uninitialized urandom read (16 bytes read)
[ 9.129255] random: udevd: uninitialized urandom read (16 bytes read)
[ 9.176143] udevd[711]: starting eudev-3.2
[ 9.321128] random: udevd: uninitialized urandom read (16 bytes read)
[ 10.176226] random: dd: uninitialized urandom read (512 bytes read)
Mon Dec 30 23:37:37 UTC 2019
INIT: Entering runlevel: 5
Configuring network interfaces... udhcpc (v1.24.1) started
Sending discover...
[ 12.601808] macb e000b000.ethernet eth0: link up (100/Full)
Sending discover...
Sending discover...
No lease, forking to background
done.
Starting system message bus: [ 19.305403] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[ 19.405678] random: dbus-daemon: uninitialized urandom read (12 bytes read)
dbus.
Starting Dropbear SSH server: [ 19.538175] random: dropbear: uninitialized urandom read (32 bytes read)
dropbear.
Starting rpcbind daemon...done.
starting statd: done
Starting atd: OK
exportfs: can't open /etc/exports for reading
NFS daemon support not enabled in kernel
Starting system log daemon...0
Starting kernel log daemon...0
Starting internet superserver: xinetd.
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
[ 20.449120] random: avahi-daemon: uninitialized urandom read (4 bytes read)
[ 20.551133] random: avahi-daemon: uninitialized urandom read (4 bytes [ ok ]
Starting crond: OK
Starting tcf-agent: OK
 
Poky (Yocto Project Reference Distro) 2.2.1 bora /dev/ttyPS0
 
bora login: root
root@bora:~#
</pre>
 
==Use case #3==
===Introduction===
This example makes use of the partitioning scheme illustrated in the following images.
[[File:BELK-NAND-flash-partitioning-case2case3.png|thumb|center|600px|NAND flash partitioning scheme]]
8,154
edits

Navigation menu