badge-buildroot/board/businesscard/v1/bootscript
2019-08-17 09:19:38 -05:00

18 lines
959 B
Text

setenv bootargs console=ttyS0,115200 ubi.mtd=0 ubi.block=0,root root=/dev/ubiblock0_0
sf probe 0 20000000; sleep 0.5; ubi part rootubi; sleep 0.5; ubi read ${kernel_addr_r} kernel; sleep 0.5; ubi read ${fdt_addr_r} dtb
bootz ${kernel_addr_r} - ${fdt_addr_r}
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait
fatload mmc 0 ${kernel_addr_r} zImage
fatload mmc 0 ${fdt_addr_r} businesscard.dtb
bootz ${kernel_addr_r} - ${fdt_addr_r}
ubi0: attached mtd2 (name "mtd=1", size 7 MiB)
ubi0: PEB size: 65536 bytes (64 KiB), LEB size: 65408 bytes
ubi0: min./max. I/O unit sizes: 1/256, sub-page size 1
ubi0: VID header offset: 64 (aligned 64), data offset: 128
ubi0: good PEBs: 120, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 114, total reserved PEBs: 6, PEBs reserved for bad PEB handling: 0