Changes

Jump to: navigation, search

Standalone boot (BELK/BXELK)

No change in size, 13:47, 5 March 2019
Formatting the fourth partition of the NAND memory
<pre>
root@bora-ubi:~# cat /proc/mtd
dev: size erasesize name
mtd0: 03000000 00020000 "data0"
mtd2: 00100000 00020000 "data2"
mtd3: 3c000000 00020000 "data3"
root@bora-ubi:~# ubiubiattach ubicrc32 ubiformat ubinfo ubirename ubirsvolubiblock ubidetach ubimkvol ubinize ubirmvol ubiupdatevolroot@bora-ubi:~# [ 224.919678] random: crng init done root@bora-ubi:~# ubiformat /dev/mtd3
ubiformat: mtd3 (nand), size 1006632960 bytes (960.0 MiB), 7680 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 7679 -- 100 % complete
ubiformat: 7676 eraseblocks are supposedly emptyhave valid erase counter, mean value is 0
ubiformat: 4 bad eraseblocks found, numbers: 7676, 7677, 7678, 7679
ubiformat: formatting eraseblock 7679 -- 100 % complete
root@bora-ubi:~# ubiattach -m 3[ 11496543.075187803993] ubi0: attaching mtd3[ 11546549.062660149717] ubi0: scanning is finished[ 11546549.093813180746] ubi0: attached mtd3 (name "data3", size 960 MiB)[ 11546549.099516186339] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes[ 11546549.106479194291] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512[ 11546549.113172201006] ubi0: VID header offset: 512 (aligned 512), data offset: 2048[ 11546549.120026207708] ubi0: good PEBs: 7676, bad PEBs: 4, corrupted PEBs: 0[ 11546549.126302213824] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128[ 11546549.133591221038] ubi0: max/mean erase counter: 02/01, WL threshold: 4096, image sequence number: 2481359642065859155[ 11546549.142667232175] ubi0: available PEBs: 7516, total reserved PEBs: 160, PEBs reserved for bad PEB handling: 156[ 11546549.152304244741] ubi0: background thread "ubi_bgt0d" started, PID 8701456
UBI device number 0, total 7676 LEBs (990388224 bytes, 944.5 MiB), available 7516 LEBs (969744384 bytes, 924.8 MiB), LEB size 129024 bytes (126.0 KiB)
root@bora-ubi:~# mount -t ubifs ubi0_0 /mnt/data3mount: mounting ubi0_0 on /mnt/data3 failed: No such file or directoryroot@bora-ubi:~# mkdir -p /mnt/data3root@bora-ubi:~# mount -t ubifs ubi0_0 /mnt/data3[ 6578.253504] ubi0 error: ubi_open_volume: cannot open device 0, volume 0, error -19mount: mounting ubi0_0 on /mnt/data3 failed: No such deviceroot@bora-ubi:~# ubimkvol /dev/ubi0 -N data3 -m
Set volume size to 969744384
Volume ID 0, size 7516 LEBs (969744384 bytes, 924.8 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "data3", alignment 1
root@bora:~# ls -la /mnt/total 16drwxr-xr-x 4 root root 4096 Mar 19 2018 .drwxrwxr-x 16 541 502 4096 Jul 9 21:11 ..drwxr-xr-x 2 root root 4096 Mar 19 2018 tftpvideodrwxr-xr-x 2 root root 4096 Mar 19 2018 ubifsroot@bora:~# mkdir -p /mnt/data3root@boraubi:~# mount -t ubifs ubi0_0 /mnt/data3[ 12386634.777228342953] UBIFS (ubi0:0): default file-system created[ 12386634.783887349787] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 8781473[ 12386634.913347536639] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "data3"[ 12386634.920577543901] UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes[ 12386634.930509553858] UBIFS (ubi0:0): FS size: 967421952 bytes (922 MiB, 7498 LEBs), journal size 33546240 bytes (31 MiB, 260 LEBs)[ 12386634.941440564767] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)[ 12386634.948006571363] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID B4CA7F108B1F86F2-B2AEF2C3-4C894292-B2E1845F-59B38879E56477D3BF3E212A, small LPT modelroot@bora-ubi:~# mount192.168.0.13:/opt/nfsroot/bora/belk-4.0.0 on / type nfs (rw,relatime,vers=2,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.13,mountvers=1,mountproto=tcp,local_lock=all,addr=192.168.0.13)devtmpfs rootfs on /dev type devtmpfs rootfs (rw,relatime,size=506608k,nr_inodes=126652,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=503536k,nr_inodes=125884,mode=755)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /var/volatile type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
ubi0_0 on /mnt/data3 type ubifs (rw,relatime)
root@bora-ubi:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
192.168.0.13:/opt/nfsroot/bora/belk-4.0.0 103080204 95026920 2810460 97% /devtmpfs 506608 503536 0 506608 503536 0% /devtmpfs 515312 48 36 515264 515276 0% /runtmpfs 515312 48 40 515264 515272 0% /var/volatile
ubi0_0 887868 16 883016 0% /mnt/data3
root@bora:~#
</pre>
 
===Finalizing the U-Boot environment for the automatic boot===
4,650
edits

Navigation menu